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; |
Laurent Pinchart | 5ba55fa | 2014-04-30 02:31:46 +0200 | [diff] [blame] | 53 | }; |
| 54 | |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 55 | chosen { |
Geert Uytterhoeven | 79e69d1 | 2014-10-29 15:28:38 +0100 | [diff] [blame] | 56 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
Geert Uytterhoeven | 832dae1 | 2015-12-08 18:54:12 +0100 | [diff] [blame] | 57 | stdout-path = "serial0:115200n8"; |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | memory@40000000 { |
| 61 | device_type = "memory"; |
Takashi Yoshii | 4cd1bad | 2013-12-22 18:27:23 +0900 | [diff] [blame] | 62 | reg = <0 0x40000000 0 0x40000000>; |
| 63 | }; |
| 64 | |
| 65 | memory@200000000 { |
| 66 | device_type = "memory"; |
| 67 | reg = <2 0x00000000 0 0x40000000>; |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | lbsc { |
| 71 | #address-cells = <1>; |
| 72 | #size-cells = <1>; |
| 73 | }; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 74 | |
Simon Horman | d3aaec83 | 2014-11-12 17:59:36 +0900 | [diff] [blame] | 75 | keyboard { |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 76 | compatible = "gpio-keys"; |
| 77 | |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 78 | key-1 { |
| 79 | gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; |
| 80 | linux,code = <KEY_1>; |
| 81 | label = "SW2-1"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 82 | wakeup-source; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 83 | debounce-interval = <20>; |
| 84 | }; |
| 85 | key-2 { |
| 86 | gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; |
| 87 | linux,code = <KEY_2>; |
| 88 | label = "SW2-2"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 89 | wakeup-source; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 90 | debounce-interval = <20>; |
| 91 | }; |
| 92 | key-3 { |
| 93 | gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; |
| 94 | linux,code = <KEY_3>; |
| 95 | label = "SW2-3"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 96 | wakeup-source; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 97 | debounce-interval = <20>; |
| 98 | }; |
| 99 | key-4 { |
| 100 | gpios = <&gpio5 3 GPIO_ACTIVE_LOW>; |
| 101 | linux,code = <KEY_4>; |
| 102 | label = "SW2-4"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 103 | wakeup-source; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 104 | debounce-interval = <20>; |
| 105 | }; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 106 | key-a { |
| 107 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 108 | linux,code = <KEY_A>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 109 | label = "SW30"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 110 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 111 | debounce-interval = <20>; |
| 112 | }; |
| 113 | key-b { |
| 114 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 115 | linux,code = <KEY_B>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 116 | label = "SW31"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 117 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 118 | debounce-interval = <20>; |
| 119 | }; |
| 120 | key-c { |
| 121 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 122 | linux,code = <KEY_C>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 123 | label = "SW32"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 124 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 125 | debounce-interval = <20>; |
| 126 | }; |
| 127 | key-d { |
| 128 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 129 | linux,code = <KEY_D>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 130 | label = "SW33"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 131 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 132 | debounce-interval = <20>; |
| 133 | }; |
| 134 | key-e { |
| 135 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 136 | linux,code = <KEY_E>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 137 | label = "SW34"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 138 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 139 | debounce-interval = <20>; |
| 140 | }; |
| 141 | key-f { |
| 142 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 143 | linux,code = <KEY_F>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 144 | label = "SW35"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 145 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 146 | debounce-interval = <20>; |
| 147 | }; |
| 148 | key-g { |
| 149 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; |
Magnus Damm | 7f168b1 | 2014-03-18 22:01:17 +0900 | [diff] [blame] | 150 | linux,code = <KEY_G>; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 151 | label = "SW36"; |
Sudeep Holla | 0cc1688 | 2015-10-21 11:10:11 +0100 | [diff] [blame] | 152 | wakeup-source; |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 153 | debounce-interval = <20>; |
| 154 | }; |
| 155 | }; |
| 156 | |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 157 | leds { |
| 158 | compatible = "gpio-leds"; |
| 159 | led6 { |
| 160 | gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; |
Geert Uytterhoeven | 352faa5 | 2014-11-06 13:49:58 +0100 | [diff] [blame] | 161 | label = "LED6"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 162 | }; |
| 163 | led7 { |
| 164 | gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; |
Geert Uytterhoeven | 352faa5 | 2014-11-06 13:49:58 +0100 | [diff] [blame] | 165 | label = "LED7"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 166 | }; |
| 167 | led8 { |
| 168 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; |
Geert Uytterhoeven | 352faa5 | 2014-11-06 13:49:58 +0100 | [diff] [blame] | 169 | label = "LED8"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 170 | }; |
| 171 | }; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 172 | |
| 173 | vcc_sdhi0: regulator@0 { |
| 174 | compatible = "regulator-fixed"; |
| 175 | |
| 176 | regulator-name = "SDHI0 Vcc"; |
| 177 | regulator-min-microvolt = <3300000>; |
| 178 | regulator-max-microvolt = <3300000>; |
| 179 | |
| 180 | gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>; |
| 181 | enable-active-high; |
| 182 | }; |
| 183 | |
| 184 | vccq_sdhi0: regulator@1 { |
| 185 | compatible = "regulator-gpio"; |
| 186 | |
| 187 | regulator-name = "SDHI0 VccQ"; |
| 188 | regulator-min-microvolt = <1800000>; |
| 189 | regulator-max-microvolt = <3300000>; |
| 190 | |
| 191 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; |
| 192 | gpios-states = <1>; |
| 193 | states = <3300000 1 |
| 194 | 1800000 0>; |
| 195 | }; |
| 196 | |
| 197 | vcc_sdhi1: regulator@2 { |
| 198 | compatible = "regulator-fixed"; |
| 199 | |
| 200 | regulator-name = "SDHI1 Vcc"; |
| 201 | regulator-min-microvolt = <3300000>; |
| 202 | regulator-max-microvolt = <3300000>; |
| 203 | |
| 204 | gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>; |
| 205 | enable-active-high; |
| 206 | }; |
| 207 | |
| 208 | vccq_sdhi1: regulator@3 { |
| 209 | compatible = "regulator-gpio"; |
| 210 | |
| 211 | regulator-name = "SDHI1 VccQ"; |
| 212 | regulator-min-microvolt = <1800000>; |
| 213 | regulator-max-microvolt = <3300000>; |
| 214 | |
| 215 | gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; |
| 216 | gpios-states = <1>; |
| 217 | states = <3300000 1 |
| 218 | 1800000 0>; |
| 219 | }; |
| 220 | |
| 221 | vcc_sdhi2: regulator@4 { |
| 222 | compatible = "regulator-fixed"; |
| 223 | |
| 224 | regulator-name = "SDHI2 Vcc"; |
| 225 | regulator-min-microvolt = <3300000>; |
| 226 | regulator-max-microvolt = <3300000>; |
| 227 | |
| 228 | gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>; |
| 229 | enable-active-high; |
| 230 | }; |
| 231 | |
| 232 | vccq_sdhi2: regulator@5 { |
| 233 | compatible = "regulator-gpio"; |
| 234 | |
| 235 | regulator-name = "SDHI2 VccQ"; |
| 236 | regulator-min-microvolt = <1800000>; |
| 237 | regulator-max-microvolt = <3300000>; |
| 238 | |
| 239 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; |
| 240 | gpios-states = <1>; |
| 241 | states = <3300000 1 |
| 242 | 1800000 0>; |
| 243 | }; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 244 | |
Simon Horman | 62c7e9d | 2016-03-18 08:17:57 +0900 | [diff] [blame] | 245 | audio_clock: audio_clock { |
Kuninori Morimoto | c19c84f | 2015-08-20 03:09:30 +0000 | [diff] [blame] | 246 | compatible = "fixed-clock"; |
| 247 | #clock-cells = <0>; |
| 248 | clock-frequency = <11289600>; |
Kuninori Morimoto | c19c84f | 2015-08-20 03:09:30 +0000 | [diff] [blame] | 249 | }; |
| 250 | |
Kuninori Morimoto | 18f88d2 | 2015-07-14 04:57:05 +0000 | [diff] [blame] | 251 | rsnd_ak4643: sound { |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 252 | compatible = "simple-audio-card"; |
| 253 | |
| 254 | simple-audio-card,format = "left_j"; |
| 255 | simple-audio-card,bitclock-master = <&sndcodec>; |
| 256 | simple-audio-card,frame-master = <&sndcodec>; |
| 257 | |
| 258 | sndcpu: simple-audio-card,cpu { |
| 259 | sound-dai = <&rcar_sound>; |
| 260 | }; |
| 261 | |
| 262 | sndcodec: simple-audio-card,codec { |
| 263 | sound-dai = <&ak4643>; |
Kuninori Morimoto | c19c84f | 2015-08-20 03:09:30 +0000 | [diff] [blame] | 264 | clocks = <&audio_clock>; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 265 | }; |
| 266 | }; |
Laurent Pinchart | 83a0731 | 2014-12-11 01:42:12 +0200 | [diff] [blame] | 267 | |
| 268 | hdmi-out { |
| 269 | compatible = "hdmi-connector"; |
| 270 | type = "a"; |
| 271 | |
| 272 | port { |
| 273 | hdmi_con: endpoint { |
| 274 | remote-endpoint = <&adv7511_out>; |
| 275 | }; |
| 276 | }; |
| 277 | }; |
Laurent Pinchart | cd21cb4 | 2015-02-26 11:21:23 +0200 | [diff] [blame] | 278 | |
| 279 | x2_clk: x2-clock { |
| 280 | compatible = "fixed-clock"; |
| 281 | #clock-cells = <0>; |
| 282 | clock-frequency = <148500000>; |
| 283 | }; |
| 284 | |
| 285 | x13_clk: x13-clock { |
| 286 | compatible = "fixed-clock"; |
| 287 | #clock-cells = <0>; |
| 288 | clock-frequency = <148500000>; |
| 289 | }; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 290 | }; |
| 291 | |
Laurent Pinchart | 0ee56d4 | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 292 | &du { |
| 293 | pinctrl-0 = <&du_pins>; |
| 294 | pinctrl-names = "default"; |
| 295 | status = "okay"; |
| 296 | |
Laurent Pinchart | cd21cb4 | 2015-02-26 11:21:23 +0200 | [diff] [blame] | 297 | clocks = <&mstp7_clks R8A7791_CLK_DU0>, |
| 298 | <&mstp7_clks R8A7791_CLK_DU1>, |
| 299 | <&mstp7_clks R8A7791_CLK_LVDS0>, |
| 300 | <&x13_clk>, <&x2_clk>; |
| 301 | clock-names = "du.0", "du.1", "lvds.0", |
| 302 | "dclkin.0", "dclkin.1"; |
| 303 | |
Laurent Pinchart | 0ee56d4 | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 304 | ports { |
Laurent Pinchart | 83a0731 | 2014-12-11 01:42:12 +0200 | [diff] [blame] | 305 | port@0 { |
| 306 | endpoint { |
| 307 | remote-endpoint = <&adv7511_in>; |
| 308 | }; |
| 309 | }; |
Laurent Pinchart | 0ee56d4 | 2014-01-21 16:02:54 +0100 | [diff] [blame] | 310 | port@1 { |
| 311 | lvds_connector: endpoint { |
| 312 | }; |
| 313 | }; |
| 314 | }; |
| 315 | }; |
| 316 | |
Laurent Pinchart | fcf0c72 | 2013-12-11 15:13:50 +0100 | [diff] [blame] | 317 | &extal_clk { |
| 318 | clock-frequency = <20000000>; |
| 319 | }; |
| 320 | |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 321 | &pfc { |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 322 | pinctrl-0 = <&scif_clk_pins>; |
| 323 | pinctrl-names = "default"; |
| 324 | |
Wolfram Sang | e6a4c00 | 2014-03-10 12:26:59 +0100 | [diff] [blame] | 325 | i2c2_pins: i2c2 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 326 | groups = "i2c2"; |
| 327 | function = "i2c2"; |
Wolfram Sang | 38c5351 | 2014-02-17 11:44:42 +0100 | [diff] [blame] | 328 | }; |
| 329 | |
Laurent Pinchart | afba941 | 2014-02-16 22:32:01 +0100 | [diff] [blame] | 330 | du_pins: du { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 331 | groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; |
| 332 | function = "du"; |
Laurent Pinchart | afba941 | 2014-02-16 22:32:01 +0100 | [diff] [blame] | 333 | }; |
| 334 | |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 335 | scif0_pins: serial0 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 336 | groups = "scif0_data_d"; |
| 337 | function = "scif0"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 338 | }; |
| 339 | |
| 340 | scif1_pins: serial1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 341 | groups = "scif1_data_d"; |
| 342 | function = "scif1"; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 343 | }; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 344 | |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 345 | scif_clk_pins: scif_clk { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 346 | groups = "scif_clk"; |
| 347 | function = "scif_clk"; |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 348 | }; |
| 349 | |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 350 | ether_pins: ether { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 351 | groups = "eth_link", "eth_mdio", "eth_rmii"; |
| 352 | function = "eth"; |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 353 | }; |
| 354 | |
| 355 | phy1_pins: phy1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 356 | groups = "intc_irq0"; |
| 357 | function = "intc"; |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 358 | }; |
| 359 | |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 360 | sdhi0_pins: sd0 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 361 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 362 | function = "sdhi0"; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 363 | }; |
| 364 | |
| 365 | sdhi1_pins: sd1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 366 | groups = "sdhi1_data4", "sdhi1_ctrl"; |
| 367 | function = "sdhi1"; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 368 | }; |
| 369 | |
| 370 | sdhi2_pins: sd2 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 371 | groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 372 | function = "sdhi2"; |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 373 | }; |
| 374 | |
Geert Uytterhoeven | 6f3e4ee | 2014-02-25 11:30:14 +0100 | [diff] [blame] | 375 | qspi_pins: spi0 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 376 | groups = "qspi_ctrl", "qspi_data4"; |
| 377 | function = "qspi"; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 378 | }; |
Geert Uytterhoeven | b16f05a | 2014-02-25 11:30:18 +0100 | [diff] [blame] | 379 | |
| 380 | msiof0_pins: spi1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 381 | groups = "msiof0_clk", "msiof0_sync", "msiof0_rx", |
Geert Uytterhoeven | b16f05a | 2014-02-25 11:30:18 +0100 | [diff] [blame] | 382 | "msiof0_tx"; |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 383 | function = "msiof0"; |
Geert Uytterhoeven | b16f05a | 2014-02-25 11:30:18 +0100 | [diff] [blame] | 384 | }; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 385 | |
Sergei Shtylyov | 7540aeb | 2014-06-24 22:11:44 +0400 | [diff] [blame] | 386 | usb0_pins: usb0 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 387 | groups = "usb0"; |
| 388 | function = "usb0"; |
Sergei Shtylyov | 7540aeb | 2014-06-24 22:11:44 +0400 | [diff] [blame] | 389 | }; |
| 390 | |
| 391 | usb1_pins: usb1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 392 | groups = "usb1"; |
| 393 | function = "usb1"; |
Sergei Shtylyov | 7540aeb | 2014-06-24 22:11:44 +0400 | [diff] [blame] | 394 | }; |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 395 | |
| 396 | vin1_pins: vin1 { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 397 | groups = "vin1_data8", "vin1_clk"; |
| 398 | function = "vin1"; |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 399 | }; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 400 | |
| 401 | sound_pins: sound { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 402 | groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; |
| 403 | function = "ssi"; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 404 | }; |
| 405 | |
| 406 | sound_clk_pins: sound_clk { |
Simon Horman | fec7b9f | 2016-03-18 07:55:10 +0900 | [diff] [blame] | 407 | groups = "audio_clk_a"; |
| 408 | function = "audio_clk"; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 409 | }; |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 410 | }; |
Valentine Barshak | 760c277 | 2014-01-14 21:05:41 +0400 | [diff] [blame] | 411 | |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 412 | ðer { |
| 413 | pinctrl-0 = <ðer_pins &phy1_pins>; |
| 414 | pinctrl-names = "default"; |
| 415 | |
| 416 | phy-handle = <&phy1>; |
| 417 | renesas,ether-link-active-low; |
Geert Uytterhoeven | 815446d | 2014-12-09 12:25:03 +0100 | [diff] [blame] | 418 | status = "okay"; |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 419 | |
| 420 | phy1: ethernet-phy@1 { |
| 421 | reg = <1>; |
| 422 | interrupt-parent = <&irqc0>; |
| 423 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
Laurent Pinchart | 19f647c | 2014-03-18 19:04:48 +0100 | [diff] [blame] | 424 | micrel,led-mode = <1>; |
Sergei Shtylyov | 08e8f0f | 2014-02-20 02:28:59 +0300 | [diff] [blame] | 425 | }; |
| 426 | }; |
| 427 | |
Laurent Pinchart | 6a1d946 | 2014-07-09 15:12:42 +0200 | [diff] [blame] | 428 | &cmt0 { |
Geert Uytterhoeven | 815446d | 2014-12-09 12:25:03 +0100 | [diff] [blame] | 429 | status = "okay"; |
Laurent Pinchart | 6a1d946 | 2014-07-09 15:12:42 +0200 | [diff] [blame] | 430 | }; |
| 431 | |
Valentine Barshak | 760c277 | 2014-01-14 21:05:41 +0400 | [diff] [blame] | 432 | &sata0 { |
| 433 | status = "okay"; |
| 434 | }; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 435 | |
Laurent Pinchart | 5ba55fa | 2014-04-30 02:31:46 +0200 | [diff] [blame] | 436 | &scif0 { |
| 437 | pinctrl-0 = <&scif0_pins>; |
| 438 | pinctrl-names = "default"; |
| 439 | |
| 440 | status = "okay"; |
| 441 | }; |
| 442 | |
| 443 | &scif1 { |
| 444 | pinctrl-0 = <&scif1_pins>; |
| 445 | pinctrl-names = "default"; |
| 446 | |
| 447 | status = "okay"; |
| 448 | }; |
| 449 | |
Geert Uytterhoeven | 338f7eb | 2016-01-29 11:17:21 +0100 | [diff] [blame] | 450 | &scif_clk { |
| 451 | clock-frequency = <14745600>; |
| 452 | status = "okay"; |
| 453 | }; |
| 454 | |
Magnus Damm | 2c60a7d | 2014-02-12 18:54:04 +0900 | [diff] [blame] | 455 | &sdhi0 { |
| 456 | pinctrl-0 = <&sdhi0_pins>; |
| 457 | pinctrl-names = "default"; |
| 458 | |
| 459 | vmmc-supply = <&vcc_sdhi0>; |
| 460 | vqmmc-supply = <&vccq_sdhi0>; |
| 461 | cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; |
| 462 | wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; |
| 463 | status = "okay"; |
| 464 | }; |
| 465 | |
| 466 | &sdhi1 { |
| 467 | pinctrl-0 = <&sdhi1_pins>; |
| 468 | pinctrl-names = "default"; |
| 469 | |
| 470 | vmmc-supply = <&vcc_sdhi1>; |
| 471 | vqmmc-supply = <&vccq_sdhi1>; |
| 472 | cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; |
| 473 | wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>; |
| 474 | status = "okay"; |
| 475 | }; |
| 476 | |
| 477 | &sdhi2 { |
| 478 | pinctrl-0 = <&sdhi2_pins>; |
| 479 | pinctrl-names = "default"; |
| 480 | |
| 481 | vmmc-supply = <&vcc_sdhi2>; |
| 482 | vqmmc-supply = <&vccq_sdhi2>; |
| 483 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; |
| 484 | status = "okay"; |
| 485 | }; |
| 486 | |
Geert Uytterhoeven | 6f3e4ee | 2014-02-25 11:30:14 +0100 | [diff] [blame] | 487 | &qspi { |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 488 | pinctrl-0 = <&qspi_pins>; |
| 489 | pinctrl-names = "default"; |
| 490 | |
| 491 | status = "okay"; |
| 492 | |
| 493 | flash: flash@0 { |
Geert Uytterhoeven | cc3db02 | 2015-05-20 20:16:54 +0200 | [diff] [blame] | 494 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 495 | reg = <0>; |
| 496 | spi-max-frequency = <30000000>; |
Geert Uytterhoeven | ed56083 | 2014-04-14 19:35:58 +0200 | [diff] [blame] | 497 | spi-tx-bus-width = <4>; |
| 498 | spi-rx-bus-width = <4>; |
Hisashi Nakamura | 9c5becc | 2014-12-09 09:37:12 +0900 | [diff] [blame] | 499 | spi-cpha; |
| 500 | spi-cpol; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 501 | m25p,fast-read; |
| 502 | |
Geert Uytterhoeven | 27fa0a6 | 2015-11-10 09:35:06 +0100 | [diff] [blame] | 503 | partitions { |
Geert Uytterhoeven | f6531bb | 2015-12-21 11:33:49 +0100 | [diff] [blame] | 504 | compatible = "fixed-partitions"; |
Geert Uytterhoeven | 27fa0a6 | 2015-11-10 09:35:06 +0100 | [diff] [blame] | 505 | #address-cells = <1>; |
| 506 | #size-cells = <1>; |
| 507 | |
| 508 | partition@0 { |
| 509 | label = "loader"; |
| 510 | reg = <0x00000000 0x00080000>; |
| 511 | read-only; |
| 512 | }; |
| 513 | partition@80000 { |
| 514 | label = "user"; |
| 515 | reg = <0x00080000 0x00580000>; |
| 516 | read-only; |
| 517 | }; |
| 518 | partition@600000 { |
| 519 | label = "flash"; |
| 520 | reg = <0x00600000 0x03a00000>; |
| 521 | }; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 522 | }; |
| 523 | }; |
| 524 | }; |
Geert Uytterhoeven | b16f05a | 2014-02-25 11:30:18 +0100 | [diff] [blame] | 525 | |
| 526 | &msiof0 { |
| 527 | pinctrl-0 = <&msiof0_pins>; |
| 528 | pinctrl-names = "default"; |
| 529 | |
| 530 | status = "okay"; |
| 531 | |
| 532 | pmic: pmic@0 { |
| 533 | compatible = "renesas,r2a11302ft"; |
| 534 | reg = <0>; |
| 535 | spi-max-frequency = <6000000>; |
| 536 | spi-cpol; |
| 537 | spi-cpha; |
| 538 | }; |
| 539 | }; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 540 | |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 541 | &i2c2 { |
| 542 | pinctrl-0 = <&i2c2_pins>; |
| 543 | pinctrl-names = "default"; |
| 544 | |
| 545 | status = "okay"; |
Kuninori Morimoto | a8d943e | 2014-11-03 17:48:49 -0800 | [diff] [blame] | 546 | clock-frequency = <100000>; |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 547 | |
Geert Uytterhoeven | 95cfb59 | 2015-04-28 12:29:23 +0200 | [diff] [blame] | 548 | ak4643: codec@12 { |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 549 | compatible = "asahi-kasei,ak4643"; |
| 550 | #sound-dai-cells = <0>; |
| 551 | reg = <0x12>; |
| 552 | }; |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 553 | |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 554 | composite-in@20 { |
| 555 | compatible = "adi,adv7180"; |
| 556 | reg = <0x20>; |
| 557 | remote = <&vin1>; |
| 558 | |
| 559 | port { |
| 560 | adv7180: endpoint { |
| 561 | bus-width = <8>; |
| 562 | remote-endpoint = <&vin1ep>; |
| 563 | }; |
| 564 | }; |
| 565 | }; |
| 566 | |
Laurent Pinchart | 83a0731 | 2014-12-11 01:42:12 +0200 | [diff] [blame] | 567 | hdmi@39 { |
| 568 | compatible = "adi,adv7511w"; |
| 569 | reg = <0x39>; |
| 570 | interrupt-parent = <&gpio3>; |
Laurent Pinchart | 12392f5 | 2015-04-29 16:55:43 +0300 | [diff] [blame] | 571 | interrupts = <29 IRQ_TYPE_LEVEL_LOW>; |
Laurent Pinchart | 83a0731 | 2014-12-11 01:42:12 +0200 | [diff] [blame] | 572 | |
| 573 | adi,input-depth = <8>; |
| 574 | adi,input-colorspace = "rgb"; |
| 575 | adi,input-clock = "1x"; |
| 576 | adi,input-style = <1>; |
| 577 | adi,input-justification = "evenly"; |
| 578 | |
| 579 | ports { |
| 580 | #address-cells = <1>; |
| 581 | #size-cells = <0>; |
| 582 | |
| 583 | port@0 { |
| 584 | reg = <0>; |
| 585 | adv7511_in: endpoint { |
| 586 | remote-endpoint = <&du_out_rgb>; |
| 587 | }; |
| 588 | }; |
| 589 | |
| 590 | port@1 { |
| 591 | reg = <1>; |
| 592 | adv7511_out: endpoint { |
| 593 | remote-endpoint = <&hdmi_con>; |
| 594 | }; |
| 595 | }; |
| 596 | }; |
| 597 | }; |
| 598 | |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 599 | eeprom@50 { |
| 600 | compatible = "renesas,24c02"; |
| 601 | reg = <0x50>; |
| 602 | pagesize = <16>; |
| 603 | }; |
| 604 | }; |
| 605 | |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 606 | &i2c6 { |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 607 | status = "okay"; |
Simon Horman | 897dfdb | 2014-06-09 17:50:28 +0900 | [diff] [blame] | 608 | clock-frequency = <100000>; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 609 | |
Geert Uytterhoeven | a6b4226 | 2015-03-09 21:06:55 +0100 | [diff] [blame] | 610 | pmic@58 { |
| 611 | compatible = "dlg,da9063"; |
| 612 | reg = <0x58>; |
| 613 | interrupt-parent = <&irqc0>; |
| 614 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 615 | interrupt-controller; |
| 616 | |
| 617 | rtc { |
| 618 | compatible = "dlg,da9063-rtc"; |
| 619 | }; |
| 620 | |
| 621 | wdt { |
| 622 | compatible = "dlg,da9063-watchdog"; |
| 623 | }; |
| 624 | }; |
| 625 | |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 626 | vdd_dvfs: regulator@68 { |
Steve Twiss | bd597f4 | 2014-08-22 15:26:55 +0100 | [diff] [blame] | 627 | compatible = "dlg,da9210"; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 628 | reg = <0x68>; |
Geert Uytterhoeven | 4be7338 | 2015-03-09 21:06:54 +0100 | [diff] [blame] | 629 | interrupt-parent = <&irqc0>; |
| 630 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
Gaku Inami | 1d41f36 | 2014-06-03 21:02:59 +0900 | [diff] [blame] | 631 | |
| 632 | regulator-min-microvolt = <1000000>; |
| 633 | regulator-max-microvolt = <1000000>; |
| 634 | regulator-boot-on; |
| 635 | regulator-always-on; |
| 636 | }; |
| 637 | }; |
Gaku Inami | a57004ec | 2014-06-03 21:03:10 +0900 | [diff] [blame] | 638 | |
Sergei Shtylyov | 7540aeb | 2014-06-24 22:11:44 +0400 | [diff] [blame] | 639 | &pci0 { |
| 640 | status = "okay"; |
| 641 | pinctrl-0 = <&usb0_pins>; |
| 642 | pinctrl-names = "default"; |
| 643 | }; |
| 644 | |
| 645 | &pci1 { |
| 646 | status = "okay"; |
| 647 | pinctrl-0 = <&usb1_pins>; |
| 648 | pinctrl-names = "default"; |
| 649 | }; |
| 650 | |
Yoshihiro Shimoda | fc4a00b | 2014-10-24 19:45:07 +0900 | [diff] [blame] | 651 | &hsusb { |
| 652 | status = "okay"; |
| 653 | pinctrl-0 = <&usb0_pins>; |
| 654 | pinctrl-names = "default"; |
| 655 | renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>; |
| 656 | }; |
| 657 | |
Sergei Shtylyov | dc80d8b | 2014-09-27 01:09:22 +0400 | [diff] [blame] | 658 | &usbphy { |
| 659 | status = "okay"; |
| 660 | }; |
| 661 | |
Phil Edworthy | 998d7d6 | 2014-06-13 10:37:21 +0100 | [diff] [blame] | 662 | &pcie_bus_clk { |
| 663 | status = "okay"; |
| 664 | }; |
| 665 | |
| 666 | &pciec { |
| 667 | status = "okay"; |
| 668 | }; |
| 669 | |
Gaku Inami | a57004ec | 2014-06-03 21:03:10 +0900 | [diff] [blame] | 670 | &cpu0 { |
| 671 | cpu0-supply = <&vdd_dvfs>; |
| 672 | }; |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 673 | |
| 674 | /* composite video input */ |
| 675 | &vin1 { |
Geert Uytterhoeven | 815446d | 2014-12-09 12:25:03 +0100 | [diff] [blame] | 676 | status = "okay"; |
sergei.shtylyov@cogentembedded.com | 2cf0881 | 2014-08-06 22:38:22 +0400 | [diff] [blame] | 677 | pinctrl-0 = <&vin1_pins>; |
| 678 | pinctrl-names = "default"; |
| 679 | |
| 680 | port { |
| 681 | #address-cells = <1>; |
| 682 | #size-cells = <0>; |
| 683 | |
| 684 | vin1ep: endpoint { |
| 685 | remote-endpoint = <&adv7180>; |
| 686 | bus-width = <8>; |
| 687 | }; |
| 688 | }; |
| 689 | }; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 690 | |
| 691 | &rcar_sound { |
| 692 | pinctrl-0 = <&sound_pins &sound_clk_pins>; |
| 693 | pinctrl-names = "default"; |
| 694 | |
Kuninori Morimoto | d2b541c | 2014-12-17 06:12:02 +0000 | [diff] [blame] | 695 | /* Single DAI */ |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 696 | #sound-dai-cells = <0>; |
| 697 | |
| 698 | status = "okay"; |
| 699 | |
| 700 | rcar_sound,dai { |
| 701 | dai0 { |
Kuninori Morimoto | 5c6d4b9 | 2014-11-03 17:49:45 -0800 | [diff] [blame] | 702 | playback = <&ssi0 &src2 &dvc0>; |
| 703 | capture = <&ssi1 &src3 &dvc1>; |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 704 | }; |
| 705 | }; |
| 706 | }; |
| 707 | |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 708 | &ssi1 { |
Kuninori Morimoto | b160f61 | 2014-11-03 17:49:00 -0800 | [diff] [blame] | 709 | shared-pin; |
| 710 | }; |