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