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