Commit | Line | Data |
---|---|---|
76b92b40 BH |
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/; | |
12 | /include/ "r8a7740.dtsi" | |
14d0a2b7 | 13 | #include <dt-bindings/gpio/gpio.h> |
87b73d88 | 14 | #include <dt-bindings/pwm/pwm.h> |
76b92b40 BH |
15 | |
16 | / { | |
17 | model = "armadillo 800 eva reference"; | |
18 | compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740"; | |
19 | ||
20 | chosen { | |
3d814499 | 21 | bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw"; |
76b92b40 BH |
22 | }; |
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 | ||
e99d7963 GL |
38 | 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 | ||
0a4f7889 LP |
65 | 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 | }; | |
87b73d88 LP |
80 | |
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 | }; | |
76b92b40 BH |
89 | }; |
90 | ||
91 | &i2c0 { | |
eda3a4fa | 92 | status = "okay"; |
76b92b40 BH |
93 | touchscreen: st1232@55 { |
94 | compatible = "sitronix,st1232"; | |
95 | reg = <0x55>; | |
96 | interrupt-parent = <&irqpin1>; | |
97 | interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */ | |
f46a6b0f LP |
98 | pinctrl-0 = <&st1232_pins>; |
99 | pinctrl-names = "default"; | |
14d0a2b7 | 100 | gpios = <&pfc 166 GPIO_ACTIVE_LOW>; |
76b92b40 BH |
101 | }; |
102 | }; | |
5d244563 LP |
103 | |
104 | &pfc { | |
105 | pinctrl-0 = <&scifa1_pins>; | |
106 | pinctrl-names = "default"; | |
107 | ||
108 | scifa1_pins: scifa1 { | |
109 | renesas,groups = "scifa1_data"; | |
110 | renesas,function = "scifa1"; | |
111 | }; | |
f46a6b0f LP |
112 | |
113 | st1232_pins: st1232 { | |
114 | renesas,groups = "intc_irq10"; | |
115 | renesas,function = "intc"; | |
116 | }; | |
87b73d88 LP |
117 | |
118 | backlight_pins: backlight { | |
119 | renesas,groups = "tpu0_to2_1"; | |
120 | renesas,function = "tpu0"; | |
121 | }; | |
e99d7963 GL |
122 | |
123 | mmc0_pins: mmc0 { | |
124 | renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1"; | |
125 | renesas,function = "mmc0"; | |
126 | }; | |
127 | ||
128 | sdhi0_pins: sdhi0 { | |
129 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp"; | |
130 | renesas,function = "sdhi0"; | |
131 | }; | |
87b73d88 LP |
132 | }; |
133 | ||
134 | &tpu { | |
135 | status = "okay"; | |
5d244563 | 136 | }; |
e99d7963 GL |
137 | |
138 | &mmcif0 { | |
139 | pinctrl-0 = <&mmc0_pins>; | |
140 | pinctrl-names = "default"; | |
141 | ||
142 | vmmc-supply = <®_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 | }; |