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