lkml.org 
[lkml]   [2021]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 6/8] MIPS: DTS: CI20: add HDMI setup
    Date
    From: Paul Boddie <paul@boddie.org.uk>

    We need to hook up
    * HDMI power regulator
    * HDMI connector
    * DDC pinmux
    * HDMI and LCD endpoint connections

    Signed-off-by: Paul Boddie <paul@boddie.org.uk>
    Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
    ---
    arch/mips/boot/dts/ingenic/ci20.dts | 64 +++++++++++++++++++++++++++++
    1 file changed, 64 insertions(+)

    diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts
    index a688809beebca..9e87b1169dbdc 100644
    --- a/arch/mips/boot/dts/ingenic/ci20.dts
    +++ b/arch/mips/boot/dts/ingenic/ci20.dts
    @@ -78,6 +78,28 @@ eth0_power: fixedregulator@0 {
    enable-active-high;
    };

    + hdmi_power: fixedregulator@2 {
    + compatible = "regulator-fixed";
    + regulator-name = "hdmi_power";
    + regulator-min-microvolt = <5000000>;
    + regulator-max-microvolt = <5000000>;
    + gpio = <&gpa 25 GPIO_ACTIVE_LOW>;
    + enable-active-high;
    + regulator-always-on;
    + };
    +
    + hdmi_out: connector {
    + compatible = "hdmi-connector";
    + label = "HDMI OUT";
    + type = "a";
    +
    + port {
    + hdmi_con: endpoint {
    + remote-endpoint = <&dw_hdmi_out>;
    + };
    + };
    + };
    +
    ir: ir {
    compatible = "gpio-ir-receiver";
    gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
    @@ -506,6 +528,12 @@ pins_i2c4: i2c4 {
    bias-disable;
    };

    + pins_hdmi_ddc: hdmi_ddc {
    + function = "hdmi-ddc";
    + groups = "hdmi-ddc";
    + bias-disable;
    + };
    +
    pins_nemc: nemc {
    function = "nemc";
    groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe";
    @@ -536,3 +564,39 @@ pins_mmc1: mmc1 {
    bias-disable;
    };
    };
    +
    +&hdmi {
    + status = "okay";
    +
    + pinctrl-names = "default";
    + pinctrl-0 = <&pins_hdmi_ddc>;
    +
    + ports {
    + #address-cells = <1>;
    + #size-cells = <0>;
    +
    + port@0 {
    + reg = <0>;
    + dw_hdmi_in: endpoint {
    + remote-endpoint = <&lcd_out>;
    + };
    + };
    +
    + port@1 {
    + reg = <1>;
    + dw_hdmi_out: endpoint {
    + remote-endpoint = <&hdmi_con>;
    + };
    + };
    + };
    +};
    +
    +&lcdc0 {
    + status = "okay";
    +
    + port {
    + lcd_out: endpoint {
    + remote-endpoint = <&dw_hdmi_in>;
    + };
    + };
    +};
    --
    2.31.1
    \
     
     \ /
      Last update: 2021-08-05 16:15    [W:4.384 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site