forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/iwg20d-q7-common.dtsi
....@@ -46,6 +46,50 @@
4646 clock-frequency = <26000000>;
4747 };
4848
49
+ lcd_backlight: backlight {
50
+ compatible = "pwm-backlight";
51
+
52
+ pwms = <&pwm3 0 5000000>;
53
+ brightness-levels = <0 4 8 16 32 64 128 255>;
54
+ default-brightness-level = <7>;
55
+ enable-gpios = <&gpio5 14 GPIO_ACTIVE_HIGH>;
56
+ };
57
+
58
+ lvds-receiver {
59
+ compatible = "ti,ds90cf384a", "lvds-decoder";
60
+ power-supply = <&vcc_3v3_tft1>;
61
+
62
+ ports {
63
+ #address-cells = <1>;
64
+ #size-cells = <0>;
65
+
66
+ port@0 {
67
+ reg = <0>;
68
+ lvds_receiver_in: endpoint {
69
+ remote-endpoint = <&lvds0_out>;
70
+ };
71
+ };
72
+ port@1 {
73
+ reg = <1>;
74
+ lvds_receiver_out: endpoint {
75
+ remote-endpoint = <&panel_in>;
76
+ };
77
+ };
78
+ };
79
+ };
80
+
81
+ panel {
82
+ compatible = "edt,etm0700g0dh6";
83
+ backlight = <&lcd_backlight>;
84
+ power-supply = <&vcc_3v3_tft1>;
85
+
86
+ port {
87
+ panel_in: endpoint {
88
+ remote-endpoint = <&lvds_receiver_out>;
89
+ };
90
+ };
91
+ };
92
+
4993 reg_1p5v: 1p5v {
5094 compatible = "regulator-fixed";
5195 regulator-name = "1P5V";
....@@ -70,6 +114,17 @@
70114 };
71115 };
72116
117
+ vcc_3v3_tft1: regulator-panel {
118
+ compatible = "regulator-fixed";
119
+
120
+ regulator-name = "vcc-3v3-tft1";
121
+ regulator-min-microvolt = <3300000>;
122
+ regulator-max-microvolt = <3300000>;
123
+ enable-active-high;
124
+ startup-delay-us = <500>;
125
+ gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>;
126
+ };
127
+
73128 vcc_sdhi1: regulator-vcc-sdhi1 {
74129 compatible = "regulator-fixed";
75130
....@@ -89,8 +144,7 @@
89144
90145 gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
91146 gpios-states = <1>;
92
- states = <3300000 1
93
- 1800000 0>;
147
+ states = <3300000 1>, <1800000 0>;
94148 };
95149 };
96150
....@@ -114,6 +168,22 @@
114168 pinctrl-names = "default";
115169
116170 status = "okay";
171
+};
172
+
173
+&cmt0 {
174
+ status = "okay";
175
+};
176
+
177
+&du {
178
+ status = "okay";
179
+};
180
+
181
+&gpio2 {
182
+ touch-interrupt {
183
+ gpio-hog;
184
+ gpios = <12 GPIO_ACTIVE_LOW>;
185
+ input;
186
+ };
117187 };
118188
119189 &hsusb {
....@@ -143,6 +213,26 @@
143213 VDDIO-supply = <&reg_3p3v>;
144214 VDDD-supply = <&reg_1p5v>;
145215 };
216
+
217
+ touch: touchpanel@38 {
218
+ compatible = "edt,edt-ft5406";
219
+ reg = <0x38>;
220
+ interrupt-parent = <&gpio2>;
221
+ interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
222
+ vcc-supply = <&vcc_3v3_tft1>;
223
+ };
224
+};
225
+
226
+&lvds0 {
227
+ status = "okay";
228
+
229
+ ports {
230
+ port@1 {
231
+ lvds0_out: endpoint {
232
+ remote-endpoint = <&lvds_receiver_in>;
233
+ };
234
+ };
235
+ };
146236 };
147237
148238 &pci0 {
....@@ -160,10 +250,6 @@
160250 clock-frequency = <100000000>;
161251 };
162252
163
-&pciec {
164
- status = "okay";
165
-};
166
-
167253 &pfc {
168254 can0_pins: can0 {
169255 groups = "can0_data_d";
....@@ -178,6 +264,11 @@
178264 i2c2_pins: i2c2 {
179265 groups = "i2c2";
180266 function = "i2c2";
267
+ };
268
+
269
+ pwm3_pins: pwm3 {
270
+ groups = "pwm3";
271
+ function = "pwm3";
181272 };
182273
183274 scif0_pins: scif0 {
....@@ -218,6 +309,12 @@
218309 };
219310 };
220311
312
+&pwm3 {
313
+ pinctrl-0 = <&pwm3_pins>;
314
+ pinctrl-names = "default";
315
+ status = "okay";
316
+};
317
+
221318 &rcar_sound {
222319 pinctrl-0 = <&sound_pins>;
223320 pinctrl-names = "default";
....@@ -234,6 +331,11 @@
234331 };
235332 };
236333
334
+&rwdt {
335
+ timeout-sec = <60>;
336
+ status = "okay";
337
+};
338
+
237339 &scif0 {
238340 pinctrl-0 = <&scif0_pins>;
239341 pinctrl-names = "default";