Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp153053lqs; Thu, 13 Jun 2024 06:41:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVh2o7OljLmbNnlBOV+mKGWjt2KpNjRnKAKh8yyKg9zLkc/2LwOuOIVuNFna5Jm7azTidyqpshEWueH1taUvjZDQUWHJ6wQuyhe4IejIA== X-Google-Smtp-Source: AGHT+IFB3UCo/gUhtGm8EL9MI7I+3/+1az1x00BofWnX7EWhv5e1nn8Uows/Nvp3u+vblp8/i5sf X-Received: by 2002:a05:620a:46a9:b0:795:5958:7281 with SMTP id af79cd13be357-797f601b1a1mr583463585a.22.1718286090702; Thu, 13 Jun 2024 06:41:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718286090; cv=pass; d=google.com; s=arc-20160816; b=BTmBsJlEHxfNJ+esSMNSjdKSjY1sV6BNFA0Qiq5ElLcUwfdiQhKmCTJ5/BiDf7XVGT ToM3Lhd7eO01vLi52N1OWV+Uf4B1KbcLogkXjyXd7KnOZhwpvPItQAgusarhGLcAvk9y GRMVrbj3JNndXfERCs8bra8Ykosb4ff1axFRNm2ZKP+hdLHzUPgpWJNqBZa+zNKT4BLu QglpPCEDMeElj6LADg238JIJIFVsmfDOt1rT7pUEzhgi6f0VbiqBz9HKkUSbKLi9lNu2 pH6WI23Ko/mjjhLrnPTPg9XJY0yoBDcq3wQgtHGsHphHof8KNXKbNrguIw7Ri9GcZlVL AeEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Terjw/Sj7Gk/rvGbyn9EWlcXD+GgaFi1zzF8E4EmlD0=; fh=x2nS86Hl7y8dj6h5YcS3V9sB/HBJdc8Rj4Kk+QQlr54=; b=KPdWjlHXsWlG2AV6OQK6+2MFy4KC9e+Tpd+alJ+DI0t+RLXfTVDnyZlEbp9EPe91JR P7lzKOg+TZ4fx0f2lYMwTgzJ4xbrbbiE4708txN7MJmkUb2tGXVxqblbHlkVZsi80rOK 1cl59LrGElpsi2dusGjCmStR4JEkzHuwznTxR6IX/WvwjzwskMY5wCgcZJi39+tbS1kG QgI8gs3Gs57ZzYrRq9zXkDYqzvW0fGpm3J+qBU+YNvvthrq+zN+TuhXhPOC4U3SL4fS3 gXzbIRr0bsUJkc4A9lVmbn1WeiGOjyNR34s6P37rGq33TUKRv5DVQsyjRitBfu1NWUGM 2gOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fzTt6j4w; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-213345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798ac08f433si148615285a.743.2024.06.13.06.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fzTt6j4w; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-213345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5EF0D1C22D57 for ; Thu, 13 Jun 2024 13:41:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 113E4144D1F; Thu, 13 Jun 2024 13:41:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="fzTt6j4w" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B47E314430E; Thu, 13 Jun 2024 13:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718286074; cv=none; b=gXIuie/FdB3JYjttB9iN//wStsiH+dBAz69SAj8FkKag82mG0pDhkQ7D8sj+xQ9mM2JP2dwTZVY3lRDAjkLpB+nETkI0Kl/rkOoha8xnMLaDVcx9A7X5uEO8wvBvA/tNirJLArH+nHQXFj3PBY/EpTkiOYyKufzBCA2ZxPoOfKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718286074; c=relaxed/simple; bh=kNTzflrf9pMhqYApE/ImjvckEWz4anAEtY37dGq+x1g=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=h28vwIQs30ZZTNlkSJjUp8raNnFcsC++lpnDcT6IORUpnFLLdmbth4rOaYvOpDrCw4OLCZZ09Kp4TXAGw5/5S1imio30Kq/iLHDjguKDmymX7wWTzzj6ZPrz3RsUa94e0cYe9T/RLzBsaMjFVOWsElWFgFI1cigRWHK0MLQ01fA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=fzTt6j4w; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45DDev3s049886; Thu, 13 Jun 2024 08:40:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718286057; bh=Terjw/Sj7Gk/rvGbyn9EWlcXD+GgaFi1zzF8E4EmlD0=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=fzTt6j4wdLc9tk9Txnc0adehnZJ4oHY7JVciuVqle4kT4Q0k9iwGotscAq93s8Qj+ tC7fbQ+Rq4/1B6U0jG+S8gQL3AiGr+SzgC7pGuMT5T8t8Sz0/FUAPtnR9rdPVMVkCe x3KhC/8gBtm1dwz9eBRTzvtw6Rnul7C8KKA7U3Yc= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45DDevHd121841 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Jun 2024 08:40:57 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 13 Jun 2024 08:40:57 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE110.ent.ti.com (157.170.170.21) 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; Thu, 13 Jun 2024 08:40:57 -0500 Received: from [10.249.129.248] ([10.249.129.248]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45DDeSoY124593; Thu, 13 Jun 2024 08:40:29 -0500 Message-ID: Date: Thu, 13 Jun 2024 19:10:28 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] arm64: dts: ti: k3-j721e: Add overlay for J721E Infotainment Expansion Board Content-Language: en-US To: Jayesh Choudhary , , , , , Tomi Valkeinen CC: , , , , , References: <20240613093706.480700-1-j-choudhary@ti.com> From: Aradhya Bhatia In-Reply-To: <20240613093706.480700-1-j-choudhary@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Adding Tomi in the loop. On 13-Jun-24 15:07, Jayesh Choudhary wrote: > From: Tomi Valkeinen > > J721E common processor board can be interfaced with the infotainment > expansion board[0] to enable the following audio/video interfaces in > addition to the peripherals provided by the common processor board: > - Two Audio codecs each with three Stereo Inputs and four Stereo Outputs > - Audio input over FPD Link III > - Digital Audio Interface TX/RX > - HDMI/FPD LINK III Display out > - LI/OV Camera input > > Add support for TFP410 HDMI bridge located on the Infotainment Expansion > Board (connected to J46 & J51). > Add a HDMI connector node and connect the endpoints as below: > DSS => TFP410 bridge => HDMI connector > Also add the pinmux data and board muxes for DPI. > > Rest of the peripherals are not added as of now. > > [0]: > > Signed-off-by: Tomi Valkeinen > [j-choudhary@ti.com: minor cleanup] > Signed-off-by: Jayesh Choudhary > --- > > Testlog: > > > Changelog v1->v2: > - rebased on next-20240613 > - add dtbo in ascending order in Makefile > - Mention in commit message that other peripherals on the expansion board > are not added as of now. > > v1 patch: > > > arch/arm64/boot/dts/ti/Makefile | 4 + > ...-j721e-common-proc-board-infotainment.dtso | 164 ++++++++++++++++++ > 2 files changed, 168 insertions(+) > create mode 100644 arch/arm64/boot/dts/ti/k3-j721e-common-proc-board-infotainment.dtso > > diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile > index d956372a7163..5c6701897f31 100644 > --- a/arch/arm64/boot/dts/ti/Makefile > +++ b/arch/arm64/boot/dts/ti/Makefile > @@ -83,6 +83,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j7200-evm.dtb > # Boards with J721e SoC > k3-j721e-evm-dtbs := k3-j721e-common-proc-board.dtb k3-j721e-evm-quad-port-eth-exp.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-j721e-beagleboneai64.dtb > +dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board-infotainment.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-j721e-evm.dtb > dtb-$(CONFIG_ARCH_K3) += k3-j721e-evm-gesi-exp-board.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-j721e-evm-pcie0-ep.dtbo > @@ -151,6 +152,8 @@ k3-am68-sk-base-board-csi2-dual-imx219-dtbs := k3-am68-sk-base-board.dtb \ > k3-j721e-sk-csi2-dual-imx219.dtbo > k3-am69-sk-csi2-dual-imx219-dtbs := k3-am69-sk.dtb \ > k3-j721e-sk-csi2-dual-imx219.dtbo > +k3-j721e-common-proc-board-infotainment-dtbs := k3-j721e-common-proc-board.dtb \ > + k3-j721e-common-proc-board-infotainment.dtbo > k3-j721e-evm-pcie0-ep-dtbs := k3-j721e-common-proc-board.dtb \ > k3-j721e-evm-pcie0-ep.dtbo > k3-j721e-sk-csi2-dual-imx219-dtbs := k3-j721e-sk.dtb \ > @@ -182,6 +185,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ > k3-am642-tqma64xxl-mbax4xxl-wlan.dtb \ > k3-am68-sk-base-board-csi2-dual-imx219.dtb \ > k3-am69-sk-csi2-dual-imx219.dtb \ > + k3-j721e-common-proc-board-infotainment.dtb \ > k3-j721e-evm-pcie0-ep.dtb \ > k3-j721e-sk-csi2-dual-imx219.dtb \ > k3-j721s2-evm-pcie1-ep.dtb \ > diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board-infotainment.dtso b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board-infotainment.dtso > new file mode 100644 > index 000000000000..65a7e54f0884 > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board-infotainment.dtso > @@ -0,0 +1,164 @@ > +// SPDX-License-Identifier: GPL-2.0-only OR MIT> +/* > + * Infotainment Expansion Board for j721e-evm > + * User Guide: > + * > + * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ > + */ > + > +/dts-v1/; > +/plugin/; > + > +#include > +#include > + > +#include "k3-pinctrl.h" > + > +&{/} { > + hdmi-connector { > + compatible = "hdmi-connector"; > + label = "hdmi"; > + type = "a"; > + ddc-i2c-bus = <&main_i2c1>; > + digital; > + /* P12 - HDMI_HPD */ > + hpd-gpios = <&exp6 10 GPIO_ACTIVE_HIGH>; > + > + port { > + hdmi_connector_in: endpoint { > + remote-endpoint = <&tfp410_out>; > + }; > + }; > + }; > + > + dvi-bridge { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "ti,tfp410"; > + /* P10 - HDMI_PDn */ > + powerdown-gpios = <&exp6 8 GPIO_ACTIVE_LOW>; > + > + port@0 { > + reg = <0>; > + > + tfp410_in: endpoint { > + remote-endpoint = <&dpi_out0>; > + pclk-sample = <1>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + tfp410_out: endpoint { > + remote-endpoint = > + <&hdmi_connector_in>; > + }; > + }; > + }; > +}; > + > +&main_pmx0 { > + main_i2c1_exp6_pins_default: main-i2c1-exp6-default-pins { > + pinctrl-single,pins = < > + J721E_IOPAD(0x264, PIN_INPUT, 7) /* (T29) MMC2_DAT2.GPIO1_24 */ > + >; > + }; > + > + dss_vout0_pins_default: dss-vout0-default-pins { > + pinctrl-single,pins = < > + J721E_IOPAD(0x58, PIN_OUTPUT, 10) /* (AE22) PRG1_PRU1_GPO0.VOUT0_DATA0 */ > + J721E_IOPAD(0x5c, PIN_OUTPUT, 10) /* (AG23) PRG1_PRU1_GPO1.VOUT0_DATA1 */ > + J721E_IOPAD(0x60, PIN_OUTPUT, 10) /* (AF23) PRG1_PRU1_GPO2.VOUT0_DATA2 */ > + J721E_IOPAD(0x64, PIN_OUTPUT, 10) /* (AD23) PRG1_PRU1_GPO3.VOUT0_DATA3 */ > + J721E_IOPAD(0x68, PIN_OUTPUT, 10) /* (AH24) PRG1_PRU1_GPO4.VOUT0_DATA4 */ > + J721E_IOPAD(0x6c, PIN_OUTPUT, 10) /* (AG21) PRG1_PRU1_GPO5.VOUT0_DATA5 */ > + J721E_IOPAD(0x70, PIN_OUTPUT, 10) /* (AE23) PRG1_PRU1_GPO6.VOUT0_DATA6 */ > + J721E_IOPAD(0x74, PIN_OUTPUT, 10) /* (AC21) PRG1_PRU1_GPO7.VOUT0_DATA7 */ > + J721E_IOPAD(0x78, PIN_OUTPUT, 10) /* (Y23) PRG1_PRU1_GPO8.VOUT0_DATA8 */ > + J721E_IOPAD(0x7c, PIN_OUTPUT, 10) /* (AF21) PRG1_PRU1_GPO9.VOUT0_DATA9 */ > + J721E_IOPAD(0x80, PIN_OUTPUT, 10) /* (AB23) PRG1_PRU1_GPO10.VOUT0_DATA10 */ > + J721E_IOPAD(0x84, PIN_OUTPUT, 10) /* (AJ25) PRG1_PRU1_GPO11.VOUT0_DATA11 */ > + J721E_IOPAD(0x88, PIN_OUTPUT, 10) /* (AH25) PRG1_PRU1_GPO12.VOUT0_DATA12 */ > + J721E_IOPAD(0x8c, PIN_OUTPUT, 10) /* (AG25) PRG1_PRU1_GPO13.VOUT0_DATA13 */ > + J721E_IOPAD(0x90, PIN_OUTPUT, 10) /* (AH26) PRG1_PRU1_GPO14.VOUT0_DATA14 */ > + J721E_IOPAD(0x94, PIN_OUTPUT, 10) /* (AJ27) PRG1_PRU1_GPO15.VOUT0_DATA15 */ > + J721E_IOPAD(0x30, PIN_OUTPUT, 10) /* (AF24) PRG1_PRU0_GPO11.VOUT0_DATA16 */ > + J721E_IOPAD(0x34, PIN_OUTPUT, 10) /* (AJ24) PRG1_PRU0_GPO12.VOUT0_DATA17 */ > + J721E_IOPAD(0x38, PIN_OUTPUT, 10) /* (AG24) PRG1_PRU0_GPO13.VOUT0_DATA18 */ > + J721E_IOPAD(0x3c, PIN_OUTPUT, 10) /* (AD24) PRG1_PRU0_GPO14.VOUT0_DATA19 */ > + J721E_IOPAD(0x40, PIN_OUTPUT, 10) /* (AC24) PRG1_PRU0_GPO15.VOUT0_DATA20 */ > + J721E_IOPAD(0x44, PIN_OUTPUT, 10) /* (AE24) PRG1_PRU0_GPO16.VOUT0_DATA21 */ > + J721E_IOPAD(0x24, PIN_OUTPUT, 10) /* (AJ20) PRG1_PRU0_GPO8.VOUT0_DATA22 */ > + J721E_IOPAD(0x28, PIN_OUTPUT, 10) /* (AG20) PRG1_PRU0_GPO9.VOUT0_DATA23 */ > + J721E_IOPAD(0x9c, PIN_OUTPUT, 10) /* (AC22) PRG1_PRU1_GPO17.VOUT0_DE */ > + J721E_IOPAD(0x98, PIN_OUTPUT, 10) /* (AJ26) PRG1_PRU1_GPO16.VOUT0_HSYNC */ > + J721E_IOPAD(0xa4, PIN_OUTPUT, 10) /* (AH22) PRG1_PRU1_GPO19.VOUT0_PCLK */ > + J721E_IOPAD(0xa0, PIN_OUTPUT, 10) /* (AJ22) PRG1_PRU1_GPO18.VOUT0_VSYNC */ > + >; > + }; > +}; > + > +&exp1 { > + p14-hog { > + /* P14 - VINOUT_MUX_SEL0 */ > + gpio-hog; > + gpios = <12 GPIO_ACTIVE_HIGH>; > + output-low; > + line-name = "VINOUT_MUX_SEL0"; > + }; > + > + p15-hog { > + /* P15 - VINOUT_MUX_SEL1 */ > + gpio-hog; > + gpios = <13 GPIO_ACTIVE_HIGH>; > + output-high; > + line-name = "VINOUT_MUX_SEL1"; > + }; > +}; > + > +&main_i2c1 { > + /* i2c1 is used for DVI DDC, so we need to use 100kHz */ > + clock-frequency = <100000>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + exp6: gpio@21 { > + compatible = "ti,tca6416"; > + reg = <0x21>; > + gpio-controller; > + #gpio-cells = <2>; > + pinctrl-names = "default"; > + pinctrl-0 = <&main_i2c1_exp6_pins_default>; > + interrupt-parent = <&main_gpio1>; > + interrupts = <24 IRQ_TYPE_EDGE_FALLING>; > + interrupt-controller; > + #interrupt-cells = <2>; > + > + p11-hog { > + /* P11 - HDMI_DDC_OE */ > + gpio-hog; > + gpios = <9 GPIO_ACTIVE_HIGH>; > + output-high; > + line-name = "HDMI_DDC_OE"; > + }; > + }; > +}; > + > +&dss { > + pinctrl-names = "default"; > + pinctrl-0 = <&dss_vout0_pins_default>; > +}; > + > +&dss_ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@1 { > + reg = <1>; > + > + dpi_out0: endpoint { > + remote-endpoint = <&tfp410_in>; > + }; > + }; > +}; Reviewed-by: Aradhya Bhatia -- Regards Aradhya