forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts
....@@ -2,7 +2,7 @@
22 /*
33 * dts file for Xilinx ZynqMP ZCU100 revC
44 *
5
- * (C) Copyright 2016 - 2018, Xilinx, Inc.
5
+ * (C) Copyright 2016 - 2019, Xilinx, Inc.
66 *
77 * Michal Simek <michal.simek@xilinx.com>
88 * Nathalie Chan King Choy
....@@ -11,7 +11,7 @@
1111 /dts-v1/;
1212
1313 #include "zynqmp.dtsi"
14
-#include "zynqmp-clk.dtsi"
14
+#include "zynqmp-clk-ccf.dtsi"
1515 #include <dt-bindings/input/input.h>
1616 #include <dt-bindings/interrupt-controller/irq.h>
1717 #include <dt-bindings/gpio/gpio.h>
....@@ -49,34 +49,34 @@
4949 label = "sw4";
5050 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
5151 linux,code = <KEY_POWER>;
52
- gpio-key,wakeup;
52
+ wakeup-source;
5353 autorepeat;
5454 };
5555 };
5656
5757 leds {
5858 compatible = "gpio-leds";
59
- ds2 {
59
+ led-ds2 {
6060 label = "ds2";
6161 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
6262 linux,default-trigger = "heartbeat";
6363 };
6464
65
- ds3 {
65
+ led-ds3 {
6666 label = "ds3";
6767 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
6868 linux,default-trigger = "phy0tx"; /* WLAN tx */
6969 default-state = "off";
7070 };
7171
72
- ds4 {
72
+ led-ds4 {
7373 label = "ds4";
7474 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
7575 linux,default-trigger = "phy0rx"; /* WLAN rx */
7676 default-state = "off";
7777 };
7878
79
- ds5 {
79
+ led-ds5 {
8080 label = "ds5";
8181 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
8282 linux,default-trigger = "bluetooth-power";
....@@ -102,6 +102,11 @@
102102 compatible = "mmc-pwrseq-simple";
103103 reset-gpios = <&gpio 7 GPIO_ACTIVE_LOW>; /* WIFI_EN */
104104 post-power-on-delay-ms = <10>;
105
+ };
106
+
107
+ ina226 {
108
+ compatible = "iio-hwmon";
109
+ io-channels = <&u35 0>, <&u35 1>, <&u35 2>, <&u35 3>;
105110 };
106111 };
107112
....@@ -181,7 +186,7 @@
181186 compatible = "ti,tps65086";
182187 reg = <0x5e>;
183188 interrupt-parent = <&gpio>;
184
- interrupts = <77 GPIO_ACTIVE_LOW>;
189
+ interrupts = <77 IRQ_TYPE_LEVEL_LOW>;
185190 #gpio-cells = <2>;
186191 gpio-controller;
187192 };
....@@ -191,8 +196,9 @@
191196 #size-cells = <0>;
192197 reg = <5>;
193198 /* PS_PMBUS */
194
- ina226@40 { /* u35 */
199
+ u35: ina226@40 { /* u35 */
195200 compatible = "ti,ina226";
201
+ #io-channel-cells = <1>;
196202 reg = <0x40>;
197203 shunt-resistor = <10000>;
198204 /* MIO31 is alert which should be routed to PMUFW */
....@@ -226,7 +232,6 @@
226232 &sdhci0 {
227233 status = "okay";
228234 no-1-8-v;
229
- broken-cd; /* CD has to be enabled by default */
230235 disable-wp;
231236 };
232237
....@@ -251,11 +256,13 @@
251256 &spi0 { /* Low Speed connector */
252257 status = "okay";
253258 label = "LS-SPI0";
259
+ num-cs = <1>;
254260 };
255261
256262 &spi1 { /* High Speed connector */
257263 status = "okay";
258264 label = "HS-SPI1";
265
+ num-cs = <1>;
259266 };
260267
261268 &uart0 {
....@@ -274,11 +281,13 @@
274281 /* ULPI SMSC USB3320 */
275282 &usb0 {
276283 status = "okay";
284
+ dr_mode = "peripheral";
277285 };
278286
279287 /* ULPI SMSC USB3320 */
280288 &usb1 {
281289 status = "okay";
290
+ dr_mode = "host";
282291 };
283292
284293 &watchdog0 {