hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
....@@ -30,6 +30,7 @@
3030
3131 /dts-v1/;
3232 #include "r8a7745-iwg22m.dtsi"
33
+#include <dt-bindings/pwm/pwm.h>
3334
3435 / {
3536 model = "iWave Systems RainboW-G22D-SODIMM board based on RZ/G1E";
....@@ -42,7 +43,7 @@
4243 };
4344
4445 chosen {
45
- bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
46
+ bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
4647 stdout-path = "serial3:115200n8";
4748 };
4849
....@@ -50,6 +51,46 @@
5051 compatible = "fixed-clock";
5152 #clock-cells = <0>;
5253 clock-frequency = <26000000>;
54
+ };
55
+
56
+ backlight_lcd: backlight {
57
+ compatible = "pwm-backlight";
58
+ pwms = <&tpu 3 5000000 PWM_POLARITY_INVERTED>;
59
+ brightness-levels = <0 4 8 16 32 64 128 255>;
60
+ default-brightness-level = <7>;
61
+ };
62
+
63
+ lcd_panel: lcd {
64
+ compatible = "edt,etm043080dh6gp";
65
+ power-supply = <&vccq_panel>;
66
+ backlight = <&backlight_lcd>;
67
+
68
+ port {
69
+ lcd_in: endpoint {
70
+ remote-endpoint = <&du_out_rgb0>;
71
+ };
72
+ };
73
+ };
74
+
75
+ vccq_panel: regulator-vccq-panel {
76
+ compatible = "regulator-fixed";
77
+ regulator-name = "Panel VccQ";
78
+ regulator-min-microvolt = <3300000>;
79
+ regulator-max-microvolt = <3300000>;
80
+ gpio = <&gpio1 13 GPIO_ACTIVE_LOW>;
81
+ enable-active-high;
82
+ };
83
+
84
+ vccq_sdhi0: regulator-vccq-sdhi0 {
85
+ compatible = "regulator-gpio";
86
+
87
+ regulator-name = "SDHI0 VccQ";
88
+ regulator-min-microvolt = <1800000>;
89
+ regulator-max-microvolt = <3300000>;
90
+
91
+ gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
92
+ gpios-states = <1>;
93
+ states = <3300000 1>, <1800000 0>;
5394 };
5495
5596 rsnd_sgtl5000: sound {
....@@ -65,19 +106,6 @@
65106 sndcodec: simple-audio-card,codec {
66107 sound-dai = <&sgtl5000>;
67108 };
68
- };
69
-
70
- vccq_sdhi0: regulator-vccq-sdhi0 {
71
- compatible = "regulator-gpio";
72
-
73
- regulator-name = "SDHI0 VccQ";
74
- regulator-min-microvolt = <1800000>;
75
- regulator-max-microvolt = <3300000>;
76
-
77
- gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
78
- gpios-states = <1>;
79
- states = <3300000 1
80
- 1800000 0>;
81109 };
82110 };
83111
....@@ -105,6 +133,21 @@
105133 pinctrl-names = "default";
106134
107135 status = "okay";
136
+};
137
+
138
+&du {
139
+ pinctrl-0 = <&du0_pins>;
140
+ pinctrl-names = "default";
141
+
142
+ status = "okay";
143
+
144
+ ports {
145
+ port@0 {
146
+ endpoint {
147
+ remote-endpoint = <&lcd_in>;
148
+ };
149
+ };
150
+ };
108151 };
109152
110153 &hscif1 {
....@@ -136,6 +179,39 @@
136179 VDDA-supply = <&reg_3p3v>;
137180 VDDIO-supply = <&reg_3p3v>;
138181 };
182
+
183
+ stmpe811@44 {
184
+ compatible = "st,stmpe811";
185
+ reg = <0x44>;
186
+ interrupt-parent = <&gpio4>;
187
+ interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
188
+
189
+ /* 3.25 MHz ADC clock speed */
190
+ st,adc-freq = <1>;
191
+ /* ADC conversion time: 80 clocks */
192
+ st,sample-time = <4>;
193
+ /* 12-bit ADC */
194
+ st,mod-12b = <1>;
195
+ /* internal ADC reference */
196
+ st,ref-sel = <0>;
197
+
198
+ stmpe_touchscreen {
199
+ compatible = "st,stmpe-ts";
200
+ /* 8 sample average control */
201
+ st,ave-ctrl = <3>;
202
+ /* 7 length fractional part in z */
203
+ st,fraction-z = <7>;
204
+ /*
205
+ * 50 mA typical 80 mA max touchscreen drivers
206
+ * current limit value
207
+ */
208
+ st,i-drive = <1>;
209
+ /* 1 ms panel driver settling time */
210
+ st,settling = <3>;
211
+ /* 5 ms touch detect interrupt delay */
212
+ st,touch-det-delay = <5>;
213
+ };
214
+ };
139215 };
140216
141217 &pci1 {
....@@ -150,9 +226,19 @@
150226 function = "avb";
151227 };
152228
229
+ backlight_pins: backlight {
230
+ groups = "tpu_to3_c";
231
+ function = "tpu";
232
+ };
233
+
153234 can0_pins: can0 {
154235 groups = "can0_data";
155236 function = "can0";
237
+ };
238
+
239
+ du0_pins: du0 {
240
+ groups = "du0_rgb666", "du0_sync", "du0_disp", "du0_clk0_out";
241
+ function = "du0";
156242 };
157243
158244 hscif1_pins: hscif1 {
....@@ -230,6 +316,12 @@
230316 shared-pin;
231317 };
232318
319
+&tpu {
320
+ pinctrl-0 = <&backlight_pins>;
321
+ pinctrl-names = "default";
322
+ status = "okay";
323
+};
324
+
233325 &usbphy {
234326 status = "okay";
235327 };