Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp344930rwb; Fri, 4 Aug 2023 13:47:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTxF6tL/XhC9CiZesGUeBht/XEU3kvlVjA9NuMNf4dNyafu5bUkBCwPeFOBYLrHHQTqTSB X-Received: by 2002:a05:6a00:b43:b0:686:b5c9:c527 with SMTP id p3-20020a056a000b4300b00686b5c9c527mr878071pfo.17.1691182070405; Fri, 04 Aug 2023 13:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691182070; cv=none; d=google.com; s=arc-20160816; b=ns43Y5t+BskJ8YHjt0niFbfFTuuH3wH34an/2FBLKinZNCRcHTzyVGqWpZH6b7/IP9 OxqNDh4cHwV132WiggJAJG7TVIbSgcvmKI0A9c8mecqNGJZLJfTsDjjZ0dQxgNupEy8h 5IeHHTEbGuH0ZWgUPWQkJ2AwCK8YN7ZWTWY3PnKmWqpu7QwP4pWnsmXV9SzjM94NywZp IA4DuRXOGay/ci+iHjAMuRyIDJQo1ygGC3bkRouMBtBt8YwUtdBUb0wuXYcbbUK/uC2E ZOyIp+LhuCLKW1CL3olYdZWSqbxxiIhiEHUP0QQ6ADaY1Hi8OyghsJbvmadCWPul0kIF WDJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4CV2upOvrpZKIRBBsxtFctVYEJfMMRQA1Lp0j0HCm8U=; fh=u9m/mN+SNmsWO1vP6+wBrgmDWrEMS2EBgB3I7gV3BiY=; b=mHPGds1rPCOb2rW/9Hue6naVwKIOzxyg/m6qJgvfS1YLB3O0oNTfS8EHYpZpLkRDpd +p5RaPv5zCGiNEwKk52s7WyKWCKMYseEg3v0x7A5bm94PkaL/zmt3CRKbcRcVUYIc10u Rn//JStkblBeKfNkIG8FiDktz/H2A5sWCLGhI845I4FkzLKIYl/DZuEKel0NOfppPuom e0jl0GleB0qT0Cw4jUjjBQ+fwipl3obhY1BwpHQk4rmLsgmfL+ezqxpwgsV19MDSejNL auNKstCqtd4qpjP2XAJZ/hx8evPNJw/QPyNqY11ZtPeK2zWkGQ4jy8ccuPm6wI3c9Wzr zBqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ifN+qFhK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y38-20020a056a001ca600b006870ad022d2si2137207pfw.34.2023.08.04.13.47.32; Fri, 04 Aug 2023 13:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ifN+qFhK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbjHDTim (ORCPT + 99 others); Fri, 4 Aug 2023 15:38:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjHDTik (ORCPT ); Fri, 4 Aug 2023 15:38:40 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BC551BF; Fri, 4 Aug 2023 12:38:38 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 374JcUtn120686; Fri, 4 Aug 2023 14:38:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691177910; bh=4CV2upOvrpZKIRBBsxtFctVYEJfMMRQA1Lp0j0HCm8U=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=ifN+qFhKCP84GQ0NEU862Z3Ml9T3d3f1HJg4aAy8gAcISYVzSmjxL5A/fsM8yEZkB ryuK3oEdvnzYWNUOPPLad8RHYUh3xjLXhCQncD8ZcJQNcl+zf8hoamScCQ0mbkGJws XOug8kd9TMkD9KGG8ravPCen5JEwxaaf+deab7ak= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 374JcUqb006060 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 4 Aug 2023 14:38:30 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 4 Aug 2023 14:38:29 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 4 Aug 2023 14:38:29 -0500 Received: from [10.249.132.69] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 374JcNxo039676; Fri, 4 Aug 2023 14:38:24 -0500 Message-ID: Date: Sat, 5 Aug 2023 01:08:23 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v9 5/5] arm64: dts: ti: k3-am69-sk: Add DP and HDMI support Content-Language: en-US To: Jayesh Choudhary , , , , CC: , , , , , , , , , References: <20230803080441.367341-1-j-choudhary@ti.com> <20230803080441.367341-6-j-choudhary@ti.com> From: Aradhya Bhatia In-Reply-To: <20230803080441.367341-6-j-choudhary@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03-Aug-23 13:34, Jayesh Choudhary wrote: > From: Dasnavis Sabiya > > AM69 starter kit features an HDMI port and an eDP port. > > Add assigned clocks for DSS, DT node for DisplayPort PHY, > pinmux for HDMI hotplug and power down, mcu_i2c1 and dss_vout > for HDMI. > Also enable Serdes4 settings for DP display. > > Add the endpoint nodes to describe connection from: > DSS => MHDP => DisplayPort connector > DSS => TI TFP410 DPI-to-DVI Bridge => HDMI connector > > Signed-off-by: Dasnavis Sabiya > [j-choudhary@ti.com: Fix dvi-bridge, dss, mhdp and serdes-refclk] > Signed-off-by: Jayesh Choudhary Reviewed-by: Aradhya Bhatia > --- > arch/arm64/boot/dts/ti/k3-am69-sk.dts | 234 ++++++++++++++++++++++++++ > 1 file changed, 234 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts > index d282c2c633c1..d6d6b7aa9daf 100644 > --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts > @@ -107,6 +107,76 @@ vdd_sd_dv: regulator-tlv71033 { > states = <1800000 0x0>, > <3300000 0x1>; > }; > + > + dp0_pwr_3v3: regulator-dp0-pwr { > + compatible = "regulator-fixed"; > + regulator-name = "dp0-pwr"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&dp_pwr_en_pins_default>; > + gpio = <&main_gpio0 4 0>; /* DP0_3V3 _EN */ > + enable-active-high; > + }; > + > + dp0: connector-dp0 { > + compatible = "dp-connector"; > + label = "DP0"; > + type = "full-size"; > + dp-pwr-supply = <&dp0_pwr_3v3>; > + > + port { > + dp0_connector_in: endpoint { > + remote-endpoint = <&dp0_out>; > + }; > + }; > + }; > + > + connector-hdmi { > + compatible = "hdmi-connector"; > + label = "hdmi"; > + type = "a"; > + pinctrl-names = "default"; > + pinctrl-0 = <&hdmi_hpd_pins_default>; > + ddc-i2c-bus = <&mcu_i2c1>; > + hpd-gpios = <&main_gpio0 0 GPIO_ACTIVE_HIGH>; /* HDMI_HPD */ > + > + port { > + hdmi_connector_in: endpoint { > + remote-endpoint = <&tfp410_out>; > + }; > + }; > + }; > + > + bridge-dvi { > + compatible = "ti,tfp410"; > + pinctrl-names = "default"; > + pinctrl-0 = <&hdmi_pdn_pins_default>; > + powerdown-gpios = <&wkup_gpio0 14 GPIO_ACTIVE_LOW>; /* HDMI_PDn */ > + ti,deskew = <0>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + tfp410_in: endpoint { > + remote-endpoint = <&dpi1_out0>; > + pclk-sample = <1>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + tfp410_out: endpoint { > + remote-endpoint = <&hdmi_connector_in>; > + }; > + }; > + }; > + }; > }; > > &main_pmx0 { > @@ -161,6 +231,57 @@ J784S4_IOPAD(0x008, PIN_INPUT, 7) /* (AJ33) MCAN12_RX.GPIO0_2 */ > J784S4_IOPAD(0x004, PIN_INPUT, 7) /* (AG36) MCAN12_TX.GPIO0_1 */ > >; > }; > + > + dp0_pins_default: dp0-default-pins { > + pinctrl-single,pins = < > + J784S4_IOPAD(0x014, PIN_INPUT, 13) /* (AG33) MCAN14_TX.DP0_HPD */ > + >; > + }; > + > + dp_pwr_en_pins_default: dp-pwr-en-default-pins { > + pinctrl-single,pins = < > + J784S4_IOPAD(0x010, PIN_INPUT, 7) /* (AH33) MCAN13_RX.GPIO0_4 */ > + >; > + }; > + > + dss_vout0_pins_default: dss-vout0-default-pins { > + pinctrl-single,pins = < > + J784S4_IOPAD(0x074, PIN_OUTPUT, 2) /* (AC33) MCAN2_TX.VOUT0_DATA0 */ > + J784S4_IOPAD(0x070, PIN_OUTPUT, 2) /* (AH38) MCAN1_RX.VOUT0_DATA1 */ > + J784S4_IOPAD(0x07c, PIN_OUTPUT, 2) /* (AJ38) MCASP0_AXR3.VOUT0_DATA2 */ > + J784S4_IOPAD(0x068, PIN_OUTPUT, 2) /* (AE38) MCAN0_RX.VOUT0_DATA3 */ > + J784S4_IOPAD(0x064, PIN_OUTPUT, 2) /* (AF38) MCAN0_TX.VOUT0_DATA4 */ > + J784S4_IOPAD(0x060, PIN_OUTPUT, 2) /* (AE36) MCASP2_AXR1.VOUT0_DATA5 */ > + J784S4_IOPAD(0x05c, PIN_OUTPUT, 2) /* (AC36) MCASP2_AXR0.VOUT0_DATA6 */ > + J784S4_IOPAD(0x058, PIN_OUTPUT, 2) /* (AE37) MCASP2_AFSX.VOUT0_DATA7 */ > + J784S4_IOPAD(0x054, PIN_OUTPUT, 2) /* (AD37) MCASP2_ACLKX.VOUT0_DATA8 */ > + J784S4_IOPAD(0x050, PIN_OUTPUT, 2) /* (AC37) MCASP1_AXR2.VOUT0_DATA9 */ > + J784S4_IOPAD(0x04c, PIN_OUTPUT, 2) /* (AC32) MCASP1_AXR1.VOUT0_DATA10 */ > + J784S4_IOPAD(0x048, PIN_OUTPUT, 2) /* (AK33) MCASP0_AXR2.VOUT0_DATA11 */ > + J784S4_IOPAD(0x044, PIN_OUTPUT, 2) /* (AG37) MCASP0_AXR1.VOUT0_DATA12 */ > + J784S4_IOPAD(0x040, PIN_OUTPUT, 2) /* (AF37) MCASP0_AXR0.VOUT0_DATA13 */ > + J784S4_IOPAD(0x03c, PIN_OUTPUT, 2) /* (AK38) MCASP0_AFSX.VOUT0_DATA14 */ > + J784S4_IOPAD(0x038, PIN_OUTPUT, 2) /* (AK35) MCASP0_ACLKX.VOUT0_DATA15 */ > + J784S4_IOPAD(0x0c8, PIN_OUTPUT, 2) /* (AJ32) EXT_REFCLK1.VOUT0_DATA16 */ > + J784S4_IOPAD(0x030, PIN_OUTPUT, 2) /* (AK37) GPIO0_12.VOUT0_DATA17 */ > + J784S4_IOPAD(0x02c, PIN_OUTPUT, 2) /* (AL32) GPIO0_11.VOUT0_DATA18 */ > + J784S4_IOPAD(0x028, PIN_OUTPUT, 2) /* (AE33) MCAN16_RX.VOUT0_DATA19 */ > + J784S4_IOPAD(0x024, PIN_OUTPUT, 2) /* (AH34) MCAN16_TX.VOUT0_DATA20 */ > + J784S4_IOPAD(0x020, PIN_OUTPUT, 2) /* (AJ35) MCAN15_RX.VOUT0_DATA21 */ > + J784S4_IOPAD(0x01c, PIN_OUTPUT, 2) /* (AG34) MCAN15_TX.VOUT0_DATA22 */ > + J784S4_IOPAD(0x018, PIN_OUTPUT, 2) /* (AK36) MCAN14_RX.VOUT0_DATA23 */ > + J784S4_IOPAD(0x084, PIN_OUTPUT, 2) /* (AG38) MCASP0_AXR5.VOUT0_DE */ > + J784S4_IOPAD(0x080, PIN_OUTPUT, 2) /* (AK34) MCASP0_AXR4.VOUT0_HSYNC */ > + J784S4_IOPAD(0x078, PIN_OUTPUT, 2) /* (AH37) MCAN2_RX.VOUT0_PCLK */ > + J784S4_IOPAD(0x088, PIN_OUTPUT, 2) /* (AF36) MCASP0_AXR6.VOUT0_VSYNC */ > + >; > + }; > + > + hdmi_hpd_pins_default: hdmi-hpd-default-pins { > + pinctrl-single,pins = < > + J784S4_IOPAD(0x000, PIN_INPUT, 7) /* (AN35) EXTINTN.GPIO0_0 */ > + >; > + }; > }; > > &wkup_pmx2 { > @@ -231,6 +352,21 @@ J784S4_WKUP_IOPAD(0x064, PIN_INPUT, 7) /* (J36) WKUP_GPIO0_3 */ > J784S4_WKUP_IOPAD(0x11c, PIN_INPUT, 7) /* (M34) WKUP_GPIO0_67 */ > >; > }; > + > + mcu_i2c1_pins_default: mcu-i2c1-default-pins { > + pinctrl-single,pins = < > + /* (L35) WKUP_GPIO0_8.MCU_I2C1_SCL */ > + J784S4_WKUP_IOPAD(0x078, PIN_INPUT_PULLUP, 0) > + /* (L34) WKUP_GPIO0_9.MCU_I2C1_SDA */ > + J784S4_WKUP_IOPAD(0x07c, PIN_INPUT_PULLUP, 0) > + >; > + }; > + > + hdmi_pdn_pins_default: hdmi-pdn-default-pins { > + pinctrl-single,pins = < > + J784S4_WKUP_IOPAD(0x090, PIN_INPUT, 7) /* (H37) WKUP_GPIO0_14 */ > + >; > + }; > }; > > &wkup_pmx3 { > @@ -350,3 +486,101 @@ &mcu_cpsw_port1 { > phy-mode = "rgmii-rxid"; > phy-handle = <&mcu_phy0>; > }; > + > +&wkup_gpio_intr { > + status = "okay"; > +}; > + > +&mcu_i2c1 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&mcu_i2c1_pins_default>; > + clock-frequency = <100000>; > +}; > + > +&serdes_refclk { > + status = "okay"; > + clock-frequency = <100000000>; > +}; > + > +&dss { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&dss_vout0_pins_default>; > + assigned-clocks = <&k3_clks 218 2>, > + <&k3_clks 218 5>, > + <&k3_clks 218 14>, > + <&k3_clks 218 18>; > + assigned-clock-parents = <&k3_clks 218 3>, > + <&k3_clks 218 7>, > + <&k3_clks 218 16>, > + <&k3_clks 218 22>; > +}; > + > +&serdes_wiz4 { > + status = "okay"; > +}; > + > +&serdes4 { > + status = "okay"; > + serdes4_dp_link: phy@0 { > + reg = <0>; > + cdns,num-lanes = <4>; > + #phy-cells = <0>; > + cdns,phy-type = ; > + resets = <&serdes_wiz4 1>, <&serdes_wiz4 2>, > + <&serdes_wiz4 3>, <&serdes_wiz4 4>; > + }; > +}; > + > +&mhdp { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&dp0_pins_default>; > + phys = <&serdes4_dp_link>; > + phy-names = "dpphy"; > +}; > + > +&dss_ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* DP */ > + port@0 { > + reg = <0>; > + > + dpi0_out: endpoint { > + remote-endpoint = <&dp0_in>; > + }; > + }; > + > + /* HDMI */ > + port@1 { > + reg = <1>; > + > + dpi1_out0: endpoint { > + remote-endpoint = <&tfp410_in>; > + }; > + }; > +}; > + > +&dp0_ports { > + #address-cells = <1>; > + #size-cells = <0>;> + > + port@0 { > + reg = <0>; > + > + dp0_in: endpoint { > + remote-endpoint = <&dpi0_out>; > + }; > + }; > + > + port@4 { > + reg = <4>; > + > + dp0_out: endpoint { > + remote-endpoint = <&dp0_connector_in>; > + }; > + }; > +};