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