| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
/* |
| 3 |
* Device Tree Source for the armadillo 800 eva board |
| 4 |
* |
| 5 |
* Copyright (C) 2012 Renesas Solutions Corp. |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
#include "r8a7740.dtsi" |
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
#include <dt-bindings/input/input.h> |
| 12 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 13 |
#include <dt-bindings/pwm/pwm.h> |
| 14 |
|
| 15 |
/ { |
| 16 |
model = "armadillo 800 eva"; |
| 17 |
compatible = "renesas,armadillo800eva", "renesas,r8a7740"; |
| 18 |
|
| 19 |
aliases { |
| 20 |
serial0 = &scifa1; |
| 21 |
}; |
| 22 |
|
| 23 |
chosen { |
| 24 |
bootargs = "earlyprintk ignore_loglevel root=/dev/nfs ip=on rw"; |
| 25 |
stdout-path = "serial0:115200n8"; |
| 26 |
}; |
| 27 |
|
| 28 |
memory@40000000 { |
| 29 |
device_type = "memory"; |
| 30 |
reg = <0x40000000 0x20000000>; |
| 31 |
}; |
| 32 |
|
| 33 |
reg_3p3v: regulator-3p3v { |
| 34 |
compatible = "regulator-fixed"; |
| 35 |
regulator-name = "fixed-3.3V"; |
| 36 |
regulator-min-microvolt = <3300000>; |
| 37 |
regulator-max-microvolt = <3300000>; |
| 38 |
regulator-always-on; |
| 39 |
regulator-boot-on; |
| 40 |
}; |
| 41 |
|
| 42 |
vcc_sdhi0: regulator-vcc-sdhi0 { |
| 43 |
compatible = "regulator-fixed"; |
| 44 |
|
| 45 |
regulator-name = "SDHI0 Vcc"; |
| 46 |
regulator-min-microvolt = <3300000>; |
| 47 |
regulator-max-microvolt = <3300000>; |
| 48 |
|
| 49 |
gpio = <&pfc 75 GPIO_ACTIVE_HIGH>; |
| 50 |
enable-active-high; |
| 51 |
}; |
| 52 |
|
| 53 |
vccq_sdhi0: regulator-vccq-sdhi0 { |
| 54 |
compatible = "regulator-gpio"; |
| 55 |
|
| 56 |
regulator-name = "SDHI0 VccQ"; |
| 57 |
regulator-min-microvolt = <1800000>; |
| 58 |
regulator-max-microvolt = <3300000>; |
| 59 |
vin-supply = <&vcc_sdhi0>; |
| 60 |
|
| 61 |
enable-gpios = <&pfc 74 GPIO_ACTIVE_HIGH>; |
| 62 |
gpios = <&pfc 17 GPIO_ACTIVE_HIGH>; |
| 63 |
states = <3300000 0>, <1800000 1>; |
| 64 |
|
| 65 |
enable-active-high; |
| 66 |
}; |
| 67 |
|
| 68 |
reg_5p0v: regulator-5p0v { |
| 69 |
compatible = "regulator-fixed"; |
| 70 |
regulator-name = "fixed-5.0V"; |
| 71 |
regulator-min-microvolt = <5000000>; |
| 72 |
regulator-max-microvolt = <5000000>; |
| 73 |
regulator-always-on; |
| 74 |
regulator-boot-on; |
| 75 |
}; |
| 76 |
|
| 77 |
keyboard { |
| 78 |
compatible = "gpio-keys"; |
| 79 |
|
| 80 |
power-key { |
| 81 |
gpios = <&pfc 99 GPIO_ACTIVE_LOW>; |
| 82 |
linux,code = <KEY_POWER>; |
| 83 |
label = "SW3"; |
| 84 |
wakeup-source; |
| 85 |
}; |
| 86 |
|
| 87 |
back-key { |
| 88 |
gpios = <&pfc 100 GPIO_ACTIVE_LOW>; |
| 89 |
linux,code = <KEY_BACK>; |
| 90 |
label = "SW4"; |
| 91 |
}; |
| 92 |
|
| 93 |
menu-key { |
| 94 |
gpios = <&pfc 97 GPIO_ACTIVE_LOW>; |
| 95 |
linux,code = <KEY_MENU>; |
| 96 |
label = "SW5"; |
| 97 |
}; |
| 98 |
|
| 99 |
home-key { |
| 100 |
gpios = <&pfc 98 GPIO_ACTIVE_LOW>; |
| 101 |
linux,code = <KEY_HOME>; |
| 102 |
label = "SW6"; |
| 103 |
}; |
| 104 |
}; |
| 105 |
|
| 106 |
leds { |
| 107 |
compatible = "gpio-leds"; |
| 108 |
led3 { |
| 109 |
gpios = <&pfc 102 GPIO_ACTIVE_HIGH>; |
| 110 |
label = "LED3"; |
| 111 |
}; |
| 112 |
led4 { |
| 113 |
gpios = <&pfc 111 GPIO_ACTIVE_HIGH>; |
| 114 |
label = "LED4"; |
| 115 |
}; |
| 116 |
led5 { |
| 117 |
gpios = <&pfc 110 GPIO_ACTIVE_HIGH>; |
| 118 |
label = "LED5"; |
| 119 |
}; |
| 120 |
led6 { |
| 121 |
gpios = <&pfc 177 GPIO_ACTIVE_HIGH>; |
| 122 |
label = "LED6"; |
| 123 |
}; |
| 124 |
}; |
| 125 |
|
| 126 |
i2c2: i2c-2 { |
| 127 |
#address-cells = <1>; |
| 128 |
#size-cells = <0>; |
| 129 |
compatible = "i2c-gpio"; |
| 130 |
sda-gpios = <&pfc 208 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 131 |
scl-gpios = <&pfc 91 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 132 |
i2c-gpio,delay-us = <5>; |
| 133 |
}; |
| 134 |
|
| 135 |
backlight: backlight { |
| 136 |
compatible = "pwm-backlight"; |
| 137 |
pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>; |
| 138 |
brightness-levels = <0 1 2 4 8 16 32 64 128 255>; |
| 139 |
default-brightness-level = <9>; |
| 140 |
pinctrl-0 = <&backlight_pins>; |
| 141 |
pinctrl-names = "default"; |
| 142 |
power-supply = <®_5p0v>; |
| 143 |
enable-gpios = <&pfc 61 GPIO_ACTIVE_HIGH>; |
| 144 |
}; |
| 145 |
|
| 146 |
panel { |
| 147 |
compatible = "ampire,am-800480l1tmqw-t00h"; |
| 148 |
backlight = <&backlight>; |
| 149 |
power-supply = <®_5p0v>; |
| 150 |
|
| 151 |
port { |
| 152 |
panel_in: endpoint { |
| 153 |
remote-endpoint = <&lcdc0_rgb>; |
| 154 |
}; |
| 155 |
}; |
| 156 |
}; |
| 157 |
|
| 158 |
sound { |
| 159 |
compatible = "simple-audio-card"; |
| 160 |
|
| 161 |
simple-audio-card,format = "i2s"; |
| 162 |
|
| 163 |
simple-audio-card,cpu { |
| 164 |
sound-dai = <&sh_fsi2 0>; |
| 165 |
bitclock-inversion; |
| 166 |
}; |
| 167 |
|
| 168 |
simple-audio-card,codec { |
| 169 |
sound-dai = <&wm8978>; |
| 170 |
bitclock-master; |
| 171 |
frame-master; |
| 172 |
system-clock-frequency = <12288000>; |
| 173 |
}; |
| 174 |
}; |
| 175 |
}; |
| 176 |
|
| 177 |
ðer { |
| 178 |
pinctrl-0 = <ðer_pins>; |
| 179 |
pinctrl-names = "default"; |
| 180 |
|
| 181 |
phy-handle = <&phy0>; |
| 182 |
status = "okay"; |
| 183 |
|
| 184 |
phy0: ethernet-phy@0 { |
| 185 |
compatible = "ethernet-phy-id0007.c0f1", |
| 186 |
"ethernet-phy-ieee802.3-c22"; |
| 187 |
reg = <0>; |
| 188 |
reset-gpios = <&pfc 18 GPIO_ACTIVE_LOW>; |
| 189 |
}; |
| 190 |
}; |
| 191 |
|
| 192 |
&extal1_clk { |
| 193 |
clock-frequency = <24000000>; |
| 194 |
}; |
| 195 |
&extal2_clk { |
| 196 |
clock-frequency = <48000000>; |
| 197 |
}; |
| 198 |
&fsibck_clk { |
| 199 |
clock-frequency = <12288000>; |
| 200 |
}; |
| 201 |
&cpg_clocks { |
| 202 |
renesas,mode = <0x05>; /* MD_CK0 | MD_CK2 */ |
| 203 |
}; |
| 204 |
|
| 205 |
&cmt1 { |
| 206 |
status = "okay"; |
| 207 |
}; |
| 208 |
|
| 209 |
&i2c0 { |
| 210 |
status = "okay"; |
| 211 |
|
| 212 |
wm8978: codec@1a { |
| 213 |
#sound-dai-cells = <0>; |
| 214 |
compatible = "wlf,wm8978"; |
| 215 |
reg = <0x1a>; |
| 216 |
}; |
| 217 |
|
| 218 |
eeprom@50 { |
| 219 |
compatible = "st,24c01", "atmel,24c01"; |
| 220 |
reg = <0x50>; |
| 221 |
pagesize = <16>; |
| 222 |
}; |
| 223 |
|
| 224 |
touchscreen@55 { |
| 225 |
compatible = "sitronix,st1232"; |
| 226 |
reg = <0x55>; |
| 227 |
interrupts-extended = <&irqpin1 2 IRQ_TYPE_LEVEL_LOW>; |
| 228 |
pinctrl-0 = <&st1232_pins>; |
| 229 |
pinctrl-names = "default"; |
| 230 |
gpios = <&pfc 166 GPIO_ACTIVE_LOW>; |
| 231 |
}; |
| 232 |
}; |
| 233 |
|
| 234 |
&i2c2 { |
| 235 |
status = "okay"; |
| 236 |
rtc@30 { |
| 237 |
compatible = "sii,s35390a"; |
| 238 |
reg = <0x30>; |
| 239 |
}; |
| 240 |
}; |
| 241 |
|
| 242 |
&lcdc0 { |
| 243 |
pinctrl-0 = <&lcd0_pins>; |
| 244 |
pinctrl-names = "default"; |
| 245 |
|
| 246 |
status = "okay"; |
| 247 |
|
| 248 |
ports { |
| 249 |
port@0 { |
| 250 |
endpoint { |
| 251 |
remote-endpoint = <&panel_in>; |
| 252 |
}; |
| 253 |
}; |
| 254 |
}; |
| 255 |
}; |
| 256 |
|
| 257 |
&pfc { |
| 258 |
ether_pins: ether { |
| 259 |
groups = "gether_mii", "gether_int"; |
| 260 |
function = "gether"; |
| 261 |
}; |
| 262 |
|
| 263 |
scifa1_pins: scifa1 { |
| 264 |
groups = "scifa1_data"; |
| 265 |
function = "scifa1"; |
| 266 |
}; |
| 267 |
|
| 268 |
st1232_pins: touchscreen { |
| 269 |
groups = "intc_irq10"; |
| 270 |
function = "intc"; |
| 271 |
}; |
| 272 |
|
| 273 |
backlight_pins: backlight { |
| 274 |
groups = "tpu0_to2_1"; |
| 275 |
function = "tpu0"; |
| 276 |
}; |
| 277 |
|
| 278 |
mmc0_pins: mmc0 { |
| 279 |
groups = "mmc0_data8_1", "mmc0_ctrl_1"; |
| 280 |
function = "mmc0"; |
| 281 |
}; |
| 282 |
|
| 283 |
sdhi0_pins: sd0 { |
| 284 |
groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp"; |
| 285 |
function = "sdhi0"; |
| 286 |
}; |
| 287 |
|
| 288 |
fsia_pins: sounda { |
| 289 |
groups = "fsia_sclk_in", "fsia_mclk_out", |
| 290 |
"fsia_data_in_1", "fsia_data_out_0"; |
| 291 |
function = "fsia"; |
| 292 |
}; |
| 293 |
|
| 294 |
lcd0_pins: lcd0 { |
| 295 |
groups = "lcd0_data24_0", "lcd0_lclk_1", "lcd0_sync"; |
| 296 |
function = "lcd0"; |
| 297 |
}; |
| 298 |
|
| 299 |
lcd0-mux-hog { |
| 300 |
/* DBGMD/LCDC0/FSIA MUX */ |
| 301 |
gpio-hog; |
| 302 |
gpios = <176 0>; |
| 303 |
output-high; |
| 304 |
}; |
| 305 |
}; |
| 306 |
|
| 307 |
&tpu { |
| 308 |
status = "okay"; |
| 309 |
}; |
| 310 |
|
| 311 |
&mmcif0 { |
| 312 |
pinctrl-0 = <&mmc0_pins>; |
| 313 |
pinctrl-names = "default"; |
| 314 |
|
| 315 |
vmmc-supply = <®_3p3v>; |
| 316 |
bus-width = <8>; |
| 317 |
non-removable; |
| 318 |
status = "okay"; |
| 319 |
}; |
| 320 |
|
| 321 |
&scifa1 { |
| 322 |
pinctrl-0 = <&scifa1_pins>; |
| 323 |
pinctrl-names = "default"; |
| 324 |
|
| 325 |
status = "okay"; |
| 326 |
}; |
| 327 |
|
| 328 |
&sdhi0 { |
| 329 |
pinctrl-0 = <&sdhi0_pins>; |
| 330 |
pinctrl-names = "default"; |
| 331 |
|
| 332 |
vmmc-supply = <&vcc_sdhi0>; |
| 333 |
vqmmc-supply = <&vccq_sdhi0>; |
| 334 |
bus-width = <4>; |
| 335 |
cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>; |
| 336 |
status = "okay"; |
| 337 |
}; |
| 338 |
|
| 339 |
&sh_fsi2 { |
| 340 |
pinctrl-0 = <&fsia_pins>; |
| 341 |
pinctrl-names = "default"; |
| 342 |
|
| 343 |
status = "okay"; |
| 344 |
}; |
| 345 |
|
| 346 |
&tmu0 { |
| 347 |
status = "okay"; |
| 348 |
}; |