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