0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree Source for the armadillo 800 eva board
0004 *
0005 * Copyright (C) 2012 Renesas Solutions Corp.
0006 */
0007
0008 /dts-v1/;
0009 #include "r8a7740.dtsi"
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 #include <dt-bindings/interrupt-controller/irq.h>
0013 #include <dt-bindings/pwm/pwm.h>
0014
0015 / {
0016 model = "armadillo 800 eva";
0017 compatible = "renesas,armadillo800eva", "renesas,r8a7740";
0018
0019 aliases {
0020 serial0 = &scifa1;
0021 };
0022
0023 chosen {
0024 bootargs = "earlyprintk ignore_loglevel root=/dev/nfs ip=on rw";
0025 stdout-path = "serial0:115200n8";
0026 };
0027
0028 memory@40000000 {
0029 device_type = "memory";
0030 reg = <0x40000000 0x20000000>;
0031 };
0032
0033 reg_3p3v: regulator-3p3v {
0034 compatible = "regulator-fixed";
0035 regulator-name = "fixed-3.3V";
0036 regulator-min-microvolt = <3300000>;
0037 regulator-max-microvolt = <3300000>;
0038 regulator-always-on;
0039 regulator-boot-on;
0040 };
0041
0042 vcc_sdhi0: regulator-vcc-sdhi0 {
0043 compatible = "regulator-fixed";
0044
0045 regulator-name = "SDHI0 Vcc";
0046 regulator-min-microvolt = <3300000>;
0047 regulator-max-microvolt = <3300000>;
0048
0049 gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
0050 enable-active-high;
0051 };
0052
0053 vccq_sdhi0: regulator-vccq-sdhi0 {
0054 compatible = "regulator-gpio";
0055
0056 regulator-name = "SDHI0 VccQ";
0057 regulator-min-microvolt = <1800000>;
0058 regulator-max-microvolt = <3300000>;
0059 vin-supply = <&vcc_sdhi0>;
0060
0061 enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
0062 gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
0063 states = <3300000 0>, <1800000 1>;
0064
0065 enable-active-high;
0066 };
0067
0068 reg_5p0v: regulator-5p0v {
0069 compatible = "regulator-fixed";
0070 regulator-name = "fixed-5.0V";
0071 regulator-min-microvolt = <5000000>;
0072 regulator-max-microvolt = <5000000>;
0073 regulator-always-on;
0074 regulator-boot-on;
0075 };
0076
0077 keyboard {
0078 compatible = "gpio-keys";
0079
0080 power-key {
0081 gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
0082 linux,code = <KEY_POWER>;
0083 label = "SW3";
0084 wakeup-source;
0085 };
0086
0087 back-key {
0088 gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
0089 linux,code = <KEY_BACK>;
0090 label = "SW4";
0091 };
0092
0093 menu-key {
0094 gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
0095 linux,code = <KEY_MENU>;
0096 label = "SW5";
0097 };
0098
0099 home-key {
0100 gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
0101 linux,code = <KEY_HOME>;
0102 label = "SW6";
0103 };
0104 };
0105
0106 leds {
0107 compatible = "gpio-leds";
0108 led3 {
0109 gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
0110 label = "LED3";
0111 };
0112 led4 {
0113 gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
0114 label = "LED4";
0115 };
0116 led5 {
0117 gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
0118 label = "LED5";
0119 };
0120 led6 {
0121 gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
0122 label = "LED6";
0123 };
0124 };
0125
0126 i2c2: i2c-2 {
0127 #address-cells = <1>;
0128 #size-cells = <0>;
0129 compatible = "i2c-gpio";
0130 sda-gpios = <&pfc 208 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0131 scl-gpios = <&pfc 91 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0132 i2c-gpio,delay-us = <5>;
0133 };
0134
0135 backlight {
0136 compatible = "pwm-backlight";
0137 pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
0138 brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
0139 default-brightness-level = <9>;
0140 pinctrl-0 = <&backlight_pins>;
0141 pinctrl-names = "default";
0142 power-supply = <®_5p0v>;
0143 enable-gpios = <&pfc 61 GPIO_ACTIVE_HIGH>;
0144 };
0145
0146 sound {
0147 compatible = "simple-audio-card";
0148
0149 simple-audio-card,format = "i2s";
0150
0151 simple-audio-card,cpu {
0152 sound-dai = <&sh_fsi2 0>;
0153 bitclock-inversion;
0154 };
0155
0156 simple-audio-card,codec {
0157 sound-dai = <&wm8978>;
0158 bitclock-master;
0159 frame-master;
0160 system-clock-frequency = <12288000>;
0161 };
0162 };
0163 };
0164
0165 ðer {
0166 pinctrl-0 = <ðer_pins>;
0167 pinctrl-names = "default";
0168
0169 phy-handle = <&phy0>;
0170 status = "okay";
0171
0172 phy0: ethernet-phy@0 {
0173 compatible = "ethernet-phy-id0007.c0f1",
0174 "ethernet-phy-ieee802.3-c22";
0175 reg = <0>;
0176 reset-gpios = <&pfc 18 GPIO_ACTIVE_LOW>;
0177 };
0178 };
0179
0180 &extal1_clk {
0181 clock-frequency = <24000000>;
0182 };
0183 &extal2_clk {
0184 clock-frequency = <48000000>;
0185 };
0186 &fsibck_clk {
0187 clock-frequency = <12288000>;
0188 };
0189 &cpg_clocks {
0190 renesas,mode = <0x05>; /* MD_CK0 | MD_CK2 */
0191 };
0192
0193 &cmt1 {
0194 status = "okay";
0195 };
0196
0197 &i2c0 {
0198 status = "okay";
0199 touchscreen@55 {
0200 compatible = "sitronix,st1232";
0201 reg = <0x55>;
0202 interrupt-parent = <&irqpin1>;
0203 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0204 pinctrl-0 = <&st1232_pins>;
0205 pinctrl-names = "default";
0206 gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
0207 };
0208
0209 wm8978: codec@1a {
0210 #sound-dai-cells = <0>;
0211 compatible = "wlf,wm8978";
0212 reg = <0x1a>;
0213 };
0214 };
0215
0216 &i2c2 {
0217 status = "okay";
0218 rtc@30 {
0219 compatible = "sii,s35390a";
0220 reg = <0x30>;
0221 };
0222 };
0223
0224 &pfc {
0225 pinctrl-0 = <&lcd0_pins>;
0226 pinctrl-names = "default";
0227
0228 ether_pins: ether {
0229 groups = "gether_mii", "gether_int";
0230 function = "gether";
0231 };
0232
0233 scifa1_pins: scifa1 {
0234 groups = "scifa1_data";
0235 function = "scifa1";
0236 };
0237
0238 st1232_pins: touchscreen {
0239 groups = "intc_irq10";
0240 function = "intc";
0241 };
0242
0243 backlight_pins: backlight {
0244 groups = "tpu0_to2_1";
0245 function = "tpu0";
0246 };
0247
0248 mmc0_pins: mmc0 {
0249 groups = "mmc0_data8_1", "mmc0_ctrl_1";
0250 function = "mmc0";
0251 };
0252
0253 sdhi0_pins: sd0 {
0254 groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
0255 function = "sdhi0";
0256 };
0257
0258 fsia_pins: sounda {
0259 groups = "fsia_sclk_in", "fsia_mclk_out",
0260 "fsia_data_in_1", "fsia_data_out_0";
0261 function = "fsia";
0262 };
0263
0264 lcd0_pins: lcd0 {
0265 groups = "lcd0_data24_0", "lcd0_lclk_1", "lcd0_sync";
0266 function = "lcd0";
0267 };
0268
0269 lcd0-mux-hog {
0270 /* DBGMD/LCDC0/FSIA MUX */
0271 gpio-hog;
0272 gpios = <176 0>;
0273 output-high;
0274 };
0275 };
0276
0277 &tpu {
0278 status = "okay";
0279 };
0280
0281 &mmcif0 {
0282 pinctrl-0 = <&mmc0_pins>;
0283 pinctrl-names = "default";
0284
0285 vmmc-supply = <®_3p3v>;
0286 bus-width = <8>;
0287 non-removable;
0288 status = "okay";
0289 };
0290
0291 &scifa1 {
0292 pinctrl-0 = <&scifa1_pins>;
0293 pinctrl-names = "default";
0294
0295 status = "okay";
0296 };
0297
0298 &sdhi0 {
0299 pinctrl-0 = <&sdhi0_pins>;
0300 pinctrl-names = "default";
0301
0302 vmmc-supply = <&vcc_sdhi0>;
0303 vqmmc-supply = <&vccq_sdhi0>;
0304 bus-width = <4>;
0305 cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
0306 status = "okay";
0307 };
0308
0309 &sh_fsi2 {
0310 pinctrl-0 = <&fsia_pins>;
0311 pinctrl-names = "default";
0312
0313 status = "okay";
0314 };
0315
0316 &tmu0 {
0317 status = "okay";
0318 };