blob: e0e1f99c6b228d6b7799f5d54216ef7a4fb2b9b4 [file] [log] [blame]
Daniel Mackad8044f2018-11-30 18:55:43 +01001// SPDX-License-Identifier: GPL-2.0
2
3/dts-v1/;
4
5#include "pxa300-raumfeld-common.dtsi"
6
7/ {
8 model = "Raumfeld Controller (PXA3xx)";
9 compatible = "raumfeld,raumfeld-controller-pxa303", "marvell,pxa300";
10
11 reg_vbatt: regulator-vbatt {
12 compatible = "regulator-fixed";
13 regulator-name = "vbatt-fixed-supply";
14 regulator-min-microvolt = <3700000>;
15 regulator-max-microvolt = <3700000>;
16 regulator-always-on;
17 };
18
19 lcd_supply: regulator-va-tft {
20 compatible = "regulator-fixed";
21 regulator-name = "va-tft-fixed-supply";
22 regulator-min-microvolt = <5000000>;
23 regulator-max-microvolt = <5000000>;
24 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
25 enable-active-high;
26 };
27
28 onewire {
29 compatible = "w1-gpio";
30 pinctrl-names = "default";
31 pinctrl-0 = <&w1_pins>;
32 gpios = <
33 &gpio 126 GPIO_OPEN_DRAIN /* W1 I/O */
34 &gpio 105 GPIO_ACTIVE_HIGH /* pullup */
35 >;
36
37 w1_ds2760: slave-ds2760 {
38 compatible = "maxim,ds2760";
39 power-supplies = <&charger>;
40 };
41 };
42
43 charger: charger {
44 compatible = "gpio-charger";
45 charger-type = "mains";
46 gpios = <&gpio 101 GPIO_ACTIVE_LOW>;
47 };
48
49 /*
50 * One of the following two will be set to "okay" by the bootloader,
51 * depending on the hardware revision.
52 */
53 backlight-controller-pwm {
54 compatible = "pwm-backlight";
55 pinctrl-names = "default";
56 pinctrl-0 = <&pwm0_pins>;
57 pwms = <&pwm0 10000>;
58 power-supply = <&reg_vbatt>;
59 status = "disabled";
60
61 brightness-levels = <
62 0 1 2 3 4 5 6 7 8 9
63 10 11 12 13 14 15 16 17 18 19
64 20 21 22 23 24 25 26 27 28 29
65 30 31 32 33 34 35 36 37 38 39
66 40 41 42 43 44 45 46 47 48 49
67 50 51 52 53 54 55 56 57 58 59
68 60 61 62 63 64 65 66 67 68 69
69 70 71 72 73 74 75 76 77 78 79
70 80 81 82 83 84 85 86 87 88 89
71 90 91 92 93 94 95 96 97 98 99
72 100
73 >;
74 default-brightness-level = <100>;
75 };
76
77 backlight-controller {
78 compatible = "lltc,lt3593";
79 pinctrl-names = "default";
80 pinctrl-0 = <&lt3593_pins>;
81 lltc,ctrl-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
82 status = "disabled";
83
84 led {
85 label = "backlight";
86 default-state = "on";
87 };
88 };
89};
90
91&reg_va_5v0 {
92 status = "disabled";
93};
94
95&ethernet {
96 status = "disabled";
97};
98
99&leds {
100 status = "disabled";
101};
102
103&dac {
104 status = "disabled";
105};
106
107&pwm0 {
108 status = "okay";
109};
110
111&keys {
Daniel Mack62056612019-04-24 20:58:56 +0200112 pinctrl-0 = <&gpio_keys_pins &dock_detect_pins>;
Daniel Mackad8044f2018-11-30 18:55:43 +0100113 dock-detect {
114 label = "dock detect";
Daniel Mack62056612019-04-24 20:58:56 +0200115 gpios = <&gpio 116 GPIO_ACTIVE_LOW>;
Daniel Mackad8044f2018-11-30 18:55:43 +0100116 linux,code = <KEY_F5>;
117 };
118};
119
120&spi {
121 accelerometer@1 {
122 compatible = "st,lis302dl-spi";
123 pinctrl-names = "default";
124 pinctrl-0 = <&lis302_pins>;
125 reg = <1>;
126 spi-max-frequency = <1000000>;
127 interrupt-parent = <&gpio>;
128 interrupts = <104 IRQ_TYPE_EDGE_FALLING>;
129
130 st,click-single-x;
131 st,click-single-y;
132 st,click-single-z;
133 st,click-thresh-x = <10>;
134 st,click-thresh-y = <10>;
135 st,click-thresh-z = <10>;
136 st,irq1-click;
137 st,irq2-click;
138 st,wakeup-x-lo;
139 st,wakeup-x-hi;
140 st,wakeup-y-lo;
141 st,wakeup-y-hi;
142 st,wakeup-z-lo;
143 st,wakeup-z-hi;
144 };
145};
146
147&lcdc {
148 status = "okay";
149 pinctrl-names = "default";
150 pinctrl-0 = <&lcdc_pins>;
151 lcd-supply = <&lcd_supply>;
152
153 port {
154 lcdc_out: endpoint {
155 remote-endpoint = <&panel_in>;
156 bus-width = <16>;
157 };
158 };
159
160 panel {
161 compatible = "sharp,lq043t3dx0-panel";
162 display-timings {
163 native-mode = <&timing0>;
164 timing0: timing {
165 clock-frequency = <9009000>;
166 pixelclk-active = <0>; /* negative edge */
167 hactive = <480>;
168 vactive = <272>;
169 hsync-len = <41>;
170 hback-porch = <2>;
171 hfront-porch = <1>;
172 vsync-len = <10>;
173 vback-porch = <3>;
174 vfront-porch = <1>;
175 };
176 };
177
178 port {
179 panel_in: endpoint {
180 remote-endpoint = <&lcdc_out>;
181 };
182 };
183 };
184};
185
186&gcu {
187 status = "okay";
188};
189
190&pxai2c1 {
191 touchscreen@a {
192 compatible = "eeti,exc3000-i2c";
193 pinctrl-names = "default";
194 pinctrl-0 = <&eeti_ts_pins>;
195 reg = <0xa>;
196 interrupt-parent = <&gpio>;
197 interrupts = <32 IRQ_TYPE_EDGE_RISING>;
198 attn-gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
199 touchscreen-inverted-y;
200 };
201};
202
203&pinctrl {
204 lis302_pins: lis302-pins {
205 pinctrl-single,pins = <
206 MFP_PIN_PXA300(104) MFP_AF0 /* IRQ */
207 >;
208 pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW);
209 };
210
211 eeti_ts_pins: eeti-ts-pins {
212 pinctrl-single,pins = <
213 MFP_PIN_PXA300(32) MFP_AF0 /* IRQ */
214 >;
215 pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_FLOAT);
216 };
217
218 lt3593_pins: lt3593-pins {
219 pinctrl-single,pins = <
220 MFP_PIN_PXA300(17) MFP_AF0 /* Backlight */
221 >;
222 pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW);
223 };
224
225 pwm0_pins: pwm0-pins {
226 pinctrl-single,pins = <
227 MFP_PIN_PXA300(17) MFP_AF1 /* PWM */
228 >;
229 pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW);
230 };
231
232 w1_pins: w1-pins {
233 pinctrl-single,pins = <
234 MFP_PIN_PXA300(126) MFP_AF0 /* PWM */
235 MFP_PIN_PXA300(105) MFP_AF0 /* PWM */
236 >;
237 pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_FLOAT);
238 };
239
Daniel Mack62056612019-04-24 20:58:56 +0200240 dock_detect_pins: dock_detect_pins {
241 pinctrl-single,pins = <
242 MFP_PIN_PXA300(116) MFP_AF0 /* DOCK_DETECT */
243 >;
244 pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_HIGH);
245 pinctrl-single,bias-pullup = MPF_PULL_UP;
246 };
247
Daniel Mackad8044f2018-11-30 18:55:43 +0100248 lcdc_pins: lcdc-pins {
249 pinctrl-single,pins = <
250 MFP_PIN_PXA300(54) MFP_AF1 /* LDD_0 */
251 MFP_PIN_PXA300(55) MFP_AF1 /* LDD_1 */
252 MFP_PIN_PXA300(56) MFP_AF1 /* LDD_2 */
253 MFP_PIN_PXA300(57) MFP_AF1 /* LDD_3 */
254 MFP_PIN_PXA300(58) MFP_AF1 /* LDD_4 */
255 MFP_PIN_PXA300(59) MFP_AF1 /* LDD_5 */
256 MFP_PIN_PXA300(60) MFP_AF1 /* LDD_6 */
257 MFP_PIN_PXA300(61) MFP_AF1 /* LDD_7 */
258 MFP_PIN_PXA300(62) MFP_AF1 /* LDD_8 */
259 MFP_PIN_PXA300(63) MFP_AF1 /* LDD_9 */
260 MFP_PIN_PXA300(64) MFP_AF1 /* LDD_10 */
261 MFP_PIN_PXA300(65) MFP_AF1 /* LDD_11 */
262 MFP_PIN_PXA300(66) MFP_AF1 /* LDD_12 */
263 MFP_PIN_PXA300(67) MFP_AF1 /* LDD_13 */
264 MFP_PIN_PXA300(68) MFP_AF1 /* LDD_14 */
265 MFP_PIN_PXA300(69) MFP_AF1 /* LDD_15 */
266 MFP_PIN_PXA300(70) MFP_AF1 /* LDD_16 */
267 MFP_PIN_PXA300(71) MFP_AF1 /* LDD_17 */
268 MFP_PIN_PXA300(72) MFP_AF1 /* LCD_FCLK */
269 MFP_PIN_PXA300(73) MFP_AF1 /* LCD_LCLK */
270 MFP_PIN_PXA300(74) MFP_AF1 /* LCD_PCLK */
271 MFP_PIN_PXA300(75) MFP_AF1 /* LCD_BIAS */
272 >;
273 pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW);
274 };
275};