18c2ecf20Sopenharmony_ciRockchip RK3288 LVDS interface
28c2ecf20Sopenharmony_ci================================
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciRequired properties:
58c2ecf20Sopenharmony_ci- compatible: matching the soc type, one of
68c2ecf20Sopenharmony_ci	- "rockchip,rk3288-lvds";
78c2ecf20Sopenharmony_ci	- "rockchip,px30-lvds";
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci- reg: physical base address of the controller and length
108c2ecf20Sopenharmony_ci	of memory mapped region.
118c2ecf20Sopenharmony_ci- clocks: must include clock specifiers corresponding to entries in the
128c2ecf20Sopenharmony_ci	clock-names property.
138c2ecf20Sopenharmony_ci- clock-names: must contain "pclk_lvds"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci- avdd1v0-supply: regulator phandle for 1.0V analog power
168c2ecf20Sopenharmony_ci- avdd1v8-supply: regulator phandle for 1.8V analog power
178c2ecf20Sopenharmony_ci- avdd3v3-supply: regulator phandle for 3.3V analog power
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci- rockchip,grf: phandle to the general register files syscon
208c2ecf20Sopenharmony_ci- rockchip,output: "rgb", "lvds" or "duallvds", This describes the output interface
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci- phys: LVDS/DSI DPHY (px30 only)
238c2ecf20Sopenharmony_ci- phy-names: name of the PHY, must be "dphy" (px30 only)
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciOptional properties:
268c2ecf20Sopenharmony_ci- pinctrl-names: must contain a "lcdc" entry.
278c2ecf20Sopenharmony_ci- pinctrl-0: pin control group to be used for this controller.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciRequired nodes:
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciThe lvds has two video ports as described by
328c2ecf20Sopenharmony_ci	Documentation/devicetree/bindings/media/video-interfaces.txt
338c2ecf20Sopenharmony_ciTheir connections are modeled using the OF graph bindings specified in
348c2ecf20Sopenharmony_ci	Documentation/devicetree/bindings/graph.txt.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci- video port 0 for the VOP input, the remote endpoint maybe vopb or vopl
378c2ecf20Sopenharmony_ci- video port 1 for either a panel or subsequent encoder
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciExample:
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_cilvds_panel: lvds-panel {
428c2ecf20Sopenharmony_ci	compatible = "auo,b101ean01";
438c2ecf20Sopenharmony_ci	enable-gpios = <&gpio7 21 GPIO_ACTIVE_HIGH>;
448c2ecf20Sopenharmony_ci	data-mapping = "jeida-24";
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci	ports {
478c2ecf20Sopenharmony_ci		panel_in_lvds: endpoint {
488c2ecf20Sopenharmony_ci			remote-endpoint = <&lvds_out_panel>;
498c2ecf20Sopenharmony_ci		};
508c2ecf20Sopenharmony_ci	};
518c2ecf20Sopenharmony_ci};
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ciFor Rockchip RK3288:
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci	lvds: lvds@ff96c000 {
568c2ecf20Sopenharmony_ci		compatible = "rockchip,rk3288-lvds";
578c2ecf20Sopenharmony_ci		rockchip,grf = <&grf>;
588c2ecf20Sopenharmony_ci		reg = <0xff96c000 0x4000>;
598c2ecf20Sopenharmony_ci		clocks = <&cru PCLK_LVDS_PHY>;
608c2ecf20Sopenharmony_ci		clock-names = "pclk_lvds";
618c2ecf20Sopenharmony_ci		pinctrl-names = "lcdc";
628c2ecf20Sopenharmony_ci		pinctrl-0 = <&lcdc_ctl>;
638c2ecf20Sopenharmony_ci		avdd1v0-supply = <&vdd10_lcd>;
648c2ecf20Sopenharmony_ci		avdd1v8-supply = <&vcc18_lcd>;
658c2ecf20Sopenharmony_ci		avdd3v3-supply = <&vcca_33>;
668c2ecf20Sopenharmony_ci		rockchip,output = "rgb";
678c2ecf20Sopenharmony_ci		ports {
688c2ecf20Sopenharmony_ci			#address-cells = <1>;
698c2ecf20Sopenharmony_ci			#size-cells = <0>;
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci			lvds_in: port@0 {
728c2ecf20Sopenharmony_ci				reg = <0>;
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci				lvds_in_vopb: endpoint@0 {
758c2ecf20Sopenharmony_ci					reg = <0>;
768c2ecf20Sopenharmony_ci					remote-endpoint = <&vopb_out_lvds>;
778c2ecf20Sopenharmony_ci				};
788c2ecf20Sopenharmony_ci				lvds_in_vopl: endpoint@1 {
798c2ecf20Sopenharmony_ci					reg = <1>;
808c2ecf20Sopenharmony_ci					remote-endpoint = <&vopl_out_lvds>;
818c2ecf20Sopenharmony_ci				};
828c2ecf20Sopenharmony_ci			};
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ci			lvds_out: port@1 {
858c2ecf20Sopenharmony_ci				reg = <1>;
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci				lvds_out_panel: endpoint {
888c2ecf20Sopenharmony_ci					remote-endpoint = <&panel_in_lvds>;
898c2ecf20Sopenharmony_ci				};
908c2ecf20Sopenharmony_ci			};
918c2ecf20Sopenharmony_ci		};
928c2ecf20Sopenharmony_ci	};
93