Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the Lager board |
| 3 | * |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 4 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
| 5 | * Copyright (C) 2014 Cogent Embedded, Inc. |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 6 | * |
| 7 | * This file is licensed under the terms of the GNU General Public License |
| 8 | * version 2. This program is licensed "as is" without any warranty of any |
| 9 | * kind, whether express or implied. |
| 10 | */ |
| 11 | |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 12 | /* |
| 13 | * SSI-AK4643 |
| 14 | * |
| 15 | * SW1: 1: AK4643 |
| 16 | * 2: CN22 |
| 17 | * 3: ADV7511 |
| 18 | * |
| 19 | * This command is required when Playback/Capture |
| 20 | * |
| 21 | * amixer set "LINEOUT Mixer DACL" on |
Kuninori Morimoto | e110c54 | 2014-11-03 17:48:38 -0800 | [diff] [blame] | 22 | * amixer set "DVC Out" 100% |
| 23 | * amixer set "DVC In" 100% |
| 24 | * |
| 25 | * You can use Mute |
| 26 | * |
| 27 | * amixer set "DVC Out Mute" on |
| 28 | * amixer set "DVC In Mute" on |
Kuninori Morimoto | bd2e4a6 | 2014-11-11 04:36:47 +0000 | [diff] [blame] | 29 | * |
| 30 | * You can use Volume Ramp |
| 31 | * |
| 32 | * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" |
| 33 | * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" |
| 34 | * amixer set "DVC Out Ramp" on |
| 35 | * aplay xxx.wav & |
| 36 | * amixer set "DVC Out" 80% // Volume Down |
| 37 | * amixer set "DVC Out" 100% // Volume Up |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 38 | */ |
| 39 | |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 40 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 41 | #include "r8a7790.dtsi" |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 42 | #include <dt-bindings/gpio/gpio.h> |
Magnus Damm | f7dcd38 | 2014-03-18 21:57:48 +0900 | [diff] [blame] | 43 | #include <dt-bindings/input/input.h> |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 44 | |
| 45 | / { |
| 46 | model = "Lager"; |
| 47 | compatible = "renesas,lager", "renesas,r8a7790"; |
| 48 | |
Laurent Pinchart | 4e9c487 | 2014-04-30 02:31:45 +0200 | [diff] [blame] | 49 | aliases { |
Ulrich Hecht | 430d7ba | 2015-11-13 17:22:23 +0100 | [diff] [blame] | 50 | serial0 = &scif0; |
Laurent Pinchart | 78c11ec | 2013-10-18 16:00:00 +0200 | [diff] [blame] | 51 | serial1 = &scifa1; |
Laurent Pinchart | 4e9c487 | 2014-04-30 02:31:45 +0200 | [diff] [blame] | 52 | }; |
| 53 | |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 54 | chosen { |
Geert Uytterhoeven | 569dd56 | 2014-12-02 18:39:48 +0100 | [diff] [blame] | 55 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
Geert Uytterhoeven | 57d19f8 | 2015-12-08 18:54:15 +0100 | [diff] [blame] | 56 | stdout-path = "serial0:115200n8"; |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 57 | }; |
| 58 | |
| 59 | memory@40000000 { |
| 60 | device_type = "memory"; |
Magnus Damm | 7b16c61 | 2014-06-06 15:40:26 +0900 | [diff] [blame] | 61 | reg = <0 0x40000000 0 0x40000000>; |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 62 | }; |
| 63 | |
Simon Horman | 126f998 | 2014-09-03 09:49:01 +0900 | [diff] [blame] | 64 | memory@140000000 { |
Magnus Damm | 62bc32a | 2013-10-31 12:21:41 +0900 | [diff] [blame] | 65 | device_type = "memory"; |
Magnus Damm | 7b16c61 | 2014-06-06 15:40:26 +0900 | [diff] [blame] | 66 | reg = <1 0x40000000 0 0xc0000000>; |
Magnus Damm | 62bc32a | 2013-10-31 12:21:41 +0900 | [diff] [blame] | 67 | }; |
| 68 | |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 69 | lbsc { |
| 70 | #address-cells = <1>; |
| 71 | #size-cells = <1>; |
| 72 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 73 | |
Simon Horman | 54caf68 | 2014-11-12 17:59:35 +0900 | [diff] [blame] | 74 | keyboard { |
Magnus Damm | f7dcd38 | 2014-03-18 21:57:48 +0900 | [diff] [blame] | 75 | compatible = "gpio-keys"; |
| 76 | |
| 77 | button@1 { |
| 78 | linux,code = <KEY_1>; |
| 79 | label = "SW2-1"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 80 | wakeup-source; |
Magnus Damm | f7dcd38 | 2014-03-18 21:57:48 +0900 | [diff] [blame] | 81 | debounce-interval = <20>; |
| 82 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
| 83 | }; |
| 84 | button@2 { |
| 85 | linux,code = <KEY_2>; |
| 86 | label = "SW2-2"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 87 | wakeup-source; |
Magnus Damm | f7dcd38 | 2014-03-18 21:57:48 +0900 | [diff] [blame] | 88 | debounce-interval = <20>; |
| 89 | gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; |
| 90 | }; |
| 91 | button@3 { |
| 92 | linux,code = <KEY_3>; |
| 93 | label = "SW2-3"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 94 | wakeup-source; |
Magnus Damm | f7dcd38 | 2014-03-18 21:57:48 +0900 | [diff] [blame] | 95 | debounce-interval = <20>; |
| 96 | gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; |
| 97 | }; |
| 98 | button@4 { |
| 99 | linux,code = <KEY_4>; |
| 100 | label = "SW2-4"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 101 | wakeup-source; |
Magnus Damm | f7dcd38 | 2014-03-18 21:57:48 +0900 | [diff] [blame] | 102 | debounce-interval = <20>; |
| 103 | gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; |
| 104 | }; |
| 105 | }; |
| 106 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 107 | leds { |
| 108 | compatible = "gpio-leds"; |
| 109 | led6 { |
| 110 | gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; |
| 111 | }; |
| 112 | led7 { |
| 113 | gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; |
| 114 | }; |
| 115 | led8 { |
| 116 | gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; |
| 117 | }; |
| 118 | }; |
| 119 | |
| 120 | fixedregulator3v3: fixedregulator@0 { |
| 121 | compatible = "regulator-fixed"; |
| 122 | regulator-name = "fixed-3.3V"; |
| 123 | regulator-min-microvolt = <3300000>; |
| 124 | regulator-max-microvolt = <3300000>; |
| 125 | regulator-boot-on; |
| 126 | regulator-always-on; |
| 127 | }; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 128 | |
| 129 | vcc_sdhi0: regulator@1 { |
| 130 | compatible = "regulator-fixed"; |
| 131 | |
| 132 | regulator-name = "SDHI0 Vcc"; |
| 133 | regulator-min-microvolt = <3300000>; |
| 134 | regulator-max-microvolt = <3300000>; |
| 135 | |
| 136 | gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>; |
| 137 | enable-active-high; |
| 138 | }; |
| 139 | |
| 140 | vccq_sdhi0: regulator@2 { |
| 141 | compatible = "regulator-gpio"; |
| 142 | |
| 143 | regulator-name = "SDHI0 VccQ"; |
| 144 | regulator-min-microvolt = <1800000>; |
| 145 | regulator-max-microvolt = <3300000>; |
| 146 | |
| 147 | gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; |
| 148 | gpios-states = <1>; |
| 149 | states = <3300000 1 |
| 150 | 1800000 0>; |
| 151 | }; |
| 152 | |
| 153 | vcc_sdhi2: regulator@3 { |
| 154 | compatible = "regulator-fixed"; |
| 155 | |
| 156 | regulator-name = "SDHI2 Vcc"; |
| 157 | regulator-min-microvolt = <3300000>; |
| 158 | regulator-max-microvolt = <3300000>; |
| 159 | |
| 160 | gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>; |
| 161 | enable-active-high; |
| 162 | }; |
| 163 | |
| 164 | vccq_sdhi2: regulator@4 { |
| 165 | compatible = "regulator-gpio"; |
| 166 | |
| 167 | regulator-name = "SDHI2 VccQ"; |
| 168 | regulator-min-microvolt = <1800000>; |
| 169 | regulator-max-microvolt = <3300000>; |
| 170 | |
| 171 | gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; |
| 172 | gpios-states = <1>; |
| 173 | states = <3300000 1 |
| 174 | 1800000 0>; |
| 175 | }; |
Laurent Pinchart | 3edd18f | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 176 | |
Kuninori Morimoto | 6bc651a | 2015-08-20 03:09:52 +0000 | [diff] [blame] | 177 | audio_clock: clock { |
| 178 | compatible = "fixed-clock"; |
| 179 | #clock-cells = <0>; |
| 180 | clock-frequency = <11289600>; |
| 181 | clock-output-names = "audio_clock"; |
| 182 | }; |
| 183 | |
Kuninori Morimoto | 30be0ba | 2015-07-14 04:56:10 +0000 | [diff] [blame] | 184 | rsnd_ak4643: sound { |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 185 | compatible = "simple-audio-card"; |
| 186 | |
| 187 | simple-audio-card,format = "left_j"; |
| 188 | simple-audio-card,bitclock-master = <&sndcodec>; |
| 189 | simple-audio-card,frame-master = <&sndcodec>; |
| 190 | |
| 191 | sndcpu: simple-audio-card,cpu { |
| 192 | sound-dai = <&rcar_sound>; |
| 193 | }; |
| 194 | |
| 195 | sndcodec: simple-audio-card,codec { |
| 196 | sound-dai = <&ak4643>; |
Kuninori Morimoto | 6bc651a | 2015-08-20 03:09:52 +0000 | [diff] [blame] | 197 | clocks = <&audio_clock>; |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 198 | }; |
| 199 | }; |
| 200 | |
Laurent Pinchart | 3edd18f | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 201 | vga-encoder { |
| 202 | compatible = "adi,adv7123"; |
| 203 | |
| 204 | ports { |
| 205 | #address-cells = <1>; |
| 206 | #size-cells = <0>; |
| 207 | |
| 208 | port@0 { |
| 209 | reg = <0>; |
| 210 | adv7123_in: endpoint { |
| 211 | remote-endpoint = <&du_out_rgb>; |
| 212 | }; |
| 213 | }; |
| 214 | port@1 { |
| 215 | reg = <1>; |
| 216 | adv7123_out: endpoint { |
| 217 | remote-endpoint = <&vga_in>; |
| 218 | }; |
| 219 | }; |
| 220 | }; |
| 221 | }; |
| 222 | |
| 223 | vga { |
| 224 | compatible = "vga-connector"; |
| 225 | |
| 226 | port { |
| 227 | vga_in: endpoint { |
| 228 | remote-endpoint = <&adv7123_out>; |
| 229 | }; |
| 230 | }; |
| 231 | }; |
Laurent Pinchart | fd25cdd | 2014-12-11 01:42:11 +0200 | [diff] [blame] | 232 | |
| 233 | hdmi-out { |
| 234 | compatible = "hdmi-connector"; |
| 235 | type = "a"; |
| 236 | |
| 237 | port { |
| 238 | hdmi_con: endpoint { |
| 239 | remote-endpoint = <&adv7511_out>; |
| 240 | }; |
| 241 | }; |
| 242 | }; |
Laurent Pinchart | 26c00ab | 2015-02-26 11:21:22 +0200 | [diff] [blame] | 243 | |
| 244 | x2_clk: x2-clock { |
| 245 | compatible = "fixed-clock"; |
| 246 | #clock-cells = <0>; |
| 247 | clock-frequency = <148500000>; |
| 248 | }; |
| 249 | |
| 250 | x13_clk: x13-clock { |
| 251 | compatible = "fixed-clock"; |
| 252 | #clock-cells = <0>; |
| 253 | clock-frequency = <148500000>; |
| 254 | }; |
Laurent Pinchart | 3edd18f | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 255 | }; |
| 256 | |
| 257 | &du { |
| 258 | pinctrl-0 = <&du_pins>; |
| 259 | pinctrl-names = "default"; |
| 260 | status = "okay"; |
| 261 | |
Laurent Pinchart | 26c00ab | 2015-02-26 11:21:22 +0200 | [diff] [blame] | 262 | clocks = <&mstp7_clks R8A7790_CLK_DU0>, |
| 263 | <&mstp7_clks R8A7790_CLK_DU1>, |
| 264 | <&mstp7_clks R8A7790_CLK_DU2>, |
| 265 | <&mstp7_clks R8A7790_CLK_LVDS0>, |
| 266 | <&mstp7_clks R8A7790_CLK_LVDS1>, |
| 267 | <&x13_clk>, <&x2_clk>; |
| 268 | clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1", |
| 269 | "dclkin.0", "dclkin.1"; |
| 270 | |
Laurent Pinchart | 3edd18f | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 271 | ports { |
| 272 | port@0 { |
| 273 | endpoint { |
| 274 | remote-endpoint = <&adv7123_in>; |
| 275 | }; |
| 276 | }; |
Laurent Pinchart | fd25cdd | 2014-12-11 01:42:11 +0200 | [diff] [blame] | 277 | port@1 { |
| 278 | endpoint { |
| 279 | remote-endpoint = <&adv7511_in>; |
| 280 | }; |
| 281 | }; |
Laurent Pinchart | 3edd18f | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 282 | port@2 { |
| 283 | lvds_connector: endpoint { |
| 284 | }; |
| 285 | }; |
| 286 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 287 | }; |
| 288 | |
Laurent Pinchart | 62e4305 | 2013-12-11 15:13:49 +0100 | [diff] [blame] | 289 | &extal_clk { |
| 290 | clock-frequency = <20000000>; |
| 291 | }; |
| 292 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 293 | &pfc { |
Laurent Pinchart | 3024f50 | 2014-02-16 22:31:59 +0100 | [diff] [blame] | 294 | du_pins: du { |
| 295 | renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0"; |
| 296 | renesas,function = "du"; |
| 297 | }; |
| 298 | |
Ulrich Hecht | 430d7ba | 2015-11-13 17:22:23 +0100 | [diff] [blame] | 299 | scif0_pins: serial0 { |
| 300 | renesas,groups = "scif0_data"; |
| 301 | renesas,function = "scif0"; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 302 | }; |
| 303 | |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 304 | ether_pins: ether { |
| 305 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; |
| 306 | renesas,function = "eth"; |
| 307 | }; |
| 308 | |
| 309 | phy1_pins: phy1 { |
| 310 | renesas,groups = "intc_irq0"; |
| 311 | renesas,function = "intc"; |
| 312 | }; |
| 313 | |
Wolfram Sang | 7c05589 | 2014-09-16 18:10:37 +0200 | [diff] [blame] | 314 | scifa1_pins: serial1 { |
| 315 | renesas,groups = "scifa1_data"; |
| 316 | renesas,function = "scifa1"; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 317 | }; |
| 318 | |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 319 | sdhi0_pins: sd0 { |
Rob Taylor | b08eed0 | 2014-04-07 20:16:52 +0100 | [diff] [blame] | 320 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 321 | renesas,function = "sdhi0"; |
| 322 | }; |
| 323 | |
| 324 | sdhi2_pins: sd2 { |
Rob Taylor | b08eed0 | 2014-04-07 20:16:52 +0100 | [diff] [blame] | 325 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 326 | renesas,function = "sdhi2"; |
| 327 | }; |
| 328 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 329 | mmc1_pins: mmc1 { |
| 330 | renesas,groups = "mmc1_data8", "mmc1_ctrl"; |
| 331 | renesas,function = "mmc1"; |
| 332 | }; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 333 | |
Geert Uytterhoeven | fad6d45 | 2014-02-25 11:30:13 +0100 | [diff] [blame] | 334 | qspi_pins: spi0 { |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 335 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
| 336 | renesas,function = "qspi"; |
| 337 | }; |
Geert Uytterhoeven | b0403b9 | 2014-02-25 11:30:17 +0100 | [diff] [blame] | 338 | |
| 339 | msiof1_pins: spi2 { |
| 340 | renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx", |
| 341 | "msiof1_tx"; |
| 342 | renesas,function = "msiof1"; |
| 343 | }; |
Benoit Cousson | 05f72e0 | 2014-06-03 21:02:12 +0900 | [diff] [blame] | 344 | |
Wolfram Sang | 535118c | 2015-09-09 19:48:19 +0200 | [diff] [blame] | 345 | iic0_pins: iic0 { |
| 346 | renesas,groups = "iic0"; |
| 347 | renesas,function = "iic0"; |
| 348 | }; |
| 349 | |
Wolfram Sang | cb9a2b1 | 2014-07-10 12:50:56 +0200 | [diff] [blame] | 350 | iic1_pins: iic1 { |
| 351 | renesas,groups = "iic1"; |
| 352 | renesas,function = "iic1"; |
Simon Horman | d90bf60 | 2014-06-06 16:11:00 +0900 | [diff] [blame] | 353 | }; |
| 354 | |
Wolfram Sang | cb9a2b1 | 2014-07-10 12:50:56 +0200 | [diff] [blame] | 355 | iic2_pins: iic2 { |
| 356 | renesas,groups = "iic2"; |
| 357 | renesas,function = "iic2"; |
Simon Horman | d90bf60 | 2014-06-06 16:11:00 +0900 | [diff] [blame] | 358 | }; |
| 359 | |
Khiem Nguyen | 5179ffd | 2014-07-04 09:19:51 +0900 | [diff] [blame] | 360 | iic3_pins: iic3 { |
| 361 | renesas,groups = "iic3"; |
| 362 | renesas,function = "iic3"; |
Benoit Cousson | 05f72e0 | 2014-06-03 21:02:12 +0900 | [diff] [blame] | 363 | }; |
Ben Dooks | d858466 | 2014-06-24 22:02:21 +0400 | [diff] [blame] | 364 | |
Yoshihiro Shimoda | e03074a | 2014-10-24 19:44:34 +0900 | [diff] [blame] | 365 | hsusb_pins: hsusb { |
| 366 | renesas,groups = "usb0_ovc_vbus"; |
| 367 | renesas,function = "usb0"; |
| 368 | }; |
| 369 | |
Ben Dooks | d858466 | 2014-06-24 22:02:21 +0400 | [diff] [blame] | 370 | usb0_pins: usb0 { |
| 371 | renesas,groups = "usb0"; |
| 372 | renesas,function = "usb0"; |
| 373 | }; |
| 374 | |
| 375 | usb1_pins: usb1 { |
| 376 | renesas,groups = "usb1"; |
| 377 | renesas,function = "usb1"; |
| 378 | }; |
| 379 | |
| 380 | usb2_pins: usb2 { |
| 381 | renesas,groups = "usb2"; |
| 382 | renesas,function = "usb2"; |
| 383 | }; |
Ben Dooks | d594c97 | 2014-08-13 00:18:26 +0400 | [diff] [blame] | 384 | |
| 385 | vin1_pins: vin { |
| 386 | renesas,groups = "vin1_data8", "vin1_clk"; |
| 387 | renesas,function = "vin1"; |
| 388 | }; |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 389 | |
| 390 | sound_pins: sound { |
| 391 | renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; |
| 392 | renesas,function = "ssi"; |
| 393 | }; |
| 394 | |
| 395 | sound_clk_pins: sound_clk { |
| 396 | renesas,groups = "audio_clk_a"; |
| 397 | renesas,function = "audio_clk"; |
| 398 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 399 | }; |
| 400 | |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 401 | ðer { |
| 402 | pinctrl-0 = <ðer_pins &phy1_pins>; |
| 403 | pinctrl-names = "default"; |
| 404 | |
| 405 | phy-handle = <&phy1>; |
| 406 | renesas,ether-link-active-low; |
Geert Uytterhoeven | fd7a8cb | 2014-12-09 12:25:01 +0100 | [diff] [blame] | 407 | status = "okay"; |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 408 | |
| 409 | phy1: ethernet-phy@1 { |
| 410 | reg = <1>; |
| 411 | interrupt-parent = <&irqc0>; |
| 412 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
Simon Horman | 1c47a6a | 2014-04-08 09:21:35 +0900 | [diff] [blame] | 413 | micrel,led-mode = <1>; |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 414 | }; |
| 415 | }; |
| 416 | |
Laurent Pinchart | 247fd5e | 2014-07-09 15:12:41 +0200 | [diff] [blame] | 417 | &cmt0 { |
Geert Uytterhoeven | fd7a8cb | 2014-12-09 12:25:01 +0100 | [diff] [blame] | 418 | status = "okay"; |
Laurent Pinchart | 247fd5e | 2014-07-09 15:12:41 +0200 | [diff] [blame] | 419 | }; |
| 420 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 421 | &mmcif1 { |
| 422 | pinctrl-0 = <&mmc1_pins>; |
| 423 | pinctrl-names = "default"; |
| 424 | |
| 425 | vmmc-supply = <&fixedregulator3v3>; |
| 426 | bus-width = <8>; |
| 427 | non-removable; |
| 428 | status = "okay"; |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 429 | }; |
Valentine Barshak | c6181b9 | 2014-01-14 21:05:31 +0400 | [diff] [blame] | 430 | |
| 431 | &sata1 { |
| 432 | status = "okay"; |
| 433 | }; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 434 | |
Geert Uytterhoeven | fad6d45 | 2014-02-25 11:30:13 +0100 | [diff] [blame] | 435 | &qspi { |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 436 | pinctrl-0 = <&qspi_pins>; |
| 437 | pinctrl-names = "default"; |
| 438 | |
| 439 | status = "okay"; |
| 440 | |
| 441 | flash: flash@0 { |
Geert Uytterhoeven | 755185b | 2015-05-20 20:16:52 +0200 | [diff] [blame] | 442 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 443 | reg = <0>; |
| 444 | spi-max-frequency = <30000000>; |
Geert Uytterhoeven | 9909d2c | 2014-04-14 19:36:00 +0200 | [diff] [blame] | 445 | spi-tx-bus-width = <4>; |
| 446 | spi-rx-bus-width = <4>; |
Hisashi Nakamura | cbf4116 | 2014-12-10 11:30:27 +0900 | [diff] [blame] | 447 | spi-cpha; |
| 448 | spi-cpol; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 449 | m25p,fast-read; |
| 450 | |
Geert Uytterhoeven | f58bac7 | 2015-11-20 11:38:53 -0800 | [diff] [blame] | 451 | partitions { |
Geert Uytterhoeven | b88ddbd | 2015-12-21 11:33:48 +0100 | [diff] [blame] | 452 | compatible = "fixed-partitions"; |
Geert Uytterhoeven | f58bac7 | 2015-11-20 11:38:53 -0800 | [diff] [blame] | 453 | #address-cells = <1>; |
| 454 | #size-cells = <1>; |
| 455 | |
| 456 | partition@0 { |
| 457 | label = "loader"; |
| 458 | reg = <0x00000000 0x00040000>; |
| 459 | read-only; |
| 460 | }; |
| 461 | partition@40000 { |
| 462 | label = "user"; |
| 463 | reg = <0x00040000 0x00400000>; |
| 464 | read-only; |
| 465 | }; |
| 466 | partition@440000 { |
| 467 | label = "flash"; |
| 468 | reg = <0x00440000 0x03bc0000>; |
| 469 | }; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 470 | }; |
| 471 | }; |
| 472 | }; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 473 | |
Ulrich Hecht | 430d7ba | 2015-11-13 17:22:23 +0100 | [diff] [blame] | 474 | &scif0 { |
| 475 | pinctrl-0 = <&scif0_pins>; |
Laurent Pinchart | 4e9c487 | 2014-04-30 02:31:45 +0200 | [diff] [blame] | 476 | pinctrl-names = "default"; |
| 477 | |
| 478 | status = "okay"; |
| 479 | }; |
| 480 | |
Wolfram Sang | 7c05589 | 2014-09-16 18:10:37 +0200 | [diff] [blame] | 481 | &scifa1 { |
| 482 | pinctrl-0 = <&scifa1_pins>; |
Laurent Pinchart | 4e9c487 | 2014-04-30 02:31:45 +0200 | [diff] [blame] | 483 | pinctrl-names = "default"; |
| 484 | |
| 485 | status = "okay"; |
| 486 | }; |
| 487 | |
Geert Uytterhoeven | b0403b9 | 2014-02-25 11:30:17 +0100 | [diff] [blame] | 488 | &msiof1 { |
| 489 | pinctrl-0 = <&msiof1_pins>; |
| 490 | pinctrl-names = "default"; |
| 491 | |
| 492 | status = "okay"; |
| 493 | |
| 494 | pmic: pmic@0 { |
| 495 | compatible = "renesas,r2a11302ft"; |
| 496 | reg = <0>; |
| 497 | spi-max-frequency = <6000000>; |
| 498 | spi-cpol; |
| 499 | spi-cpha; |
| 500 | }; |
Geert Uytterhoeven | b0403b9 | 2014-02-25 11:30:17 +0100 | [diff] [blame] | 501 | }; |
| 502 | |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 503 | &sdhi0 { |
| 504 | pinctrl-0 = <&sdhi0_pins>; |
| 505 | pinctrl-names = "default"; |
| 506 | |
| 507 | vmmc-supply = <&vcc_sdhi0>; |
| 508 | vqmmc-supply = <&vccq_sdhi0>; |
| 509 | cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; |
| 510 | status = "okay"; |
| 511 | }; |
| 512 | |
| 513 | &sdhi2 { |
| 514 | pinctrl-0 = <&sdhi2_pins>; |
| 515 | pinctrl-names = "default"; |
| 516 | |
| 517 | vmmc-supply = <&vcc_sdhi2>; |
| 518 | vqmmc-supply = <&vccq_sdhi2>; |
| 519 | cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; |
| 520 | status = "okay"; |
| 521 | }; |
Benoit Cousson | 05f72e0 | 2014-06-03 21:02:12 +0900 | [diff] [blame] | 522 | |
Benoit Cousson | b989e13 | 2014-06-03 21:02:24 +0900 | [diff] [blame] | 523 | &cpu0 { |
| 524 | cpu0-supply = <&vdd_dvfs>; |
| 525 | }; |
Ben Dooks | e489c2a | 2014-02-12 17:04:33 +0000 | [diff] [blame] | 526 | |
Wolfram Sang | cb9a2b1 | 2014-07-10 12:50:56 +0200 | [diff] [blame] | 527 | &iic0 { |
Geert Uytterhoeven | fd7a8cb | 2014-12-09 12:25:01 +0100 | [diff] [blame] | 528 | status = "okay"; |
Wolfram Sang | 535118c | 2015-09-09 19:48:19 +0200 | [diff] [blame] | 529 | pinctrl-0 = <&iic0_pins>; |
| 530 | pinctrl-names = "default"; |
Ben Dooks | e489c2a | 2014-02-12 17:04:33 +0000 | [diff] [blame] | 531 | }; |
| 532 | |
Wolfram Sang | cb9a2b1 | 2014-07-10 12:50:56 +0200 | [diff] [blame] | 533 | &iic1 { |
Geert Uytterhoeven | fd7a8cb | 2014-12-09 12:25:01 +0100 | [diff] [blame] | 534 | status = "okay"; |
Wolfram Sang | cb9a2b1 | 2014-07-10 12:50:56 +0200 | [diff] [blame] | 535 | pinctrl-0 = <&iic1_pins>; |
Ben Dooks | e1a2c4e | 2014-02-12 17:04:34 +0000 | [diff] [blame] | 536 | pinctrl-names = "default"; |
Ben Dooks | e489c2a | 2014-02-12 17:04:33 +0000 | [diff] [blame] | 537 | }; |
| 538 | |
Wolfram Sang | cb9a2b1 | 2014-07-10 12:50:56 +0200 | [diff] [blame] | 539 | &iic2 { |
Geert Uytterhoeven | fd7a8cb | 2014-12-09 12:25:01 +0100 | [diff] [blame] | 540 | status = "okay"; |
Wolfram Sang | cb9a2b1 | 2014-07-10 12:50:56 +0200 | [diff] [blame] | 541 | pinctrl-0 = <&iic2_pins>; |
Ben Dooks | e1a2c4e | 2014-02-12 17:04:34 +0000 | [diff] [blame] | 542 | pinctrl-names = "default"; |
Ben Dooks | d594c97 | 2014-08-13 00:18:26 +0400 | [diff] [blame] | 543 | |
Kuninori Morimoto | 177d8be | 2014-11-03 17:47:46 -0800 | [diff] [blame] | 544 | clock-frequency = <100000>; |
| 545 | |
Geert Uytterhoeven | d22b168 | 2015-04-28 12:29:22 +0200 | [diff] [blame] | 546 | ak4643: codec@12 { |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 547 | compatible = "asahi-kasei,ak4643"; |
| 548 | #sound-dai-cells = <0>; |
| 549 | reg = <0x12>; |
| 550 | }; |
| 551 | |
Ben Dooks | d594c97 | 2014-08-13 00:18:26 +0400 | [diff] [blame] | 552 | composite-in@20 { |
| 553 | compatible = "adi,adv7180"; |
| 554 | reg = <0x20>; |
| 555 | remote = <&vin1>; |
| 556 | |
| 557 | port { |
| 558 | adv7180: endpoint { |
| 559 | bus-width = <8>; |
| 560 | remote-endpoint = <&vin1ep0>; |
| 561 | }; |
| 562 | }; |
| 563 | }; |
Laurent Pinchart | fd25cdd | 2014-12-11 01:42:11 +0200 | [diff] [blame] | 564 | |
| 565 | hdmi@39 { |
| 566 | compatible = "adi,adv7511w"; |
| 567 | reg = <0x39>; |
| 568 | interrupt-parent = <&gpio1>; |
Laurent Pinchart | 850346e | 2015-05-06 07:05:31 +0300 | [diff] [blame] | 569 | interrupts = <15 IRQ_TYPE_LEVEL_LOW>; |
Laurent Pinchart | fd25cdd | 2014-12-11 01:42:11 +0200 | [diff] [blame] | 570 | |
| 571 | adi,input-depth = <8>; |
| 572 | adi,input-colorspace = "rgb"; |
| 573 | adi,input-clock = "1x"; |
| 574 | adi,input-style = <1>; |
| 575 | adi,input-justification = "evenly"; |
| 576 | |
| 577 | ports { |
| 578 | #address-cells = <1>; |
| 579 | #size-cells = <0>; |
| 580 | |
| 581 | port@0 { |
| 582 | reg = <0>; |
| 583 | adv7511_in: endpoint { |
| 584 | remote-endpoint = <&du_out_lvds0>; |
| 585 | }; |
| 586 | }; |
| 587 | |
| 588 | port@1 { |
| 589 | reg = <1>; |
| 590 | adv7511_out: endpoint { |
| 591 | remote-endpoint = <&hdmi_con>; |
| 592 | }; |
| 593 | }; |
| 594 | }; |
| 595 | }; |
Ben Dooks | e489c2a | 2014-02-12 17:04:33 +0000 | [diff] [blame] | 596 | }; |
| 597 | |
Khiem Nguyen | 5179ffd | 2014-07-04 09:19:51 +0900 | [diff] [blame] | 598 | &iic3 { |
Simon Horman | aca4ec4 | 2014-06-09 11:09:44 +0900 | [diff] [blame] | 599 | pinctrl-names = "default"; |
Khiem Nguyen | 5179ffd | 2014-07-04 09:19:51 +0900 | [diff] [blame] | 600 | pinctrl-0 = <&iic3_pins>; |
Simon Horman | aca4ec4 | 2014-06-09 11:09:44 +0900 | [diff] [blame] | 601 | status = "okay"; |
| 602 | |
Geert Uytterhoeven | 46dd8a8 | 2015-03-09 21:06:57 +0100 | [diff] [blame] | 603 | pmic@58 { |
| 604 | compatible = "dlg,da9063"; |
| 605 | reg = <0x58>; |
| 606 | interrupt-parent = <&irqc0>; |
| 607 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 608 | interrupt-controller; |
| 609 | |
| 610 | rtc { |
| 611 | compatible = "dlg,da9063-rtc"; |
| 612 | }; |
| 613 | |
| 614 | wdt { |
| 615 | compatible = "dlg,da9063-watchdog"; |
| 616 | }; |
| 617 | }; |
| 618 | |
Simon Horman | aca4ec4 | 2014-06-09 11:09:44 +0900 | [diff] [blame] | 619 | vdd_dvfs: regulator@68 { |
Steve Twiss | bd597f4 | 2014-08-22 15:26:55 +0100 | [diff] [blame] | 620 | compatible = "dlg,da9210"; |
Simon Horman | aca4ec4 | 2014-06-09 11:09:44 +0900 | [diff] [blame] | 621 | reg = <0x68>; |
Geert Uytterhoeven | ceb7747 | 2015-03-09 21:06:56 +0100 | [diff] [blame] | 622 | interrupt-parent = <&irqc0>; |
| 623 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
Simon Horman | aca4ec4 | 2014-06-09 11:09:44 +0900 | [diff] [blame] | 624 | |
| 625 | regulator-min-microvolt = <1000000>; |
| 626 | regulator-max-microvolt = <1000000>; |
| 627 | regulator-boot-on; |
| 628 | regulator-always-on; |
| 629 | }; |
Ben Dooks | e489c2a | 2014-02-12 17:04:33 +0000 | [diff] [blame] | 630 | }; |
Ben Dooks | d858466 | 2014-06-24 22:02:21 +0400 | [diff] [blame] | 631 | |
| 632 | &pci0 { |
| 633 | status = "okay"; |
| 634 | pinctrl-0 = <&usb0_pins>; |
| 635 | pinctrl-names = "default"; |
| 636 | }; |
| 637 | |
| 638 | &pci1 { |
| 639 | status = "okay"; |
| 640 | pinctrl-0 = <&usb1_pins>; |
| 641 | pinctrl-names = "default"; |
| 642 | }; |
| 643 | |
Yoshihiro Shimoda | 37f7c1b | 2014-10-24 19:41:47 +0900 | [diff] [blame] | 644 | &xhci { |
| 645 | status = "okay"; |
| 646 | pinctrl-0 = <&usb2_pins>; |
| 647 | pinctrl-names = "default"; |
| 648 | }; |
| 649 | |
Ben Dooks | d858466 | 2014-06-24 22:02:21 +0400 | [diff] [blame] | 650 | &pci2 { |
| 651 | status = "okay"; |
| 652 | pinctrl-0 = <&usb2_pins>; |
| 653 | pinctrl-names = "default"; |
| 654 | }; |
Ben Dooks | d594c97 | 2014-08-13 00:18:26 +0400 | [diff] [blame] | 655 | |
Yoshihiro Shimoda | e03074a | 2014-10-24 19:44:34 +0900 | [diff] [blame] | 656 | &hsusb { |
| 657 | status = "okay"; |
| 658 | pinctrl-0 = <&hsusb_pins>; |
| 659 | pinctrl-names = "default"; |
| 660 | renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>; |
| 661 | }; |
| 662 | |
Sergei Shtylyov | 6742caf | 2014-09-27 01:01:35 +0400 | [diff] [blame] | 663 | &usbphy { |
| 664 | status = "okay"; |
| 665 | }; |
| 666 | |
Ben Dooks | d594c97 | 2014-08-13 00:18:26 +0400 | [diff] [blame] | 667 | /* composite video input */ |
| 668 | &vin1 { |
| 669 | pinctrl-0 = <&vin1_pins>; |
| 670 | pinctrl-names = "default"; |
| 671 | |
Geert Uytterhoeven | fd7a8cb | 2014-12-09 12:25:01 +0100 | [diff] [blame] | 672 | status = "okay"; |
Ben Dooks | d594c97 | 2014-08-13 00:18:26 +0400 | [diff] [blame] | 673 | |
| 674 | port { |
| 675 | #address-cells = <1>; |
| 676 | #size-cells = <0>; |
| 677 | |
| 678 | vin1ep0: endpoint { |
| 679 | remote-endpoint = <&adv7180>; |
| 680 | bus-width = <8>; |
| 681 | }; |
| 682 | }; |
| 683 | }; |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 684 | |
| 685 | &rcar_sound { |
| 686 | pinctrl-0 = <&sound_pins &sound_clk_pins>; |
| 687 | pinctrl-names = "default"; |
| 688 | |
Kuninori Morimoto | ad63241 | 2014-12-17 06:11:52 +0000 | [diff] [blame] | 689 | /* Single DAI */ |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 690 | #sound-dai-cells = <0>; |
| 691 | |
| 692 | status = "okay"; |
| 693 | |
| 694 | rcar_sound,dai { |
| 695 | dai0 { |
Kuninori Morimoto | e110c54 | 2014-11-03 17:48:38 -0800 | [diff] [blame] | 696 | playback = <&ssi0 &src2 &dvc0>; |
| 697 | capture = <&ssi1 &src3 &dvc1>; |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 698 | }; |
| 699 | }; |
| 700 | }; |
| 701 | |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 702 | &ssi1 { |
Kuninori Morimoto | 8ea7a44 | 2014-11-03 17:47:56 -0800 | [diff] [blame] | 703 | shared-pin; |
| 704 | }; |