forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi
....@@ -26,7 +26,7 @@
2626 leds {
2727 compatible = "gpio-leds";
2828
29
- system {
29
+ led-system {
3030 label = "wetek-play:system-status";
3131 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
3232 default-state = "on";
....@@ -58,6 +58,14 @@
5858 regulator-name = "VDDAO_3V3";
5959 regulator-min-microvolt = <3300000>;
6060 regulator-max-microvolt = <3300000>;
61
+ };
62
+
63
+ vddio_ao18: regulator-vddio_ao18 {
64
+ compatible = "regulator-fixed";
65
+ regulator-name = "VDDIO_AO18";
66
+ regulator-min-microvolt = <1800000>;
67
+ regulator-max-microvolt = <1800000>;
68
+ regulator-always-on;
6169 };
6270
6371 vcc_3v3: regulator-vcc_3v3 {
....@@ -131,10 +139,6 @@
131139
132140 amlogic,tx-delay-ns = <2>;
133141
134
- snps,reset-gpio = <&gpio GPIOZ_14 0>;
135
- snps,reset-delays-us = <0 10000 1000000>;
136
- snps,reset-active-low;
137
-
138142 mdio {
139143 compatible = "snps,dwmac-mdio";
140144 #address-cells = <1>;
....@@ -143,7 +147,14 @@
143147 eth_phy0: ethernet-phy@0 {
144148 /* Realtek RTL8211F (0x001cc916) */
145149 reg = <0>;
146
- eee-broken-1000t;
150
+
151
+ reset-assert-us = <10000>;
152
+ reset-deassert-us = <80000>;
153
+ reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
154
+
155
+ interrupt-parent = <&gpio_intc>;
156
+ /* MAC_INTR on GPIOZ_15 */
157
+ interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
147158 };
148159 };
149160 };
....@@ -152,6 +163,7 @@
152163 status = "okay";
153164 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
154165 pinctrl-names = "default";
166
+ hdmi-supply = <&vddio_ao18>;
155167 };
156168
157169 &hdmi_tx_tmds_port {
....@@ -174,6 +186,11 @@
174186 clock-names = "clkin0";
175187 };
176188
189
+&saradc {
190
+ status = "okay";
191
+ vref-supply = <&vddio_ao18>;
192
+};
193
+
177194 /* Wireless SDIO Module */
178195 &sd_emmc_a {
179196 status = "okay";
....@@ -185,10 +202,13 @@
185202
186203 bus-width = <4>;
187204 cap-sd-highspeed;
188
- max-frequency = <100000000>;
205
+ max-frequency = <50000000>;
189206
190207 non-removable;
191208 disable-wp;
209
+
210
+ /* WiFi firmware requires power to be kept while in suspend */
211
+ keep-power-in-suspend;
192212
193213 mmc-pwrseq = <&sdio_pwrseq>;
194214
....@@ -210,11 +230,10 @@
210230
211231 bus-width = <4>;
212232 cap-sd-highspeed;
213
- max-frequency = <100000000>;
233
+ max-frequency = <50000000>;
214234 disable-wp;
215235
216
- cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
217
- cd-inverted;
236
+ cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
218237
219238 vmmc-supply = <&vddao_3v3>;
220239 vqmmc-supply = <&vcc_3v3>;
....@@ -240,6 +259,19 @@
240259 vqmmc-supply = <&vddio_boot>;
241260 };
242261
262
+/* This is connected to the Bluetooth module: */
263
+&uart_A {
264
+ status = "okay";
265
+ pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
266
+ pinctrl-names = "default";
267
+ uart-has-rtscts;
268
+
269
+ bluetooth {
270
+ compatible = "brcm,bcm43438-bt";
271
+ shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>;
272
+ };
273
+};
274
+
243275 /* This UART is brought out to the DB9 connector */
244276 &uart_AO {
245277 status = "okay";