Skip to content

Commit b2b06ab

Browse files
committed
Merge branch 'at91-4.9-trunk/dt' into linux-4.9-at91
2 parents 81db49c + 0d3c7da commit b2b06ab

File tree

2 files changed

+156
-0
lines changed

2 files changed

+156
-0
lines changed

arch/arm/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
4747
dtb-$(CONFIG_SOC_SAM_V7) += \
4848
at91-kizbox2.dtb \
4949
at91-sama5d2_ptc_ek.dtb \
50+
at91-sama5d2_ptc_ek_pda4.dtb \
5051
at91-sama5d27_som1_ek.dtb \
5152
at91-sama5d27_som1_ek_pda4.dtb \
5253
at91-sama5d27_som1_ek_pda7.dtb \
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* at91-sama5d2_ptc_ek_pda4.dts - Device Tree file for SAMA5D2 PTC EK board with PDA4 screen
4+
*
5+
* Copyright (C) 2018 Microchip,
6+
* 2018 Nicolas Ferre <nicolas.ferre@microchip.com>
7+
*/
8+
#include "at91-sama5d2_ptc_ek.dts"
9+
10+
/ {
11+
model = "Atmel SAMA5D2 PTC EK TM43xx";
12+
compatible = "atmel,sama5d2-ptc_ek", "atmel,sama5d2", "atmel,sama5";
13+
14+
ahb {
15+
apb {
16+
hlcdc: hlcdc@f0000000 {
17+
status = "okay";
18+
19+
hlcdc-display-controller {
20+
pinctrl-names = "default";
21+
pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb666>;
22+
port@0 {
23+
hlcdc_panel_output: endpoint@0 {
24+
reg = <0>;
25+
remote-endpoint = <&panel_input>;
26+
};
27+
};
28+
};
29+
30+
hlcdc_pwm: hlcdc-pwm {
31+
pinctrl-names = "default";
32+
pinctrl-0 = <&pinctrl_lcd_pwm>;
33+
};
34+
};
35+
36+
flx0: flexcom@f8034000 {
37+
i2c2: i2c@600 {
38+
qt1070: keyboard@1b {
39+
compatible = "qt1070";
40+
reg = <0x1b>;
41+
interrupt-parent = <&pioA>;
42+
interrupts = <98 0x0>;
43+
pinctrl-names = "default";
44+
pinctrl-0 = <&pinctrl_qt1070_irq>;
45+
wakeup-source;
46+
};
47+
48+
atmel_mxt_ts@4a {
49+
compatible = "atmel,atmel_mxt_ts";
50+
reg = <0x4a>;
51+
interrupt-parent = <&pioA>;
52+
interrupts = <73 0x0>;
53+
pinctrl-names = "default";
54+
pinctrl-0 = <&pinctrl_mxt_irq>;
55+
};
56+
};
57+
};
58+
59+
pinctrl@fc038000 {
60+
pinctrl_lcd_base: pinctrl_lcd_base {
61+
pinmux = <PIN_PC30__LCDVSYNC>,
62+
<PIN_PC31__LCDHSYNC>,
63+
<PIN_PD1__LCDDEN>,
64+
<PIN_PD0__LCDPCK>;
65+
bias-disable;
66+
drive-strength = <ATMEL_PIO_DRVSTR_ME>;
67+
};
68+
69+
pinctrl_lcd_pwm: pinctrl_lcd_pwm {
70+
pinmux = <PIN_PC28__LCDPWM>;
71+
bias-disable;
72+
};
73+
74+
pinctrl_lcd_rgb666: pinctrl_lcd_rgb666 {
75+
pinmux = <PIN_PC10__LCDDAT2>,
76+
<PIN_PC11__LCDDAT3>,
77+
<PIN_PC12__LCDDAT4>,
78+
<PIN_PC13__LCDDAT5>,
79+
<PIN_PC14__LCDDAT6>,
80+
<PIN_PC15__LCDDAT7>,
81+
<PIN_PC16__LCDDAT10>,
82+
<PIN_PC17__LCDDAT11>,
83+
<PIN_PC18__LCDDAT12>,
84+
<PIN_PC19__LCDDAT13>,
85+
<PIN_PC20__LCDDAT14>,
86+
<PIN_PC21__LCDDAT15>,
87+
<PIN_PC22__LCDDAT18>,
88+
<PIN_PC23__LCDDAT19>,
89+
<PIN_PC24__LCDDAT20>,
90+
<PIN_PC25__LCDDAT21>,
91+
<PIN_PC26__LCDDAT22>,
92+
<PIN_PC27__LCDDAT23>;
93+
bias-disable;
94+
};
95+
96+
pinctrl_mxt_irq: pinctrl_mxt_irq {
97+
pinmux = <PIN_PC9__GPIO>;
98+
bias-pull-up;
99+
input-debounce = <1>;
100+
};
101+
102+
pinctrl_qt1070_irq: pinctrl_qt1070_irq {
103+
pinmux = <PIN_PD2__GPIO>;
104+
bias-pull-up;
105+
input-debounce = <1>;
106+
};
107+
};
108+
};
109+
};
110+
111+
backlight: backlight {
112+
compatible = "pwm-backlight";
113+
pwms = <&hlcdc_pwm 0 50000 0>;
114+
brightness-levels = <0 4 8 16 32 64 128 255>;
115+
default-brightness-level = <7>;
116+
power-supply = <&bl_reg>;
117+
status = "okay";
118+
};
119+
120+
bl_reg: backlight_regulator {
121+
compatible = "regulator-fixed";
122+
regulator-name = "backlight-power-supply";
123+
regulator-min-microvolt = <5000000>;
124+
regulator-max-microvolt = <5000000>;
125+
status = "okay";
126+
};
127+
128+
panel: panel {
129+
compatible = "innolux,at043tn24", "simple-panel";
130+
backlight = <&backlight>;
131+
power-supply = <&panel_reg>;
132+
#address-cells = <1>;
133+
#size-cells = <0>;
134+
status = "okay";
135+
136+
port@0 {
137+
reg = <0>;
138+
#address-cells = <1>;
139+
#size-cells = <0>;
140+
141+
panel_input: endpoint@0 {
142+
reg = <0>;
143+
remote-endpoint = <&hlcdc_panel_output>;
144+
};
145+
};
146+
};
147+
148+
panel_reg: panel_regulator {
149+
compatible = "regulator-fixed";
150+
regulator-name = "panel-power-supply";
151+
regulator-min-microvolt = <3300000>;
152+
regulator-max-microvolt = <3300000>;
153+
status = "okay";
154+
};
155+
};

0 commit comments

Comments
 (0)