blob: 6a542198985dfa409eb31fd1130a8e02071772e5 [file] [log] [blame]
Bastian Hecht76b92b42013-04-17 12:34:06 +02001/*
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/;
12/include/ "r8a7740.dtsi"
Laurent Pinchart14d0a2b2013-05-09 17:41:59 +020013#include <dt-bindings/gpio/gpio.h>
Laurent Pinchart87b73d82013-09-11 13:51:13 +020014#include <dt-bindings/pwm/pwm.h>
Bastian Hecht76b92b42013-04-17 12:34:06 +020015
16/ {
17 model = "armadillo 800 eva reference";
18 compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740";
19
20 chosen {
Kuninori Morimoto3d814492013-08-05 20:17:06 -070021 bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
Bastian Hecht76b92b42013-04-17 12:34:06 +020022 };
23
24 memory {
25 device_type = "memory";
26 reg = <0x40000000 0x20000000>;
27 };
28
29 reg_3p3v: regulator@0 {
30 compatible = "regulator-fixed";
31 regulator-name = "fixed-3.3V";
32 regulator-min-microvolt = <3300000>;
33 regulator-max-microvolt = <3300000>;
34 regulator-always-on;
35 regulator-boot-on;
36 };
37
Guennadi Liakhovetskie99d7962013-09-27 10:02:57 +020038 vcc_sdhi0: regulator@1 {
39 compatible = "regulator-fixed";
40
41 regulator-name = "SDHI0 Vcc";
42 regulator-min-microvolt = <3300000>;
43 regulator-max-microvolt = <3300000>;
44
45 gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
46 enable-active-high;
47 };
48
49 vccq_sdhi0: regulator@2 {
50 compatible = "regulator-gpio";
51
52 regulator-name = "SDHI0 VccQ";
53 regulator-min-microvolt = <1800000>;
54 regulator-max-microvolt = <3300000>;
55 vin-supply = <&vcc_sdhi0>;
56
57 enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
58 gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
59 states = <3300000 0
60 1800000 1>;
61
62 enable-active-high;
63 };
64
Laurent Pinchart0a4f7882013-05-10 00:23:04 +020065 leds {
66 compatible = "gpio-leds";
67 led1 {
68 gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
69 };
70 led2 {
71 gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
72 };
73 led3 {
74 gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
75 };
76 led4 {
77 gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
78 };
79 };
Laurent Pinchart87b73d82013-09-11 13:51:13 +020080
81 backlight {
82 compatible = "pwm-backlight";
83 pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
84 brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
85 default-brightness-level = <9>;
86 pinctrl-0 = <&backlight_pins>;
87 pinctrl-names = "default";
88 };
Bastian Hecht76b92b42013-04-17 12:34:06 +020089};
90
91&i2c0 {
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +020092 status = "okay";
Kuninori Morimotoe63763b2013-10-21 19:37:14 -070093 touchscreen@55 {
Bastian Hecht76b92b42013-04-17 12:34:06 +020094 compatible = "sitronix,st1232";
95 reg = <0x55>;
96 interrupt-parent = <&irqpin1>;
97 interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */
Laurent Pinchartf46a6b02013-05-09 17:41:59 +020098 pinctrl-0 = <&st1232_pins>;
99 pinctrl-names = "default";
Laurent Pinchart14d0a2b2013-05-09 17:41:59 +0200100 gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
Bastian Hecht76b92b42013-04-17 12:34:06 +0200101 };
102};
Laurent Pinchart5d244562013-05-09 17:41:59 +0200103
104&pfc {
105 pinctrl-0 = <&scifa1_pins>;
106 pinctrl-names = "default";
107
Kuninori Morimotoe63763b2013-10-21 19:37:14 -0700108 scifa1_pins: serial1 {
Laurent Pinchart5d244562013-05-09 17:41:59 +0200109 renesas,groups = "scifa1_data";
110 renesas,function = "scifa1";
111 };
Laurent Pinchartf46a6b02013-05-09 17:41:59 +0200112
Kuninori Morimotoe63763b2013-10-21 19:37:14 -0700113 st1232_pins: touchscreen {
Laurent Pinchartf46a6b02013-05-09 17:41:59 +0200114 renesas,groups = "intc_irq10";
115 renesas,function = "intc";
116 };
Laurent Pinchart87b73d82013-09-11 13:51:13 +0200117
118 backlight_pins: backlight {
119 renesas,groups = "tpu0_to2_1";
120 renesas,function = "tpu0";
121 };
Guennadi Liakhovetskie99d7962013-09-27 10:02:57 +0200122
123 mmc0_pins: mmc0 {
124 renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1";
125 renesas,function = "mmc0";
126 };
127
Kuninori Morimotoe63763b2013-10-21 19:37:14 -0700128 sdhi0_pins: sd0 {
Guennadi Liakhovetskie99d7962013-09-27 10:02:57 +0200129 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
130 renesas,function = "sdhi0";
131 };
Laurent Pinchart87b73d82013-09-11 13:51:13 +0200132};
133
134&tpu {
135 status = "okay";
Laurent Pinchart5d244562013-05-09 17:41:59 +0200136};
Guennadi Liakhovetskie99d7962013-09-27 10:02:57 +0200137
138&mmcif0 {
139 pinctrl-0 = <&mmc0_pins>;
140 pinctrl-names = "default";
141
142 vmmc-supply = <&reg_3p3v>;
143 bus-width = <8>;
144 non-removable;
145 status = "okay";
146};
147
148&sdhi0 {
149 pinctrl-0 = <&sdhi0_pins>;
150 pinctrl-names = "default";
151
152 vmmc-supply = <&vcc_sdhi0>;
153 vqmmc-supply = <&vccq_sdhi0>;
154 bus-width = <4>;
155 cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
156 status = "okay";
157};