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