Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the Lager board |
| 3 | * |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 4 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
| 5 | * Copyright (C) 2014 Cogent Embedded, Inc. |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 6 | * |
| 7 | * This file is licensed under the terms of the GNU General Public License |
| 8 | * version 2. This program is licensed "as is" without any warranty of any |
| 9 | * kind, whether express or implied. |
| 10 | */ |
| 11 | |
| 12 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 13 | #include "r8a7790.dtsi" |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 14 | #include <dt-bindings/gpio/gpio.h> |
Magnus Damm | f7dcd38 | 2014-03-18 21:57:48 +0900 | [diff] [blame] | 15 | #include <dt-bindings/input/input.h> |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "Lager"; |
| 19 | compatible = "renesas,lager", "renesas,r8a7790"; |
| 20 | |
Laurent Pinchart | 4e9c487 | 2014-04-30 02:31:45 +0200 | [diff] [blame] | 21 | aliases { |
| 22 | serial6 = &scif0; |
| 23 | serial7 = &scif1; |
| 24 | }; |
| 25 | |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 26 | chosen { |
Simon Horman | dcbbbaf | 2013-08-06 16:50:11 +0900 | [diff] [blame] | 27 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | memory@40000000 { |
| 31 | device_type = "memory"; |
| 32 | reg = <0 0x40000000 0 0x80000000>; |
| 33 | }; |
| 34 | |
Magnus Damm | 62bc32a | 2013-10-31 12:21:41 +0900 | [diff] [blame] | 35 | memory@180000000 { |
| 36 | device_type = "memory"; |
| 37 | reg = <1 0x80000000 0 0x80000000>; |
| 38 | }; |
| 39 | |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 40 | lbsc { |
| 41 | #address-cells = <1>; |
| 42 | #size-cells = <1>; |
| 43 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 44 | |
Magnus Damm | f7dcd38 | 2014-03-18 21:57:48 +0900 | [diff] [blame] | 45 | gpio_keys { |
| 46 | compatible = "gpio-keys"; |
| 47 | |
| 48 | button@1 { |
| 49 | linux,code = <KEY_1>; |
| 50 | label = "SW2-1"; |
| 51 | gpio-key,wakeup; |
| 52 | debounce-interval = <20>; |
| 53 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
| 54 | }; |
| 55 | button@2 { |
| 56 | linux,code = <KEY_2>; |
| 57 | label = "SW2-2"; |
| 58 | gpio-key,wakeup; |
| 59 | debounce-interval = <20>; |
| 60 | gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; |
| 61 | }; |
| 62 | button@3 { |
| 63 | linux,code = <KEY_3>; |
| 64 | label = "SW2-3"; |
| 65 | gpio-key,wakeup; |
| 66 | debounce-interval = <20>; |
| 67 | gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; |
| 68 | }; |
| 69 | button@4 { |
| 70 | linux,code = <KEY_4>; |
| 71 | label = "SW2-4"; |
| 72 | gpio-key,wakeup; |
| 73 | debounce-interval = <20>; |
| 74 | gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; |
| 75 | }; |
| 76 | }; |
| 77 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 78 | leds { |
| 79 | compatible = "gpio-leds"; |
| 80 | led6 { |
| 81 | gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; |
| 82 | }; |
| 83 | led7 { |
| 84 | gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; |
| 85 | }; |
| 86 | led8 { |
| 87 | gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | fixedregulator3v3: fixedregulator@0 { |
| 92 | compatible = "regulator-fixed"; |
| 93 | regulator-name = "fixed-3.3V"; |
| 94 | regulator-min-microvolt = <3300000>; |
| 95 | regulator-max-microvolt = <3300000>; |
| 96 | regulator-boot-on; |
| 97 | regulator-always-on; |
| 98 | }; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 99 | |
| 100 | vcc_sdhi0: regulator@1 { |
| 101 | compatible = "regulator-fixed"; |
| 102 | |
| 103 | regulator-name = "SDHI0 Vcc"; |
| 104 | regulator-min-microvolt = <3300000>; |
| 105 | regulator-max-microvolt = <3300000>; |
| 106 | |
| 107 | gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>; |
| 108 | enable-active-high; |
| 109 | }; |
| 110 | |
| 111 | vccq_sdhi0: regulator@2 { |
| 112 | compatible = "regulator-gpio"; |
| 113 | |
| 114 | regulator-name = "SDHI0 VccQ"; |
| 115 | regulator-min-microvolt = <1800000>; |
| 116 | regulator-max-microvolt = <3300000>; |
| 117 | |
| 118 | gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; |
| 119 | gpios-states = <1>; |
| 120 | states = <3300000 1 |
| 121 | 1800000 0>; |
| 122 | }; |
| 123 | |
| 124 | vcc_sdhi2: regulator@3 { |
| 125 | compatible = "regulator-fixed"; |
| 126 | |
| 127 | regulator-name = "SDHI2 Vcc"; |
| 128 | regulator-min-microvolt = <3300000>; |
| 129 | regulator-max-microvolt = <3300000>; |
| 130 | |
| 131 | gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>; |
| 132 | enable-active-high; |
| 133 | }; |
| 134 | |
| 135 | vccq_sdhi2: regulator@4 { |
| 136 | compatible = "regulator-gpio"; |
| 137 | |
| 138 | regulator-name = "SDHI2 VccQ"; |
| 139 | regulator-min-microvolt = <1800000>; |
| 140 | regulator-max-microvolt = <3300000>; |
| 141 | |
| 142 | gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; |
| 143 | gpios-states = <1>; |
| 144 | states = <3300000 1 |
| 145 | 1800000 0>; |
| 146 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 147 | }; |
| 148 | |
Laurent Pinchart | 62e4305 | 2013-12-11 15:13:49 +0100 | [diff] [blame] | 149 | &extal_clk { |
| 150 | clock-frequency = <20000000>; |
| 151 | }; |
| 152 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 153 | &pfc { |
Laurent Pinchart | 4e9c487 | 2014-04-30 02:31:45 +0200 | [diff] [blame] | 154 | pinctrl-0 = <&du_pins>; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 155 | pinctrl-names = "default"; |
| 156 | |
Laurent Pinchart | 3024f50 | 2014-02-16 22:31:59 +0100 | [diff] [blame] | 157 | du_pins: du { |
| 158 | renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0"; |
| 159 | renesas,function = "du"; |
| 160 | }; |
| 161 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 162 | scif0_pins: serial0 { |
| 163 | renesas,groups = "scif0_data"; |
| 164 | renesas,function = "scif0"; |
| 165 | }; |
| 166 | |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 167 | ether_pins: ether { |
| 168 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; |
| 169 | renesas,function = "eth"; |
| 170 | }; |
| 171 | |
| 172 | phy1_pins: phy1 { |
| 173 | renesas,groups = "intc_irq0"; |
| 174 | renesas,function = "intc"; |
| 175 | }; |
| 176 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 177 | scif1_pins: serial1 { |
| 178 | renesas,groups = "scif1_data"; |
| 179 | renesas,function = "scif1"; |
| 180 | }; |
| 181 | |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 182 | sdhi0_pins: sd0 { |
Rob Taylor | b08eed0 | 2014-04-07 20:16:52 +0100 | [diff] [blame] | 183 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 184 | renesas,function = "sdhi0"; |
| 185 | }; |
| 186 | |
| 187 | sdhi2_pins: sd2 { |
Rob Taylor | b08eed0 | 2014-04-07 20:16:52 +0100 | [diff] [blame] | 188 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 189 | renesas,function = "sdhi2"; |
| 190 | }; |
| 191 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 192 | mmc1_pins: mmc1 { |
| 193 | renesas,groups = "mmc1_data8", "mmc1_ctrl"; |
| 194 | renesas,function = "mmc1"; |
| 195 | }; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 196 | |
Geert Uytterhoeven | fad6d45 | 2014-02-25 11:30:13 +0100 | [diff] [blame] | 197 | qspi_pins: spi0 { |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 198 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
| 199 | renesas,function = "qspi"; |
| 200 | }; |
Geert Uytterhoeven | b0403b9 | 2014-02-25 11:30:17 +0100 | [diff] [blame] | 201 | |
| 202 | msiof1_pins: spi2 { |
| 203 | renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx", |
| 204 | "msiof1_tx"; |
| 205 | renesas,function = "msiof1"; |
| 206 | }; |
Benoit Cousson | 05f72e0 | 2014-06-03 21:02:12 +0900 | [diff] [blame^] | 207 | |
| 208 | i2c3_pins: i2c3 { |
| 209 | renesas,groups = "i2c3"; |
| 210 | renesas,function = "i2c3"; |
| 211 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 212 | }; |
| 213 | |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 214 | ðer { |
| 215 | pinctrl-0 = <ðer_pins &phy1_pins>; |
| 216 | pinctrl-names = "default"; |
| 217 | |
| 218 | phy-handle = <&phy1>; |
| 219 | renesas,ether-link-active-low; |
| 220 | status = "ok"; |
| 221 | |
| 222 | phy1: ethernet-phy@1 { |
| 223 | reg = <1>; |
| 224 | interrupt-parent = <&irqc0>; |
| 225 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
Simon Horman | 1c47a6a | 2014-04-08 09:21:35 +0900 | [diff] [blame] | 226 | micrel,led-mode = <1>; |
Sergei Shtylyov | da4ea95 | 2014-02-20 02:22:31 +0300 | [diff] [blame] | 227 | }; |
| 228 | }; |
| 229 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 230 | &mmcif1 { |
| 231 | pinctrl-0 = <&mmc1_pins>; |
| 232 | pinctrl-names = "default"; |
| 233 | |
| 234 | vmmc-supply = <&fixedregulator3v3>; |
| 235 | bus-width = <8>; |
| 236 | non-removable; |
| 237 | status = "okay"; |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 238 | }; |
Valentine Barshak | c6181b9 | 2014-01-14 21:05:31 +0400 | [diff] [blame] | 239 | |
| 240 | &sata1 { |
| 241 | status = "okay"; |
| 242 | }; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 243 | |
Geert Uytterhoeven | fad6d45 | 2014-02-25 11:30:13 +0100 | [diff] [blame] | 244 | &qspi { |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 245 | pinctrl-0 = <&qspi_pins>; |
| 246 | pinctrl-names = "default"; |
| 247 | |
| 248 | status = "okay"; |
| 249 | |
| 250 | flash: flash@0 { |
| 251 | #address-cells = <1>; |
| 252 | #size-cells = <1>; |
| 253 | compatible = "spansion,s25fl512s"; |
| 254 | reg = <0>; |
| 255 | spi-max-frequency = <30000000>; |
Geert Uytterhoeven | 9909d2c | 2014-04-14 19:36:00 +0200 | [diff] [blame] | 256 | spi-tx-bus-width = <4>; |
| 257 | spi-rx-bus-width = <4>; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 258 | m25p,fast-read; |
| 259 | |
| 260 | partition@0 { |
| 261 | label = "loader"; |
| 262 | reg = <0x00000000 0x00040000>; |
| 263 | read-only; |
| 264 | }; |
| 265 | partition@40000 { |
| 266 | label = "user"; |
| 267 | reg = <0x00040000 0x00400000>; |
| 268 | read-only; |
| 269 | }; |
| 270 | partition@440000 { |
| 271 | label = "flash"; |
| 272 | reg = <0x00440000 0x03bc0000>; |
| 273 | }; |
| 274 | }; |
| 275 | }; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 276 | |
Laurent Pinchart | 4e9c487 | 2014-04-30 02:31:45 +0200 | [diff] [blame] | 277 | &scif0 { |
| 278 | pinctrl-0 = <&scif0_pins>; |
| 279 | pinctrl-names = "default"; |
| 280 | |
| 281 | status = "okay"; |
| 282 | }; |
| 283 | |
| 284 | &scif1 { |
| 285 | pinctrl-0 = <&scif1_pins>; |
| 286 | pinctrl-names = "default"; |
| 287 | |
| 288 | status = "okay"; |
| 289 | }; |
| 290 | |
Geert Uytterhoeven | b0403b9 | 2014-02-25 11:30:17 +0100 | [diff] [blame] | 291 | &msiof1 { |
| 292 | pinctrl-0 = <&msiof1_pins>; |
| 293 | pinctrl-names = "default"; |
| 294 | |
| 295 | status = "okay"; |
| 296 | |
| 297 | pmic: pmic@0 { |
| 298 | compatible = "renesas,r2a11302ft"; |
| 299 | reg = <0>; |
| 300 | spi-max-frequency = <6000000>; |
| 301 | spi-cpol; |
| 302 | spi-cpha; |
| 303 | }; |
Geert Uytterhoeven | b0403b9 | 2014-02-25 11:30:17 +0100 | [diff] [blame] | 304 | }; |
| 305 | |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame] | 306 | &sdhi0 { |
| 307 | pinctrl-0 = <&sdhi0_pins>; |
| 308 | pinctrl-names = "default"; |
| 309 | |
| 310 | vmmc-supply = <&vcc_sdhi0>; |
| 311 | vqmmc-supply = <&vccq_sdhi0>; |
| 312 | cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; |
| 313 | status = "okay"; |
| 314 | }; |
| 315 | |
| 316 | &sdhi2 { |
| 317 | pinctrl-0 = <&sdhi2_pins>; |
| 318 | pinctrl-names = "default"; |
| 319 | |
| 320 | vmmc-supply = <&vcc_sdhi2>; |
| 321 | vqmmc-supply = <&vccq_sdhi2>; |
| 322 | cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; |
| 323 | status = "okay"; |
| 324 | }; |
Benoit Cousson | 05f72e0 | 2014-06-03 21:02:12 +0900 | [diff] [blame^] | 325 | |
| 326 | &i2c3 { |
| 327 | pinctrl-names = "default"; |
| 328 | pinctrl-0 = <&i2c3_pins>; |
| 329 | status = "okay"; |
| 330 | |
| 331 | vdd_dvfs: regulator@68 { |
| 332 | compatible = "diasemi,da9210"; |
| 333 | reg = <0x68>; |
| 334 | |
| 335 | regulator-min-microvolt = <1000000>; |
| 336 | regulator-max-microvolt = <1000000>; |
| 337 | regulator-boot-on; |
| 338 | regulator-always-on; |
| 339 | }; |
| 340 | }; |