Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the Koelsch board |
| 3 | * |
| 4 | * Copyright (C) 2013 Renesas Electronics Corporation |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 5 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
| 6 | * Copyright (C) 2014 Cogent Embedded, Inc. |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 7 | * |
| 8 | * This file is licensed under the terms of the GNU General Public License |
| 9 | * version 2. This program is licensed "as is" without any warranty of any |
| 10 | * kind, whether express or implied. |
| 11 | */ |
| 12 | |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 13 | /* |
| 14 | * SSI-AK4643 |
| 15 | * |
| 16 | * SW1: 1: AK4643 |
| 17 | * 2: CN22 |
| 18 | * 3: ADV7511 |
| 19 | * |
| 20 | * This command is required when Playback/Capture |
| 21 | * |
| 22 | * amixer set "LINEOUT Mixer DACL" on |
Kuninori Morimoto | 5c6d4b9 | 2014-11-03 17:49:45 -0800 | [diff] [blame] | 23 | * amixer set "DVC Out" 100% |
| 24 | * amixer set "DVC In" 100% |
| 25 | * |
| 26 | * You can use Mute |
| 27 | * |
| 28 | * amixer set "DVC Out Mute" on |
| 29 | * amixer set "DVC In Mute" on |
Kuninori Morimoto | ce47481 | 2014-11-11 04:37:05 +0000 | [diff] [blame] | 30 | * |
| 31 | * You can use Volume Ramp |
| 32 | * |
| 33 | * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" |
| 34 | * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" |
| 35 | * amixer set "DVC Out Ramp" on |
| 36 | * aplay xxx.wav & |
| 37 | * amixer set "DVC Out" 80% // Volume Down |
| 38 | * amixer set "DVC Out" 100% // Volume Up |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 39 | */ |
| 40 | |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 41 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 42 | #include "r8a7791.dtsi" |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 43 | #include <dt-bindings/gpio/gpio.h> |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 44 | #include <dt-bindings/input/input.h> |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 45 | |
| 46 | / { |
| 47 | model = "Koelsch"; |
| 48 | compatible = "renesas,koelsch", "renesas,r8a7791"; |
| 49 | |
Laurent Pinchart | 5ba55fa | 2014-04-30 02:31:46 +0200 | [diff] [blame] | 50 | aliases { |
Laurent Pinchart | 1f75cda | 2013-10-18 16:00:00 +0200 | [diff] [blame] | 51 | serial0 = &scif0; |
| 52 | serial1 = &scif1; |
Simon Horman | 6723438 | 2016-11-06 21:20:23 +0100 | [diff] [blame] | 53 | i2c9 = &gpioi2c1; |
Wolfram Sang | 168a709 | 2018-02-06 23:29:52 +0100 | [diff] [blame] | 54 | i2c10 = &gpioi2c2; |
Wolfram Sang | be93275 | 2018-02-06 23:29:53 +0100 | [diff] [blame] | 55 | i2c11 = &gpioi2c4; |
Simon Horman | 6723438 | 2016-11-06 21:20:23 +0100 | [diff] [blame] | 56 | i2c12 = &i2cexio1; |
Wolfram Sang | 168a709 | 2018-02-06 23:29:52 +0100 | [diff] [blame] | 57 | i2c13 = &i2chdmi; |
Wolfram Sang | be93275 | 2018-02-06 23:29:53 +0100 | [diff] [blame] | 58 | i2c14 = &i2cexio4; |
Laurent Pinchart | 5ba55fa | 2014-04-30 02:31:46 +0200 | [diff] [blame] | 59 | }; |
| 60 | |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 61 | chosen { |
Geert Uytterhoeven | 79e69d1 | 2014-10-29 15:28:38 +0100 | [diff] [blame] | 62 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
Geert Uytterhoeven | 832dae1 | 2015-12-08 18:54:12 +0100 | [diff] [blame] | 63 | stdout-path = "serial0:115200n8"; |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 64 | }; |
| 65 | |
| 66 | memory@40000000 { |
| 67 | device_type = "memory"; |
Takashi Yoshii | 4cd1bad | 2013-12-22 18:27:23 +0900 | [diff] [blame] | 68 | reg = <0 0x40000000 0 0x40000000>; |
| 69 | }; |
| 70 | |
| 71 | memory@200000000 { |
| 72 | device_type = "memory"; |
| 73 | reg = <2 0x00000000 0 0x40000000>; |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 74 | }; |
| 75 | |
| 76 | lbsc { |
| 77 | #address-cells = <1>; |
| 78 | #size-cells = <1>; |
| 79 | }; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 80 | |
Simon Horman | d3aaec83 | 2014-11-12 17:59:36 +0900 | [diff] [blame] | 81 | keyboard { |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 82 | compatible = "gpio-keys"; |
| 83 | |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 84 | key-1 { |
| 85 | gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; |
| 86 | linux,code = <KEY_1>; |
| 87 | label = "SW2-1"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 88 | wakeup-source; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 89 | debounce-interval = <20>; |
| 90 | }; |
| 91 | key-2 { |
| 92 | gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; |
| 93 | linux,code = <KEY_2>; |
| 94 | label = "SW2-2"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 95 | wakeup-source; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 96 | debounce-interval = <20>; |
| 97 | }; |
| 98 | key-3 { |
| 99 | gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; |
| 100 | linux,code = <KEY_3>; |
| 101 | label = "SW2-3"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 102 | wakeup-source; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 103 | debounce-interval = <20>; |
| 104 | }; |
| 105 | key-4 { |
| 106 | gpios = <&gpio5 3 GPIO_ACTIVE_LOW>; |
| 107 | linux,code = <KEY_4>; |
| 108 | label = "SW2-4"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 109 | wakeup-source; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 110 | debounce-interval = <20>; |
| 111 | }; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 112 | key-a { |
| 113 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 114 | linux,code = <KEY_A>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 115 | label = "SW30"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 116 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 117 | debounce-interval = <20>; |
| 118 | }; |
| 119 | key-b { |
| 120 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 121 | linux,code = <KEY_B>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 122 | label = "SW31"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 123 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 124 | debounce-interval = <20>; |
| 125 | }; |
| 126 | key-c { |
| 127 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 128 | linux,code = <KEY_C>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 129 | label = "SW32"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 130 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 131 | debounce-interval = <20>; |
| 132 | }; |
| 133 | key-d { |
| 134 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 135 | linux,code = <KEY_D>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 136 | label = "SW33"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 137 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 138 | debounce-interval = <20>; |
| 139 | }; |
| 140 | key-e { |
| 141 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 142 | linux,code = <KEY_E>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 143 | label = "SW34"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 144 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 145 | debounce-interval = <20>; |
| 146 | }; |
| 147 | key-f { |
| 148 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 149 | linux,code = <KEY_F>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 150 | label = "SW35"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 151 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 152 | debounce-interval = <20>; |
| 153 | }; |
| 154 | key-g { |
| 155 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 156 | linux,code = <KEY_G>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 157 | label = "SW36"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 158 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 159 | debounce-interval = <20>; |
| 160 | }; |
| 161 | }; |
| 162 | |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 163 | leds { |
| 164 | compatible = "gpio-leds"; |
| 165 | led6 { |
| 166 | gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; |
Geert Uytterhoeven | 352faa5 | 2014-11-06 13:49:58 +0100 | [diff] [blame] | 167 | label = "LED6"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 168 | }; |
| 169 | led7 { |
| 170 | gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; |
Geert Uytterhoeven | 352faa5 | 2014-11-06 13:49:58 +0100 | [diff] [blame] | 171 | label = "LED7"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 172 | }; |
| 173 | led8 { |
| 174 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; |
Geert Uytterhoeven | 352faa5 | 2014-11-06 13:49:58 +0100 | [diff] [blame] | 175 | label = "LED8"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 176 | }; |
| 177 | }; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 178 | |
Geert Uytterhoeven | a704b27 | 2016-05-20 09:10:06 +0200 | [diff] [blame] | 179 | vcc_sdhi0: regulator-vcc-sdhi0 { |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 180 | compatible = "regulator-fixed"; |
| 181 | |
| 182 | regulator-name = "SDHI0 Vcc"; |
| 183 | regulator-min-microvolt = <3300000>; |
| 184 | regulator-max-microvolt = <3300000>; |
| 185 | |
| 186 | gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>; |
| 187 | enable-active-high; |
| 188 | }; |
| 189 | |
Geert Uytterhoeven | a704b27 | 2016-05-20 09:10:06 +0200 | [diff] [blame] | 190 | vccq_sdhi0: regulator-vccq-sdhi0 { |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 191 | compatible = "regulator-gpio"; |
| 192 | |
| 193 | regulator-name = "SDHI0 VccQ"; |
| 194 | regulator-min-microvolt = <1800000>; |
| 195 | regulator-max-microvolt = <3300000>; |
| 196 | |
| 197 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; |
| 198 | gpios-states = <1>; |
| 199 | states = <3300000 1 |
| 200 | 1800000 0>; |
| 201 | }; |
| 202 | |
Geert Uytterhoeven | a704b27 | 2016-05-20 09:10:06 +0200 | [diff] [blame] | 203 | vcc_sdhi1: regulator-vcc-sdhi1 { |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 204 | compatible = "regulator-fixed"; |
| 205 | |
| 206 | regulator-name = "SDHI1 Vcc"; |
| 207 | regulator-min-microvolt = <3300000>; |
| 208 | regulator-max-microvolt = <3300000>; |
| 209 | |
| 210 | gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>; |
| 211 | enable-active-high; |
| 212 | }; |
| 213 | |
Geert Uytterhoeven | a704b27 | 2016-05-20 09:10:06 +0200 | [diff] [blame] | 214 | vccq_sdhi1: regulator-vccq-sdhi1 { |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 215 | compatible = "regulator-gpio"; |
| 216 | |
| 217 | regulator-name = "SDHI1 VccQ"; |
| 218 | regulator-min-microvolt = <1800000>; |
| 219 | regulator-max-microvolt = <3300000>; |
| 220 | |
| 221 | gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; |
| 222 | gpios-states = <1>; |
| 223 | states = <3300000 1 |
| 224 | 1800000 0>; |
| 225 | }; |
| 226 | |
Geert Uytterhoeven | a704b27 | 2016-05-20 09:10:06 +0200 | [diff] [blame] | 227 | vcc_sdhi2: regulator-vcc-sdhi2 { |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 228 | compatible = "regulator-fixed"; |
| 229 | |
| 230 | regulator-name = "SDHI2 Vcc"; |
| 231 | regulator-min-microvolt = <3300000>; |
| 232 | regulator-max-microvolt = <3300000>; |
| 233 | |
| 234 | gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>; |
| 235 | enable-active-high; |
| 236 | }; |
| 237 | |
Geert Uytterhoeven | a704b27 | 2016-05-20 09:10:06 +0200 | [diff] [blame] | 238 | vccq_sdhi2: regulator-vccq-sdhi2 { |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 239 | compatible = "regulator-gpio"; |
| 240 | |
| 241 | regulator-name = "SDHI2 VccQ"; |
| 242 | regulator-min-microvolt = <1800000>; |
| 243 | regulator-max-microvolt = <3300000>; |
| 244 | |
| 245 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; |
| 246 | gpios-states = <1>; |
| 247 | states = <3300000 1 |
| 248 | 1800000 0>; |
| 249 | }; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 250 | |
Simon Horman | 62c7e9d | 2016-03-18 08:17:57 +0900 | [diff] [blame] | 251 | audio_clock: audio_clock { |
Kuninori Morimoto | c19c84f | 2015-08-20 03:09:30 +0000 | [diff] [blame] | 252 | compatible = "fixed-clock"; |
| 253 | #clock-cells = <0>; |
| 254 | clock-frequency = <11289600>; |
Kuninori Morimoto | c19c84f | 2015-08-20 03:09:30 +0000 | [diff] [blame] | 255 | }; |
| 256 | |
Kuninori Morimoto | 18f88d2 | 2015-07-14 04:57:05 +0000 | [diff] [blame] | 257 | rsnd_ak4643: sound { |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 258 | compatible = "simple-audio-card"; |
| 259 | |
| 260 | simple-audio-card,format = "left_j"; |
| 261 | simple-audio-card,bitclock-master = <&sndcodec>; |
| 262 | simple-audio-card,frame-master = <&sndcodec>; |
| 263 | |
| 264 | sndcpu: simple-audio-card,cpu { |
| 265 | sound-dai = <&rcar_sound>; |
| 266 | }; |
| 267 | |
| 268 | sndcodec: simple-audio-card,codec { |
| 269 | sound-dai = <&ak4643>; |
Kuninori Morimoto | c19c84f | 2015-08-20 03:09:30 +0000 | [diff] [blame] | 270 | clocks = <&audio_clock>; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 271 | }; |
| 272 | }; |
Laurent Pinchart | 83a0731 | 2014-12-11 01:42:12 +0200 | [diff] [blame] | 273 | |
Hans Verkuil | 84e3a74 | 2016-10-18 17:01:34 +0200 | [diff] [blame] | 274 | hdmi-in { |
| 275 | compatible = "hdmi-connector"; |
| 276 | type = "a"; |
| 277 | |
| 278 | port { |
| 279 | hdmi_con_in: endpoint { |
| 280 | remote-endpoint = <&adv7612_in>; |
| 281 | }; |
| 282 | }; |
| 283 | }; |
| 284 | |
Simon Horman | d72f4f0 | 2017-11-02 10:18:05 +0100 | [diff] [blame] | 285 | cec_clock: cec-clock { |
| 286 | compatible = "fixed-clock"; |
| 287 | #clock-cells = <0>; |
| 288 | clock-frequency = <12000000>; |
| 289 | }; |
| 290 | |
Laurent Pinchart | 83a0731 | 2014-12-11 01:42:12 +0200 | [diff] [blame] | 291 | hdmi-out { |
| 292 | compatible = "hdmi-connector"; |
| 293 | type = "a"; |
| 294 | |
| 295 | port { |
Hans Verkuil | 84e3a74 | 2016-10-18 17:01:34 +0200 | [diff] [blame] | 296 | hdmi_con_out: endpoint { |
Laurent Pinchart | 83a0731 | 2014-12-11 01:42:12 +0200 | [diff] [blame] | 297 | remote-endpoint = <&adv7511_out>; |
| 298 | }; |
| 299 | }; |
| 300 | }; |
Laurent Pinchart | cd21cb4 | 2015-02-26 11:21:23 +0200 | [diff] [blame] | 301 | |
| 302 | x2_clk: x2-clock { |
| 303 | compatible = "fixed-clock"; |
| 304 | #clock-cells = <0>; |
Geert Uytterhoeven | ebf06af | 2017-04-03 11:55:19 +0200 | [diff] [blame] | 305 | clock-frequency = <74250000>; |
Laurent Pinchart | cd21cb4 | 2015-02-26 11:21:23 +0200 | [diff] [blame] | 306 | }; |
| 307 | |
| 308 | x13_clk: x13-clock { |
| 309 | compatible = "fixed-clock"; |
| 310 | #clock-cells = <0>; |
| 311 | clock-frequency = <148500000>; |
| 312 | }; |
Simon Horman | 6723438 | 2016-11-06 21:20:23 +0100 | [diff] [blame] | 313 | |
| 314 | gpioi2c1: i2c-9 { |
| 315 | #address-cells = <1>; |
| 316 | #size-cells = <0>; |
| 317 | compatible = "i2c-gpio"; |
| 318 | status = "disabled"; |
Geert Uytterhoeven | c14f3ec | 2017-11-30 13:57:25 +0100 | [diff] [blame] | 319 | scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
Wolfram Sang | 168a709 | 2018-02-06 23:29:52 +0100 | [diff] [blame] | 320 | sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 321 | i2c-gpio,delay-us = <5>; |
| 322 | }; |
| 323 | |
| 324 | gpioi2c2: i2c-10 { |
| 325 | #address-cells = <1>; |
| 326 | #size-cells = <0>; |
| 327 | compatible = "i2c-gpio"; |
| 328 | status = "disabled"; |
| 329 | scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 330 | sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
Simon Horman | 6723438 | 2016-11-06 21:20:23 +0100 | [diff] [blame] | 331 | i2c-gpio,delay-us = <5>; |
| 332 | }; |
| 333 | |
Wolfram Sang | be93275 | 2018-02-06 23:29:53 +0100 | [diff] [blame] | 334 | gpioi2c4: i2c-11 { |
| 335 | #address-cells = <1>; |
| 336 | #size-cells = <0>; |
| 337 | compatible = "i2c-gpio"; |
| 338 | status = "disabled"; |
| 339 | scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 340 | sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 341 | i2c-gpio,delay-us = <5>; |
| 342 | }; |
| 343 | |
Simon Horman | 6723438 | 2016-11-06 21:20:23 +0100 | [diff] [blame] | 344 | /* |
| 345 | * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA). |
| 346 | * A fallback to GPIO is provided. |
| 347 | */ |
| 348 | i2cexio1: i2c-12 { |
| 349 | compatible = "i2c-demux-pinctrl"; |
| 350 | i2c-parent = <&i2c1>, <&gpioi2c1>; |
| 351 | i2c-bus-name = "i2c-exio1"; |
| 352 | #address-cells = <1>; |
| 353 | #size-cells = <0>; |
| 354 | }; |
Wolfram Sang | 168a709 | 2018-02-06 23:29:52 +0100 | [diff] [blame] | 355 | |
| 356 | /* |
| 357 | * A fallback to GPIO is provided for I2C2. |
| 358 | */ |
| 359 | i2chdmi: i2c-13 { |
| 360 | compatible = "i2c-demux-pinctrl"; |
| 361 | i2c-parent = <&i2c2>, <&gpioi2c2>; |
| 362 | i2c-bus-name = "i2c-hdmi"; |
| 363 | #address-cells = <1>; |
| 364 | #size-cells = <0>; |
| 365 | |
| 366 | ak4643: codec@12 { |
| 367 | compatible = "asahi-kasei,ak4643"; |
| 368 | #sound-dai-cells = <0>; |
| 369 | reg = <0x12>; |
| 370 | }; |
| 371 | |
| 372 | composite-in@20 { |
| 373 | compatible = "adi,adv7180"; |
| 374 | reg = <0x20>; |
| 375 | remote = <&vin1>; |
| 376 | |
| 377 | port { |
| 378 | adv7180: endpoint { |
| 379 | bus-width = <8>; |
| 380 | remote-endpoint = <&vin1ep>; |
| 381 | }; |
| 382 | }; |
| 383 | }; |
| 384 | |
| 385 | hdmi@39 { |
| 386 | compatible = "adi,adv7511w"; |
| 387 | reg = <0x39>; |
| 388 | interrupt-parent = <&gpio3>; |
| 389 | interrupts = <29 IRQ_TYPE_LEVEL_LOW>; |
| 390 | clocks = <&cec_clock>; |
| 391 | clock-names = "cec"; |
| 392 | |
| 393 | adi,input-depth = <8>; |
| 394 | adi,input-colorspace = "rgb"; |
| 395 | adi,input-clock = "1x"; |
| 396 | adi,input-style = <1>; |
| 397 | adi,input-justification = "evenly"; |
| 398 | |
| 399 | ports { |
| 400 | #address-cells = <1>; |
| 401 | #size-cells = <0>; |
| 402 | |
| 403 | port@0 { |
| 404 | reg = <0>; |
| 405 | adv7511_in: endpoint { |
| 406 | remote-endpoint = <&du_out_rgb>; |
| 407 | }; |
| 408 | }; |
| 409 | |
| 410 | port@1 { |
| 411 | reg = <1>; |
| 412 | adv7511_out: endpoint { |
| 413 | remote-endpoint = <&hdmi_con_out>; |
| 414 | }; |
| 415 | }; |
| 416 | }; |
| 417 | }; |
| 418 | |
| 419 | hdmi-in@4c { |
| 420 | compatible = "adi,adv7612"; |
| 421 | reg = <0x4c>; |
| 422 | interrupt-parent = <&gpio4>; |
| 423 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 424 | default-input = <0>; |
| 425 | |
| 426 | ports { |
| 427 | #address-cells = <1>; |
| 428 | #size-cells = <0>; |
| 429 | |
| 430 | port@0 { |
| 431 | reg = <0>; |
| 432 | adv7612_in: endpoint { |
| 433 | remote-endpoint = <&hdmi_con_in>; |
| 434 | }; |
| 435 | }; |
| 436 | |
| 437 | port@2 { |
| 438 | reg = <2>; |
| 439 | adv7612_out: endpoint { |
| 440 | remote-endpoint = <&vin0ep2>; |
| 441 | }; |
| 442 | }; |
| 443 | }; |
| 444 | }; |
| 445 | |
| 446 | eeprom@50 { |
| 447 | compatible = "renesas,r1ex24002", "atmel,24c02"; |
| 448 | reg = <0x50>; |
| 449 | pagesize = <16>; |
| 450 | }; |
| 451 | }; |
Wolfram Sang | be93275 | 2018-02-06 23:29:53 +0100 | [diff] [blame] | 452 | |
| 453 | /* |
| 454 | * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA). |
| 455 | * A fallback to GPIO is provided. |
| 456 | */ |
| 457 | i2cexio4: i2c-14 { |
| 458 | compatible = "i2c-demux-pinctrl"; |
| 459 | i2c-parent = <&i2c4>, <&gpioi2c4>; |
| 460 | i2c-bus-name = "i2c-exio4"; |
| 461 | #address-cells = <1>; |
| 462 | #size-cells = <0>; |
| 463 | }; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 464 | }; |
| 465 | |
Laurent Pinchart | 0ee56d4 | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 466 | &du { |
| 467 | pinctrl-0 = <&du_pins>; |
| 468 | pinctrl-names = "default"; |
| 469 | status = "okay"; |
| 470 | |
Laurent Pinchart | e5c3f47 | 2018-04-20 14:57:53 +0300 | [diff] [blame] | 471 | clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, |
Laurent Pinchart | cd21cb4 | 2015-02-26 11:21:23 +0200 | [diff] [blame] | 472 | <&x13_clk>, <&x2_clk>; |
Laurent Pinchart | e5c3f47 | 2018-04-20 14:57:53 +0300 | [diff] [blame] | 473 | clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; |
Laurent Pinchart | cd21cb4 | 2015-02-26 11:21:23 +0200 | [diff] [blame] | 474 | |
Laurent Pinchart | 0ee56d4 | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 475 | ports { |
Laurent Pinchart | 83a0731 | 2014-12-11 01:42:12 +0200 | [diff] [blame] | 476 | port@0 { |
| 477 | endpoint { |
| 478 | remote-endpoint = <&adv7511_in>; |
| 479 | }; |
| 480 | }; |
Laurent Pinchart | e5c3f47 | 2018-04-20 14:57:53 +0300 | [diff] [blame] | 481 | }; |
| 482 | }; |
| 483 | |
| 484 | &lvds0 { |
| 485 | status = "okay"; |
| 486 | |
| 487 | ports { |
Laurent Pinchart | 0ee56d4 | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 488 | port@1 { |
| 489 | lvds_connector: endpoint { |
| 490 | }; |
| 491 | }; |
| 492 | }; |
| 493 | }; |
| 494 | |
Laurent Pinchart | fcf0c72 | 2013-12-11 15:13:50 +0100 | [diff] [blame] | 495 | &extal_clk { |
| 496 | clock-frequency = <20000000>; |
| 497 | }; |
| 498 | |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 499 | &pfc { |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 500 | pinctrl-0 = <&scif_clk_pins>; |
| 501 | pinctrl-names = "default"; |
| 502 | |
Simon Horman | 6723438 | 2016-11-06 21:20:23 +0100 | [diff] [blame] | 503 | i2c1_pins: i2c1 { |
| 504 | groups = "i2c1"; |
| 505 | function = "i2c1"; |
| 506 | }; |
| 507 | |
Wolfram Sang | e6a4c00 | 2014-03-10 12:26:59 +0100 | [diff] [blame] | 508 | i2c2_pins: i2c2 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 509 | groups = "i2c2"; |
| 510 | function = "i2c2"; |
Wolfram Sang | 38c5351 | 2014-02-17 11:44:42 +0100 | [diff] [blame] | 511 | }; |
| 512 | |
Wolfram Sang | be93275 | 2018-02-06 23:29:53 +0100 | [diff] [blame] | 513 | i2c4_pins: i2c4 { |
| 514 | groups = "i2c4_c"; |
| 515 | function = "i2c4"; |
| 516 | }; |
| 517 | |
Laurent Pinchart | afba941 | 2014-02-16 22:32:01 +0100 | [diff] [blame] | 518 | du_pins: du { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 519 | groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; |
| 520 | function = "du"; |
Laurent Pinchart | afba941 | 2014-02-16 22:32:01 +0100 | [diff] [blame] | 521 | }; |
| 522 | |
Geert Uytterhoeven | b71b834 | 2016-06-10 15:00:55 +0200 | [diff] [blame] | 523 | scif0_pins: scif0 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 524 | groups = "scif0_data_d"; |
| 525 | function = "scif0"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 526 | }; |
| 527 | |
Geert Uytterhoeven | b71b834 | 2016-06-10 15:00:55 +0200 | [diff] [blame] | 528 | scif1_pins: scif1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 529 | groups = "scif1_data_d"; |
| 530 | function = "scif1"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 531 | }; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 532 | |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 533 | scif_clk_pins: scif_clk { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 534 | groups = "scif_clk"; |
| 535 | function = "scif_clk"; |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 536 | }; |
| 537 | |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 538 | ether_pins: ether { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 539 | groups = "eth_link", "eth_mdio", "eth_rmii"; |
| 540 | function = "eth"; |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 541 | }; |
| 542 | |
| 543 | phy1_pins: phy1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 544 | groups = "intc_irq0"; |
| 545 | function = "intc"; |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 546 | }; |
| 547 | |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 548 | sdhi0_pins: sd0 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 549 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 550 | function = "sdhi0"; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 551 | power-source = <3300>; |
| 552 | }; |
| 553 | |
| 554 | sdhi0_pins_uhs: sd0_uhs { |
| 555 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 556 | function = "sdhi0"; |
| 557 | power-source = <1800>; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 558 | }; |
| 559 | |
| 560 | sdhi1_pins: sd1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 561 | groups = "sdhi1_data4", "sdhi1_ctrl"; |
| 562 | function = "sdhi1"; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 563 | power-source = <3300>; |
| 564 | }; |
| 565 | |
| 566 | sdhi1_pins_uhs: sd1_uhs { |
| 567 | groups = "sdhi1_data4", "sdhi1_ctrl"; |
| 568 | function = "sdhi1"; |
| 569 | power-source = <1800>; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 570 | }; |
| 571 | |
| 572 | sdhi2_pins: sd2 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 573 | groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 574 | function = "sdhi2"; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 575 | power-source = <3300>; |
| 576 | }; |
| 577 | |
| 578 | sdhi2_pins_uhs: sd2_uhs { |
| 579 | groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 580 | function = "sdhi2"; |
| 581 | power-source = <1800>; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 582 | }; |
| 583 | |
Geert Uytterhoeven | a4d98be | 2016-06-10 15:00:56 +0200 | [diff] [blame] | 584 | qspi_pins: qspi { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 585 | groups = "qspi_ctrl", "qspi_data4"; |
| 586 | function = "qspi"; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 587 | }; |
Geert Uytterhoeven | b16f05a | 2014-02-25 11:30:18 +0100 | [diff] [blame] | 588 | |
Geert Uytterhoeven | a4d98be | 2016-06-10 15:00:56 +0200 | [diff] [blame] | 589 | msiof0_pins: msiof0 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 590 | groups = "msiof0_clk", "msiof0_sync", "msiof0_rx", |
Geert Uytterhoeven | b16f05a | 2014-02-25 11:30:18 +0100 | [diff] [blame] | 591 | "msiof0_tx"; |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 592 | function = "msiof0"; |
Geert Uytterhoeven | b16f05a | 2014-02-25 11:30:18 +0100 | [diff] [blame] | 593 | }; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 594 | |
Sergei Shtylyov | 7540aeb | 2014-06-24 22:11:44 +0400 | [diff] [blame] | 595 | usb0_pins: usb0 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 596 | groups = "usb0"; |
| 597 | function = "usb0"; |
Sergei Shtylyov | 7540aeb | 2014-06-24 22:11:44 +0400 | [diff] [blame] | 598 | }; |
| 599 | |
| 600 | usb1_pins: usb1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 601 | groups = "usb1"; |
| 602 | function = "usb1"; |
Sergei Shtylyov | 7540aeb | 2014-06-24 22:11:44 +0400 | [diff] [blame] | 603 | }; |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 604 | |
Hans Verkuil | 84e3a74 | 2016-10-18 17:01:34 +0200 | [diff] [blame] | 605 | vin0_pins: vin0 { |
| 606 | groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; |
| 607 | function = "vin0"; |
| 608 | }; |
| 609 | |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 610 | vin1_pins: vin1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 611 | groups = "vin1_data8", "vin1_clk"; |
| 612 | function = "vin1"; |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 613 | }; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 614 | |
| 615 | sound_pins: sound { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 616 | groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; |
| 617 | function = "ssi"; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 618 | }; |
| 619 | |
| 620 | sound_clk_pins: sound_clk { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 621 | groups = "audio_clk_a"; |
| 622 | function = "audio_clk"; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 623 | }; |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 624 | }; |
Valentine Barshak | 760c277 | 2014-01-14 21:05:41 +0400 | [diff] [blame] | 625 | |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 626 | ðer { |
| 627 | pinctrl-0 = <ðer_pins &phy1_pins>; |
| 628 | pinctrl-names = "default"; |
| 629 | |
| 630 | phy-handle = <&phy1>; |
| 631 | renesas,ether-link-active-low; |
Geert Uytterhoeven | 815446d | 2014-12-09 12:25:03 +0100 | [diff] [blame] | 632 | status = "okay"; |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 633 | |
| 634 | phy1: ethernet-phy@1 { |
| 635 | reg = <1>; |
| 636 | interrupt-parent = <&irqc0>; |
| 637 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
Laurent Pinchart | 19f647c | 2014-03-18 19:04:48 +0100 | [diff] [blame] | 638 | micrel,led-mode = <1>; |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 639 | }; |
| 640 | }; |
| 641 | |
Laurent Pinchart | 6a1d946 | 2014-07-09 15:12:42 +0200 | [diff] [blame] | 642 | &cmt0 { |
Geert Uytterhoeven | 815446d | 2014-12-09 12:25:03 +0100 | [diff] [blame] | 643 | status = "okay"; |
Laurent Pinchart | 6a1d946 | 2014-07-09 15:12:42 +0200 | [diff] [blame] | 644 | }; |
| 645 | |
Valentine Barshak | 760c277 | 2014-01-14 21:05:41 +0400 | [diff] [blame] | 646 | &sata0 { |
| 647 | status = "okay"; |
| 648 | }; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 649 | |
Laurent Pinchart | 5ba55fa | 2014-04-30 02:31:46 +0200 | [diff] [blame] | 650 | &scif0 { |
| 651 | pinctrl-0 = <&scif0_pins>; |
| 652 | pinctrl-names = "default"; |
| 653 | |
| 654 | status = "okay"; |
| 655 | }; |
| 656 | |
| 657 | &scif1 { |
| 658 | pinctrl-0 = <&scif1_pins>; |
| 659 | pinctrl-names = "default"; |
| 660 | |
| 661 | status = "okay"; |
| 662 | }; |
| 663 | |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 664 | &scif_clk { |
| 665 | clock-frequency = <14745600>; |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 666 | }; |
| 667 | |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 668 | &sdhi0 { |
| 669 | pinctrl-0 = <&sdhi0_pins>; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 670 | pinctrl-1 = <&sdhi0_pins_uhs>; |
| 671 | pinctrl-names = "default", "state_uhs"; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 672 | |
| 673 | vmmc-supply = <&vcc_sdhi0>; |
| 674 | vqmmc-supply = <&vccq_sdhi0>; |
| 675 | cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; |
| 676 | wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 677 | sd-uhs-sdr50; |
Simon Horman | 0726729 | 2016-11-03 16:07:24 +0100 | [diff] [blame] | 678 | sd-uhs-sdr104; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 679 | status = "okay"; |
| 680 | }; |
| 681 | |
| 682 | &sdhi1 { |
| 683 | pinctrl-0 = <&sdhi1_pins>; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 684 | pinctrl-1 = <&sdhi1_pins_uhs>; |
| 685 | pinctrl-names = "default", "state_uhs"; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 686 | |
| 687 | vmmc-supply = <&vcc_sdhi1>; |
| 688 | vqmmc-supply = <&vccq_sdhi1>; |
| 689 | cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; |
| 690 | wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 691 | sd-uhs-sdr50; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 692 | status = "okay"; |
| 693 | }; |
| 694 | |
| 695 | &sdhi2 { |
| 696 | pinctrl-0 = <&sdhi2_pins>; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 697 | pinctrl-1 = <&sdhi2_pins_uhs>; |
| 698 | pinctrl-names = "default", "state_uhs"; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 699 | |
| 700 | vmmc-supply = <&vcc_sdhi2>; |
| 701 | vqmmc-supply = <&vccq_sdhi2>; |
| 702 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; |
Simon Horman | d3cec922 | 2016-09-13 12:57:02 +0200 | [diff] [blame] | 703 | sd-uhs-sdr50; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 704 | status = "okay"; |
| 705 | }; |
| 706 | |
Geert Uytterhoeven | 6f3e4ee | 2014-02-25 11:30:14 +0100 | [diff] [blame] | 707 | &qspi { |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 708 | pinctrl-0 = <&qspi_pins>; |
| 709 | pinctrl-names = "default"; |
| 710 | |
| 711 | status = "okay"; |
| 712 | |
| 713 | flash: flash@0 { |
Geert Uytterhoeven | cc3db02 | 2015-05-20 20:16:54 +0200 | [diff] [blame] | 714 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 715 | reg = <0>; |
| 716 | spi-max-frequency = <30000000>; |
Geert Uytterhoeven | ed56083 | 2014-04-14 19:35:58 +0200 | [diff] [blame] | 717 | spi-tx-bus-width = <4>; |
| 718 | spi-rx-bus-width = <4>; |
Hisashi Nakamura | 9c5becc | 2014-12-09 09:37:12 +0900 | [diff] [blame] | 719 | spi-cpha; |
| 720 | spi-cpol; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 721 | m25p,fast-read; |
| 722 | |
Geert Uytterhoeven | 27fa0a6 | 2015-11-10 09:35:06 +0100 | [diff] [blame] | 723 | partitions { |
Geert Uytterhoeven | f6531bb | 2015-12-21 11:33:49 +0100 | [diff] [blame] | 724 | compatible = "fixed-partitions"; |
Geert Uytterhoeven | 27fa0a6 | 2015-11-10 09:35:06 +0100 | [diff] [blame] | 725 | #address-cells = <1>; |
| 726 | #size-cells = <1>; |
| 727 | |
| 728 | partition@0 { |
| 729 | label = "loader"; |
| 730 | reg = <0x00000000 0x00080000>; |
| 731 | read-only; |
| 732 | }; |
| 733 | partition@80000 { |
| 734 | label = "user"; |
| 735 | reg = <0x00080000 0x00580000>; |
| 736 | read-only; |
| 737 | }; |
| 738 | partition@600000 { |
| 739 | label = "flash"; |
| 740 | reg = <0x00600000 0x03a00000>; |
| 741 | }; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 742 | }; |
| 743 | }; |
| 744 | }; |
Geert Uytterhoeven | b16f05a | 2014-02-25 11:30:18 +0100 | [diff] [blame] | 745 | |
| 746 | &msiof0 { |
| 747 | pinctrl-0 = <&msiof0_pins>; |
| 748 | pinctrl-names = "default"; |
| 749 | |
| 750 | status = "okay"; |
| 751 | |
| 752 | pmic: pmic@0 { |
| 753 | compatible = "renesas,r2a11302ft"; |
| 754 | reg = <0>; |
| 755 | spi-max-frequency = <6000000>; |
| 756 | spi-cpol; |
| 757 | spi-cpha; |
| 758 | }; |
| 759 | }; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 760 | |
Simon Horman | 6723438 | 2016-11-06 21:20:23 +0100 | [diff] [blame] | 761 | &i2c1 { |
| 762 | pinctrl-0 = <&i2c1_pins>; |
| 763 | pinctrl-names = "i2c-exio1"; |
| 764 | }; |
| 765 | |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 766 | &i2c2 { |
| 767 | pinctrl-0 = <&i2c2_pins>; |
Wolfram Sang | 168a709 | 2018-02-06 23:29:52 +0100 | [diff] [blame] | 768 | pinctrl-names = "i2c-hdmi"; |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 769 | |
Kuninori Morimoto | a8d943e | 2014-11-03 17:48:49 -0800 | [diff] [blame] | 770 | clock-frequency = <100000>; |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 771 | }; |
| 772 | |
Wolfram Sang | be93275 | 2018-02-06 23:29:53 +0100 | [diff] [blame] | 773 | &i2c4 { |
| 774 | pinctrl-0 = <&i2c4_pins>; |
| 775 | pinctrl-names = "i2c-exio4"; |
| 776 | }; |
| 777 | |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 778 | &i2c6 { |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 779 | status = "okay"; |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 780 | clock-frequency = <100000>; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 781 | |
Geert Uytterhoeven | a6b4226 | 2015-03-09 21:06:55 +0100 | [diff] [blame] | 782 | pmic@58 { |
| 783 | compatible = "dlg,da9063"; |
| 784 | reg = <0x58>; |
| 785 | interrupt-parent = <&irqc0>; |
| 786 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 787 | interrupt-controller; |
| 788 | |
| 789 | rtc { |
| 790 | compatible = "dlg,da9063-rtc"; |
| 791 | }; |
| 792 | |
| 793 | wdt { |
| 794 | compatible = "dlg,da9063-watchdog"; |
| 795 | }; |
| 796 | }; |
| 797 | |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 798 | vdd_dvfs: regulator@68 { |
Steve Twiss | bd597f4 | 2014-08-22 15:26:55 +0100 | [diff] [blame] | 799 | compatible = "dlg,da9210"; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 800 | reg = <0x68>; |
Geert Uytterhoeven | 4be7338 | 2015-03-09 21:06:54 +0100 | [diff] [blame] | 801 | interrupt-parent = <&irqc0>; |
| 802 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 803 | |
| 804 | regulator-min-microvolt = <1000000>; |
| 805 | regulator-max-microvolt = <1000000>; |
| 806 | regulator-boot-on; |
| 807 | regulator-always-on; |
| 808 | }; |
| 809 | }; |
Gaku Inami | a57004ec | 2014-06-03 21:03:10 +0900 | [diff] [blame] | 810 | |
Sergei Shtylyov | 7540aeb | 2014-06-24 22:11:44 +0400 | [diff] [blame] | 811 | &pci0 { |
| 812 | status = "okay"; |
| 813 | pinctrl-0 = <&usb0_pins>; |
| 814 | pinctrl-names = "default"; |
| 815 | }; |
| 816 | |
| 817 | &pci1 { |
| 818 | status = "okay"; |
| 819 | pinctrl-0 = <&usb1_pins>; |
| 820 | pinctrl-names = "default"; |
| 821 | }; |
| 822 | |
Yoshihiro Shimoda | fc4a00b | 2014-10-24 19:45:07 +0900 | [diff] [blame] | 823 | &hsusb { |
| 824 | status = "okay"; |
| 825 | pinctrl-0 = <&usb0_pins>; |
| 826 | pinctrl-names = "default"; |
| 827 | renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>; |
| 828 | }; |
| 829 | |
Sergei Shtylyov | dc80d8b | 2014-09-27 01:09:22 +0400 | [diff] [blame] | 830 | &usbphy { |
| 831 | status = "okay"; |
| 832 | }; |
| 833 | |
Phil Edworthy | 998d7d6 | 2014-06-13 10:37:21 +0100 | [diff] [blame] | 834 | &pcie_bus_clk { |
Sjoerd Simons | ac6908b | 2016-04-06 14:52:53 +0200 | [diff] [blame] | 835 | clock-frequency = <100000000>; |
Phil Edworthy | 998d7d6 | 2014-06-13 10:37:21 +0100 | [diff] [blame] | 836 | }; |
| 837 | |
| 838 | &pciec { |
| 839 | status = "okay"; |
| 840 | }; |
| 841 | |
Gaku Inami | a57004ec | 2014-06-03 21:03:10 +0900 | [diff] [blame] | 842 | &cpu0 { |
| 843 | cpu0-supply = <&vdd_dvfs>; |
| 844 | }; |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 845 | |
Hans Verkuil | 84e3a74 | 2016-10-18 17:01:34 +0200 | [diff] [blame] | 846 | /* HDMI video input */ |
| 847 | &vin0 { |
| 848 | status = "okay"; |
| 849 | pinctrl-0 = <&vin0_pins>; |
| 850 | pinctrl-names = "default"; |
| 851 | |
| 852 | port { |
| 853 | #address-cells = <1>; |
| 854 | #size-cells = <0>; |
| 855 | |
| 856 | vin0ep2: endpoint { |
| 857 | remote-endpoint = <&adv7612_out>; |
| 858 | bus-width = <24>; |
| 859 | hsync-active = <0>; |
| 860 | vsync-active = <0>; |
| 861 | pclk-sample = <1>; |
| 862 | data-active = <1>; |
| 863 | }; |
| 864 | }; |
| 865 | }; |
| 866 | |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 867 | /* composite video input */ |
| 868 | &vin1 { |
Geert Uytterhoeven | 815446d | 2014-12-09 12:25:03 +0100 | [diff] [blame] | 869 | status = "okay"; |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 870 | pinctrl-0 = <&vin1_pins>; |
| 871 | pinctrl-names = "default"; |
| 872 | |
| 873 | port { |
| 874 | #address-cells = <1>; |
| 875 | #size-cells = <0>; |
| 876 | |
| 877 | vin1ep: endpoint { |
| 878 | remote-endpoint = <&adv7180>; |
| 879 | bus-width = <8>; |
| 880 | }; |
| 881 | }; |
| 882 | }; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 883 | |
| 884 | &rcar_sound { |
| 885 | pinctrl-0 = <&sound_pins &sound_clk_pins>; |
| 886 | pinctrl-names = "default"; |
| 887 | |
Kuninori Morimoto | d2b541c | 2014-12-17 06:12:02 +0000 | [diff] [blame] | 888 | /* Single DAI */ |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 889 | #sound-dai-cells = <0>; |
| 890 | |
| 891 | status = "okay"; |
| 892 | |
| 893 | rcar_sound,dai { |
| 894 | dai0 { |
Kuninori Morimoto | 5c6d4b9 | 2014-11-03 17:49:45 -0800 | [diff] [blame] | 895 | playback = <&ssi0 &src2 &dvc0>; |
| 896 | capture = <&ssi1 &src3 &dvc1>; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 897 | }; |
| 898 | }; |
| 899 | }; |
| 900 | |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 901 | &ssi1 { |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 902 | shared-pin; |
| 903 | }; |