Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Reference Device Tree Source for the armadillo 800 eva board |
| 3 | * |
| 4 | * Copyright (C) 2012 Renesas Solutions Corp. |
| 5 | * |
| 6 | * This file is licensed under the terms of the GNU General Public License |
| 7 | * version 2. This program is licensed "as is" without any warranty of any |
| 8 | * kind, whether express or implied. |
| 9 | */ |
| 10 | |
| 11 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 12 | #include "r8a7740.dtsi" |
Laurent Pinchart | 14d0a2b | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 13 | #include <dt-bindings/gpio/gpio.h> |
Geert Uytterhoeven | c9b60e9 | 2014-03-23 20:35:01 +0100 | [diff] [blame] | 14 | #include <dt-bindings/input/input.h> |
Laurent Pinchart | 77e2d7e | 2013-11-09 13:23:55 +0100 | [diff] [blame] | 15 | #include <dt-bindings/interrupt-controller/irq.h> |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 16 | #include <dt-bindings/pwm/pwm.h> |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "armadillo 800 eva reference"; |
| 20 | compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740"; |
| 21 | |
Simon Horman | c4fac6f | 2014-07-07 09:54:42 +0200 | [diff] [blame] | 22 | aliases { |
| 23 | serial1 = &scifa1; |
| 24 | }; |
| 25 | |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 26 | chosen { |
Simon Horman | b2386fa | 2014-07-07 08:50:08 +0200 | [diff] [blame] | 27 | bootargs = "console=tty0 console=ttySC1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw"; |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | memory { |
| 31 | device_type = "memory"; |
| 32 | reg = <0x40000000 0x20000000>; |
| 33 | }; |
| 34 | |
| 35 | reg_3p3v: regulator@0 { |
| 36 | compatible = "regulator-fixed"; |
| 37 | regulator-name = "fixed-3.3V"; |
| 38 | regulator-min-microvolt = <3300000>; |
| 39 | regulator-max-microvolt = <3300000>; |
| 40 | regulator-always-on; |
| 41 | regulator-boot-on; |
| 42 | }; |
| 43 | |
Guennadi Liakhovetski | e99d796 | 2013-09-27 10:02:57 +0200 | [diff] [blame] | 44 | vcc_sdhi0: regulator@1 { |
| 45 | compatible = "regulator-fixed"; |
| 46 | |
| 47 | regulator-name = "SDHI0 Vcc"; |
| 48 | regulator-min-microvolt = <3300000>; |
| 49 | regulator-max-microvolt = <3300000>; |
| 50 | |
| 51 | gpio = <&pfc 75 GPIO_ACTIVE_HIGH>; |
| 52 | enable-active-high; |
| 53 | }; |
| 54 | |
| 55 | vccq_sdhi0: regulator@2 { |
| 56 | compatible = "regulator-gpio"; |
| 57 | |
| 58 | regulator-name = "SDHI0 VccQ"; |
| 59 | regulator-min-microvolt = <1800000>; |
| 60 | regulator-max-microvolt = <3300000>; |
| 61 | vin-supply = <&vcc_sdhi0>; |
| 62 | |
| 63 | enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>; |
| 64 | gpios = <&pfc 17 GPIO_ACTIVE_HIGH>; |
| 65 | states = <3300000 0 |
| 66 | 1800000 1>; |
| 67 | |
| 68 | enable-active-high; |
| 69 | }; |
| 70 | |
Laurent Pinchart | aeb1936 | 2013-12-11 03:48:17 +0100 | [diff] [blame] | 71 | reg_5p0v: regulator@3 { |
| 72 | compatible = "regulator-fixed"; |
| 73 | regulator-name = "fixed-5.0V"; |
| 74 | regulator-min-microvolt = <5000000>; |
| 75 | regulator-max-microvolt = <5000000>; |
| 76 | regulator-always-on; |
| 77 | regulator-boot-on; |
| 78 | }; |
| 79 | |
Laurent Pinchart | 90c2434 | 2013-12-11 04:26:30 +0100 | [diff] [blame] | 80 | gpio-keys { |
| 81 | compatible = "gpio-keys"; |
| 82 | |
| 83 | power-key { |
| 84 | gpios = <&pfc 99 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | c9b60e9 | 2014-03-23 20:35:01 +0100 | [diff] [blame] | 85 | linux,code = <KEY_POWER>; |
Laurent Pinchart | 90c2434 | 2013-12-11 04:26:30 +0100 | [diff] [blame] | 86 | label = "SW3"; |
| 87 | gpio-key,wakeup; |
| 88 | }; |
| 89 | |
| 90 | back-key { |
| 91 | gpios = <&pfc 100 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | c9b60e9 | 2014-03-23 20:35:01 +0100 | [diff] [blame] | 92 | linux,code = <KEY_BACK>; |
Laurent Pinchart | 90c2434 | 2013-12-11 04:26:30 +0100 | [diff] [blame] | 93 | label = "SW4"; |
| 94 | }; |
| 95 | |
| 96 | menu-key { |
| 97 | gpios = <&pfc 97 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | c9b60e9 | 2014-03-23 20:35:01 +0100 | [diff] [blame] | 98 | linux,code = <KEY_MENU>; |
Laurent Pinchart | 90c2434 | 2013-12-11 04:26:30 +0100 | [diff] [blame] | 99 | label = "SW5"; |
| 100 | }; |
| 101 | |
| 102 | home-key { |
| 103 | gpios = <&pfc 98 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | c9b60e9 | 2014-03-23 20:35:01 +0100 | [diff] [blame] | 104 | linux,code = <KEY_HOME>; |
Laurent Pinchart | 90c2434 | 2013-12-11 04:26:30 +0100 | [diff] [blame] | 105 | label = "SW6"; |
| 106 | }; |
| 107 | }; |
| 108 | |
Laurent Pinchart | 0a4f788 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 109 | leds { |
| 110 | compatible = "gpio-leds"; |
Laurent Pinchart | 0a4f788 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 111 | led3 { |
Geert Uytterhoeven | 0ba0699 | 2014-05-14 16:51:19 +0200 | [diff] [blame] | 112 | gpios = <&pfc 102 GPIO_ACTIVE_HIGH>; |
| 113 | label = "LED3"; |
Laurent Pinchart | 0a4f788 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 114 | }; |
| 115 | led4 { |
Geert Uytterhoeven | 0ba0699 | 2014-05-14 16:51:19 +0200 | [diff] [blame] | 116 | gpios = <&pfc 111 GPIO_ACTIVE_HIGH>; |
| 117 | label = "LED4"; |
| 118 | }; |
| 119 | led5 { |
| 120 | gpios = <&pfc 110 GPIO_ACTIVE_HIGH>; |
| 121 | label = "LED5"; |
| 122 | }; |
| 123 | led6 { |
Laurent Pinchart | 0a4f788 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 124 | gpios = <&pfc 177 GPIO_ACTIVE_HIGH>; |
Geert Uytterhoeven | 0ba0699 | 2014-05-14 16:51:19 +0200 | [diff] [blame] | 125 | label = "LED6"; |
Laurent Pinchart | 0a4f788 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 126 | }; |
| 127 | }; |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 128 | |
Ulrich Hecht | 584b23d | 2014-03-31 17:38:20 +0200 | [diff] [blame] | 129 | i2c2: i2c@2 { |
| 130 | #address-cells = <1>; |
| 131 | #size-cells = <0>; |
| 132 | compatible = "i2c-gpio"; |
| 133 | gpios = <&pfc 208 GPIO_ACTIVE_HIGH /* sda */ |
| 134 | &pfc 91 GPIO_ACTIVE_HIGH /* scl */ |
| 135 | >; |
| 136 | i2c-gpio,delay-us = <5>; |
| 137 | }; |
| 138 | |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 139 | backlight { |
| 140 | compatible = "pwm-backlight"; |
| 141 | pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>; |
| 142 | brightness-levels = <0 1 2 4 8 16 32 64 128 255>; |
| 143 | default-brightness-level = <9>; |
| 144 | pinctrl-0 = <&backlight_pins>; |
| 145 | pinctrl-names = "default"; |
Laurent Pinchart | aeb1936 | 2013-12-11 03:48:17 +0100 | [diff] [blame] | 146 | power-supply = <®_5p0v>; |
Laurent Pinchart | a0c9efe | 2013-12-11 03:48:18 +0100 | [diff] [blame] | 147 | enable-gpios = <&pfc 61 GPIO_ACTIVE_HIGH>; |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 148 | }; |
Kuninori Morimoto | 6a3549d | 2013-12-03 17:28:59 -0800 | [diff] [blame] | 149 | |
| 150 | sound { |
| 151 | compatible = "simple-audio-card"; |
| 152 | |
| 153 | simple-audio-card,format = "i2s"; |
| 154 | |
| 155 | simple-audio-card,cpu { |
| 156 | sound-dai = <&sh_fsi2 0>; |
| 157 | bitclock-inversion; |
| 158 | }; |
| 159 | |
| 160 | simple-audio-card,codec { |
| 161 | sound-dai = <&wm8978>; |
| 162 | bitclock-master; |
| 163 | frame-master; |
| 164 | system-clock-frequency = <12288000>; |
| 165 | }; |
| 166 | }; |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 167 | }; |
| 168 | |
Geert Uytterhoeven | 15d89dc | 2014-05-07 22:32:30 +0200 | [diff] [blame] | 169 | ðer { |
| 170 | pinctrl-0 = <ðer_pins>; |
| 171 | pinctrl-names = "default"; |
| 172 | |
| 173 | phy-handle = <&phy0>; |
| 174 | status = "ok"; |
| 175 | |
| 176 | phy0: ethernet-phy@0 { |
| 177 | reg = <0>; |
| 178 | }; |
| 179 | }; |
| 180 | |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 181 | &i2c0 { |
Guennadi Liakhovetski | eda3a4f | 2013-09-26 13:06:01 +0200 | [diff] [blame] | 182 | status = "okay"; |
Kuninori Morimoto | e63763b | 2013-10-21 19:37:14 -0700 | [diff] [blame] | 183 | touchscreen@55 { |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 184 | compatible = "sitronix,st1232"; |
| 185 | reg = <0x55>; |
| 186 | interrupt-parent = <&irqpin1>; |
Laurent Pinchart | b69e443 | 2013-11-19 13:59:49 +0100 | [diff] [blame] | 187 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
Laurent Pinchart | f46a6b0 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 188 | pinctrl-0 = <&st1232_pins>; |
| 189 | pinctrl-names = "default"; |
Laurent Pinchart | 14d0a2b | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 190 | gpios = <&pfc 166 GPIO_ACTIVE_LOW>; |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 191 | }; |
Kuninori Morimoto | 6a3549d | 2013-12-03 17:28:59 -0800 | [diff] [blame] | 192 | |
| 193 | wm8978: wm8978@1a { |
| 194 | #sound-dai-cells = <0>; |
| 195 | compatible = "wlf,wm8978"; |
| 196 | reg = <0x1a>; |
| 197 | }; |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 198 | }; |
Laurent Pinchart | 5d24456 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 199 | |
Ulrich Hecht | 584b23d | 2014-03-31 17:38:20 +0200 | [diff] [blame] | 200 | &i2c2 { |
| 201 | status = "okay"; |
| 202 | rtc@30 { |
Geert Uytterhoeven | dd485ab | 2014-04-15 14:51:50 +0200 | [diff] [blame] | 203 | compatible = "sii,s35390a"; |
Ulrich Hecht | 584b23d | 2014-03-31 17:38:20 +0200 | [diff] [blame] | 204 | reg = <0x30>; |
| 205 | }; |
| 206 | }; |
| 207 | |
Laurent Pinchart | 5d24456 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 208 | &pfc { |
Geert Uytterhoeven | 15d89dc | 2014-05-07 22:32:30 +0200 | [diff] [blame] | 209 | ether_pins: ether { |
| 210 | renesas,groups = "gether_mii", "gether_int"; |
| 211 | renesas,function = "gether"; |
| 212 | }; |
| 213 | |
Kuninori Morimoto | e63763b | 2013-10-21 19:37:14 -0700 | [diff] [blame] | 214 | scifa1_pins: serial1 { |
Laurent Pinchart | 5d24456 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 215 | renesas,groups = "scifa1_data"; |
| 216 | renesas,function = "scifa1"; |
| 217 | }; |
Laurent Pinchart | f46a6b0 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 218 | |
Kuninori Morimoto | e63763b | 2013-10-21 19:37:14 -0700 | [diff] [blame] | 219 | st1232_pins: touchscreen { |
Laurent Pinchart | f46a6b0 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 220 | renesas,groups = "intc_irq10"; |
| 221 | renesas,function = "intc"; |
| 222 | }; |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 223 | |
| 224 | backlight_pins: backlight { |
| 225 | renesas,groups = "tpu0_to2_1"; |
| 226 | renesas,function = "tpu0"; |
| 227 | }; |
Guennadi Liakhovetski | e99d796 | 2013-09-27 10:02:57 +0200 | [diff] [blame] | 228 | |
| 229 | mmc0_pins: mmc0 { |
| 230 | renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1"; |
| 231 | renesas,function = "mmc0"; |
| 232 | }; |
| 233 | |
Kuninori Morimoto | e63763b | 2013-10-21 19:37:14 -0700 | [diff] [blame] | 234 | sdhi0_pins: sd0 { |
Guennadi Liakhovetski | e99d796 | 2013-09-27 10:02:57 +0200 | [diff] [blame] | 235 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp"; |
| 236 | renesas,function = "sdhi0"; |
| 237 | }; |
Kuninori Morimoto | 6a3549d | 2013-12-03 17:28:59 -0800 | [diff] [blame] | 238 | |
| 239 | fsia_pins: sounda { |
| 240 | renesas,groups = "fsia_sclk_in", "fsia_mclk_out", |
| 241 | "fsia_data_in_1", "fsia_data_out_0"; |
| 242 | renesas,function = "fsia"; |
| 243 | }; |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 244 | }; |
| 245 | |
| 246 | &tpu { |
| 247 | status = "okay"; |
Laurent Pinchart | 5d24456 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 248 | }; |
Guennadi Liakhovetski | e99d796 | 2013-09-27 10:02:57 +0200 | [diff] [blame] | 249 | |
| 250 | &mmcif0 { |
| 251 | pinctrl-0 = <&mmc0_pins>; |
| 252 | pinctrl-names = "default"; |
| 253 | |
| 254 | vmmc-supply = <®_3p3v>; |
| 255 | bus-width = <8>; |
| 256 | non-removable; |
| 257 | status = "okay"; |
| 258 | }; |
| 259 | |
Simon Horman | c4fac6f | 2014-07-07 09:54:42 +0200 | [diff] [blame] | 260 | &scifa1 { |
| 261 | pinctrl-0 = <&scifa1_pins>; |
| 262 | pinctrl-names = "default"; |
| 263 | |
| 264 | status = "okay"; |
| 265 | }; |
| 266 | |
Guennadi Liakhovetski | e99d796 | 2013-09-27 10:02:57 +0200 | [diff] [blame] | 267 | &sdhi0 { |
| 268 | pinctrl-0 = <&sdhi0_pins>; |
| 269 | pinctrl-names = "default"; |
| 270 | |
| 271 | vmmc-supply = <&vcc_sdhi0>; |
| 272 | vqmmc-supply = <&vccq_sdhi0>; |
| 273 | bus-width = <4>; |
| 274 | cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>; |
| 275 | status = "okay"; |
| 276 | }; |
Kuninori Morimoto | 6a3549d | 2013-12-03 17:28:59 -0800 | [diff] [blame] | 277 | |
| 278 | &sh_fsi2 { |
| 279 | pinctrl-0 = <&fsia_pins>; |
| 280 | pinctrl-names = "default"; |
| 281 | |
| 282 | status = "okay"; |
| 283 | }; |