forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
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_PC3 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";
....@@ -103,6 +121,11 @@
103121
104122 vcc_12v {
105123 gpio_num = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3
124
+ gpio_function = <0>;
125
+ };
126
+
127
+ vcc_3.3v {
128
+ gpio_num = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
106129 gpio_function = <0>;
107130 };
108131
....@@ -136,10 +159,10 @@
136159 gpio_function = <0>;
137160 };
138161
139
- hp_en {
140
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
141
- gpio_function = <0>;
142
- };
162
+ //gpio99 {
163
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
164
+ // gpio_function = <1>;
165
+ //};
143166
144167 wifi_power_en {
145168 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
....@@ -312,7 +335,7 @@
312335 * when dsi0 is enabled
313336 */
314337 &video_phy0 {
315
- status = "okay";
338
+ status = "disabled";
316339 };
317340
318341 &dsi0 {
....@@ -398,7 +421,7 @@
398421 };
399422
400423 &lvds {
401
- status = "okay";
424
+ status = "disabled";
402425 ports {
403426 port@1 {
404427 reg = <1>;
....@@ -415,7 +438,7 @@
415438 };
416439
417440 &lvds_in_vp1 {
418
- status = "okay";
441
+ status = "disabled";
419442 };
420443
421444 /*
....@@ -635,7 +658,7 @@
635658
636659
637660 &pcie30phy {
638
- status = "okay";
661
+ status = "disabled";
639662 };
640663
641664 &pcie2x1 {
....@@ -694,11 +717,21 @@
694717 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
695718 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
696719 <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
720
+ <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
721
+ <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
722
+ <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
697723 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
698
- <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
699
- <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
700
- <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
701
- <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
724
+ <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B0_u_3V3 DO1
725
+ <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B3_u_3V3 DO2
726
+ <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B4_u_3V3 DO3
727
+ <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B5_u_3V3 DO4
728
+ <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B6_u_3V3 DO5
729
+
730
+ <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C0_d_3V3 DI1_1
731
+ <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C1_d_3V3 DI2_1
732
+ <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C2_d_3V3 DI3_1
733
+ <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C3_d_3V3 DI4_1
734
+ <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C5_d_3V3 DI5_1
702735 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
703736 };
704737 };
....@@ -764,15 +797,6 @@
764797 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
765798 };
766799
767
-&vcc3v3_lcd0_n {
768
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
769
- enable-active-high;
770
-};
771
-
772
-&vcc3v3_lcd1_n {
773
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
774
- enable-active-high;
775
-};
776800
777801 &wireless_wlan {
778802 pinctrl-names = "default";
....@@ -792,17 +816,17 @@
792816 BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
793817 BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
794818 BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
795
- status = "okay";
819
+ status = "disabled";
796820 };
797821
798822 &uart0 {
799
- status = "okay";
823
+ status = "disabled";
800824 };
801825
802826 &uart1 {
803827 pinctrl-names = "default";
804828 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
805
- status = "okay";
829
+ status = "disabled";
806830 };
807831
808832 &uart3 {
....@@ -811,7 +835,7 @@
811835 };
812836
813837 &uart4 {
814
- status = "okay";
838
+ status = "disabled";
815839 pinctrl-0 = <&uart4m1_xfer>;
816840 };
817841
....@@ -820,12 +844,18 @@
820844 pinctrl-0 = <&uart5m1_xfer>;
821845 };
822846
847
+
823848 &uart7 {
824849 status = "okay";
825850 pinctrl-0 = <&uart7m1_xfer>;
826851 };
827852
853
+&uart8 {
854
+ status = "disabled";
855
+ pinctrl-0 = <&uart8m1_xfer>;
856
+};
857
+
828858 &uart9 {
829
- status = "okay";
859
+ status = "disabled";
830860 pinctrl-0 = <&uart9m1_xfer>;
831861 };