| From 016d1820cd9559e8c22c6ee48281212ddd78973f Mon Sep 17 00:00:00 2001 |
| From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
| Date: Fri, 23 Sep 2016 00:06:43 +0300 |
| Subject: [PATCH 217/299] ARM: dts: wheat: add DU support |
| |
| Define the Wheat board dependent part of the DU device node. |
| Add the device nodes for the Analog Devices ADV7513 HDMI transmitters |
| connected to DU0/1. Add the necessary subnodes to interconnect DU with |
| HDMI transmitters/connectors. |
| |
| Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| (cherry picked from commit f6eea82a87db2753e2f7c0454f078fb630eb72cd) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| arch/arm/boot/dts/r8a7792-wheat.dts | 126 ++++++++++++++++++++++++++++++++++++ |
| 1 file changed, 126 insertions(+) |
| |
| --- a/arch/arm/boot/dts/r8a7792-wheat.dts |
| +++ b/arch/arm/boot/dts/r8a7792-wheat.dts |
| @@ -86,6 +86,34 @@ |
| gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>; |
| enable-active-high; |
| }; |
| + |
| + hdmi-out0 { |
| + compatible = "hdmi-connector"; |
| + type = "a"; |
| + |
| + port { |
| + hdmi_con0: endpoint { |
| + remote-endpoint = <&adv7513_0_out>; |
| + }; |
| + }; |
| + }; |
| + |
| + hdmi-out1 { |
| + compatible = "hdmi-connector"; |
| + type = "a"; |
| + |
| + port { |
| + hdmi_con1: endpoint { |
| + remote-endpoint = <&adv7513_1_out>; |
| + }; |
| + }; |
| + }; |
| + |
| + osc2_clk: osc2 { |
| + compatible = "fixed-clock"; |
| + #clock-cells = <0>; |
| + clock-frequency = <74250000>; |
| + }; |
| }; |
| |
| &extal_clk { |
| @@ -128,6 +156,16 @@ |
| groups = "qspi_ctrl", "qspi_data4"; |
| function = "qspi"; |
| }; |
| + |
| + du0_pins: du0 { |
| + groups = "du0_rgb888", "du0_sync", "du0_disp"; |
| + function = "du0"; |
| + }; |
| + |
| + du1_pins: du1 { |
| + groups = "du1_rgb666", "du1_sync", "du1_disp"; |
| + function = "du1"; |
| + }; |
| }; |
| |
| &scif0 { |
| @@ -196,4 +234,92 @@ |
| }; |
| }; |
| }; |
| +}; |
| + |
| +&i2c4 { |
| + status = "okay"; |
| + clock-frequency = <400000>; |
| + |
| + hdmi@3d { |
| + compatible = "adi,adv7513"; |
| + reg = <0x3d>; |
| + |
| + adi,input-depth = <8>; |
| + adi,input-colorspace = "rgb"; |
| + adi,input-clock = "1x"; |
| + adi,input-style = <1>; |
| + adi,input-justification = "evenly"; |
| + |
| + ports { |
| + #address-cells = <1>; |
| + #size-cells = <0>; |
| + |
| + port@0 { |
| + reg = <0>; |
| + adv7513_0_in: endpoint { |
| + remote-endpoint = <&du_out_rgb0>; |
| + }; |
| + }; |
| + |
| + port@1 { |
| + reg = <1>; |
| + adv7513_0_out: endpoint { |
| + remote-endpoint = <&hdmi_con0>; |
| + }; |
| + }; |
| + }; |
| + }; |
| + |
| + hdmi@39 { |
| + compatible = "adi,adv7513"; |
| + reg = <0x39>; |
| + |
| + adi,input-depth = <8>; |
| + adi,input-colorspace = "rgb"; |
| + adi,input-clock = "1x"; |
| + adi,input-style = <1>; |
| + adi,input-justification = "evenly"; |
| + |
| + ports { |
| + #address-cells = <1>; |
| + #size-cells = <0>; |
| + |
| + port@0 { |
| + reg = <0>; |
| + adv7513_1_in: endpoint { |
| + remote-endpoint = <&du_out_rgb1>; |
| + }; |
| + }; |
| + |
| + port@1 { |
| + reg = <1>; |
| + adv7513_1_out: endpoint { |
| + remote-endpoint = <&hdmi_con1>; |
| + }; |
| + }; |
| + }; |
| + }; |
| +}; |
| + |
| +&du { |
| + pinctrl-0 = <&du0_pins &du1_pins>; |
| + pinctrl-names = "default"; |
| + |
| + clocks = <&mstp7_clks R8A7792_CLK_DU0>, <&mstp7_clks R8A7792_CLK_DU1>, |
| + <&osc2_clk>; |
| + clock-names = "du.0", "du.1", "dclkin.0"; |
| + status = "okay"; |
| + |
| + ports { |
| + port@0 { |
| + endpoint { |
| + remote-endpoint = <&adv7513_0_in>; |
| + }; |
| + }; |
| + port@1 { |
| + endpoint { |
| + remote-endpoint = <&adv7513_1_in>; |
| + }; |
| + }; |
| + }; |
| }; |