forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
....@@ -36,13 +36,20 @@
3636 regulator-min-microvolt = <5000000>;
3737 regulator-max-microvolt = <5000000>;
3838
39
+ /*
40
+ * signal name from schematics: PWREN
41
+ */
3942 gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
4043 enable-active-high;
44
+ /*
45
+ * signal name from schematics: USB_POWER
46
+ */
47
+ vin-supply = <&p5v0>;
4148 };
4249
4350 leds {
4451 compatible = "gpio-leds";
45
- blue {
52
+ led-blue {
4653 label = "c2:blue:alive";
4754 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
4855 linux,default-trigger = "heartbeat";
....@@ -50,18 +57,38 @@
5057 };
5158 };
5259
60
+ p5v0: regulator-p5v0 {
61
+ compatible = "regulator-fixed";
62
+
63
+ regulator-name = "P5V0";
64
+ regulator-min-microvolt = <5000000>;
65
+ regulator-max-microvolt = <5000000>;
66
+ regulator-always-on;
67
+ };
68
+
69
+ hdmi_p5v0: regulator-hdmi_p5v0 {
70
+ compatible = "regulator-fixed";
71
+ regulator-name = "HDMI_P5V0";
72
+ regulator-min-microvolt = <5000000>;
73
+ regulator-max-microvolt = <5000000>;
74
+ /* AP2331SA-7 */
75
+ vin-supply = <&p5v0>;
76
+ };
77
+
5378 tflash_vdd: regulator-tflash_vdd {
54
- /*
55
- * signal name from schematics: TFLASH_VDD_EN
56
- */
5779 compatible = "regulator-fixed";
5880
5981 regulator-name = "TFLASH_VDD";
6082 regulator-min-microvolt = <3300000>;
6183 regulator-max-microvolt = <3300000>;
6284
85
+ /*
86
+ * signal name from schematics: TFLASH_VDD_EN
87
+ */
6388 gpio = <&gpio GPIOY_12 GPIO_ACTIVE_HIGH>;
6489 enable-active-high;
90
+ /* U16 RT9179GB */
91
+ vin-supply = <&vddio_ao3v3>;
6592 };
6693
6794 tf_io: gpio-regulator-tf_io {
....@@ -77,8 +104,10 @@
77104 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
78105 gpios-states = <0>;
79106
80
- states = <3300000 0
81
- 1800000 1>;
107
+ states = <3300000 0>,
108
+ <1800000 1>;
109
+ /* U12/U13 RT9179GB */
110
+ vin-supply = <&vddio_ao3v3>;
82111 };
83112
84113 vcc1v8: regulator-vcc1v8 {
....@@ -86,6 +115,9 @@
86115 regulator-name = "VCC1V8";
87116 regulator-min-microvolt = <1800000>;
88117 regulator-max-microvolt = <1800000>;
118
+ regulator-always-on;
119
+ /* U18 RT9179GB */
120
+ vin-supply = <&vddio_ao3v3>;
89121 };
90122
91123 vcc3v3: regulator-vcc3v3 {
....@@ -93,6 +125,36 @@
93125 regulator-name = "VCC3V3";
94126 regulator-min-microvolt = <3300000>;
95127 regulator-max-microvolt = <3300000>;
128
+ };
129
+
130
+ vddio_ao1v8: regulator-vddio-ao1v8 {
131
+ compatible = "regulator-fixed";
132
+ regulator-name = "VDDIO_AO1V8";
133
+ regulator-min-microvolt = <1800000>;
134
+ regulator-max-microvolt = <1800000>;
135
+ regulator-always-on;
136
+ /* U17 RT9179GB */
137
+ vin-supply = <&p5v0>;
138
+ };
139
+
140
+ vddio_ao3v3: regulator-vddio-ao3v3 {
141
+ compatible = "regulator-fixed";
142
+ regulator-name = "VDDIO_AO3V3";
143
+ regulator-min-microvolt = <3300000>;
144
+ regulator-max-microvolt = <3300000>;
145
+ regulator-always-on;
146
+ /* U11 MP2161GJ-C499 */
147
+ vin-supply = <&p5v0>;
148
+ };
149
+
150
+ ddr3_1v5: regulator-ddr3_1v5 {
151
+ compatible = "regulator-fixed";
152
+ regulator-name = "DDR3_1V5";
153
+ regulator-min-microvolt = <1500000>;
154
+ regulator-max-microvolt = <1500000>;
155
+ regulator-always-on;
156
+ /* U15 MP2161GJ-C499 */
157
+ vin-supply = <&p5v0>;
96158 };
97159
98160 emmc_pwrseq: emmc-pwrseq {
....@@ -126,10 +188,6 @@
126188 phy-handle = <&eth_phy0>;
127189 phy-mode = "rgmii";
128190
129
- snps,reset-gpio = <&gpio GPIOZ_14 0>;
130
- snps,reset-delays-us = <0 10000 1000000>;
131
- snps,reset-active-low;
132
-
133191 amlogic,tx-delay-ns = <2>;
134192
135193 mdio {
....@@ -140,10 +198,14 @@
140198 eth_phy0: ethernet-phy@0 {
141199 /* Realtek RTL8211F (0x001cc916) */
142200 reg = <0>;
201
+
202
+ reset-assert-us = <10000>;
203
+ reset-deassert-us = <80000>;
204
+ reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
205
+
143206 interrupt-parent = <&gpio_intc>;
144207 /* MAC_INTR on GPIOZ_15 */
145208 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
146
- eee-broken-1000t;
147209 };
148210 };
149211 };
....@@ -167,6 +229,7 @@
167229 status = "okay";
168230 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
169231 pinctrl-names = "default";
232
+ hdmi-supply = <&hdmi_p5v0>;
170233 };
171234
172235 &hdmi_tx_tmds_port {
....@@ -185,6 +248,7 @@
185248 status = "okay";
186249 pinctrl-0 = <&remote_input_ao_pins>;
187250 pinctrl-names = "default";
251
+ linux,rc-map-name = "rc-odroid";
188252 };
189253
190254 &gpio_ao {
....@@ -256,11 +320,14 @@
256320
257321 bus-width = <4>;
258322 cap-sd-highspeed;
323
+ sd-uhs-sdr12;
324
+ sd-uhs-sdr25;
325
+ sd-uhs-sdr50;
326
+ sd-uhs-ddr50;
259327 max-frequency = <100000000>;
260328 disable-wp;
261329
262
- cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
263
- cd-inverted;
330
+ cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
264331
265332 vmmc-supply = <&tflash_vdd>;
266333 vqmmc-supply = <&tf_io>;
....@@ -274,7 +341,7 @@
274341 pinctrl-names = "default", "clk-gate";
275342
276343 bus-width = <8>;
277
- max-frequency = <100000000>;
344
+ max-frequency = <200000000>;
278345 non-removable;
279346 disable-wp;
280347 cap-mmc-highspeed;