18c2ecf20Sopenharmony_ciThe Exynos display port interface should be configured based on 28c2ecf20Sopenharmony_cithe type of panel connected to it. 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciWe use two nodes: 58c2ecf20Sopenharmony_ci -dp-controller node 68c2ecf20Sopenharmony_ci -dptx-phy node(defined inside dp-controller node) 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciFor the DP-PHY initialization, we use the dptx-phy node. 98c2ecf20Sopenharmony_ciRequired properties for dptx-phy: deprecated, use phys and phy-names 108c2ecf20Sopenharmony_ci -reg: deprecated 118c2ecf20Sopenharmony_ci Base address of DP PHY register. 128c2ecf20Sopenharmony_ci -samsung,enable-mask: deprecated 138c2ecf20Sopenharmony_ci The bit-mask used to enable/disable DP PHY. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciFor the Panel initialization, we read data from dp-controller node. 168c2ecf20Sopenharmony_ciRequired properties for dp-controller: 178c2ecf20Sopenharmony_ci -compatible: 188c2ecf20Sopenharmony_ci should be "samsung,exynos5-dp". 198c2ecf20Sopenharmony_ci -reg: 208c2ecf20Sopenharmony_ci physical base address of the controller and length 218c2ecf20Sopenharmony_ci of memory mapped region. 228c2ecf20Sopenharmony_ci -interrupts: 238c2ecf20Sopenharmony_ci interrupt combiner values. 248c2ecf20Sopenharmony_ci -clocks: 258c2ecf20Sopenharmony_ci from common clock binding: handle to dp clock. 268c2ecf20Sopenharmony_ci -clock-names: 278c2ecf20Sopenharmony_ci from common clock binding: Shall be "dp". 288c2ecf20Sopenharmony_ci -phys: 298c2ecf20Sopenharmony_ci from general PHY binding: the phandle for the PHY device. 308c2ecf20Sopenharmony_ci -phy-names: 318c2ecf20Sopenharmony_ci from general PHY binding: Should be "dp". 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciOptional properties for dp-controller: 348c2ecf20Sopenharmony_ci -interlaced: 358c2ecf20Sopenharmony_ci interlace scan mode. 368c2ecf20Sopenharmony_ci Progressive if defined, Interlaced if not defined 378c2ecf20Sopenharmony_ci -vsync-active-high: 388c2ecf20Sopenharmony_ci VSYNC polarity configuration. 398c2ecf20Sopenharmony_ci High if defined, Low if not defined 408c2ecf20Sopenharmony_ci -hsync-active-high: 418c2ecf20Sopenharmony_ci HSYNC polarity configuration. 428c2ecf20Sopenharmony_ci High if defined, Low if not defined 438c2ecf20Sopenharmony_ci -samsung,hpd-gpio: 448c2ecf20Sopenharmony_ci Hotplug detect GPIO. 458c2ecf20Sopenharmony_ci Indicates which GPIO should be used for hotplug 468c2ecf20Sopenharmony_ci detection 478c2ecf20Sopenharmony_ci -video interfaces: Device node can contain video interface port 488c2ecf20Sopenharmony_ci nodes according to [1]. 498c2ecf20Sopenharmony_ci - display-timings: timings for the connected panel as described by 508c2ecf20Sopenharmony_ci Documentation/devicetree/bindings/display/panel/display-timing.txt 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ciFor the below properties, please refer to Analogix DP binding document: 538c2ecf20Sopenharmony_ci * Documentation/devicetree/bindings/display/bridge/analogix_dp.txt 548c2ecf20Sopenharmony_ci -phys (required) 558c2ecf20Sopenharmony_ci -phy-names (required) 568c2ecf20Sopenharmony_ci -hpd-gpios (optional) 578c2ecf20Sopenharmony_ci force-hpd (optional) 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ciDeprecated properties for DisplayPort: 608c2ecf20Sopenharmony_ci-interlaced: deprecated prop that can parsed from drm_display_mode. 618c2ecf20Sopenharmony_ci-vsync-active-high: deprecated prop that can parsed from drm_display_mode. 628c2ecf20Sopenharmony_ci-hsync-active-high: deprecated prop that can parsed from drm_display_mode. 638c2ecf20Sopenharmony_ci-samsung,ycbcr-coeff: deprecated prop that can parsed from drm_display_mode. 648c2ecf20Sopenharmony_ci-samsung,dynamic-range: deprecated prop that can parsed from drm_display_mode. 658c2ecf20Sopenharmony_ci-samsung,color-space: deprecated prop that can parsed from drm_display_info. 668c2ecf20Sopenharmony_ci-samsung,color-depth: deprecated prop that can parsed from drm_display_info. 678c2ecf20Sopenharmony_ci-samsung,link-rate: deprecated prop that can reading from monitor by dpcd method. 688c2ecf20Sopenharmony_ci-samsung,lane-count: deprecated prop that can reading from monitor by dpcd method. 698c2ecf20Sopenharmony_ci-samsung,hpd-gpio: deprecated name for hpd-gpios. 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci------------------------------------------------------------------------------- 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ciExample: 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ciSOC specific portion: 768c2ecf20Sopenharmony_ci dp-controller { 778c2ecf20Sopenharmony_ci compatible = "samsung,exynos5-dp"; 788c2ecf20Sopenharmony_ci reg = <0x145b0000 0x10000>; 798c2ecf20Sopenharmony_ci interrupts = <10 3>; 808c2ecf20Sopenharmony_ci interrupt-parent = <&combiner>; 818c2ecf20Sopenharmony_ci clocks = <&clock 342>; 828c2ecf20Sopenharmony_ci clock-names = "dp"; 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci phys = <&dp_phy>; 858c2ecf20Sopenharmony_ci phy-names = "dp"; 868c2ecf20Sopenharmony_ci }; 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ciBoard Specific portion: 898c2ecf20Sopenharmony_ci dp-controller { 908c2ecf20Sopenharmony_ci display-timings { 918c2ecf20Sopenharmony_ci native-mode = <&lcd_timing>; 928c2ecf20Sopenharmony_ci lcd_timing: 1366x768 { 938c2ecf20Sopenharmony_ci clock-frequency = <70589280>; 948c2ecf20Sopenharmony_ci hactive = <1366>; 958c2ecf20Sopenharmony_ci vactive = <768>; 968c2ecf20Sopenharmony_ci hfront-porch = <40>; 978c2ecf20Sopenharmony_ci hback-porch = <40>; 988c2ecf20Sopenharmony_ci hsync-len = <32>; 998c2ecf20Sopenharmony_ci vback-porch = <10>; 1008c2ecf20Sopenharmony_ci vfront-porch = <12>; 1018c2ecf20Sopenharmony_ci vsync-len = <6>; 1028c2ecf20Sopenharmony_ci }; 1038c2ecf20Sopenharmony_ci }; 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci ports { 1068c2ecf20Sopenharmony_ci port@0 { 1078c2ecf20Sopenharmony_ci dp_out: endpoint { 1088c2ecf20Sopenharmony_ci remote-endpoint = <&bridge_in>; 1098c2ecf20Sopenharmony_ci }; 1108c2ecf20Sopenharmony_ci }; 1118c2ecf20Sopenharmony_ci }; 1128c2ecf20Sopenharmony_ci }; 113