forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -89,6 +89,24 @@
8989 regulator-boot-on;
9090 };
9191 #endif
92
+
93
+ leds: leds {
94
+ compatible = "gpio-leds";
95
+ sig_led: sig_led {
96
+ gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
97
+ default-state = "on";
98
+ };
99
+ };
100
+
101
+ leds: leds {
102
+ compatible = "gpio-leds";
103
+ err_led: err_led {
104
+ gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
105
+ default-state = "on";
106
+ };
107
+ };
108
+
109
+
92110 ndj_io_init {
93111 compatible = "nk_io_control";
94112 pinctrl-names = "default";
....@@ -106,8 +124,18 @@
106124 gpio_function = <0>;
107125 };
108126
109
- hub_host2_rst {
110
- gpio_num = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3
127
+ vcc_3.3v {
128
+ gpio_num = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
129
+ gpio_function = <0>;
130
+ };
131
+
132
+ ax88772_rst {
133
+ gpio_num = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B5_3V3
134
+ gpio_function = <3>;
135
+ };
136
+
137
+ ax88631_rst {
138
+ gpio_num = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B6_3V3
111139 gpio_function = <3>;
112140 };
113141
....@@ -312,7 +340,7 @@
312340 * when dsi0 is enabled
313341 */
314342 &video_phy0 {
315
- status = "okay";
343
+ status = "disabled";
316344 };
317345
318346 &dsi0 {
....@@ -398,7 +426,7 @@
398426 };
399427
400428 &lvds {
401
- status = "okay";
429
+ status = "disabled";
402430 ports {
403431 port@1 {
404432 reg = <1>;
....@@ -415,7 +443,7 @@
415443 };
416444
417445 &lvds_in_vp1 {
418
- status = "okay";
446
+ status = "disabled";
419447 };
420448
421449 /*
....@@ -698,11 +726,17 @@
698726 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
699727 <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
700728 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
701
- <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
702
- <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
703
- <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
704
- <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
705
- <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
729
+ <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B0_u_3V3 DO1 8
730
+ <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B3_u_3V3 DO2 11
731
+ <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B4_u_3V3 DO3 12
732
+ <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B5_u_3V3 DO4 13
733
+ <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B6_u_3V3 DO5 14
734
+
735
+ <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C0_d_3V3 DI1 16
736
+ <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C1_d_3V3 DI2 17
737
+ <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C2_d_3V3 DI3 18
738
+ <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C3_d_3V3 DI4 19
739
+ <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C5_d_3V3 DI5 21
706740 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
707741 };
708742 };
....@@ -768,15 +802,6 @@
768802 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
769803 };
770804
771
-&vcc3v3_lcd0_n {
772
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
773
- enable-active-high;
774
-};
775
-
776
-//&vcc3v3_lcd1_n {
777
- //gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
778
- //enable-active-high;
779
-//};
780805
781806 &wireless_wlan {
782807 pinctrl-names = "default";
....@@ -800,7 +825,7 @@
800825 };
801826
802827 &uart0 {
803
- status = "okay";
828
+ status = "disabled";
804829 };
805830
806831 &uart1 {
....@@ -815,7 +840,7 @@
815840 };
816841
817842 &uart4 {
818
- status = "okay";
843
+ status = "disabled";
819844 pinctrl-0 = <&uart4m1_xfer>;
820845 };
821846
....@@ -824,10 +849,6 @@
824849 pinctrl-0 = <&uart5m1_xfer>;
825850 };
826851
827
-&uart6 {
828
- status = "okay";
829
- pinctrl-0 = <&uart6m1_xfer>;
830
-};
831852
832853 &uart7 {
833854 status = "okay";
....@@ -835,11 +856,11 @@
835856 };
836857
837858 &uart8 {
838
- status = "okay";
859
+ status = "disabled";
839860 pinctrl-0 = <&uart8m1_xfer>;
840861 };
841862
842863 &uart9 {
843
- status = "okay";
864
+ status = "disabled";
844865 pinctrl-0 = <&uart9m1_xfer>;
845866 };