mirror of https://github.com/armbian/build.git
494 lines
11 KiB
Plaintext
494 lines
11 KiB
Plaintext
/*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
* Copyright (c) 2020 Rockchip Electronics Co., Ltd.
|
|
* Copyright (c) 2024 Radxa Limited
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "rk3568.dtsi"
|
|
#include "rk3568-u-boot.dtsi"
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
model = "Youyeetoo YY3568";
|
|
compatible = "youyeetoo,yy3568", "rockchip,rk3568";
|
|
|
|
vcc5v0_sys: vcc5v0-sys {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
};
|
|
|
|
vcc3v3_sys: vcc3v3-sys {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
};
|
|
|
|
led_sys: led-sys {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "led_sys";
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
vin-supply = <&vcc3v3_sys>;
|
|
};
|
|
|
|
led_sys: led-sys {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "led_sys";
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
vin-supply = <&vcc3v3_sys>;
|
|
};
|
|
|
|
adc-keys {
|
|
compatible = "adc-keys";
|
|
io-channels = <&saradc 0>;
|
|
io-channel-names = "buttons";
|
|
keyup-threshold-microvolt = <1800000>;
|
|
u-boot,dm-spl;
|
|
status = "okay";
|
|
|
|
volumeup-key {
|
|
u-boot,dm-spl;
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
label = "volume up";
|
|
press-threshold-microvolt = <9>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "gpio-leds";
|
|
status = "okay";
|
|
|
|
blue-led {
|
|
u-boot,dm-pre-reloc;
|
|
label = "blue";
|
|
gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&gmac1 {
|
|
u-boot,dm-pre-reloc;
|
|
phy-mode = "rgmii";
|
|
clock_in_out = "output";
|
|
|
|
snps,reset-gpio = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>;
|
|
snps,reset-active-low;
|
|
/* Reset time is 20ms, 100ms for rtl8211f */
|
|
snps,reset-delays-us = <0 20000 100000>;
|
|
|
|
assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
|
|
assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>;
|
|
assigned-clock-rates = <0>, <125000000>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&gmac1m1_miim
|
|
&gmac1m1_tx_bus2
|
|
&gmac1m1_rx_bus2
|
|
&gmac1m1_rgmii_clk
|
|
&gmac1m1_rgmii_bus>;
|
|
|
|
tx_delay = <0x44>;
|
|
rx_delay = <0x26>;
|
|
|
|
phy-handle = <&rgmii_phy1>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&mdio1 {
|
|
rgmii_phy1: phy@0 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x0>;
|
|
};
|
|
};
|
|
|
|
&crypto {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pmu_io_domains {
|
|
status = "okay";
|
|
pmuio2-supply = <&vcc_3v3>;
|
|
vccio1-supply = <&vccio_acodec>;
|
|
vccio3-supply = <&vccio_sd>;
|
|
vccio4-supply = <&vcc_1v8>;
|
|
vccio5-supply = <&vcc_3v3>;
|
|
vccio6-supply = <&vcc_1v8>;
|
|
vccio7-supply = <&vcc_3v3>;
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&gpio0 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&gpio4 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
u-boot,dm-pre-reloc;
|
|
clock-frequency = <100000>;
|
|
|
|
vdd_cpu: tcs4525@1c {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "tcs,tcs452x";
|
|
reg = <0x1c>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
regulator-compatible = "fan53555-reg";
|
|
regulator-name = "vdd_cpu";
|
|
regulator-min-microvolt = <712500>;
|
|
regulator-max-microvolt = <1390000>;
|
|
regulator-init-microvolt = <900000>;
|
|
regulator-ramp-delay = <2300>;
|
|
fcs,suspend-voltage-selector = <1>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
rk809: pmic@20 {
|
|
u-boot,dm-pre-reloc;
|
|
status = "okay";
|
|
compatible = "rockchip,rk809";
|
|
reg = <0x20>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
pinctrl-names = "default", "pmic-sleep",
|
|
"pmic-power-off", "pmic-reset";
|
|
pinctrl-0 = <&pmic_int>;
|
|
pinctrl-1 = <&soc_slppin_slp>, <&rk817_slppin_slp>;
|
|
pinctrl-2 = <&soc_slppin_gpio>, <&rk817_slppin_pwrdn>;
|
|
pinctrl-3 = <&soc_slppin_gpio>, <&rk817_slppin_rst>;
|
|
|
|
rockchip,system-power-controller;
|
|
wakeup-source;
|
|
#clock-cells = <1>;
|
|
clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
|
//fb-inner-reg-idxs = <2>;
|
|
/* 1: rst regs (default in codes), 0: rst the pmic */
|
|
pmic-reset-func = <0>;
|
|
/* not save the PMIC_POWER_EN register in uboot */
|
|
not-save-power-en = <1>;
|
|
|
|
vcc1-supply = <&vcc3v3_sys>;
|
|
vcc2-supply = <&vcc3v3_sys>;
|
|
vcc3-supply = <&vcc3v3_sys>;
|
|
vcc4-supply = <&vcc3v3_sys>;
|
|
vcc5-supply = <&vcc3v3_sys>;
|
|
vcc6-supply = <&vcc3v3_sys>;
|
|
vcc7-supply = <&vcc3v3_sys>;
|
|
vcc8-supply = <&vcc3v3_sys>;
|
|
vcc9-supply = <&vcc3v3_sys>;
|
|
|
|
pwrkey {
|
|
status = "okay";
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
pinctrl_rk8xx: pinctrl_rk8xx {
|
|
u-boot,dm-pre-reloc;
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
|
|
rk817_slppin_null: rk817_slppin_null {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun0";
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
rk817_slppin_slp: rk817_slppin_slp {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun1";
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
rk817_slppin_pwrdn: rk817_slppin_pwrdn {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun2";
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
rk817_slppin_rst: rk817_slppin_rst {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun3";
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
};
|
|
|
|
regulators {
|
|
u-boot,dm-pre-reloc;
|
|
vdd_logic: DCDC_REG1 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <500000>;
|
|
regulator-max-microvolt = <1350000>;
|
|
regulator-init-microvolt = <900000>;
|
|
regulator-ramp-delay = <6001>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vdd_logic";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdd_gpu: DCDC_REG2 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <500000>;
|
|
regulator-max-microvolt = <1350000>;
|
|
regulator-init-microvolt = <900000>;
|
|
regulator-ramp-delay = <6001>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vdd_gpu";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_ddr: DCDC_REG3 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vcc_ddr";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdd_npu: DCDC_REG4 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <500000>;
|
|
regulator-max-microvolt = <1350000>;
|
|
regulator-init-microvolt = <900000>;
|
|
regulator-ramp-delay = <6001>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vdd_npu";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdda0v9_image: LDO_REG1 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <900000>;
|
|
regulator-name = "vdda0v9_image";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdda_0v9: LDO_REG2 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <900000>;
|
|
regulator-name = "vdda_0v9";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdda0v9_pmu: LDO_REG3 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <900000>;
|
|
regulator-name = "vdda0v9_pmu";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <900000>;
|
|
};
|
|
};
|
|
|
|
vccio_acodec: LDO_REG4 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vccio_acodec";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vccio_sd: LDO_REG5 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vccio_sd";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc3v3_pmu: LDO_REG6 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcc3v3_pmu";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <3300000>;
|
|
};
|
|
};
|
|
|
|
vcca_1v8: LDO_REG7 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcca_1v8";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcca1v8_pmu: LDO_REG8 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcca1v8_pmu";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <1800000>;
|
|
};
|
|
};
|
|
|
|
vcca1v8_image: LDO_REG9 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcca1v8_image";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_1v8: DCDC_REG5 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc_1v8";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_3v3: SWITCH_REG1 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-name = "vcc_3v3";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc3v3_sd: SWITCH_REG2 {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-name = "vcc3v3_sd";
|
|
regulator-state-mem {
|
|
u-boot,dm-pre-reloc;
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
u-boot,dm-spl;
|
|
pmic {
|
|
u-boot,dm-pre-reloc;
|
|
pmic_int: pmic_int {
|
|
u-boot,dm-pre-reloc;
|
|
rockchip,pins =
|
|
<0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
|
|
soc_slppin_gpio: soc_slppin_gpio {
|
|
u-boot,dm-pre-reloc;
|
|
rockchip,pins =
|
|
<0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low_pull_down>;
|
|
};
|
|
|
|
soc_slppin_slp: soc_slppin_slp {
|
|
u-boot,dm-pre-reloc;
|
|
rockchip,pins =
|
|
<0 RK_PA2 RK_FUNC_1 &pcfg_pull_up>;
|
|
};
|
|
|
|
soc_slppin_rst: soc_slppin_rst {
|
|
u-boot,dm-pre-reloc;
|
|
rockchip,pins =
|
|
<0 RK_PA2 RK_FUNC_2 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
}; |