forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 223293205a7265c8b02882461ba8996650048ade
kernel/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
....@@ -34,11 +34,25 @@
3434 compatible = "regulator-fixed";
3535 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
3636 pinctrl-names = "default";
37
- pinctrl-0 = <&sdmmc0m1_gpio>;
37
+ pinctrl-0 = <&sdmmc0m1_pin>;
38
+ regulator-boot-on;
3839 regulator-name = "vcc_sd";
3940 regulator-min-microvolt = <3300000>;
4041 regulator-max-microvolt = <3300000>;
4142 vin-supply = <&vcc_io>;
43
+ };
44
+
45
+ vcc_sdio: sdmmcio-regulator {
46
+ compatible = "regulator-gpio";
47
+ gpios = <&grf_gpio 0 GPIO_ACTIVE_HIGH>;
48
+ states = <1800000 0x1>,
49
+ <3300000 0x0>;
50
+ regulator-name = "vcc_sdio";
51
+ regulator-type = "voltage";
52
+ regulator-min-microvolt = <1800000>;
53
+ regulator-max-microvolt = <3300000>;
54
+ regulator-always-on;
55
+ vin-supply = <&vcc_sys>;
4256 };
4357
4458 vcc_host1_5v: vcc_otg_5v: vcc-host1-5v-regulator {
....@@ -68,18 +82,55 @@
6882 regulator-always-on;
6983 regulator-boot-on;
7084 };
85
+
86
+ leds {
87
+ compatible = "gpio-leds";
88
+
89
+ power_led: led-0 {
90
+ label = "firefly:blue:power";
91
+ linux,default-trigger = "heartbeat";
92
+ gpios = <&rk805 1 GPIO_ACTIVE_LOW>;
93
+ default-state = "on";
94
+ mode = <0x23>;
95
+ };
96
+
97
+ user_led: led-1 {
98
+ label = "firefly:yellow:user";
99
+ linux,default-trigger = "mmc1";
100
+ gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
101
+ default-state = "off";
102
+ mode = <0x05>;
103
+ };
104
+ };
71105 };
72106
73107 &cpu0 {
74108 cpu-supply = <&vdd_arm>;
75109 };
76110
111
+&cpu1 {
112
+ cpu-supply = <&vdd_arm>;
113
+};
114
+
115
+&cpu2 {
116
+ cpu-supply = <&vdd_arm>;
117
+};
118
+
119
+&cpu3 {
120
+ cpu-supply = <&vdd_arm>;
121
+};
122
+
77123 &emmc {
78124 bus-width = <8>;
79125 cap-mmc-highspeed;
126
+ max-frequency = <150000000>;
127
+ mmc-ddr-1_8v;
128
+ mmc-hs200-1_8v;
80129 non-removable;
81130 pinctrl-names = "default";
82131 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
132
+ vmmc-supply = <&vcc_io>;
133
+ vqmmc-supply = <&vcc18_emmc>;
83134 status = "okay";
84135 };
85136
....@@ -91,11 +142,22 @@
91142 phy-mode = "rgmii";
92143 pinctrl-names = "default";
93144 pinctrl-0 = <&rgmiim1_pins>;
145
+ snps,aal;
94146 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
95147 snps,reset-active-low;
96148 snps,reset-delays-us = <0 10000 50000>;
149
+ snps,rxpbl = <0x4>;
150
+ snps,txpbl = <0x4>;
97151 tx_delay = <0x24>;
98152 rx_delay = <0x18>;
153
+ status = "okay";
154
+};
155
+
156
+&hdmi {
157
+ status = "okay";
158
+};
159
+
160
+&hdmiphy {
99161 status = "okay";
100162 };
101163
....@@ -208,6 +270,18 @@
208270 };
209271 };
210272
273
+&io_domains {
274
+ status = "okay";
275
+
276
+ vccio1-supply = <&vcc_io>;
277
+ vccio2-supply = <&vcc18_emmc>;
278
+ vccio3-supply = <&vcc_sdio>;
279
+ vccio4-supply = <&vcc_18>;
280
+ vccio5-supply = <&vcc_io>;
281
+ vccio6-supply = <&vcc_io>;
282
+ pmuio-supply = <&vcc_io>;
283
+};
284
+
211285 &pinctrl {
212286 pmic {
213287 pmic_int_l: pmic-int-l {
....@@ -230,7 +304,12 @@
230304 max-frequency = <150000000>;
231305 pinctrl-names = "default";
232306 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
307
+ sd-uhs-sdr12;
308
+ sd-uhs-sdr25;
309
+ sd-uhs-sdr50;
310
+ sd-uhs-sdr104;
233311 vmmc-supply = <&vcc_sd>;
312
+ vqmmc-supply = <&vcc_sdio>;
234313 status = "okay";
235314 };
236315
....@@ -266,3 +345,11 @@
266345 &usb_host0_ohci {
267346 status = "okay";
268347 };
348
+
349
+&vop {
350
+ status = "okay";
351
+};
352
+
353
+&vop_mmu {
354
+ status = "okay";
355
+};