forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt
....@@ -1,19 +1,30 @@
1
-Rockchip SoCs LVDS interface
1
+Rockchip RK3288 LVDS interface
22 ================================
33
44 Required properties:
55 - compatible: matching the soc type, one of
6
- - "rockchip,px30-lvds",
7
- - "rockchip,rk3126-lvds",
8
- - "rockchip,rk3288-lvds",
9
- - "rockchip,rk3368-lvds";
10
- - "rockchip,rk3568-lvds";
11
-- phys : phandle for the PHY device
12
-- phy-names : should be "phy"
6
+ - "rockchip,rk3288-lvds";
7
+ - "rockchip,px30-lvds";
8
+
9
+- reg: physical base address of the controller and length
10
+ of memory mapped region.
11
+- clocks: must include clock specifiers corresponding to entries in the
12
+ clock-names property.
13
+- clock-names: must contain "pclk_lvds"
14
+
15
+- avdd1v0-supply: regulator phandle for 1.0V analog power
16
+- avdd1v8-supply: regulator phandle for 1.8V analog power
17
+- avdd3v3-supply: regulator phandle for 3.3V analog power
18
+
19
+- rockchip,grf: phandle to the general register files syscon
20
+- rockchip,output: "rgb", "lvds" or "duallvds", This describes the output interface
21
+
22
+- phys: LVDS/DSI DPHY (px30 only)
23
+- phy-names: name of the PHY, must be "dphy" (px30 only)
1324
1425 Optional properties:
15
-- dual-channel: boolean. if it exists, enable dual channel mode
16
-- rockchip,data-swap: boolean to enable odd/even data swap in dual channel mode
26
+- pinctrl-names: must contain a "lcdc" entry.
27
+- pinctrl-0: pin control group to be used for this controller.
1728
1829 Required nodes:
1930
....@@ -27,34 +38,55 @@
2738
2839 Example:
2940
30
-&grf {
31
- status = "okay";
41
+lvds_panel: lvds-panel {
42
+ compatible = "auo,b101ean01";
43
+ enable-gpios = <&gpio7 21 GPIO_ACTIVE_HIGH>;
44
+ data-mapping = "jeida-24";
3245
33
- lvds: lvds {
46
+ ports {
47
+ panel_in_lvds: endpoint {
48
+ remote-endpoint = <&lvds_out_panel>;
49
+ };
50
+ };
51
+};
52
+
53
+For Rockchip RK3288:
54
+
55
+ lvds: lvds@ff96c000 {
3456 compatible = "rockchip,rk3288-lvds";
35
- phys = <&video_phy>;
36
- phy-names = "phy";
37
- status = "disabled";
38
-
57
+ rockchip,grf = <&grf>;
58
+ reg = <0xff96c000 0x4000>;
59
+ clocks = <&cru PCLK_LVDS_PHY>;
60
+ clock-names = "pclk_lvds";
61
+ pinctrl-names = "lcdc";
62
+ pinctrl-0 = <&lcdc_ctl>;
63
+ avdd1v0-supply = <&vdd10_lcd>;
64
+ avdd1v8-supply = <&vcc18_lcd>;
65
+ avdd3v3-supply = <&vcca_33>;
66
+ rockchip,output = "rgb";
3967 ports {
4068 #address-cells = <1>;
4169 #size-cells = <0>;
4270
43
- port@0 {
71
+ lvds_in: port@0 {
4472 reg = <0>;
45
- #address-cells = <1>;
46
- #size-cells = <0>;
4773
4874 lvds_in_vopb: endpoint@0 {
4975 reg = <0>;
5076 remote-endpoint = <&vopb_out_lvds>;
5177 };
52
-
5378 lvds_in_vopl: endpoint@1 {
5479 reg = <1>;
5580 remote-endpoint = <&vopl_out_lvds>;
5681 };
5782 };
83
+
84
+ lvds_out: port@1 {
85
+ reg = <1>;
86
+
87
+ lvds_out_panel: endpoint {
88
+ remote-endpoint = <&panel_in_lvds>;
89
+ };
90
+ };
5891 };
5992 };
60
-};