1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Device Tree Source for the HiHope RZ/G2H Re !! 3 * Device Tree Source for the HiHope RZ/G2[MN] main board common parts 4 * HiHope RZ/G2[MN] Rev.[2.0/3.0/4.0] main boa << 5 * 4 * 6 * Copyright (C) 2019 Renesas Electronics Corp 5 * Copyright (C) 2019 Renesas Electronics Corp. 7 */ 6 */ 8 7 9 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/gpio/gpio.h> 10 9 11 / { 10 / { 12 aliases { 11 aliases { 13 i2c0 = &i2c0; << 14 i2c1 = &i2c1; << 15 i2c2 = &i2c2; << 16 i2c3 = &i2c3; << 17 i2c4 = &i2c4; << 18 i2c5 = &i2c5; << 19 i2c6 = &i2c6; << 20 i2c7 = &iic_pmic; << 21 serial0 = &scif2; 12 serial0 = &scif2; 22 serial1 = &hscif0; 13 serial1 = &hscif0; 23 mmc0 = &sdhi3; << 24 mmc1 = &sdhi0; << 25 mmc2 = &sdhi2; << 26 }; 14 }; 27 15 28 chosen { 16 chosen { 29 bootargs = "ignore_loglevel"; 17 bootargs = "ignore_loglevel"; 30 stdout-path = "serial0:115200n 18 stdout-path = "serial0:115200n8"; 31 }; 19 }; 32 20 33 hdmi0-out { 21 hdmi0-out { 34 compatible = "hdmi-connector"; 22 compatible = "hdmi-connector"; 35 type = "a"; 23 type = "a"; 36 24 37 port { 25 port { 38 hdmi0_con: endpoint { 26 hdmi0_con: endpoint { 39 remote-endpoin 27 remote-endpoint = <&rcar_dw_hdmi0_out>; 40 }; 28 }; 41 }; 29 }; 42 }; 30 }; 43 31 44 leds { 32 leds { 45 compatible = "gpio-leds"; 33 compatible = "gpio-leds"; 46 34 >> 35 bt_active_led { >> 36 label = "blue:bt"; >> 37 gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>; >> 38 linux,default-trigger = "hci0-power"; >> 39 default-state = "off"; >> 40 }; >> 41 >> 42 led0 { >> 43 gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>; >> 44 }; >> 45 47 led1 { 46 led1 { 48 gpios = <&gpio6 12 GPI 47 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; 49 }; 48 }; 50 49 51 led2 { 50 led2 { 52 gpios = <&gpio6 13 GPI 51 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; 53 }; 52 }; 54 53 55 led3 { 54 led3 { 56 gpios = <&gpio0 0 GPI 55 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 57 }; 56 }; 58 57 59 led4 { !! 58 wlan_active_led { 60 gpios = <&gpio6 11 GPI !! 59 label = "yellow:wlan"; >> 60 gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; >> 61 linux,default-trigger = "phy0tx"; >> 62 default-state = "off"; 61 }; 63 }; 62 }; 64 }; 63 65 64 reg_1p8v: regulator-1p8v { !! 66 reg_1p8v: regulator0 { 65 compatible = "regulator-fixed" 67 compatible = "regulator-fixed"; 66 regulator-name = "fixed-1.8V"; 68 regulator-name = "fixed-1.8V"; 67 regulator-min-microvolt = <180 69 regulator-min-microvolt = <1800000>; 68 regulator-max-microvolt = <180 70 regulator-max-microvolt = <1800000>; 69 regulator-boot-on; 71 regulator-boot-on; 70 regulator-always-on; 72 regulator-always-on; 71 }; 73 }; 72 74 73 reg_3p3v: regulator-3p3v { !! 75 reg_3p3v: regulator1 { 74 compatible = "regulator-fixed" 76 compatible = "regulator-fixed"; 75 regulator-name = "fixed-3.3V"; 77 regulator-name = "fixed-3.3V"; 76 regulator-min-microvolt = <330 78 regulator-min-microvolt = <3300000>; 77 regulator-max-microvolt = <330 79 regulator-max-microvolt = <3300000>; 78 regulator-boot-on; 80 regulator-boot-on; 79 regulator-always-on; 81 regulator-always-on; 80 }; 82 }; 81 83 82 sound_card: sound { 84 sound_card: sound { 83 compatible = "audio-graph-card 85 compatible = "audio-graph-card"; 84 86 85 label = "rcar-sound"; 87 label = "rcar-sound"; 86 88 87 dais = <&rsnd_port>; 89 dais = <&rsnd_port>; 88 }; 90 }; 89 91 90 vbus0_usb2: regulator-vbus0-usb2 { 92 vbus0_usb2: regulator-vbus0-usb2 { 91 compatible = "regulator-fixed" 93 compatible = "regulator-fixed"; 92 94 93 regulator-name = "USB20_VBUS0" 95 regulator-name = "USB20_VBUS0"; 94 regulator-min-microvolt = <500 96 regulator-min-microvolt = <5000000>; 95 regulator-max-microvolt = <500 97 regulator-max-microvolt = <5000000>; 96 98 97 gpio = <&gpio6 16 GPIO_ACTIVE_ 99 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>; 98 enable-active-high; 100 enable-active-high; 99 }; 101 }; 100 102 101 vccq_sdhi0: regulator-vccq-sdhi0 { 103 vccq_sdhi0: regulator-vccq-sdhi0 { 102 compatible = "regulator-gpio"; 104 compatible = "regulator-gpio"; 103 105 104 regulator-name = "SDHI0 VccQ"; 106 regulator-name = "SDHI0 VccQ"; 105 regulator-min-microvolt = <180 107 regulator-min-microvolt = <1800000>; 106 regulator-max-microvolt = <330 108 regulator-max-microvolt = <3300000>; 107 109 108 gpios = <&gpio6 30 GPIO_ACTIVE 110 gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>; 109 gpios-states = <1>; 111 gpios-states = <1>; 110 states = <3300000 1>, <1800000 !! 112 states = <3300000 1 >> 113 1800000 0>; >> 114 }; >> 115 >> 116 wlan_en_reg: regulator-wlan_en { >> 117 compatible = "regulator-fixed"; >> 118 regulator-name = "wlan-en-regulator"; >> 119 regulator-min-microvolt = <1800000>; >> 120 regulator-max-microvolt = <1800000>; >> 121 startup-delay-us = <70000>; >> 122 >> 123 gpio = <&gpio_expander 1 GPIO_ACTIVE_HIGH>; >> 124 enable-active-high; 111 }; 125 }; 112 126 113 x302_clk: x302-clock { 127 x302_clk: x302-clock { 114 compatible = "fixed-clock"; 128 compatible = "fixed-clock"; 115 #clock-cells = <0>; 129 #clock-cells = <0>; 116 clock-frequency = <33000000>; 130 clock-frequency = <33000000>; 117 }; 131 }; 118 132 119 x304_clk: x304-clock { 133 x304_clk: x304-clock { 120 compatible = "fixed-clock"; 134 compatible = "fixed-clock"; 121 #clock-cells = <0>; 135 #clock-cells = <0>; 122 clock-frequency = <25000000>; 136 clock-frequency = <25000000>; 123 }; 137 }; 124 }; 138 }; 125 139 126 &audio_clk_a { 140 &audio_clk_a { 127 clock-frequency = <22579200>; 141 clock-frequency = <22579200>; 128 }; 142 }; 129 143 130 &du { 144 &du { >> 145 clocks = <&cpg CPG_MOD 724>, >> 146 <&cpg CPG_MOD 723>, >> 147 <&cpg CPG_MOD 722>, >> 148 <&versaclock5 1>, >> 149 <&x302_clk>, >> 150 <&versaclock5 2>; >> 151 clock-names = "du.0", "du.1", "du.2", >> 152 "dclkin.0", "dclkin.1", "dclkin.2"; 131 status = "okay"; 153 status = "okay"; 132 }; 154 }; 133 155 134 &ehci0 { 156 &ehci0 { 135 status = "okay"; 157 status = "okay"; 136 }; 158 }; 137 159 138 &ehci1 { 160 &ehci1 { 139 status = "okay"; 161 status = "okay"; 140 }; 162 }; 141 163 142 &extal_clk { 164 &extal_clk { 143 clock-frequency = <16666666>; 165 clock-frequency = <16666666>; 144 }; 166 }; 145 167 146 &extalr_clk { 168 &extalr_clk { 147 clock-frequency = <32768>; 169 clock-frequency = <32768>; 148 }; 170 }; 149 171 150 &gpio6 { 172 &gpio6 { 151 usb1-reset-hog { !! 173 usb1-reset { 152 gpio-hog; 174 gpio-hog; 153 gpios = <10 GPIO_ACTIVE_LOW>; 175 gpios = <10 GPIO_ACTIVE_LOW>; 154 output-low; 176 output-low; 155 line-name = "usb1-reset"; 177 line-name = "usb1-reset"; 156 }; 178 }; 157 }; 179 }; 158 180 159 &hdmi0 { 181 &hdmi0 { 160 status = "okay"; 182 status = "okay"; 161 183 162 ports { 184 ports { 163 port@1 { 185 port@1 { 164 reg = <1>; 186 reg = <1>; 165 rcar_dw_hdmi0_out: end 187 rcar_dw_hdmi0_out: endpoint { 166 remote-endpoin 188 remote-endpoint = <&hdmi0_con>; 167 }; 189 }; 168 }; 190 }; 169 port@2 { 191 port@2 { 170 reg = <2>; 192 reg = <2>; 171 dw_hdmi0_snd_in: endpo 193 dw_hdmi0_snd_in: endpoint { 172 remote-endpoin 194 remote-endpoint = <&rsnd_endpoint>; 173 }; 195 }; 174 }; 196 }; 175 }; 197 }; 176 }; 198 }; 177 199 178 &hscif0 { 200 &hscif0 { 179 pinctrl-0 = <&hscif0_pins>; 201 pinctrl-0 = <&hscif0_pins>; 180 pinctrl-names = "default"; 202 pinctrl-names = "default"; 181 203 182 uart-has-rtscts; 204 uart-has-rtscts; 183 status = "okay"; 205 status = "okay"; >> 206 >> 207 bluetooth { >> 208 compatible = "ti,wl1837-st"; >> 209 enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>; >> 210 }; 184 }; 211 }; 185 212 186 &hsusb { 213 &hsusb { 187 dr_mode = "otg"; 214 dr_mode = "otg"; 188 status = "okay"; 215 status = "okay"; 189 }; 216 }; 190 217 191 &i2c4 { 218 &i2c4 { 192 clock-frequency = <400000>; 219 clock-frequency = <400000>; 193 status = "okay"; 220 status = "okay"; 194 221 >> 222 gpio_expander: gpio@20 { >> 223 compatible = "onnn,pca9654"; >> 224 reg = <0x20>; >> 225 gpio-controller; >> 226 #gpio-cells = <2>; >> 227 }; >> 228 195 versaclock5: clock-generator@6a { 229 versaclock5: clock-generator@6a { 196 compatible = "idt,5p49v5923"; 230 compatible = "idt,5p49v5923"; 197 reg = <0x6a>; 231 reg = <0x6a>; 198 #clock-cells = <1>; 232 #clock-cells = <1>; 199 clocks = <&x304_clk>; 233 clocks = <&x304_clk>; 200 clock-names = "xin"; 234 clock-names = "xin"; 201 }; 235 }; 202 }; 236 }; 203 237 204 &ohci0 { 238 &ohci0 { 205 status = "okay"; 239 status = "okay"; 206 }; 240 }; 207 241 208 &ohci1 { 242 &ohci1 { 209 status = "okay"; 243 status = "okay"; 210 }; 244 }; 211 245 212 &pcie_bus_clk { 246 &pcie_bus_clk { 213 clock-frequency = <100000000>; 247 clock-frequency = <100000000>; 214 }; 248 }; 215 249 216 &pfc { 250 &pfc { 217 pinctrl-0 = <&scif_clk_pins>; 251 pinctrl-0 = <&scif_clk_pins>; 218 pinctrl-names = "default"; 252 pinctrl-names = "default"; 219 253 220 hscif0_pins: hscif0 { 254 hscif0_pins: hscif0 { 221 groups = "hscif0_data", "hscif 255 groups = "hscif0_data", "hscif0_ctrl"; 222 function = "hscif0"; 256 function = "hscif0"; 223 }; 257 }; 224 258 225 scif2_pins: scif2 { 259 scif2_pins: scif2 { 226 groups = "scif2_data_a"; 260 groups = "scif2_data_a"; 227 function = "scif2"; 261 function = "scif2"; 228 }; 262 }; 229 263 230 scif_clk_pins: scif_clk { 264 scif_clk_pins: scif_clk { 231 groups = "scif_clk_a"; 265 groups = "scif_clk_a"; 232 function = "scif_clk"; 266 function = "scif_clk"; 233 }; 267 }; 234 268 235 sdhi0_pins: sd0 { 269 sdhi0_pins: sd0 { 236 groups = "sdhi0_data4", "sdhi0 270 groups = "sdhi0_data4", "sdhi0_ctrl"; 237 function = "sdhi0"; 271 function = "sdhi0"; 238 power-source = <3300>; 272 power-source = <3300>; 239 }; 273 }; 240 274 241 sdhi0_pins_uhs: sd0_uhs { 275 sdhi0_pins_uhs: sd0_uhs { 242 groups = "sdhi0_data4", "sdhi0 276 groups = "sdhi0_data4", "sdhi0_ctrl"; 243 function = "sdhi0"; 277 function = "sdhi0"; 244 power-source = <1800>; 278 power-source = <1800>; 245 }; 279 }; 246 280 247 sdhi2_pins: sd2 { 281 sdhi2_pins: sd2 { 248 groups = "sdhi2_data4", "sdhi2 282 groups = "sdhi2_data4", "sdhi2_ctrl"; 249 function = "sdhi2"; 283 function = "sdhi2"; 250 power-source = <1800>; 284 power-source = <1800>; 251 }; 285 }; 252 286 253 sdhi3_pins: sd3 { 287 sdhi3_pins: sd3 { 254 groups = "sdhi3_data8", "sdhi3 288 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds"; 255 function = "sdhi3"; 289 function = "sdhi3"; 256 power-source = <1800>; 290 power-source = <1800>; 257 }; 291 }; 258 292 >> 293 sound_clk_pins: sound_clk { >> 294 groups = "audio_clk_a_a"; >> 295 function = "audio_clk"; >> 296 }; >> 297 259 usb0_pins: usb0 { 298 usb0_pins: usb0 { 260 groups = "usb0"; 299 groups = "usb0"; 261 function = "usb0"; 300 function = "usb0"; 262 }; 301 }; 263 302 264 usb1_pins: usb1 { 303 usb1_pins: usb1 { 265 mux { 304 mux { 266 groups = "usb1"; 305 groups = "usb1"; 267 function = "usb1"; 306 function = "usb1"; 268 }; 307 }; 269 308 270 ovc { 309 ovc { 271 pins = "GP_6_27"; 310 pins = "GP_6_27"; 272 bias-pull-up; 311 bias-pull-up; 273 }; 312 }; 274 }; 313 }; 275 314 276 usb30_pins: usb30 { 315 usb30_pins: usb30 { 277 groups = "usb30"; 316 groups = "usb30"; 278 function = "usb30"; 317 function = "usb30"; 279 }; 318 }; 280 }; 319 }; 281 320 >> 321 &rcar_sound { >> 322 pinctrl-0 = <&sound_clk_pins>; >> 323 pinctrl-names = "default"; >> 324 >> 325 status = "okay"; >> 326 >> 327 /* Single DAI */ >> 328 #sound-dai-cells = <0>; >> 329 >> 330 rsnd_port: port { >> 331 rsnd_endpoint: endpoint { >> 332 remote-endpoint = <&dw_hdmi0_snd_in>; >> 333 >> 334 dai-format = "i2s"; >> 335 bitclock-master = <&rsnd_endpoint>; >> 336 frame-master = <&rsnd_endpoint>; >> 337 >> 338 playback = <&ssi2>; >> 339 }; >> 340 }; >> 341 }; >> 342 282 &rwdt { 343 &rwdt { 283 timeout-sec = <60>; 344 timeout-sec = <60>; 284 status = "okay"; 345 status = "okay"; 285 }; 346 }; 286 347 287 &scif2 { 348 &scif2 { 288 pinctrl-0 = <&scif2_pins>; 349 pinctrl-0 = <&scif2_pins>; 289 pinctrl-names = "default"; 350 pinctrl-names = "default"; 290 351 291 status = "okay"; 352 status = "okay"; 292 }; 353 }; 293 354 294 &scif_clk { 355 &scif_clk { 295 clock-frequency = <14745600>; 356 clock-frequency = <14745600>; 296 }; 357 }; 297 358 298 &sdhi0 { 359 &sdhi0 { 299 pinctrl-0 = <&sdhi0_pins>; 360 pinctrl-0 = <&sdhi0_pins>; 300 pinctrl-1 = <&sdhi0_pins_uhs>; 361 pinctrl-1 = <&sdhi0_pins_uhs>; 301 pinctrl-names = "default", "state_uhs" 362 pinctrl-names = "default", "state_uhs"; 302 363 303 vmmc-supply = <®_3p3v>; 364 vmmc-supply = <®_3p3v>; 304 vqmmc-supply = <&vccq_sdhi0>; 365 vqmmc-supply = <&vccq_sdhi0>; 305 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW> 366 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; 306 bus-width = <4>; 367 bus-width = <4>; 307 sd-uhs-sdr50; 368 sd-uhs-sdr50; 308 sd-uhs-sdr104; 369 sd-uhs-sdr104; 309 status = "okay"; 370 status = "okay"; 310 }; 371 }; 311 372 312 &sdhi2 { 373 &sdhi2 { 313 status = "okay"; 374 status = "okay"; 314 pinctrl-0 = <&sdhi2_pins>; 375 pinctrl-0 = <&sdhi2_pins>; 315 pinctrl-names = "default"; 376 pinctrl-names = "default"; 316 377 317 vmmc-supply = <&wlan_en_reg>; 378 vmmc-supply = <&wlan_en_reg>; 318 bus-width = <4>; 379 bus-width = <4>; 319 non-removable; 380 non-removable; 320 cap-power-off-card; 381 cap-power-off-card; 321 keep-power-in-suspend; 382 keep-power-in-suspend; 322 383 323 #address-cells = <1>; 384 #address-cells = <1>; 324 #size-cells = <0>; 385 #size-cells = <0>; 325 wlcore: wlcore@2 { 386 wlcore: wlcore@2 { 326 compatible = "ti,wl1837"; 387 compatible = "ti,wl1837"; 327 reg = <2>; 388 reg = <2>; 328 interrupt-parent = <&gpio2>; 389 interrupt-parent = <&gpio2>; 329 interrupts = <5 IRQ_TYPE_LEVEL 390 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; 330 }; 391 }; 331 }; 392 }; 332 393 333 &sdhi3 { 394 &sdhi3 { 334 pinctrl-0 = <&sdhi3_pins>; 395 pinctrl-0 = <&sdhi3_pins>; 335 pinctrl-1 = <&sdhi3_pins>; 396 pinctrl-1 = <&sdhi3_pins>; 336 pinctrl-names = "default", "state_uhs" 397 pinctrl-names = "default", "state_uhs"; 337 398 338 vmmc-supply = <®_3p3v>; 399 vmmc-supply = <®_3p3v>; 339 vqmmc-supply = <®_1p8v>; 400 vqmmc-supply = <®_1p8v>; 340 bus-width = <8>; 401 bus-width = <8>; 341 mmc-hs200-1_8v; 402 mmc-hs200-1_8v; 342 no-sd; << 343 no-sdio; << 344 non-removable; 403 non-removable; 345 fixed-emmc-driver-type = <1>; 404 fixed-emmc-driver-type = <1>; 346 status = "okay"; 405 status = "okay"; 347 }; 406 }; 348 407 349 &usb_extal_clk { 408 &usb_extal_clk { 350 clock-frequency = <50000000>; 409 clock-frequency = <50000000>; 351 }; 410 }; 352 411 353 &usb2_phy0 { 412 &usb2_phy0 { 354 pinctrl-0 = <&usb0_pins>; 413 pinctrl-0 = <&usb0_pins>; 355 pinctrl-names = "default"; 414 pinctrl-names = "default"; 356 415 357 vbus-supply = <&vbus0_usb2>; 416 vbus-supply = <&vbus0_usb2>; 358 status = "okay"; 417 status = "okay"; 359 }; 418 }; 360 419 361 &usb2_phy1 { 420 &usb2_phy1 { 362 pinctrl-0 = <&usb1_pins>; 421 pinctrl-0 = <&usb1_pins>; 363 pinctrl-names = "default"; 422 pinctrl-names = "default"; 364 423 365 status = "okay"; 424 status = "okay"; 366 }; 425 }; 367 426 368 &usb3_peri0 { 427 &usb3_peri0 { 369 phys = <&usb3_phy0>; 428 phys = <&usb3_phy0>; 370 phy-names = "usb"; 429 phy-names = "usb"; 371 430 372 companion = <&xhci0>; 431 companion = <&xhci0>; 373 432 374 status = "okay"; 433 status = "okay"; 375 }; 434 }; 376 435 377 &usb3_phy0 { 436 &usb3_phy0 { 378 status = "okay"; 437 status = "okay"; 379 }; 438 }; 380 439 381 &usb3s0_clk { 440 &usb3s0_clk { 382 clock-frequency = <100000000>; 441 clock-frequency = <100000000>; 383 }; 442 }; 384 443 385 &xhci0 { 444 &xhci0 { 386 pinctrl-0 = <&usb30_pins>; 445 pinctrl-0 = <&usb30_pins>; 387 pinctrl-names = "default"; 446 pinctrl-names = "default"; 388 447 389 status = "okay"; 448 status = "okay"; 390 }; 449 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.