old mode 100755new mode 100644| .. | .. |
|---|
| 8 | 8 | |
|---|
| 9 | 9 | #include <dt-bindings/gpio/gpio.h> |
|---|
| 10 | 10 | #include <dt-bindings/pinctrl/rockchip.h> |
|---|
| 11 | | -#include <dt-bindings/display/media-bus-format.h> |
|---|
| 12 | 11 | #include "rk3568.dtsi" |
|---|
| 13 | 12 | #include "rk3568-evb.dtsi" |
|---|
| 14 | 13 | |
|---|
| 15 | 14 | / { |
|---|
| 16 | 15 | model = "Rockchip RK3568 EVB1 DDR4 V10 Board"; |
|---|
| 17 | 16 | compatible = "rockchip,rk3568-evb1-ddr4-v10", "rockchip,rk3568"; |
|---|
| 18 | | - |
|---|
| 19 | | - rk_headset: rk-headset { |
|---|
| 20 | | - compatible = "rockchip_headset"; |
|---|
| 21 | | - headset_gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>; |
|---|
| 22 | | - spk_ctl_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;//AMP_SD_GPIO4_C2_3V3 |
|---|
| 23 | | - pinctrl-names = "default"; |
|---|
| 24 | | - pinctrl-0 = <&hp_det>; |
|---|
| 25 | | - }; |
|---|
| 26 | 17 | |
|---|
| 27 | 18 | vcc2v5_sys: vcc2v5-ddr { |
|---|
| 28 | 19 | compatible = "regulator-fixed"; |
|---|
| .. | .. |
|---|
| 34 | 25 | vin-supply = <&vcc3v3_sys>; |
|---|
| 35 | 26 | }; |
|---|
| 36 | 27 | |
|---|
| 28 | + vcc3v3_vga: vcc3v3-vga { |
|---|
| 29 | + compatible = "regulator-fixed"; |
|---|
| 30 | + regulator-name = "vcc3v3_vga"; |
|---|
| 31 | + regulator-always-on; |
|---|
| 32 | + regulator-boot-on; |
|---|
| 33 | + gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; |
|---|
| 34 | + enable-active-high; |
|---|
| 35 | + vin-supply = <&vcc3v3_sys>; |
|---|
| 36 | + }; |
|---|
| 37 | 37 | |
|---|
| 38 | 38 | pcie30_avdd0v9: pcie30-avdd0v9 { |
|---|
| 39 | 39 | compatible = "regulator-fixed"; |
|---|
| .. | .. |
|---|
| 60 | 60 | regulator-name = "vcc3v3_pcie"; |
|---|
| 61 | 61 | regulator-min-microvolt = <3300000>; |
|---|
| 62 | 62 | regulator-max-microvolt = <3300000>; |
|---|
| 63 | | - regulator-always-on; |
|---|
| 64 | 63 | enable-active-high; |
|---|
| 65 | | - regulator-boot-on; |
|---|
| 66 | 64 | gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; |
|---|
| 67 | 65 | startup-delay-us = <5000>; |
|---|
| 68 | 66 | vin-supply = <&dc_12v>; |
|---|
| .. | .. |
|---|
| 87 | 85 | enable-active-high; |
|---|
| 88 | 86 | regulator-always-on; |
|---|
| 89 | 87 | regulator-boot-on; |
|---|
| 90 | | - }; |
|---|
| 88 | + }; |
|---|
| 91 | 89 | #endif |
|---|
| 92 | 90 | |
|---|
| 93 | | - nk_io_init { |
|---|
| 94 | | - compatible = "nk_io_control"; |
|---|
| 95 | | - vcc3_io_en_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3 |
|---|
| 96 | | - hub_host2_5V_rest_gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3 |
|---|
| 97 | | - hub_host3_5v_gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8 |
|---|
| 98 | | - vcc_5v_io = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
|---|
| 99 | | - vcc_12v_io = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3 |
|---|
| 100 | | - en_4g_gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6 |
|---|
| 101 | | - reset_4g_gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //4G_RST_GPIO01_B2_3V3 |
|---|
| 102 | | - air_mode_4g_gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; //4G_AIR_MODE_GPIO01_B0_3V3 |
|---|
| 103 | | - wake_4g_gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; //4G_WAKEUP_GPIO01_B1_3V3 |
|---|
| 104 | | - hp_en_gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3 |
|---|
| 105 | | -// spk_out_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;//AMP_SD_GPIO4_C2_3V3 |
|---|
| 106 | | - wifi_power_en_gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
|---|
| 107 | | -// pcie_power_en_gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;//PCIE_PWREN_H_GPIO0_D4 |
|---|
| 108 | | - pinctrl-names = "default"; |
|---|
| 109 | | - pinctrl-0 = <&nk_io_gpio>; |
|---|
| 110 | | - }; |
|---|
| 111 | | - |
|---|
| 112 | | - panel: panel { |
|---|
| 113 | | - compatible = "simple-panel"; |
|---|
| 114 | | - backlight = <&backlight>; |
|---|
| 115 | | - power-supply = <&vcc3v3_lcd0_n>; |
|---|
| 116 | | - enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4 |
|---|
| 117 | | - reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1 |
|---|
| 118 | | - edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3 |
|---|
| 119 | | - edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3 |
|---|
| 120 | | - bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; |
|---|
| 121 | | - bpc = <8>; |
|---|
| 122 | | - prepare-delay-ms = <200>; |
|---|
| 123 | | - enable-delay-ms = <20>; |
|---|
| 124 | | - lvds-gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //7511_GPIO0-GPIO3_D2 |
|---|
| 125 | | - lvds-gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; //7511_GPIO1-GPIO3_D3 |
|---|
| 126 | | - lvds-gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //7511_GPIO2-GPIO3_D4 |
|---|
| 127 | | - lvds-gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; //7511_GPIO3-GPIO3_D5 |
|---|
| 128 | | - nodka-lvds = <15>; |
|---|
| 129 | | - |
|---|
| 130 | | - display-timings { |
|---|
| 131 | | - native-mode = <&timing0>; |
|---|
| 132 | | - timing0: timing0 { |
|---|
| 133 | | - clock-frequency = <72500000>; |
|---|
| 134 | | - hactive = <1280>; |
|---|
| 135 | | - vactive = <800>; |
|---|
| 136 | | - hfront-porch = <70>; |
|---|
| 137 | | - hsync-len = <2>; |
|---|
| 138 | | - hback-porch = <88>; |
|---|
| 139 | | - vfront-porch = <7>; |
|---|
| 140 | | - vsync-len = <4>; |
|---|
| 141 | | - vback-porch = <17>; |
|---|
| 142 | | - hsync-active = <21>; |
|---|
| 143 | | - vsync-active = <0>; |
|---|
| 144 | | - de-active = <0>; |
|---|
| 145 | | - pixelclk-active = <0>; |
|---|
| 146 | | - }; |
|---|
| 147 | | - }; |
|---|
| 148 | | - ports { |
|---|
| 149 | | - panel_in: endpoint { |
|---|
| 150 | | - remote-endpoint = <&edp_out>; |
|---|
| 151 | | - }; |
|---|
| 152 | | - }; |
|---|
| 153 | | - }; |
|---|
| 91 | + ndj_io_init { |
|---|
| 92 | + compatible = "nk_io_control"; |
|---|
| 93 | + pinctrl-names = "default"; |
|---|
| 94 | + pinctrl-0 = <&nk_io_gpio>; |
|---|
| 95 | + |
|---|
| 96 | + //gpio_op0 = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; |
|---|
| 97 | + |
|---|
| 98 | + vcc_5v { |
|---|
| 99 | + gpio_num = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
|---|
| 100 | + gpio_function = <0>; |
|---|
| 101 | + }; |
|---|
| 102 | + |
|---|
| 103 | + vcc_12v { |
|---|
| 104 | + gpio_num = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3 |
|---|
| 105 | + gpio_function = <0>; |
|---|
| 106 | + }; |
|---|
| 107 | + |
|---|
| 108 | + hub_host2_rst { |
|---|
| 109 | + gpio_num = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3 |
|---|
| 110 | + gpio_function = <3>; |
|---|
| 111 | + }; |
|---|
| 112 | + |
|---|
| 113 | + hub_host3 { |
|---|
| 114 | + gpio_num = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8 |
|---|
| 115 | + gpio_function = <0>; |
|---|
| 116 | + }; |
|---|
| 117 | + |
|---|
| 118 | + wake_4g { |
|---|
| 119 | + gpio_num = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; //4G_WAKEUP_GPIO01_B1_3V3 |
|---|
| 120 | + gpio_function = <0>; |
|---|
| 121 | + }; |
|---|
| 122 | + |
|---|
| 123 | + air_mode_4g { |
|---|
| 124 | + gpio_num = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; //4G_AIR_MODE_GPIO01_B0_3V3 |
|---|
| 125 | + gpio_function = <0>; |
|---|
| 126 | + }; |
|---|
| 127 | + |
|---|
| 128 | + reset_4g { |
|---|
| 129 | + gpio_num = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>; //4G_RST_GPIO01_B2_3V3 |
|---|
| 130 | + gpio_function = <3>; |
|---|
| 131 | + }; |
|---|
| 132 | + |
|---|
| 133 | + en_4g { |
|---|
| 134 | + gpio_num = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6 |
|---|
| 135 | + gpio_function = <0>; |
|---|
| 136 | + }; |
|---|
| 137 | + |
|---|
| 138 | + hp_en { |
|---|
| 139 | + gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3 |
|---|
| 140 | + gpio_function = <0>; |
|---|
| 141 | + }; |
|---|
| 142 | + |
|---|
| 143 | + wifi_power_en { |
|---|
| 144 | + gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
|---|
| 145 | + gpio_function = <0>; |
|---|
| 146 | + }; |
|---|
| 147 | + #if 0 |
|---|
| 148 | + do1 { |
|---|
| 149 | + gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; |
|---|
| 150 | + gpio_function = <0>; |
|---|
| 151 | + }; |
|---|
| 152 | + |
|---|
| 153 | + do2 { |
|---|
| 154 | + gpio_num = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
|---|
| 155 | + gpio_function = <0>; |
|---|
| 156 | + }; |
|---|
| 157 | + |
|---|
| 158 | + do3 { |
|---|
| 159 | + gpio_num = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>; |
|---|
| 160 | + gpio_function = <0>; |
|---|
| 161 | + }; |
|---|
| 162 | + |
|---|
| 163 | + do4 { |
|---|
| 164 | + gpio_num = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; |
|---|
| 165 | + gpio_function = <0>; |
|---|
| 166 | + }; |
|---|
| 167 | + |
|---|
| 168 | + do5 { |
|---|
| 169 | + gpio_num = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>; |
|---|
| 170 | + gpio_function = <0>; |
|---|
| 171 | + }; |
|---|
| 172 | + |
|---|
| 173 | + do6 { |
|---|
| 174 | + gpio_num = <&gpio2 RK_PD7 GPIO_ACTIVE_LOW>; |
|---|
| 175 | + gpio_function = <0>; |
|---|
| 176 | + }; |
|---|
| 177 | + |
|---|
| 178 | + do7 { |
|---|
| 179 | + gpio_num = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>; |
|---|
| 180 | + gpio_function = <0>; |
|---|
| 181 | + }; |
|---|
| 182 | + |
|---|
| 183 | + di1 { |
|---|
| 184 | + gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>; |
|---|
| 185 | + gpio_function = <1>; |
|---|
| 186 | + }; |
|---|
| 187 | + #endif |
|---|
| 188 | +}; |
|---|
| 154 | 189 | }; |
|---|
| 155 | 190 | |
|---|
| 156 | 191 | &combphy0_us { |
|---|
| .. | .. |
|---|
| 213 | 248 | * video_phy0 needs to be enabled |
|---|
| 214 | 249 | * when dsi0 is enabled |
|---|
| 215 | 250 | */ |
|---|
| 216 | | -&video_phy0 { |
|---|
| 217 | | - status = "disabled"; |
|---|
| 218 | | -}; |
|---|
| 219 | | - |
|---|
| 220 | 251 | &dsi0 { |
|---|
| 221 | 252 | status = "disabled"; |
|---|
| 222 | 253 | }; |
|---|
| .. | .. |
|---|
| 237 | 268 | * video_phy1 needs to be enabled |
|---|
| 238 | 269 | * when dsi1 is enabled |
|---|
| 239 | 270 | */ |
|---|
| 240 | | - |
|---|
| 241 | | -&video_phy1 { |
|---|
| 242 | | - status = "okay"; |
|---|
| 243 | | -}; |
|---|
| 244 | 271 | &dsi1 { |
|---|
| 245 | 272 | status = "disabled"; |
|---|
| 246 | 273 | }; |
|---|
| .. | .. |
|---|
| 250 | 277 | }; |
|---|
| 251 | 278 | |
|---|
| 252 | 279 | &dsi1_in_vp1 { |
|---|
| 253 | | - status = "okay"; |
|---|
| 280 | + status = "disabled"; |
|---|
| 254 | 281 | }; |
|---|
| 255 | 282 | |
|---|
| 256 | 283 | &dsi1_panel { |
|---|
| 257 | | - power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
|---|
| 258 | | - vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3 |
|---|
| 259 | | - reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7 |
|---|
| 260 | | - vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
|---|
| 261 | | - pinctrl-names = "default"; |
|---|
| 262 | | - pinctrl-0 = <&lcd1_rst_gpio>; |
|---|
| 284 | + power-supply = <&vcc3v3_lcd1_n>; |
|---|
| 263 | 285 | }; |
|---|
| 264 | | - |
|---|
| 265 | | -&route_dsi1 { |
|---|
| 266 | | - status = "disabled"; |
|---|
| 267 | | - connect = <&vp1_out_dsi1>; |
|---|
| 268 | | -}; |
|---|
| 269 | | - |
|---|
| 270 | | - |
|---|
| 271 | | -/* |
|---|
| 272 | | -* edp_start |
|---|
| 273 | | -*/ |
|---|
| 274 | 286 | |
|---|
| 275 | 287 | &edp { |
|---|
| 276 | | - force-hpd; |
|---|
| 277 | | - status = "okay"; |
|---|
| 278 | | - ports { |
|---|
| 279 | | - port@1 { |
|---|
| 280 | | - reg = <1>; |
|---|
| 281 | | - edp_out: endpoint { |
|---|
| 282 | | - remote-endpoint = <&panel_in>; |
|---|
| 283 | | - }; |
|---|
| 284 | | - }; |
|---|
| 285 | | - }; |
|---|
| 288 | + hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; |
|---|
| 289 | + status = "okay"; |
|---|
| 286 | 290 | }; |
|---|
| 287 | 291 | |
|---|
| 288 | 292 | &edp_phy { |
|---|
| 289 | | - status = "okay"; |
|---|
| 290 | | - |
|---|
| 293 | + status = "okay"; |
|---|
| 291 | 294 | }; |
|---|
| 292 | 295 | |
|---|
| 293 | 296 | &edp_in_vp0 { |
|---|
| 294 | | - status = "disabled"; |
|---|
| 297 | + status = "okay"; |
|---|
| 295 | 298 | }; |
|---|
| 296 | 299 | |
|---|
| 297 | 300 | &edp_in_vp1 { |
|---|
| 298 | | - status = "okay"; |
|---|
| 299 | | - |
|---|
| 300 | | -}; |
|---|
| 301 | | - |
|---|
| 302 | | -&route_edp { |
|---|
| 303 | | - status = "okay"; |
|---|
| 304 | | - connect = <&vp1_out_edp>; |
|---|
| 305 | | -}; |
|---|
| 306 | | - |
|---|
| 307 | | -&route_edp { |
|---|
| 308 | | - status = "okay"; |
|---|
| 309 | | -}; |
|---|
| 310 | | -/* |
|---|
| 311 | | -* edp_end |
|---|
| 312 | | -*/ |
|---|
| 313 | | - |
|---|
| 314 | | -/* |
|---|
| 315 | | -* Hdmi_start |
|---|
| 316 | | -*/ |
|---|
| 317 | | - |
|---|
| 318 | | -&hdmi { |
|---|
| 319 | | - status = "okay"; |
|---|
| 320 | | - rockchip,phy-table = |
|---|
| 321 | | - <92812500 0x8009 0x0000 0x0270>, |
|---|
| 322 | | - <165000000 0x800b 0x0000 0x026d>, |
|---|
| 323 | | - <185625000 0x800b 0x0000 0x01ed>, |
|---|
| 324 | | - <297000000 0x800b 0x0000 0x01ad>, |
|---|
| 325 | | - <594000000 0x8029 0x0000 0x0088>, |
|---|
| 326 | | - <000000000 0x0000 0x0000 0x0000>; |
|---|
| 327 | | -}; |
|---|
| 328 | | - |
|---|
| 329 | | -&route_hdmi { |
|---|
| 330 | | - status = "okay"; |
|---|
| 331 | | - connect = <&vp0_out_hdmi>; |
|---|
| 332 | | -}; |
|---|
| 333 | | - |
|---|
| 334 | | -&hdmi_in_vp0 { |
|---|
| 335 | | - status = "okay"; |
|---|
| 336 | | -}; |
|---|
| 337 | | - |
|---|
| 338 | | -&hdmi_in_vp1 { |
|---|
| 339 | 301 | status = "disabled"; |
|---|
| 340 | 302 | }; |
|---|
| 341 | | - |
|---|
| 342 | | -&hdmi_sound { |
|---|
| 343 | | - status = "okay"; |
|---|
| 344 | | -}; |
|---|
| 345 | | - |
|---|
| 346 | | -/* |
|---|
| 347 | | - * Hdmi_END |
|---|
| 348 | | -*/ |
|---|
| 349 | 303 | |
|---|
| 350 | 304 | &gmac0 { |
|---|
| 351 | 305 | phy-mode = "rgmii"; |
|---|
| .. | .. |
|---|
| 409 | 363 | power-supply = <&vcc3v3_lcd0_n>; |
|---|
| 410 | 364 | }; |
|---|
| 411 | 365 | |
|---|
| 412 | | -&i2c3 { |
|---|
| 413 | | - status = "okay"; |
|---|
| 414 | | - //mac eeprom |
|---|
| 415 | | - eeprom@51 { |
|---|
| 416 | | - //compatible = "atmel,24c02"; |
|---|
| 417 | | - compatible = "atmel,24c256"; |
|---|
| 418 | | - reg = <0x51>; |
|---|
| 419 | | - }; |
|---|
| 420 | | - |
|---|
| 421 | | - //nk-mcu |
|---|
| 422 | | - nkmcu@15 { |
|---|
| 423 | | - compatible = "nk_mcu"; |
|---|
| 424 | | - reg = <0x15>; |
|---|
| 425 | | - }; |
|---|
| 426 | | -}; |
|---|
| 427 | | - |
|---|
| 428 | 366 | &i2c4 { |
|---|
| 429 | | - status = "okay"; |
|---|
| 367 | + status = "disabled"; |
|---|
| 430 | 368 | gc8034: gc8034@37 { |
|---|
| 431 | 369 | compatible = "galaxycore,gc8034"; |
|---|
| 432 | 370 | status = "okay"; |
|---|
| .. | .. |
|---|
| 472 | 410 | }; |
|---|
| 473 | 411 | }; |
|---|
| 474 | 412 | ov5695: ov5695@36 { |
|---|
| 475 | | - status = "okay"; |
|---|
| 413 | + status = "disabled"; |
|---|
| 476 | 414 | compatible = "ovti,ov5695"; |
|---|
| 477 | 415 | reg = <0x36>; |
|---|
| 478 | 416 | clocks = <&cru CLK_CIF_OUT>; |
|---|
| .. | .. |
|---|
| 495 | 433 | }; |
|---|
| 496 | 434 | }; |
|---|
| 497 | 435 | |
|---|
| 498 | | -&i2c5 { |
|---|
| 499 | | - status = "okay"; |
|---|
| 500 | | - |
|---|
| 501 | | - hym8563: hym8563@51 { |
|---|
| 502 | | - compatible = "haoyu,hym8563"; |
|---|
| 503 | | - reg = <0x51>; |
|---|
| 504 | | - #clock-cells = <0>; |
|---|
| 505 | | - clock-frequency = <32768>; |
|---|
| 506 | | - clock-output-names = "xin32k"; |
|---|
| 507 | | - /* rtc_int is not connected */ |
|---|
| 508 | | - }; |
|---|
| 509 | | -}; |
|---|
| 510 | | - |
|---|
| 511 | 436 | &mdio0 { |
|---|
| 512 | 437 | rgmii_phy0: phy@0 { |
|---|
| 513 | 438 | compatible = "ethernet-phy-ieee802.3-c22"; |
|---|
| .. | .. |
|---|
| 522 | 447 | }; |
|---|
| 523 | 448 | }; |
|---|
| 524 | 449 | |
|---|
| 450 | +&video_phy0 { |
|---|
| 451 | + status = "disabled"; |
|---|
| 452 | +}; |
|---|
| 525 | 453 | |
|---|
| 454 | +&video_phy1 { |
|---|
| 455 | + status = "disabled"; |
|---|
| 456 | +}; |
|---|
| 526 | 457 | |
|---|
| 527 | 458 | &pcie30phy { |
|---|
| 528 | 459 | status = "okay"; |
|---|
| 529 | 460 | }; |
|---|
| 530 | 461 | |
|---|
| 531 | | -&pcie2x1 { |
|---|
| 532 | | - reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 462 | +&pcie3x2 { |
|---|
| 463 | + reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>; |
|---|
| 533 | 464 | vpcie3v3-supply = <&vcc3v3_pcie>; |
|---|
| 534 | 465 | status = "okay"; |
|---|
| 535 | 466 | }; |
|---|
| 536 | 467 | |
|---|
| 537 | 468 | &pinctrl { |
|---|
| 538 | | -// cam { |
|---|
| 539 | | -// camera_pwr: camera-pwr { |
|---|
| 540 | | -// rockchip,pins = |
|---|
| 541 | | -// /* camera power en */ |
|---|
| 542 | | -// <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 543 | | -// }; |
|---|
| 544 | | -// }; |
|---|
| 469 | + cam { |
|---|
| 470 | + camera_pwr: camera-pwr { |
|---|
| 471 | + rockchip,pins = |
|---|
| 472 | + /* camera power en */ |
|---|
| 473 | + <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 474 | + }; |
|---|
| 475 | + }; |
|---|
| 545 | 476 | headphone { |
|---|
| 546 | 477 | hp_det: hp-det { |
|---|
| 547 | | - rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>, |
|---|
| 548 | | - <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 478 | + rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 549 | 479 | }; |
|---|
| 550 | 480 | }; |
|---|
| 551 | 481 | |
|---|
| 552 | 482 | wireless-wlan { |
|---|
| 553 | 483 | wifi_host_wake_irq: wifi-host-wake-irq { |
|---|
| 554 | | - rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 484 | + rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 555 | 485 | }; |
|---|
| 556 | 486 | }; |
|---|
| 557 | 487 | |
|---|
| 558 | 488 | wireless-bluetooth { |
|---|
| 559 | | - uart1_gpios: uart1-gpios { |
|---|
| 560 | | - rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 489 | + uart8_gpios: uart8-gpios { |
|---|
| 490 | + rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 561 | 491 | }; |
|---|
| 562 | 492 | }; |
|---|
| 563 | 493 | |
|---|
| 564 | | - lcd1 { |
|---|
| 565 | | - lcd1_rst_gpio: lcd1-rst-gpio { |
|---|
| 566 | | - rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 567 | | - }; |
|---|
| 568 | | - }; |
|---|
| 569 | | - |
|---|
| 570 | 494 | nk_io_init{ |
|---|
| 571 | 495 | nk_io_gpio: nk-io-gpio{ |
|---|
| 572 | 496 | rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| .. | .. |
|---|
| 576 | 500 | <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 577 | 501 | <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 578 | 502 | <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 579 | | - <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 503 | + <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 580 | 504 | <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 581 | 505 | <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 582 | 506 | <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| .. | .. |
|---|
| 585 | 509 | <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 586 | 510 | <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 587 | 511 | <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 512 | + <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3 |
|---|
| 513 | + <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3 |
|---|
| 514 | + <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3 |
|---|
| 515 | + <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3 |
|---|
| 588 | 516 | <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 589 | 517 | }; |
|---|
| 590 | 518 | }; |
|---|
| 519 | +}; |
|---|
| 520 | + |
|---|
| 521 | +&rk809_sound { |
|---|
| 522 | + hp-det-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>; |
|---|
| 591 | 523 | }; |
|---|
| 592 | 524 | |
|---|
| 593 | 525 | &rkisp { |
|---|
| .. | .. |
|---|
| 599 | 531 | }; |
|---|
| 600 | 532 | |
|---|
| 601 | 533 | &rkisp_vir0 { |
|---|
| 602 | | - status = "disabled"; |
|---|
| 534 | + status = "okay"; |
|---|
| 603 | 535 | |
|---|
| 604 | 536 | port { |
|---|
| 605 | 537 | #address-cells = <1>; |
|---|
| .. | .. |
|---|
| 612 | 544 | }; |
|---|
| 613 | 545 | }; |
|---|
| 614 | 546 | |
|---|
| 547 | +&route_dsi0 { |
|---|
| 548 | + status = "disabled"; |
|---|
| 549 | + connect = <&vp1_out_dsi0>; |
|---|
| 550 | +}; |
|---|
| 615 | 551 | |
|---|
| 616 | | - |
|---|
| 617 | | - |
|---|
| 552 | +&route_edp { |
|---|
| 553 | + status = "okay"; |
|---|
| 554 | + connect = <&vp0_out_edp>; |
|---|
| 555 | +}; |
|---|
| 618 | 556 | |
|---|
| 619 | 557 | &sata2 { |
|---|
| 620 | 558 | status = "okay"; |
|---|
| 621 | 559 | }; |
|---|
| 622 | 560 | |
|---|
| 623 | 561 | &sdmmc2 { |
|---|
| 624 | | - status = "disabled"; |
|---|
| 625 | | -}; |
|---|
| 626 | | - |
|---|
| 627 | | -&sdmmc1 { |
|---|
| 628 | | - max-frequency = <150000000>; |
|---|
| 629 | | - supports-sdio; |
|---|
| 630 | | - bus-width = <4>; |
|---|
| 631 | | - disable-wp; |
|---|
| 632 | | - cap-sd-highspeed; |
|---|
| 633 | | - cap-sdio-irq; |
|---|
| 634 | | - keep-power-in-suspend; |
|---|
| 635 | | - mmc-pwrseq = <&sdio_pwrseq>; |
|---|
| 636 | | - non-removable; |
|---|
| 637 | | - pinctrl-names = "default"; |
|---|
| 638 | | - pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; |
|---|
| 639 | | - sd-uhs-sdr104; |
|---|
| 640 | | - status = "okay"; |
|---|
| 562 | + max-frequency = <150000000>; |
|---|
| 563 | + supports-sdio; |
|---|
| 564 | + bus-width = <4>; |
|---|
| 565 | + disable-wp; |
|---|
| 566 | + cap-sd-highspeed; |
|---|
| 567 | + cap-sdio-irq; |
|---|
| 568 | + keep-power-in-suspend; |
|---|
| 569 | + mmc-pwrseq = <&sdio_pwrseq>; |
|---|
| 570 | + non-removable; |
|---|
| 571 | + pinctrl-names = "default"; |
|---|
| 572 | + pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; |
|---|
| 573 | + sd-uhs-sdr104; |
|---|
| 574 | + status = "okay"; |
|---|
| 641 | 575 | }; |
|---|
| 642 | 576 | |
|---|
| 643 | 577 | &spdif_8ch { |
|---|
| .. | .. |
|---|
| 647 | 581 | }; |
|---|
| 648 | 582 | |
|---|
| 649 | 583 | &uart8 { |
|---|
| 650 | | - status = "disabled"; |
|---|
| 584 | + status = "okay"; |
|---|
| 651 | 585 | pinctrl-names = "default"; |
|---|
| 652 | 586 | pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>; |
|---|
| 653 | 587 | }; |
|---|
| 654 | 588 | |
|---|
| 655 | 589 | &vcc3v3_lcd0_n { |
|---|
| 656 | | - gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
|---|
| 590 | + gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; |
|---|
| 657 | 591 | enable-active-high; |
|---|
| 658 | 592 | }; |
|---|
| 659 | 593 | |
|---|
| 660 | 594 | &vcc3v3_lcd1_n { |
|---|
| 661 | | - gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
|---|
| 595 | + gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; |
|---|
| 662 | 596 | enable-active-high; |
|---|
| 663 | 597 | }; |
|---|
| 664 | 598 | |
|---|
| 665 | 599 | &wireless_wlan { |
|---|
| 666 | 600 | pinctrl-names = "default"; |
|---|
| 667 | 601 | pinctrl-0 = <&wifi_host_wake_irq>; |
|---|
| 668 | | - WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; |
|---|
| 602 | + WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; |
|---|
| 669 | 603 | }; |
|---|
| 670 | 604 | |
|---|
| 671 | 605 | &wireless_bluetooth { |
|---|
| .. | .. |
|---|
| 673 | 607 | clocks = <&rk809 1>; |
|---|
| 674 | 608 | clock-names = "ext_clock"; |
|---|
| 675 | 609 | //wifi-bt-power-toggle; |
|---|
| 676 | | - uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; |
|---|
| 677 | | - BT,power_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
|---|
| 610 | + uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; |
|---|
| 678 | 611 | pinctrl-names = "default", "rts_gpio"; |
|---|
| 679 | | - pinctrl-0 = <&uart1m0_rtsn>; |
|---|
| 680 | | - pinctrl-1 = <&uart1_gpios>; |
|---|
| 612 | + pinctrl-0 = <&uart8m0_rtsn>; |
|---|
| 613 | + pinctrl-1 = <&uart8_gpios>; |
|---|
| 681 | 614 | BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>; |
|---|
| 682 | 615 | BT,wake_gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>; |
|---|
| 683 | 616 | BT,wake_host_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; |
|---|
| 684 | | - status = "disabled"; |
|---|
| 685 | | -}; |
|---|
| 686 | | - |
|---|
| 687 | | -&uart0 { |
|---|
| 688 | 617 | status = "okay"; |
|---|
| 689 | | -}; |
|---|
| 690 | | - |
|---|
| 691 | | -&uart3 { |
|---|
| 692 | | - status = "okay"; |
|---|
| 693 | | - pinctrl-0 = <&uart3m1_xfer>; |
|---|
| 694 | | -}; |
|---|
| 695 | | - |
|---|
| 696 | | -&uart4 { |
|---|
| 697 | | - status = "okay"; |
|---|
| 698 | | - pinctrl-0 = <&uart4m1_xfer>; |
|---|
| 699 | | -}; |
|---|
| 700 | | - |
|---|
| 701 | | -&uart5 { |
|---|
| 702 | | - status = "okay"; |
|---|
| 703 | | - pinctrl-0 = <&uart5m1_xfer>; |
|---|
| 704 | | -}; |
|---|
| 705 | | - |
|---|
| 706 | | -&uart7 { |
|---|
| 707 | | - status = "okay"; |
|---|
| 708 | | - pinctrl-0 = <&uart7m1_xfer>; |
|---|
| 709 | | -}; |
|---|
| 710 | | - |
|---|
| 711 | | -&uart9 { |
|---|
| 712 | | - status = "okay"; |
|---|
| 713 | | - pinctrl-0 = <&uart9m1_xfer>; |
|---|
| 714 | 618 | }; |
|---|