Sergei Shtylyov | 4b37ab0 | 2014-04-25 02:42:41 +0400 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the Henninger board |
| 3 | * |
| 4 | * Copyright (C) 2014 Renesas Solutions Corp. |
| 5 | * Copyright (C) 2014 Cogent Embedded, Inc. |
| 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/; |
| 13 | #include "r8a7791.dtsi" |
Sergei Shtylyov | 1299df0 | 2014-05-03 21:04:34 +0400 | [diff] [blame] | 14 | #include <dt-bindings/gpio/gpio.h> |
Sergei Shtylyov | 4b37ab0 | 2014-04-25 02:42:41 +0400 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "Henninger"; |
| 18 | compatible = "renesas,henninger", "renesas,r8a7791"; |
| 19 | |
| 20 | aliases { |
| 21 | serial0 = &scif0; |
| 22 | }; |
| 23 | |
| 24 | chosen { |
Sergei Shtylyov | 26b0d2c | 2014-04-25 02:44:12 +0400 | [diff] [blame] | 25 | bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
Geert Uytterhoeven | 8590e2d | 2014-10-03 17:11:41 +0200 | [diff] [blame] | 26 | stdout-path = &scif0; |
Sergei Shtylyov | 4b37ab0 | 2014-04-25 02:42:41 +0400 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | memory@40000000 { |
| 30 | device_type = "memory"; |
| 31 | reg = <0 0x40000000 0 0x40000000>; |
| 32 | }; |
| 33 | |
| 34 | memory@200000000 { |
| 35 | device_type = "memory"; |
| 36 | reg = <2 0x00000000 0 0x40000000>; |
| 37 | }; |
Sergei Shtylyov | 1299df0 | 2014-05-03 21:04:34 +0400 | [diff] [blame] | 38 | |
| 39 | vcc_sdhi0: regulator@0 { |
| 40 | compatible = "regulator-fixed"; |
| 41 | |
| 42 | regulator-name = "SDHI0 Vcc"; |
| 43 | regulator-min-microvolt = <3300000>; |
| 44 | regulator-max-microvolt = <3300000>; |
| 45 | regulator-always-on; |
| 46 | }; |
| 47 | |
| 48 | vccq_sdhi0: regulator@1 { |
| 49 | compatible = "regulator-gpio"; |
| 50 | |
| 51 | regulator-name = "SDHI0 VccQ"; |
| 52 | regulator-min-microvolt = <1800000>; |
| 53 | regulator-max-microvolt = <3300000>; |
| 54 | |
| 55 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; |
| 56 | gpios-states = <1>; |
| 57 | states = <3300000 1 |
| 58 | 1800000 0>; |
| 59 | }; |
| 60 | |
| 61 | vcc_sdhi2: regulator@2 { |
| 62 | compatible = "regulator-fixed"; |
| 63 | |
| 64 | regulator-name = "SDHI2 Vcc"; |
| 65 | regulator-min-microvolt = <3300000>; |
| 66 | regulator-max-microvolt = <3300000>; |
| 67 | regulator-always-on; |
| 68 | }; |
| 69 | |
| 70 | vccq_sdhi2: regulator@3 { |
| 71 | compatible = "regulator-gpio"; |
| 72 | |
| 73 | regulator-name = "SDHI2 VccQ"; |
| 74 | regulator-min-microvolt = <1800000>; |
| 75 | regulator-max-microvolt = <3300000>; |
| 76 | |
| 77 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; |
| 78 | gpios-states = <1>; |
| 79 | states = <3300000 1 |
| 80 | 1800000 0>; |
| 81 | }; |
Sergei Shtylyov | 4b37ab0 | 2014-04-25 02:42:41 +0400 | [diff] [blame] | 82 | }; |
| 83 | |
Sergei Shtylyov | 2af0d93 | 2014-05-02 02:56:33 +0400 | [diff] [blame] | 84 | &extal_clk { |
| 85 | clock-frequency = <20000000>; |
| 86 | }; |
| 87 | |
Sergei Shtylyov | 4b37ab0 | 2014-04-25 02:42:41 +0400 | [diff] [blame] | 88 | &pfc { |
| 89 | scif0_pins: serial0 { |
| 90 | renesas,groups = "scif0_data_d"; |
| 91 | renesas,function = "scif0"; |
| 92 | }; |
Sergei Shtylyov | 26b0d2c | 2014-04-25 02:44:12 +0400 | [diff] [blame] | 93 | |
| 94 | ether_pins: ether { |
| 95 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; |
| 96 | renesas,function = "eth"; |
| 97 | }; |
| 98 | |
| 99 | phy1_pins: phy1 { |
| 100 | renesas,groups = "intc_irq0"; |
| 101 | renesas,function = "intc"; |
| 102 | }; |
Sergei Shtylyov | 1299df0 | 2014-05-03 21:04:34 +0400 | [diff] [blame] | 103 | |
| 104 | sdhi0_pins: sd0 { |
| 105 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 106 | renesas,function = "sdhi0"; |
| 107 | }; |
| 108 | |
| 109 | sdhi2_pins: sd2 { |
| 110 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 111 | renesas,function = "sdhi2"; |
| 112 | }; |
Sergei Shtylyov | f59838d | 2014-05-06 02:45:31 +0400 | [diff] [blame] | 113 | |
Sergei Shtylyov | 29a647c | 2014-06-11 02:45:21 +0400 | [diff] [blame] | 114 | i2c2_pins: i2c2 { |
| 115 | renesas,groups = "i2c2"; |
| 116 | renesas,function = "i2c2"; |
| 117 | }; |
| 118 | |
Sergei Shtylyov | f59838d | 2014-05-06 02:45:31 +0400 | [diff] [blame] | 119 | qspi_pins: spi0 { |
| 120 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
| 121 | renesas,function = "qspi"; |
| 122 | }; |
Sergei Shtylyov | 667366b | 2014-05-07 00:47:59 +0400 | [diff] [blame] | 123 | |
| 124 | msiof0_pins: spi1 { |
| 125 | renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx", |
| 126 | "msiof0_tx"; |
| 127 | renesas,function = "msiof0"; |
| 128 | }; |
Sergei Shtylyov | 83ccfa8 | 2014-06-24 22:13:38 +0400 | [diff] [blame] | 129 | |
| 130 | usb0_pins: usb0 { |
| 131 | renesas,groups = "usb0"; |
| 132 | renesas,function = "usb0"; |
| 133 | }; |
| 134 | |
| 135 | usb1_pins: usb1 { |
| 136 | renesas,groups = "usb1"; |
| 137 | renesas,function = "usb1"; |
| 138 | }; |
Sergei Shtylyov | 8d62f4f | 2014-08-02 04:05:54 +0400 | [diff] [blame] | 139 | |
| 140 | vin0_pins: vin0 { |
| 141 | renesas,groups = "vin0_data8", "vin0_clk"; |
| 142 | renesas,function = "vin0"; |
| 143 | }; |
Sergei Shtylyov | 4b37ab0 | 2014-04-25 02:42:41 +0400 | [diff] [blame] | 144 | }; |
| 145 | |
| 146 | &scif0 { |
| 147 | pinctrl-0 = <&scif0_pins>; |
| 148 | pinctrl-names = "default"; |
| 149 | |
| 150 | status = "okay"; |
| 151 | }; |
Sergei Shtylyov | 26b0d2c | 2014-04-25 02:44:12 +0400 | [diff] [blame] | 152 | |
| 153 | ðer { |
| 154 | pinctrl-0 = <ðer_pins &phy1_pins>; |
| 155 | pinctrl-names = "default"; |
| 156 | |
| 157 | phy-handle = <&phy1>; |
| 158 | renesas,ether-link-active-low; |
| 159 | status = "ok"; |
| 160 | |
| 161 | phy1: ethernet-phy@1 { |
| 162 | reg = <1>; |
| 163 | interrupt-parent = <&irqc0>; |
| 164 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 165 | micrel,led-mode = <1>; |
| 166 | }; |
| 167 | }; |
Sergei Shtylyov | 5a62ec57 | 2014-04-26 02:51:27 +0400 | [diff] [blame] | 168 | |
| 169 | &sata0 { |
Simon Horman | eb0f12e | 2014-07-07 08:47:36 +0200 | [diff] [blame] | 170 | status = "okay"; |
Sergei Shtylyov | 5a62ec57 | 2014-04-26 02:51:27 +0400 | [diff] [blame] | 171 | }; |
Sergei Shtylyov | 1299df0 | 2014-05-03 21:04:34 +0400 | [diff] [blame] | 172 | |
| 173 | &sdhi0 { |
| 174 | pinctrl-0 = <&sdhi0_pins>; |
| 175 | pinctrl-names = "default"; |
| 176 | |
| 177 | vmmc-supply = <&vcc_sdhi0>; |
| 178 | vqmmc-supply = <&vccq_sdhi0>; |
| 179 | cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; |
| 180 | wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; |
| 181 | status = "okay"; |
| 182 | }; |
| 183 | |
| 184 | &sdhi2 { |
| 185 | pinctrl-0 = <&sdhi2_pins>; |
| 186 | pinctrl-names = "default"; |
| 187 | |
| 188 | vmmc-supply = <&vcc_sdhi2>; |
| 189 | vqmmc-supply = <&vccq_sdhi2>; |
| 190 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; |
| 191 | status = "okay"; |
| 192 | }; |
Sergei Shtylyov | f59838d | 2014-05-06 02:45:31 +0400 | [diff] [blame] | 193 | |
Sergei Shtylyov | 29a647c | 2014-06-11 02:45:21 +0400 | [diff] [blame] | 194 | &i2c2 { |
| 195 | pinctrl-0 = <&i2c2_pins>; |
| 196 | pinctrl-names = "default"; |
| 197 | |
| 198 | status = "okay"; |
| 199 | clock-frequency = <400000>; |
Sergei Shtylyov | 8d62f4f | 2014-08-02 04:05:54 +0400 | [diff] [blame] | 200 | |
| 201 | composite-in@20 { |
| 202 | compatible = "adi,adv7180"; |
| 203 | reg = <0x20>; |
| 204 | remote = <&vin0>; |
| 205 | |
| 206 | port { |
| 207 | adv7180: endpoint { |
| 208 | bus-width = <8>; |
| 209 | remote-endpoint = <&vin0ep>; |
| 210 | }; |
| 211 | }; |
| 212 | }; |
Sergei Shtylyov | 29a647c | 2014-06-11 02:45:21 +0400 | [diff] [blame] | 213 | }; |
| 214 | |
Sergei Shtylyov | f59838d | 2014-05-06 02:45:31 +0400 | [diff] [blame] | 215 | &qspi { |
| 216 | pinctrl-0 = <&qspi_pins>; |
| 217 | pinctrl-names = "default"; |
| 218 | |
| 219 | status = "okay"; |
| 220 | |
| 221 | flash@0 { |
| 222 | #address-cells = <1>; |
| 223 | #size-cells = <1>; |
| 224 | compatible = "spansion,s25fl512s"; |
| 225 | reg = <0>; |
| 226 | spi-max-frequency = <30000000>; |
| 227 | spi-tx-bus-width = <4>; |
| 228 | spi-rx-bus-width = <4>; |
| 229 | m25p,fast-read; |
| 230 | |
| 231 | partition@0 { |
| 232 | label = "loader_prg"; |
| 233 | reg = <0x00000000 0x00040000>; |
| 234 | read-only; |
| 235 | }; |
| 236 | partition@40000 { |
| 237 | label = "user_prg"; |
| 238 | reg = <0x00040000 0x00400000>; |
| 239 | read-only; |
| 240 | }; |
| 241 | partition@440000 { |
| 242 | label = "flash_fs"; |
| 243 | reg = <0x00440000 0x03bc0000>; |
| 244 | }; |
| 245 | }; |
| 246 | }; |
Sergei Shtylyov | 667366b | 2014-05-07 00:47:59 +0400 | [diff] [blame] | 247 | |
| 248 | &msiof0 { |
| 249 | pinctrl-0 = <&msiof0_pins>; |
| 250 | pinctrl-names = "default"; |
| 251 | |
| 252 | status = "okay"; |
| 253 | |
| 254 | pmic@0 { |
| 255 | compatible = "renesas,r2a11302ft"; |
| 256 | reg = <0>; |
| 257 | spi-max-frequency = <6000000>; |
| 258 | spi-cpol; |
| 259 | spi-cpha; |
| 260 | }; |
| 261 | }; |
Phil Edworthy | 485f3ce | 2014-06-13 10:37:22 +0100 | [diff] [blame] | 262 | |
Sergei Shtylyov | 83ccfa8 | 2014-06-24 22:13:38 +0400 | [diff] [blame] | 263 | &pci0 { |
| 264 | status = "okay"; |
| 265 | pinctrl-0 = <&usb0_pins>; |
| 266 | pinctrl-names = "default"; |
| 267 | }; |
| 268 | |
| 269 | &pci1 { |
| 270 | status = "okay"; |
| 271 | pinctrl-0 = <&usb1_pins>; |
| 272 | pinctrl-names = "default"; |
| 273 | }; |
| 274 | |
Yoshihiro Shimoda | 6f4f715 | 2014-10-24 19:45:08 +0900 | [diff] [blame^] | 275 | &hsusb { |
| 276 | status = "okay"; |
| 277 | pinctrl-0 = <&usb0_pins>; |
| 278 | pinctrl-names = "default"; |
| 279 | renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>; |
| 280 | }; |
| 281 | |
Sergei Shtylyov | fa03f6b | 2014-09-27 01:10:46 +0400 | [diff] [blame] | 282 | &usbphy { |
| 283 | status = "okay"; |
| 284 | }; |
| 285 | |
Phil Edworthy | 485f3ce | 2014-06-13 10:37:22 +0100 | [diff] [blame] | 286 | &pcie_bus_clk { |
| 287 | status = "okay"; |
| 288 | }; |
| 289 | |
| 290 | &pciec { |
| 291 | status = "okay"; |
| 292 | }; |
Sergei Shtylyov | 8d62f4f | 2014-08-02 04:05:54 +0400 | [diff] [blame] | 293 | |
| 294 | /* composite video input */ |
| 295 | &vin0 { |
| 296 | status = "ok"; |
| 297 | pinctrl-0 = <&vin0_pins>; |
| 298 | pinctrl-names = "default"; |
| 299 | |
| 300 | port { |
| 301 | #address-cells = <1>; |
| 302 | #size-cells = <0>; |
| 303 | |
| 304 | vin0ep: endpoint { |
| 305 | remote-endpoint = <&adv7180>; |
| 306 | bus-width = <8>; |
| 307 | }; |
| 308 | }; |
| 309 | }; |