forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/lpc3250-phy3250.dts
....@@ -1,14 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PHYTEC phyCORE-LPC3250 board
34 *
5
+ * Copyright (C) 2015-2019 Vladimir Zapolskiy <vz@mleia.com>
46 * Copyright 2012 Roland Stigge <stigge@antcom.de>
5
- *
6
- * The code contained herein is licensed under the GNU General Public
7
- * License. You may obtain a copy of the GNU General Public License
8
- * Version 2 or later at the following locations:
9
- *
10
- * http://www.opensource.org/licenses/gpl-license.html
11
- * http://www.gnu.org/copyleft/gpl.html
127 */
138
149 /dts-v1/;
....@@ -17,43 +12,10 @@
1712 / {
1813 model = "PHYTEC phyCORE-LPC3250 board based on NXP LPC3250";
1914 compatible = "phytec,phy3250", "nxp,lpc3250";
20
- #address-cells = <1>;
21
- #size-cells = <1>;
2215
23
- memory {
16
+ memory@80000000 {
2417 device_type = "memory";
2518 reg = <0x80000000 0x4000000>;
26
- };
27
-
28
- regulators {
29
- backlight_reg: regulator@0 {
30
- compatible = "regulator-fixed";
31
- regulator-name = "backlight_reg";
32
- regulator-min-microvolt = <1800000>;
33
- regulator-max-microvolt = <1800000>;
34
- gpio = <&gpio 5 4 0>;
35
- enable-active-high;
36
- regulator-boot-on;
37
- };
38
-
39
- lcd_reg: regulator@1 {
40
- compatible = "regulator-fixed";
41
- regulator-name = "lcd_reg";
42
- regulator-min-microvolt = <1800000>;
43
- regulator-max-microvolt = <1800000>;
44
- gpio = <&gpio 5 0 0>;
45
- enable-active-high;
46
- regulator-boot-on;
47
- };
48
-
49
- sd_reg: regulator@2 {
50
- compatible = "regulator-fixed";
51
- regulator-name = "sd_reg";
52
- regulator-min-microvolt = <3300000>;
53
- regulator-max-microvolt = <3300000>;
54
- gpio = <&gpio 5 5 0>;
55
- enable-active-high;
56
- };
5719 };
5820
5921 leds {
....@@ -69,10 +31,59 @@
6931 linux,default-trigger = "heartbeat";
7032 };
7133 };
34
+
35
+ panel: panel {
36
+ compatible = "sharp,lq035q7db03";
37
+ power-supply = <&reg_lcd>;
38
+
39
+ port {
40
+ panel_input: endpoint {
41
+ remote-endpoint = <&cldc_output>;
42
+ };
43
+ };
44
+ };
45
+
46
+ reg_backlight: regulator-backlight {
47
+ compatible = "regulator-fixed";
48
+ regulator-name = "backlight";
49
+ regulator-min-microvolt = <1800000>;
50
+ regulator-max-microvolt = <1800000>;
51
+ gpio = <&gpio 5 4 0>;
52
+ enable-active-high;
53
+ regulator-boot-on;
54
+ };
55
+
56
+ reg_lcd: regulator-lcd {
57
+ compatible = "regulator-fixed";
58
+ regulator-name = "lcd";
59
+ regulator-min-microvolt = <1800000>;
60
+ regulator-max-microvolt = <1800000>;
61
+ gpio = <&gpio 5 0 0>;
62
+ enable-active-high;
63
+ regulator-boot-on;
64
+ };
65
+
66
+ reg_sd: regulator-sd {
67
+ compatible = "regulator-fixed";
68
+ regulator-name = "sd";
69
+ regulator-min-microvolt = <3300000>;
70
+ regulator-max-microvolt = <3300000>;
71
+ gpio = <&gpio 5 5 0>;
72
+ enable-active-high;
73
+ regulator-boot-on;
74
+ };
7275 };
7376
7477 &clcd {
78
+ max-memory-bandwidth = <18710000>;
7579 status = "okay";
80
+
81
+ port {
82
+ cldc_output: endpoint {
83
+ remote-endpoint = <&panel_input>;
84
+ arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
85
+ };
86
+ };
7687 };
7788
7889 &i2c1 {
....@@ -117,6 +128,7 @@
117128 &mac {
118129 phy-mode = "rmii";
119130 use-iram;
131
+ status = "okay";
120132 };
121133
122134 /* Here, choose exactly one from: ohci, usbd */
....@@ -130,7 +142,7 @@
130142 cd-gpios = <&gpio 3 1 0>;
131143 cd-inverted;
132144 bus-width = <4>;
133
- vmmc-supply = <&sd_reg>;
145
+ vmmc-supply = <&reg_sd>;
134146 status = "okay";
135147 };
136148
....@@ -184,8 +196,6 @@
184196 };
185197
186198 &ssp0 {
187
- #address-cells = <1>;
188
- #size-cells = <0>;
189199 num-cs = <1>;
190200 cs-gpios = <&gpio 3 5 0>;
191201 status = "okay";