Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source for the Lager board |
| 4 | * |
| 5 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
| 6 | * Copyright (C) 2014 Cogent Embedded, Inc. |
| 7 | * Copyright (C) 2015-2016 Renesas Electronics Corporation |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | /* |
| 11 | * SSI-AK4643 |
| 12 | * |
| 13 | * SW1: 1: AK4643 |
| 14 | * 2: CN22 |
| 15 | * 3: ADV7511 |
| 16 | * |
| 17 | * This command is required when Playback/Capture |
| 18 | * |
| 19 | * amixer set "LINEOUT Mixer DACL" on |
| 20 | * amixer set "DVC Out" 100% |
| 21 | * amixer set "DVC In" 100% |
| 22 | * |
| 23 | * You can use Mute |
| 24 | * |
| 25 | * amixer set "DVC Out Mute" on |
| 26 | * amixer set "DVC In Mute" on |
| 27 | * |
| 28 | * You can use Volume Ramp |
| 29 | * |
| 30 | * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" |
| 31 | * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" |
| 32 | * amixer set "DVC Out Ramp" on |
| 33 | * aplay xxx.wav & |
| 34 | * amixer set "DVC Out" 80% // Volume Down |
| 35 | * amixer set "DVC Out" 100% // Volume Up |
| 36 | */ |
| 37 | |
| 38 | /dts-v1/; |
| 39 | #include "r8a7790.dtsi" |
| 40 | #include <dt-bindings/gpio/gpio.h> |
| 41 | #include <dt-bindings/input/input.h> |
| 42 | |
| 43 | / { |
| 44 | model = "Lager"; |
| 45 | compatible = "renesas,lager", "renesas,r8a7790"; |
| 46 | |
| 47 | aliases { |
| 48 | serial0 = &scif0; |
| 49 | serial1 = &scifa1; |
| 50 | i2c8 = &gpioi2c1; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 51 | i2c9 = &gpioi2c2; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 52 | i2c10 = &i2cexio0; |
| 53 | i2c11 = &i2cexio1; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 54 | i2c12 = &i2chdmi; |
| 55 | i2c13 = &i2cpwr; |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 56 | mmc0 = &mmcif1; |
| 57 | mmc1 = &sdhi0; |
| 58 | mmc2 = &sdhi2; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 59 | }; |
| 60 | |
| 61 | chosen { |
Marek Vasut | cd82e69 | 2020-04-04 15:21:26 +0200 | [diff] [blame] | 62 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 63 | stdout-path = "serial0:115200n8"; |
| 64 | }; |
| 65 | |
| 66 | memory@40000000 { |
| 67 | device_type = "memory"; |
| 68 | reg = <0 0x40000000 0 0x40000000>; |
| 69 | }; |
| 70 | |
| 71 | memory@140000000 { |
| 72 | device_type = "memory"; |
| 73 | reg = <1 0x40000000 0 0xc0000000>; |
| 74 | }; |
| 75 | |
| 76 | lbsc { |
| 77 | #address-cells = <1>; |
| 78 | #size-cells = <1>; |
| 79 | }; |
| 80 | |
| 81 | keyboard { |
| 82 | compatible = "gpio-keys"; |
| 83 | |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 84 | pinctrl-0 = <&keyboard_pins>; |
| 85 | pinctrl-names = "default"; |
| 86 | |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 87 | one { |
| 88 | linux,code = <KEY_1>; |
| 89 | label = "SW2-1"; |
| 90 | wakeup-source; |
| 91 | debounce-interval = <20>; |
| 92 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
| 93 | }; |
| 94 | two { |
| 95 | linux,code = <KEY_2>; |
| 96 | label = "SW2-2"; |
| 97 | wakeup-source; |
| 98 | debounce-interval = <20>; |
| 99 | gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; |
| 100 | }; |
| 101 | three { |
| 102 | linux,code = <KEY_3>; |
| 103 | label = "SW2-3"; |
| 104 | wakeup-source; |
| 105 | debounce-interval = <20>; |
| 106 | gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; |
| 107 | }; |
| 108 | four { |
| 109 | linux,code = <KEY_4>; |
| 110 | label = "SW2-4"; |
| 111 | wakeup-source; |
| 112 | debounce-interval = <20>; |
| 113 | gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; |
| 114 | }; |
| 115 | }; |
| 116 | |
| 117 | leds { |
| 118 | compatible = "gpio-leds"; |
| 119 | led6 { |
| 120 | gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; |
| 121 | }; |
| 122 | led7 { |
| 123 | gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; |
| 124 | }; |
| 125 | led8 { |
| 126 | gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; |
| 127 | }; |
| 128 | }; |
| 129 | |
| 130 | fixedregulator3v3: regulator-3v3 { |
| 131 | compatible = "regulator-fixed"; |
| 132 | regulator-name = "fixed-3.3V"; |
| 133 | regulator-min-microvolt = <3300000>; |
| 134 | regulator-max-microvolt = <3300000>; |
| 135 | regulator-boot-on; |
| 136 | regulator-always-on; |
| 137 | }; |
| 138 | |
| 139 | vcc_sdhi0: regulator-vcc-sdhi0 { |
| 140 | compatible = "regulator-fixed"; |
| 141 | |
| 142 | regulator-name = "SDHI0 Vcc"; |
| 143 | regulator-min-microvolt = <3300000>; |
| 144 | regulator-max-microvolt = <3300000>; |
| 145 | |
| 146 | gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>; |
| 147 | enable-active-high; |
| 148 | }; |
| 149 | |
| 150 | vccq_sdhi0: regulator-vccq-sdhi0 { |
| 151 | compatible = "regulator-gpio"; |
| 152 | |
| 153 | regulator-name = "SDHI0 VccQ"; |
| 154 | regulator-min-microvolt = <1800000>; |
| 155 | regulator-max-microvolt = <3300000>; |
| 156 | |
| 157 | gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; |
| 158 | gpios-states = <1>; |
Marek Vasut | cd82e69 | 2020-04-04 15:21:26 +0200 | [diff] [blame] | 159 | states = <3300000 1>, <1800000 0>; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 160 | }; |
| 161 | |
| 162 | vcc_sdhi2: regulator-vcc-sdhi2 { |
| 163 | compatible = "regulator-fixed"; |
| 164 | |
| 165 | regulator-name = "SDHI2 Vcc"; |
| 166 | regulator-min-microvolt = <3300000>; |
| 167 | regulator-max-microvolt = <3300000>; |
| 168 | |
| 169 | gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>; |
| 170 | enable-active-high; |
| 171 | }; |
| 172 | |
| 173 | vccq_sdhi2: regulator-vccq-sdhi2 { |
| 174 | compatible = "regulator-gpio"; |
| 175 | |
| 176 | regulator-name = "SDHI2 VccQ"; |
| 177 | regulator-min-microvolt = <1800000>; |
| 178 | regulator-max-microvolt = <3300000>; |
| 179 | |
| 180 | gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; |
| 181 | gpios-states = <1>; |
Marek Vasut | cd82e69 | 2020-04-04 15:21:26 +0200 | [diff] [blame] | 182 | states = <3300000 1>, <1800000 0>; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 183 | }; |
| 184 | |
| 185 | audio_clock: audio_clock { |
| 186 | compatible = "fixed-clock"; |
| 187 | #clock-cells = <0>; |
| 188 | clock-frequency = <11289600>; |
| 189 | }; |
| 190 | |
| 191 | rsnd_ak4643: sound { |
| 192 | compatible = "simple-audio-card"; |
| 193 | |
| 194 | simple-audio-card,format = "left_j"; |
| 195 | simple-audio-card,bitclock-master = <&sndcodec>; |
| 196 | simple-audio-card,frame-master = <&sndcodec>; |
| 197 | |
| 198 | sndcpu: simple-audio-card,cpu { |
| 199 | sound-dai = <&rcar_sound>; |
| 200 | }; |
| 201 | |
| 202 | sndcodec: simple-audio-card,codec { |
| 203 | sound-dai = <&ak4643>; |
| 204 | clocks = <&audio_clock>; |
| 205 | }; |
| 206 | }; |
| 207 | |
| 208 | vga-encoder { |
| 209 | compatible = "adi,adv7123"; |
| 210 | |
| 211 | ports { |
| 212 | #address-cells = <1>; |
| 213 | #size-cells = <0>; |
| 214 | |
| 215 | port@0 { |
| 216 | reg = <0>; |
| 217 | adv7123_in: endpoint { |
| 218 | remote-endpoint = <&du_out_rgb>; |
| 219 | }; |
| 220 | }; |
| 221 | port@1 { |
| 222 | reg = <1>; |
| 223 | adv7123_out: endpoint { |
| 224 | remote-endpoint = <&vga_in>; |
| 225 | }; |
| 226 | }; |
| 227 | }; |
| 228 | }; |
| 229 | |
| 230 | vga { |
| 231 | compatible = "vga-connector"; |
| 232 | |
| 233 | port { |
| 234 | vga_in: endpoint { |
| 235 | remote-endpoint = <&adv7123_out>; |
| 236 | }; |
| 237 | }; |
| 238 | }; |
| 239 | |
| 240 | hdmi-in { |
| 241 | compatible = "hdmi-connector"; |
| 242 | type = "a"; |
| 243 | |
| 244 | port { |
| 245 | hdmi_con_in: endpoint { |
| 246 | remote-endpoint = <&adv7612_in>; |
| 247 | }; |
| 248 | }; |
| 249 | }; |
| 250 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 251 | cec_clock: cec-clock { |
| 252 | compatible = "fixed-clock"; |
| 253 | #clock-cells = <0>; |
| 254 | clock-frequency = <12000000>; |
| 255 | }; |
| 256 | |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 257 | hdmi-out { |
| 258 | compatible = "hdmi-connector"; |
| 259 | type = "a"; |
| 260 | |
| 261 | port { |
| 262 | hdmi_con_out: endpoint { |
| 263 | remote-endpoint = <&adv7511_out>; |
| 264 | }; |
| 265 | }; |
| 266 | }; |
| 267 | |
| 268 | x2_clk: x2-clock { |
| 269 | compatible = "fixed-clock"; |
| 270 | #clock-cells = <0>; |
| 271 | clock-frequency = <148500000>; |
| 272 | }; |
| 273 | |
| 274 | x13_clk: x13-clock { |
| 275 | compatible = "fixed-clock"; |
| 276 | #clock-cells = <0>; |
| 277 | clock-frequency = <148500000>; |
| 278 | }; |
| 279 | |
| 280 | gpioi2c1: i2c-8 { |
| 281 | #address-cells = <1>; |
| 282 | #size-cells = <0>; |
| 283 | compatible = "i2c-gpio"; |
| 284 | status = "disabled"; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 285 | scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 286 | sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 287 | i2c-gpio,delay-us = <5>; |
| 288 | }; |
| 289 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 290 | gpioi2c2: i2c-9 { |
| 291 | #address-cells = <1>; |
| 292 | #size-cells = <0>; |
| 293 | compatible = "i2c-gpio"; |
| 294 | status = "disabled"; |
| 295 | scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 296 | sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 297 | i2c-gpio,delay-us = <5>; |
| 298 | }; |
| 299 | |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 300 | /* |
| 301 | * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only. |
| 302 | * We use the I2C demuxer, so the desired IP core can be selected at runtime |
| 303 | * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0). |
| 304 | * Note: For testing the I2C slave feature, it is convenient to connect this |
| 305 | * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and |
| 306 | * instantiate the slave device at runtime according to the documentation. |
| 307 | * You can then communicate with the slave via IIC3. |
| 308 | * |
| 309 | * IIC0/I2C0 does not appear to support fallback to GPIO. |
| 310 | */ |
| 311 | i2cexio0: i2c-10 { |
| 312 | compatible = "i2c-demux-pinctrl"; |
| 313 | i2c-parent = <&iic0>, <&i2c0>; |
| 314 | i2c-bus-name = "i2c-exio0"; |
| 315 | #address-cells = <1>; |
| 316 | #size-cells = <0>; |
| 317 | }; |
| 318 | |
| 319 | /* |
| 320 | * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA). |
| 321 | * This is similar to the arangement described for i2cexio0 (above) |
| 322 | * with a fallback to GPIO also provided. |
| 323 | */ |
| 324 | i2cexio1: i2c-11 { |
| 325 | compatible = "i2c-demux-pinctrl"; |
| 326 | i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>; |
| 327 | i2c-bus-name = "i2c-exio1"; |
| 328 | #address-cells = <1>; |
| 329 | #size-cells = <0>; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 330 | }; |
| 331 | |
Marek Vasut | cd82e69 | 2020-04-04 15:21:26 +0200 | [diff] [blame] | 332 | /* |
| 333 | * IIC2 and I2C2 may be switched using pinmux. |
| 334 | * A fallback to GPIO is also provided. |
| 335 | */ |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 336 | i2chdmi: i2c-12 { |
| 337 | compatible = "i2c-demux-pinctrl"; |
| 338 | i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>; |
| 339 | i2c-bus-name = "i2c-hdmi"; |
| 340 | #address-cells = <1>; |
| 341 | #size-cells = <0>; |
| 342 | |
| 343 | ak4643: codec@12 { |
| 344 | compatible = "asahi-kasei,ak4643"; |
| 345 | #sound-dai-cells = <0>; |
| 346 | reg = <0x12>; |
| 347 | }; |
| 348 | |
| 349 | composite-in@20 { |
| 350 | compatible = "adi,adv7180"; |
| 351 | reg = <0x20>; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 352 | |
| 353 | port { |
| 354 | adv7180: endpoint { |
| 355 | bus-width = <8>; |
| 356 | remote-endpoint = <&vin1ep0>; |
| 357 | }; |
| 358 | }; |
| 359 | }; |
| 360 | |
| 361 | hdmi@39 { |
| 362 | compatible = "adi,adv7511w"; |
| 363 | reg = <0x39>; |
| 364 | interrupt-parent = <&gpio1>; |
| 365 | interrupts = <15 IRQ_TYPE_LEVEL_LOW>; |
| 366 | clocks = <&cec_clock>; |
| 367 | clock-names = "cec"; |
| 368 | |
| 369 | adi,input-depth = <8>; |
| 370 | adi,input-colorspace = "rgb"; |
| 371 | adi,input-clock = "1x"; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 372 | |
| 373 | ports { |
| 374 | #address-cells = <1>; |
| 375 | #size-cells = <0>; |
| 376 | |
| 377 | port@0 { |
| 378 | reg = <0>; |
| 379 | adv7511_in: endpoint { |
| 380 | remote-endpoint = <&lvds0_out>; |
| 381 | }; |
| 382 | }; |
| 383 | |
| 384 | port@1 { |
| 385 | reg = <1>; |
| 386 | adv7511_out: endpoint { |
| 387 | remote-endpoint = <&hdmi_con_out>; |
| 388 | }; |
| 389 | }; |
| 390 | }; |
| 391 | }; |
| 392 | |
| 393 | hdmi-in@4c { |
| 394 | compatible = "adi,adv7612"; |
| 395 | reg = <0x4c>; |
| 396 | interrupt-parent = <&gpio1>; |
| 397 | interrupts = <20 IRQ_TYPE_LEVEL_LOW>; |
| 398 | default-input = <0>; |
| 399 | |
| 400 | ports { |
| 401 | #address-cells = <1>; |
| 402 | #size-cells = <0>; |
| 403 | |
| 404 | port@0 { |
| 405 | reg = <0>; |
| 406 | adv7612_in: endpoint { |
| 407 | remote-endpoint = <&hdmi_con_in>; |
| 408 | }; |
| 409 | }; |
| 410 | |
| 411 | port@2 { |
| 412 | reg = <2>; |
| 413 | adv7612_out: endpoint { |
| 414 | remote-endpoint = <&vin0ep2>; |
| 415 | }; |
| 416 | }; |
| 417 | }; |
| 418 | }; |
| 419 | }; |
| 420 | |
| 421 | /* |
| 422 | * IIC3 and I2C3 may be switched using pinmux. |
| 423 | * IIC3/I2C3 does not appear to support fallback to GPIO. |
| 424 | */ |
| 425 | i2cpwr: i2c-13 { |
| 426 | compatible = "i2c-demux-pinctrl"; |
Marek Vasut | cd82e69 | 2020-04-04 15:21:26 +0200 | [diff] [blame] | 427 | pinctrl-names = "default"; |
| 428 | pinctrl-0 = <&pmic_irq_pins>; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 429 | i2c-parent = <&iic3>, <&i2c3>; |
| 430 | i2c-bus-name = "i2c-pwr"; |
| 431 | #address-cells = <1>; |
| 432 | #size-cells = <0>; |
| 433 | |
| 434 | pmic@58 { |
| 435 | compatible = "dlg,da9063"; |
| 436 | reg = <0x58>; |
| 437 | interrupt-parent = <&irqc0>; |
| 438 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 439 | interrupt-controller; |
| 440 | |
| 441 | rtc { |
| 442 | compatible = "dlg,da9063-rtc"; |
| 443 | }; |
| 444 | |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 445 | watchdog { |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 446 | compatible = "dlg,da9063-watchdog"; |
| 447 | }; |
| 448 | }; |
| 449 | |
| 450 | vdd_dvfs: regulator@68 { |
| 451 | compatible = "dlg,da9210"; |
| 452 | reg = <0x68>; |
| 453 | interrupt-parent = <&irqc0>; |
| 454 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 455 | |
| 456 | regulator-min-microvolt = <1000000>; |
| 457 | regulator-max-microvolt = <1000000>; |
| 458 | regulator-boot-on; |
| 459 | regulator-always-on; |
| 460 | }; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 461 | }; |
| 462 | }; |
| 463 | |
| 464 | &du { |
| 465 | pinctrl-0 = <&du_pins>; |
| 466 | pinctrl-names = "default"; |
| 467 | status = "okay"; |
| 468 | |
| 469 | clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>, |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 470 | <&x13_clk>, <&x2_clk>; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 471 | clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1"; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 472 | |
| 473 | ports { |
| 474 | port@0 { |
| 475 | endpoint { |
| 476 | remote-endpoint = <&adv7123_in>; |
| 477 | }; |
| 478 | }; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 479 | }; |
| 480 | }; |
| 481 | |
| 482 | &lvds0 { |
| 483 | status = "okay"; |
| 484 | |
| 485 | ports { |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 486 | port@1 { |
| 487 | endpoint { |
| 488 | remote-endpoint = <&adv7511_in>; |
| 489 | }; |
| 490 | }; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 491 | }; |
| 492 | }; |
| 493 | |
| 494 | &lvds1 { |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 495 | ports { |
| 496 | port@1 { |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 497 | lvds_connector: endpoint { |
| 498 | }; |
| 499 | }; |
| 500 | }; |
| 501 | }; |
| 502 | |
| 503 | &extal_clk { |
| 504 | clock-frequency = <20000000>; |
| 505 | }; |
| 506 | |
| 507 | &pfc { |
| 508 | pinctrl-0 = <&scif_clk_pins>; |
| 509 | pinctrl-names = "default"; |
| 510 | |
| 511 | du_pins: du { |
| 512 | groups = "du_rgb666", "du_sync_1", "du_clk_out_0"; |
| 513 | function = "du"; |
| 514 | }; |
| 515 | |
| 516 | scif0_pins: scif0 { |
| 517 | groups = "scif0_data"; |
| 518 | function = "scif0"; |
| 519 | }; |
| 520 | |
| 521 | scif_clk_pins: scif_clk { |
| 522 | groups = "scif_clk"; |
| 523 | function = "scif_clk"; |
| 524 | }; |
| 525 | |
| 526 | ether_pins: ether { |
| 527 | groups = "eth_link", "eth_mdio", "eth_rmii"; |
| 528 | function = "eth"; |
| 529 | }; |
| 530 | |
| 531 | phy1_pins: phy1 { |
| 532 | groups = "intc_irq0"; |
| 533 | function = "intc"; |
| 534 | }; |
| 535 | |
| 536 | scifa1_pins: scifa1 { |
| 537 | groups = "scifa1_data"; |
| 538 | function = "scifa1"; |
| 539 | }; |
| 540 | |
| 541 | sdhi0_pins: sd0 { |
| 542 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 543 | function = "sdhi0"; |
| 544 | power-source = <3300>; |
| 545 | }; |
| 546 | |
| 547 | sdhi0_pins_uhs: sd0_uhs { |
| 548 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 549 | function = "sdhi0"; |
| 550 | power-source = <1800>; |
| 551 | }; |
| 552 | |
| 553 | sdhi2_pins: sd2 { |
| 554 | groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 555 | function = "sdhi2"; |
| 556 | power-source = <3300>; |
| 557 | }; |
| 558 | |
| 559 | sdhi2_pins_uhs: sd2_uhs { |
| 560 | groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 561 | function = "sdhi2"; |
| 562 | power-source = <1800>; |
| 563 | }; |
| 564 | |
| 565 | mmc1_pins: mmc1 { |
| 566 | groups = "mmc1_data8", "mmc1_ctrl"; |
| 567 | function = "mmc1"; |
| 568 | }; |
| 569 | |
| 570 | qspi_pins: qspi { |
| 571 | groups = "qspi_ctrl", "qspi_data4"; |
| 572 | function = "qspi"; |
| 573 | }; |
| 574 | |
| 575 | msiof1_pins: msiof1 { |
| 576 | groups = "msiof1_clk", "msiof1_sync", "msiof1_rx", |
| 577 | "msiof1_tx"; |
| 578 | function = "msiof1"; |
| 579 | }; |
| 580 | |
| 581 | i2c0_pins: i2c0 { |
| 582 | groups = "i2c0"; |
| 583 | function = "i2c0"; |
| 584 | }; |
| 585 | |
| 586 | iic0_pins: iic0 { |
| 587 | groups = "iic0"; |
| 588 | function = "iic0"; |
| 589 | }; |
| 590 | |
| 591 | i2c1_pins: i2c1 { |
| 592 | groups = "i2c1"; |
| 593 | function = "i2c1"; |
| 594 | }; |
| 595 | |
| 596 | iic1_pins: iic1 { |
| 597 | groups = "iic1"; |
| 598 | function = "iic1"; |
| 599 | }; |
| 600 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 601 | i2c2_pins: i2c2 { |
| 602 | groups = "i2c2"; |
| 603 | function = "i2c2"; |
| 604 | }; |
| 605 | |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 606 | iic2_pins: iic2 { |
| 607 | groups = "iic2"; |
| 608 | function = "iic2"; |
| 609 | }; |
| 610 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 611 | i2c3_pins: i2c3 { |
| 612 | groups = "i2c3"; |
| 613 | function = "i2c3"; |
| 614 | }; |
| 615 | |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 616 | iic3_pins: iic3 { |
| 617 | groups = "iic3"; |
| 618 | function = "iic3"; |
| 619 | }; |
| 620 | |
Marek Vasut | cd82e69 | 2020-04-04 15:21:26 +0200 | [diff] [blame] | 621 | pmic_irq_pins: pmicirq { |
| 622 | groups = "intc_irq2"; |
| 623 | function = "intc"; |
| 624 | }; |
| 625 | |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 626 | hsusb_pins: hsusb { |
| 627 | groups = "usb0_ovc_vbus"; |
| 628 | function = "usb0"; |
| 629 | }; |
| 630 | |
| 631 | usb0_pins: usb0 { |
| 632 | groups = "usb0"; |
| 633 | function = "usb0"; |
| 634 | }; |
| 635 | |
| 636 | usb1_pins: usb1 { |
| 637 | groups = "usb1"; |
| 638 | function = "usb1"; |
| 639 | }; |
| 640 | |
| 641 | usb2_pins: usb2 { |
| 642 | groups = "usb2"; |
| 643 | function = "usb2"; |
| 644 | }; |
| 645 | |
| 646 | vin0_pins: vin0 { |
| 647 | groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; |
| 648 | function = "vin0"; |
| 649 | }; |
| 650 | |
| 651 | vin1_pins: vin1 { |
| 652 | groups = "vin1_data8", "vin1_clk"; |
| 653 | function = "vin1"; |
| 654 | }; |
| 655 | |
| 656 | sound_pins: sound { |
| 657 | groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; |
| 658 | function = "ssi"; |
| 659 | }; |
| 660 | |
| 661 | sound_clk_pins: sound_clk { |
| 662 | groups = "audio_clk_a"; |
| 663 | function = "audio_clk"; |
| 664 | }; |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 665 | |
| 666 | keyboard_pins: keyboard { |
| 667 | pins = "GP_1_14", "GP_1_24", "GP_1_26", "GP_1_28"; |
| 668 | bias-pull-up; |
| 669 | }; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 670 | }; |
| 671 | |
| 672 | ðer { |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 673 | pinctrl-0 = <ðer_pins>, <&phy1_pins>; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 674 | pinctrl-names = "default"; |
| 675 | |
| 676 | phy-handle = <&phy1>; |
| 677 | renesas,ether-link-active-low; |
| 678 | status = "okay"; |
| 679 | |
| 680 | phy1: ethernet-phy@1 { |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 681 | compatible = "ethernet-phy-id0022.1537", |
| 682 | "ethernet-phy-ieee802.3-c22"; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 683 | reg = <1>; |
| 684 | interrupt-parent = <&irqc0>; |
| 685 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 686 | micrel,led-mode = <1>; |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 687 | reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 688 | }; |
| 689 | }; |
| 690 | |
| 691 | &cmt0 { |
| 692 | status = "okay"; |
| 693 | }; |
| 694 | |
| 695 | &mmcif1 { |
| 696 | pinctrl-0 = <&mmc1_pins>; |
| 697 | pinctrl-names = "default"; |
| 698 | |
| 699 | vmmc-supply = <&fixedregulator3v3>; |
| 700 | bus-width = <8>; |
| 701 | non-removable; |
| 702 | status = "okay"; |
| 703 | }; |
| 704 | |
| 705 | &sata1 { |
| 706 | status = "okay"; |
| 707 | }; |
| 708 | |
| 709 | &qspi { |
| 710 | pinctrl-0 = <&qspi_pins>; |
| 711 | pinctrl-names = "default"; |
| 712 | |
| 713 | status = "okay"; |
| 714 | |
| 715 | flash: flash@0 { |
| 716 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; |
| 717 | reg = <0>; |
| 718 | spi-max-frequency = <30000000>; |
| 719 | spi-tx-bus-width = <4>; |
| 720 | spi-rx-bus-width = <4>; |
| 721 | spi-cpha; |
| 722 | spi-cpol; |
| 723 | m25p,fast-read; |
| 724 | |
| 725 | partitions { |
| 726 | compatible = "fixed-partitions"; |
| 727 | #address-cells = <1>; |
| 728 | #size-cells = <1>; |
| 729 | |
| 730 | partition@0 { |
| 731 | label = "loader"; |
| 732 | reg = <0x00000000 0x00040000>; |
| 733 | read-only; |
| 734 | }; |
| 735 | partition@40000 { |
| 736 | label = "user"; |
| 737 | reg = <0x00040000 0x00400000>; |
| 738 | read-only; |
| 739 | }; |
| 740 | partition@440000 { |
| 741 | label = "flash"; |
| 742 | reg = <0x00440000 0x03bc0000>; |
| 743 | }; |
| 744 | }; |
| 745 | }; |
| 746 | }; |
| 747 | |
| 748 | &scif0 { |
| 749 | pinctrl-0 = <&scif0_pins>; |
| 750 | pinctrl-names = "default"; |
| 751 | |
| 752 | status = "okay"; |
| 753 | }; |
| 754 | |
| 755 | &scifa1 { |
| 756 | pinctrl-0 = <&scifa1_pins>; |
| 757 | pinctrl-names = "default"; |
| 758 | |
| 759 | status = "okay"; |
| 760 | }; |
| 761 | |
| 762 | &scif_clk { |
| 763 | clock-frequency = <14745600>; |
| 764 | }; |
| 765 | |
| 766 | &msiof1 { |
| 767 | pinctrl-0 = <&msiof1_pins>; |
| 768 | pinctrl-names = "default"; |
| 769 | |
| 770 | status = "okay"; |
| 771 | |
| 772 | pmic: pmic@0 { |
| 773 | compatible = "renesas,r2a11302ft"; |
| 774 | reg = <0>; |
| 775 | spi-max-frequency = <6000000>; |
| 776 | spi-cpol; |
| 777 | spi-cpha; |
| 778 | }; |
| 779 | }; |
| 780 | |
| 781 | &sdhi0 { |
| 782 | pinctrl-0 = <&sdhi0_pins>; |
| 783 | pinctrl-1 = <&sdhi0_pins_uhs>; |
| 784 | pinctrl-names = "default", "state_uhs"; |
| 785 | |
| 786 | vmmc-supply = <&vcc_sdhi0>; |
| 787 | vqmmc-supply = <&vccq_sdhi0>; |
| 788 | cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; |
| 789 | sd-uhs-sdr50; |
| 790 | sd-uhs-sdr104; |
| 791 | status = "okay"; |
| 792 | }; |
| 793 | |
| 794 | &sdhi2 { |
| 795 | pinctrl-0 = <&sdhi2_pins>; |
| 796 | pinctrl-1 = <&sdhi2_pins_uhs>; |
| 797 | pinctrl-names = "default", "state_uhs"; |
| 798 | |
| 799 | vmmc-supply = <&vcc_sdhi2>; |
| 800 | vqmmc-supply = <&vccq_sdhi2>; |
| 801 | cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; |
| 802 | sd-uhs-sdr50; |
| 803 | status = "okay"; |
| 804 | }; |
| 805 | |
| 806 | &cpu0 { |
| 807 | cpu0-supply = <&vdd_dvfs>; |
| 808 | }; |
| 809 | |
| 810 | &i2c0 { |
| 811 | pinctrl-0 = <&i2c0_pins>; |
| 812 | pinctrl-names = "i2c-exio0"; |
| 813 | }; |
| 814 | |
| 815 | &iic0 { |
| 816 | pinctrl-0 = <&iic0_pins>; |
| 817 | pinctrl-names = "i2c-exio0"; |
| 818 | }; |
| 819 | |
| 820 | &i2c1 { |
| 821 | pinctrl-0 = <&i2c1_pins>; |
| 822 | pinctrl-names = "i2c-exio1"; |
| 823 | }; |
| 824 | |
| 825 | &iic1 { |
| 826 | pinctrl-0 = <&iic1_pins>; |
| 827 | pinctrl-names = "i2c-exio1"; |
| 828 | }; |
| 829 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 830 | &i2c2 { |
| 831 | pinctrl-0 = <&i2c2_pins>; |
| 832 | pinctrl-names = "i2c-hdmi"; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 833 | |
| 834 | clock-frequency = <100000>; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 835 | }; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 836 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 837 | &iic2 { |
| 838 | pinctrl-0 = <&iic2_pins>; |
| 839 | pinctrl-names = "i2c-hdmi"; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 840 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 841 | clock-frequency = <100000>; |
| 842 | }; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 843 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 844 | &i2c3 { |
| 845 | pinctrl-0 = <&i2c3_pins>; |
| 846 | pinctrl-names = "i2c-pwr"; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 847 | }; |
| 848 | |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 849 | &iic3 { |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 850 | pinctrl-0 = <&iic3_pins>; |
Marek Vasut | 047b194 | 2018-06-06 19:58:17 +0200 | [diff] [blame] | 851 | pinctrl-names = "i2c-pwr"; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 852 | }; |
| 853 | |
| 854 | &pci0 { |
| 855 | status = "okay"; |
| 856 | pinctrl-0 = <&usb0_pins>; |
| 857 | pinctrl-names = "default"; |
| 858 | }; |
| 859 | |
| 860 | &pci1 { |
| 861 | status = "okay"; |
| 862 | pinctrl-0 = <&usb1_pins>; |
| 863 | pinctrl-names = "default"; |
| 864 | }; |
| 865 | |
| 866 | &xhci { |
| 867 | status = "okay"; |
| 868 | pinctrl-0 = <&usb2_pins>; |
| 869 | pinctrl-names = "default"; |
| 870 | }; |
| 871 | |
| 872 | &pci2 { |
| 873 | status = "okay"; |
| 874 | pinctrl-0 = <&usb2_pins>; |
| 875 | pinctrl-names = "default"; |
| 876 | }; |
| 877 | |
| 878 | &hsusb { |
| 879 | status = "okay"; |
| 880 | pinctrl-0 = <&hsusb_pins>; |
| 881 | pinctrl-names = "default"; |
| 882 | renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>; |
| 883 | }; |
| 884 | |
| 885 | &usbphy { |
| 886 | status = "okay"; |
| 887 | }; |
| 888 | |
| 889 | /* HDMI video input */ |
| 890 | &vin0 { |
| 891 | pinctrl-0 = <&vin0_pins>; |
| 892 | pinctrl-names = "default"; |
| 893 | |
| 894 | status = "okay"; |
| 895 | |
| 896 | port { |
| 897 | vin0ep2: endpoint { |
| 898 | remote-endpoint = <&adv7612_out>; |
| 899 | bus-width = <24>; |
| 900 | hsync-active = <0>; |
| 901 | vsync-active = <0>; |
| 902 | pclk-sample = <1>; |
| 903 | data-active = <1>; |
| 904 | }; |
| 905 | }; |
| 906 | }; |
| 907 | |
| 908 | /* composite video input */ |
| 909 | &vin1 { |
| 910 | pinctrl-0 = <&vin1_pins>; |
| 911 | pinctrl-names = "default"; |
| 912 | |
| 913 | status = "okay"; |
| 914 | |
| 915 | port { |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 916 | vin1ep0: endpoint { |
| 917 | remote-endpoint = <&adv7180>; |
| 918 | bus-width = <8>; |
| 919 | }; |
| 920 | }; |
| 921 | }; |
| 922 | |
| 923 | &rcar_sound { |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 924 | pinctrl-0 = <&sound_pins>, <&sound_clk_pins>; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 925 | pinctrl-names = "default"; |
| 926 | |
| 927 | /* Single DAI */ |
| 928 | #sound-dai-cells = <0>; |
| 929 | |
| 930 | status = "okay"; |
| 931 | |
| 932 | rcar_sound,dai { |
| 933 | dai0 { |
Marek Vasut | 2a8450f | 2023-01-26 21:01:32 +0100 | [diff] [blame] | 934 | playback = <&ssi0>, <&src2>, <&dvc0>; |
| 935 | capture = <&ssi1>, <&src3>, <&dvc1>; |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 936 | }; |
| 937 | }; |
| 938 | }; |
| 939 | |
Marek Vasut | cac4635 | 2018-12-03 21:39:48 +0100 | [diff] [blame] | 940 | &rwdt { |
| 941 | timeout-sec = <60>; |
| 942 | status = "okay"; |
| 943 | }; |
| 944 | |
Marek Vasut | 5348576 | 2018-01-07 20:17:23 +0100 | [diff] [blame] | 945 | &ssi1 { |
| 946 | shared-pin; |
| 947 | }; |