.. | .. |
---|
134 | 134 | rk_headset: rk-headset { |
---|
135 | 135 | status = "okay"; |
---|
136 | 136 | compatible = "rockchip_headset"; |
---|
137 | | - headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; |
---|
138 | | - spk_ctl_gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_LOW>; |
---|
| 137 | + headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;//HP_DET_L_GPIO3_D5_d_3V3 |
---|
| 138 | + spk_ctl_gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;//SPK_CTL_GPIO4_B4_u_3V3 |
---|
139 | 139 | pinctrl-names = "default"; |
---|
140 | 140 | pinctrl-0 = <&hp_det>; |
---|
141 | 141 | io-channels = <&saradc 3>; |
---|
.. | .. |
---|
159 | 159 | regulator-boot-on; |
---|
160 | 160 | enable-active-high; |
---|
161 | 161 | //gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
---|
162 | | - gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; |
---|
| 162 | + gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>; |
---|
163 | 163 | vin-supply = <&vcc_1v8_s0>; |
---|
164 | 164 | }; |
---|
| 165 | + |
---|
| 166 | + vcc3v3_lcd1_n: vcc3v3-lcd1-n { |
---|
| 167 | + compatible = "regulator-fixed"; |
---|
| 168 | + regulator-name = "vcc3v3_lcd1_n"; |
---|
| 169 | + regulator-boot-on; |
---|
| 170 | + regulator-min-microvolt = <3300000>; |
---|
| 171 | + regulator-max-microvolt = <3300000>; |
---|
| 172 | + enable-active-high; |
---|
| 173 | + gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>; |
---|
| 174 | + }; |
---|
| 175 | + |
---|
165 | 176 | |
---|
166 | 177 | vcc3v3_pcie30: vcc3v3-pcie30 { |
---|
167 | 178 | compatible = "regulator-fixed"; |
---|
.. | .. |
---|
243 | 254 | wifi_chip_type = "ap6398s"; |
---|
244 | 255 | pinctrl-names = "default"; |
---|
245 | 256 | pinctrl-0 = <&wifi_host_wake_irq>; |
---|
246 | | - WIFI,host_wake_irq = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; //WIFI_WAKE_HOST_H |
---|
| 257 | + WIFI,host_wake_irq = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>; //GPIO2_B5_u_1V8_WF-BT_WAKEUP_IN |
---|
247 | 258 | // WIFI,poweren_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
---|
248 | 259 | status = "okay"; |
---|
249 | 260 | }; |
---|
.. | .. |
---|
253 | 264 | pinctrl-names = "default"; |
---|
254 | 265 | pinctrl-0 = <&ndj_io_gpio>; |
---|
255 | 266 | |
---|
256 | | -// vcc_5v { |
---|
257 | | -// gpio_num = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; |
---|
258 | | -// gpio_function = <0>; |
---|
259 | | -// }; |
---|
| 267 | + usb_power { |
---|
| 268 | + gpio_num = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; |
---|
| 269 | + gpio_function = <0>; |
---|
| 270 | + };//USB_HOST_PWREN_H |
---|
260 | 271 | |
---|
261 | 272 | vcc_12v { |
---|
262 | | - gpio_num = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; |
---|
| 273 | + gpio_num = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; |
---|
263 | 274 | gpio_function = <0>; |
---|
264 | | - }; |
---|
| 275 | + };//VCC12_IO_EN_GPIO0_D3_u_3V3 |
---|
265 | 276 | |
---|
266 | 277 | vcc_3v { |
---|
267 | | - gpio_num = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; |
---|
| 278 | + gpio_num = <&gpio4 RK_PA1 GPIO_ACTIVE_HIGH>; |
---|
268 | 279 | gpio_function = <0>; |
---|
269 | | - }; |
---|
| 280 | + };//VCC3_IO_EN_GPIO4_A1_d_3V3 |
---|
270 | 281 | |
---|
271 | 282 | hub_5V_reset { |
---|
272 | | - gpio_num = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; |
---|
| 283 | + gpio_num = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; |
---|
273 | 284 | gpio_function = <3>; |
---|
274 | | - }; |
---|
| 285 | + };//HUB_RESET_GPIO4_B6_d_3V3 |
---|
275 | 286 | |
---|
276 | 287 | 4g_power { |
---|
277 | | - gpio_num = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; |
---|
| 288 | + gpio_num = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; |
---|
278 | 289 | gpio_function = <0>; |
---|
279 | | - }; |
---|
| 290 | + };//4G_PWREN_GPIO3_C7_u_3V3 |
---|
280 | 291 | |
---|
281 | | - wake_4g { |
---|
282 | | - gpio_num = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; |
---|
283 | | - gpio_function = <0>; |
---|
284 | | - }; |
---|
| 292 | +// wake_4g { |
---|
| 293 | +// gpio_num = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; |
---|
| 294 | +// gpio_function = <0>; |
---|
| 295 | +// };//GPIO2_B5_u_1V8_WF-BT_WAKEUP_IN |
---|
285 | 296 | |
---|
286 | 297 | air_mode_4g { |
---|
287 | 298 | gpio_num = <&gpio2 RK_PB4 GPIO_ACTIVE_LOW>; |
---|
288 | 299 | gpio_function = <0>; |
---|
289 | | - }; |
---|
| 300 | + }; //GPIO2_B4_u_1V8_4G_AIR_MODE_IN |
---|
290 | 301 | |
---|
291 | 302 | reset_4g { |
---|
292 | 303 | gpio_num = <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>; |
---|
293 | 304 | gpio_function = <3>; |
---|
294 | | - }; |
---|
295 | | -/* |
---|
296 | | - spk_ctl { |
---|
297 | | - gpio_num = <&gpio3 RK_PC3 GPIO_ACTIVE_LOW>; |
---|
298 | | - gpio_function = <0>; |
---|
299 | | - }; |
---|
300 | | - |
---|
301 | | - hp_det |
---|
302 | | - { |
---|
303 | | - gpio_num = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>; |
---|
304 | | - gpio_function = <1>; |
---|
305 | | - }; |
---|
306 | | -*/ |
---|
| 305 | + }; //GPIO2_C3_d_1V8_4G_RESET_N_IN |
---|
307 | 306 | }; |
---|
308 | 307 | |
---|
309 | 308 | |
---|
.. | .. |
---|
311 | 310 | compatible = "simple-panel"; |
---|
312 | 311 | backlight = <&backlight>; |
---|
313 | 312 | power-supply = <&vcc3v3_lcd_n>; |
---|
314 | | - vcc-5v-gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; |
---|
315 | | - vddio-mipi = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //MIPIDIS_PWR_EN_1V8 |
---|
316 | | - enable-gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //LCD_VDD_EN |
---|
317 | | - reset-gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>; //CH7511_RESET_N_1V8 |
---|
318 | | - edp-bl-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //LCD_BLK-PWR_EN |
---|
319 | | - edp-bl-en = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD_BKL_EN_GPIO3_D4_d_3V3 |
---|
| 313 | + vcc-5v-gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO4_B5_d_3V3 |
---|
| 314 | + enable-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //LCD_VDD_EN_GPIO3_C6_u_3V3 |
---|
| 315 | + reset-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>; //CH7511_RESET_N_1V8 |
---|
| 316 | + edp-bl-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>; //LCD_BKL_PWM3_3V3 |
---|
| 317 | + edp-bl-en = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>; //LCD_BKL_EN_GPIO3_A6_d_3V3 |
---|
320 | 318 | bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; |
---|
321 | 319 | bpc = <8>; |
---|
322 | 320 | prepare-delay-ms = <200>; |
---|
.. | .. |
---|
387 | 385 | status = "okay"; |
---|
388 | 386 | }; |
---|
389 | 387 | |
---|
| 388 | +&backlight1 { |
---|
| 389 | + pwms = <&pwm11 0 25000 0>; |
---|
| 390 | + status = "okay"; |
---|
| 391 | +}; |
---|
| 392 | + |
---|
390 | 393 | &combphy0_ps { |
---|
391 | 394 | status = "okay"; |
---|
392 | 395 | }; |
---|
.. | .. |
---|
432 | 435 | * mipi_dcphy0 needs to be enabled |
---|
433 | 436 | * when dsi0 is enabled |
---|
434 | 437 | */ |
---|
| 438 | +&mipi_dcphy0 { |
---|
| 439 | + status = "okay"; |
---|
| 440 | +}; |
---|
| 441 | + |
---|
435 | 442 | &dsi0 { |
---|
436 | | - status = "disabled"; |
---|
| 443 | + status = "okay"; |
---|
437 | 444 | }; |
---|
438 | 445 | |
---|
439 | 446 | &dsi0_in_vp2 { |
---|
.. | .. |
---|
441 | 448 | }; |
---|
442 | 449 | |
---|
443 | 450 | &dsi0_in_vp3 { |
---|
444 | | - status = "disabled"; |
---|
| 451 | + status = "okay"; |
---|
445 | 452 | }; |
---|
446 | 453 | |
---|
447 | 454 | &dsi0_panel { |
---|
448 | | - power-supply = <&vcc3v3_lcd_n>; |
---|
449 | | - reset-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>; |
---|
| 455 | + power-supply = <&vcc3v3_lcd1_n>; //LCD_PWREN_H |
---|
| 456 | + vcc-5v-gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; |
---|
| 457 | + reset-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_LOW>; //MIPIDIS_RST_GPIO1_A0_d_1V8 |
---|
| 458 | + vddio-mipi = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //MIPIDIS_PWR_EN_1V8 |
---|
450 | 459 | pinctrl-names = "default"; |
---|
451 | 460 | pinctrl-0 = <&lcd_rst_gpio>; |
---|
452 | 461 | }; |
---|
.. | .. |
---|
502 | 511 | /* rx_delay = <0x3f>; */ |
---|
503 | 512 | |
---|
504 | 513 | phy-handle = <&rgmii_phy>; |
---|
505 | | - status = "disabled"; |
---|
| 514 | + status = "okay"; |
---|
506 | 515 | }; |
---|
507 | 516 | |
---|
508 | 517 | &hdmi0 { |
---|
.. | .. |
---|
709 | 718 | compatible = "atmel,24c256"; |
---|
710 | 719 | reg = <0x50>; |
---|
711 | 720 | }; |
---|
| 721 | + |
---|
| 722 | + eeprom@53 { |
---|
| 723 | + //compatible = "atmel,24c02"; |
---|
| 724 | + compatible = "atmel,24c256"; |
---|
| 725 | + reg = <0x53>; |
---|
| 726 | + }; |
---|
712 | 727 | #if 0 |
---|
713 | 728 | usbc0: fusb302@22 { |
---|
714 | 729 | compatible = "fcs,fusb302"; |
---|
.. | .. |
---|
833 | 848 | }; |
---|
834 | 849 | }; |
---|
835 | 850 | |
---|
836 | | -&mipi_dcphy0 { |
---|
837 | | - status = "okay"; |
---|
838 | | -}; |
---|
| 851 | + |
---|
839 | 852 | |
---|
840 | 853 | &mipi_dcphy1 { |
---|
841 | 854 | status = "disabled"; |
---|
.. | .. |
---|
843 | 856 | |
---|
844 | 857 | &pcie2x1l2 { |
---|
845 | 858 | phys = <&combphy0_ps PHY_TYPE_PCIE>; |
---|
846 | | - reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; |
---|
| 859 | + reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;//PCIE20x1_2_RSTn_GPIO3_D0_3V3 |
---|
847 | 860 | vpcie3v3-supply = <&vcc3v3_pcie30>; |
---|
848 | 861 | status = "okay"; |
---|
849 | 862 | };//MINIPCIE |
---|
850 | 863 | |
---|
851 | 864 | &pcie2x1l1 { |
---|
852 | 865 | phys = <&combphy2_psu PHY_TYPE_PCIE>; |
---|
853 | | - reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; |
---|
| 866 | + reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;//PCIEX1_1_PERSTn_M1_L |
---|
854 | 867 | vpcie3v3-supply = <&vcc3v3_pcie30>; |
---|
855 | 868 | status = "okay"; |
---|
856 | 869 | };//M.2 WIFI6 |
---|
857 | 870 | |
---|
858 | 871 | &pcie2x1l0 { |
---|
859 | 872 | phys = <&combphy1_ps PHY_TYPE_PCIE>; |
---|
860 | | - reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; |
---|
| 873 | + reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; //PCIEx1_0_PERSTn_M1_L |
---|
861 | 874 | vpcie3v3-supply = <&vcc3v3_pcie30>; |
---|
862 | 875 | status = "okay"; |
---|
863 | 876 | };//RTL8111H |
---|
.. | .. |
---|
912 | 925 | }; |
---|
913 | 926 | |
---|
914 | 927 | spk_con: spk-con { |
---|
915 | | - rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
| 928 | + rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
916 | 929 | }; |
---|
917 | 930 | }; |
---|
918 | 931 | |
---|
.. | .. |
---|
924 | 937 | |
---|
925 | 938 | lcd { |
---|
926 | 939 | lcd_rst_gpio: lcd-rst-gpio { |
---|
927 | | - rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
| 940 | + rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
928 | 941 | }; |
---|
929 | 942 | }; |
---|
930 | 943 | |
---|
.. | .. |
---|
989 | 1002 | ndj_io_init{ |
---|
990 | 1003 | ndj_io_gpio: ndj_io_gpio_col{ |
---|
991 | 1004 | rockchip,pins = |
---|
992 | | - <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
993 | | - <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
994 | | - <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
995 | | - <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
996 | | - <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 1005 | + <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 1006 | + <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 1007 | + <4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 1008 | + <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 1009 | + <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
997 | 1010 | <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
998 | 1011 | <2 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
999 | | - <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, //vcc_5v |
---|
1000 | | - <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B5_d_3V3 |
---|
1001 | | - <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B6_d_3V3 |
---|
1002 | | - <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_B0_u_3V3 |
---|
1003 | | - <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_B2_d_3V3 |
---|
1004 | | - <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_B3_u_3V3 |
---|
1005 | | - <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_B4_u_3V3 |
---|
1006 | | - <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_A7_u_3V3 |
---|
1007 | | - <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; //GPIO3_A0_u_3V3 |
---|
| 1012 | + <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, //vcc_5v |
---|
| 1013 | + <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_MISO_M2_1V8 |
---|
| 1014 | + <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_MISO_M2_1V8 |
---|
| 1015 | + <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_CLK_M2_1V8 |
---|
| 1016 | + <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_CS0_M2_1V8 |
---|
| 1017 | + <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>, //SPI4_MISO_M2_1V8 |
---|
| 1018 | + <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>, //SPI4_MOSI_M2_1V8 |
---|
| 1019 | + <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_A7_u_3V3 |
---|
| 1020 | + <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; //GPIO3_A0_u_3V3 |
---|
1008 | 1021 | |
---|
1009 | 1022 | }; |
---|
1010 | 1023 | }; |
---|
.. | .. |
---|
1027 | 1040 | &pwm10 { |
---|
1028 | 1041 | status = "okay"; |
---|
1029 | 1042 | pinctrl-0 = <&pwm10m2_pins>; |
---|
| 1043 | +}; |
---|
| 1044 | + |
---|
| 1045 | +&pwm11 { |
---|
| 1046 | + status = "okay"; |
---|
| 1047 | + pinctrl-0 = <&pwm11m3_pins>; |
---|
1030 | 1048 | }; |
---|
1031 | 1049 | |
---|
1032 | 1050 | &route_hdmi0 { |
---|
.. | .. |
---|
1122 | 1140 | }; |
---|
1123 | 1141 | |
---|
1124 | 1142 | &uart3 { |
---|
1125 | | - status = "okay"; |
---|
| 1143 | + status = "disabled"; |
---|
1126 | 1144 | pinctrl-names = "default"; |
---|
1127 | 1145 | pinctrl-0 = <&uart3m1_xfer>; |
---|
1128 | 1146 | }; |
---|
.. | .. |
---|
1153 | 1171 | }; |
---|
1154 | 1172 | |
---|
1155 | 1173 | &uart8 { |
---|
1156 | | - status = "okay"; |
---|
| 1174 | + status = "disabled"; |
---|
1157 | 1175 | pinctrl-names = "default"; |
---|
1158 | 1176 | pinctrl-0 = <&uart8m1_xfer>; |
---|
1159 | 1177 | }; |
---|