From patchwork Fri Feb 23 02:57:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13568500 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21A8EC47DD9 for ; Fri, 23 Feb 2024 02:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=q/kjeGy7UllRB8zSTfSq/t8oGNsvroA2Rn29JUow/DY=; b=H8FtJn/tVQPZY4 MJzXGRwRhdlCPv2u5WMKX4KJFJtgSS0+FHAU3CNuVtNaDUoZzuiJ4t+xgcG/vTU1Tei1Q+MgL7y9g TDHyfhNFr5c8QLNnVKtFM/TwZ/si2sImiTGO9bwQw28AGbpnsVvoFa7jwLGFBEvz7PfZ0tS9bTT/y uH8IYvvAGfk3wm+9bIUIiQJGOJosxSqhRMJ/skiLSMFed8uAmwVQgKUn7CVhp74lJTGNls7K1P12u iyAfc0GEzBmImZVJjYgzJBWCT9We2GzYrJwRwixQqKY/Bvbo0xliqyXbgcuJiR+KWPNvpxczvnFJ7 BlLmVZqxERJVMkOfpt6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdLe3-00000007bOt-2wrE; Fri, 23 Feb 2024 02:50:41 +0000 Received: from mail-am0eur02on20601.outbound.protection.outlook.com ([2a01:111:f403:2606::601] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdLdR-00000007bH3-0a1A for linux-arm-kernel@lists.infradead.org; Fri, 23 Feb 2024 02:50:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PBrI3ZXZp2y4X0+wCAGFkRdsYJJ2HBJ/AvFm1kTL2qSgxWbT0FwUC71oPO+woT1gSk3afVZoWDvk9NpN5pe/UujA3xy3nR/jKjqGRaxgIK4TL5BAQmC8LwghkOUTCWKAvOXpyGxt0n1IbuhW4FYock9/6VNTPA8cXrfW/xVx/oaUTYtn3Mp3WcZRm5WCd5vZI7clmOLzeP1kicwJk9XfWn+u0CPTTueRdVGZSVB+zWUMJv7FJ/jWl1xa8NsIIIuWChMS5yfokiqQw4f+Pes/sch0jZXICwGEksixLu2MkEpWU3FGWVvNoO+nvGZsLyBh8/kIqUkEvFf8H1Yyu2sGBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=M5vhtTEqu/O6IOvfHYimy7LsQIkOKHvC8ntMI5hAvSU=; b=SG+Y8NDV7Ru19xfIMuIUUh6nxaWaRvzIDMffqXu5zoqNCJNZjnIca8Lt/DsRrADNLzoiOofBd89kksm7IwH915SuBgfcBDCDiCfWo9fZX1mIn4EUkb9bZzQ5g6mpXizK3Q352qWIsoYkUtwHlc/auiDyceOpoAVZV5CryGvq7chrsMARUXnUAwmuBi1Nuo+5RUQUdhLrzkmJbnRyjr7AoYX7wdopIzTKVW9EkNijkilk9BBUkAcqZINb7FLO/PjKbXYlWkZn96C7yJD0IiGbjhEWmwUZYsGYtEMauWBbI/YhDUxBOCE+Mwi82OVfhfInE75bQhZDet6hZp6XvMvm6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M5vhtTEqu/O6IOvfHYimy7LsQIkOKHvC8ntMI5hAvSU=; b=Zq6gwVHO6mLMt4O8o2pZksVqr4BmIdV3lOt2E6dAfiGypSBCJ9HmuZ9g04lr9Or6QX32Yqgbo4bW101BRNi1/b3719dmlo4ZxrCKiBC7h6nE8aGR9miI0jYPn+zH0huketB/SfHCGDqa/qeOni3PuG5N03DljgFvBUmcKG0eiAo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by DBAPR04MB7237.eurprd04.prod.outlook.com (2603:10a6:10:1a4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.38; Fri, 23 Feb 2024 02:49:36 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::6ab4:485b:3d5e:e0e6]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::6ab4:485b:3d5e:e0e6%7]) with mapi id 15.20.7292.036; Fri, 23 Feb 2024 02:49:36 +0000 From: Liu Ying To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Subject: [PATCH] arm64: dts: imx8mp-evk: Fix hdmi@3d node Date: Fri, 23 Feb 2024 10:57:38 +0800 Message-Id: <20240223025738.2486807-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG2PR01CA0141.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::21) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DBAPR04MB7237:EE_ X-MS-Office365-Filtering-Correlation-Id: 493b3014-3365-4a44-7e38-08dc341a126c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Vo5vveK935rhAZ7hIVKxNv9ka/pYQ1srtRXQFor+7Z3mfUw4JJu2Z4Nkgso8f3/oipDS/EXNE8OlQKNbk3F5KHx6m6G8hFyFageSg7ZAbG4drSQz+gJ88o+kL0xeJY7q7Drz/OFIx45ovfwd91tq/763+mG4rBVdhNNziGC2yU3TinQc051TZErNG31Yc169Ql5Ydw7MPSPlNrLPWIr/HxRYQHNBP2/1s7gr0Ji2yjrKq7LSISPYW78B7oCbEhIBM4NeW3eUK9++x6YrIvN1dmVbjQIc+aNdnegEnM6d758odgsz3mY9nhgfFLTQvkamRC/SNyhvSvgGvC036j7hLWj1kpUxAFIL8xeqLaqyoGjC6A62EhSYUJJ6zhjT3Wv8GZIMGKdPdI1mG83sfAQrHgncsoZxMoBr+ONJuOZyZj0okTTwSlLfitqgvrP+lu8e1b7RTMCaTYDt6IhcXYuJHDTwJmUF1JGBGrCe6meVGh8O9czRgUUFeZCrfVnRd3PVZxj3Y8DgoiFIYfFu45i0mVKyZSGYGZv7RKsk0VMlANaSyII7BQh2HMCtZoHvnUQbF2GxEFza5SP6WUdvlGG/m9DYmvT6SDYVDAfIb36PaQUnXorM4iutRIWyOnpM4u4S X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7r+ADHGg5PkgF441YnvfkRhaY3GhU+QDkWQjTkqmy7DkdG6I0ftkbLlvNwfUK0zROkNZoiiLZ88QcDU5wEDlY5twZnhfBUYHdC5VTAkJp1RFtmedW65ADflrEZaFFAXvKkE/Nqg+JqRcXh9VxTjG+eNeoNAWRkiFCUtI7/SNtcn28wNP5BlfHDK4yw7g49gwJlxhrHvg2/w1DBXAwVblvgLrjiviiwMfCRHxdFxQGoH/RGu1dR+NWY++mOexC44jVfNgbqT1tC1QtCMrTnpgMFQHrPHQW2V7cjlq8gayysZ49rN6PkVqqRs8M0DHBpKiz3Ai+22PLqdK7x+qeSP8s6sVDMBsN/OSd4+d3Ks4M9MX0Vr0mBpkJV9xRBe95APr4DitAgXTJLH4egtIWYGn523cDNTAQrMH3+D2+NRODa/0rYkWgCtTJpDSj2fHttLGxFzXYWD0XJW8zou/6CLPxSIG0Onyo1bpkjiI5a8L342THG9fPkkGheEhdyrplnB1cEBNDg2TqJ5DGtfEwhHXEyPy+Zfx8D8RlUx61l8fz76jxKcaIVRClwP73KfiOIoKYtGJOC2PF0XH45H9kcEm16r8UBahwP9DErM9H5+k2VFQzItCQQZqOhjYcgGBQW62Su+2+idy5G/OPnAeYowEKwlM5xO//RGZyiBoNqDm9vAxs0hNBXDDJpF2GQttnIWW993nQ88pUDg4CwhF+th40cTQ81zV614WIq9calNH3NBWTsmrscnSW1KgUXaPiKheRJeH3OaHMvVbGYjGsB1bQ4XbUkzHStCdCF41lKyQh9jEKhSwG1Tu7BplGi2PjnQ2hvW6gKu5awjgdt2ZInJOs0cC5Hg2aawelMT9NSgZERvecHXYK8hwy1zs6UDpdI1Rg2LqTFhNqPer4pS2emtkSx9d3Mp63AqVQ09sFF96f5r1Pq/s+p/FXyEm6iSMHhzxaK8vcTy8X0WQN9Y9NdR7t/H0NFzsix8Sp9K77lvV1XZbkhw4sGsEilGO4HuYt4mXvUw5fe7oXOy5kghyb5gKTagbEY+jhUOhMdREA9Ad9CRMzYySQ4yDdQNMWcwx/JIESiYDzJJdZ39MpuEG6EwLulGr6g1F+QekLVkE7Hwl20MXpmtjgDOJbIjWF8NDwpXNvWUlLTkMMLsGYOo7zZNt3fwcES30+UT7Vwax/cZRS7WU+ZOoWafgA4IX5az2isU5zfu4w3KS8dHRXZ0jww3WyP4VMXWC06wSKUr4+ECgQcXJh/04M5e0cnEwaXzmoLmrh2bs1AArtKN3nPGA5ZWhEJe5JyGMuKSdynT77cxs+YG3EQDd859ADuoKOES5j5t4oRM9VO6PxzJ8T8/PoLgTOWkj0A2d/1jZSnRjSC9KKvy2mw60OS3enyRdcItBNWVXnImxwSaw0jW8bPAM3gYnpx0nU8D/q0yPMuYZ73b52e2xs0cDKaz8XihtaLEuInIU1juwiJtXMOvEqrpkOqxMbZks/ulyyvVQemdECJRewW12KYfwugPVB3E67ozjerigQRyYvfc3NIPqEKc+DNBSIMZoG0+GBQxB1OQFDiWgcZh7o7O36I3Y88Q8qY8CNvj0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 493b3014-3365-4a44-7e38-08dc341a126c X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2024 02:49:36.5422 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WhQLpIihPPC7rl4tXJA+cFBRyaMBtijl0C0iFUm79OTrL1T2SfhCALJAyA4ytiwGV1h6mnSBNsRYkx6sQTSoRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7237 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240222_185001_524663_983477EB X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The hdmi@3d node's compatible string is "adi,adv7535" instead of "adi,adv7533" or "adi,adv751*". Fix the hdmi@3d node by means of: * Use default register addresses for "cec", "edid" and "packet", because there is no need to use a non-default address map. * Add missing interrupt related properties. * Drop "adi,input-*" properties which are only valid for adv751*. * Add VEXT_3V3 fixed regulator. * Add "*-supply" properties, since most are required. * Fix label names - s/adv7533/adv7535/. Fixes: 65344b9bed3a ("arm64: dts: imx8mp-evk: Add HDMI support") Signed-off-by: Liu Ying --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 33 +++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index f87fa5a948cc..9beba8d6a0df 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -23,7 +23,7 @@ hdmi-connector { port { hdmi_connector_in: endpoint { - remote-endpoint = <&adv7533_out>; + remote-endpoint = <&adv7535_out>; }; }; }; @@ -107,6 +107,13 @@ reg_usdhc2_vmmc: regulator-usdhc2 { enable-active-high; }; + reg_vext_3v3: regulator-vext-3v3 { + compatible = "regulator-fixed"; + regulator-name = "VEXT_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + sound { compatible = "simple-audio-card"; simple-audio-card,name = "wm8960-audio"; @@ -364,7 +371,7 @@ BUCK4 { regulator-always-on; }; - BUCK5 { + reg_buck5: BUCK5 { regulator-name = "BUCK5"; regulator-min-microvolt = <1650000>; regulator-max-microvolt = <1950000>; @@ -415,14 +422,16 @@ &i2c2 { hdmi@3d { compatible = "adi,adv7535"; - reg = <0x3d>, <0x3c>, <0x3e>, <0x3f>; - reg-names = "main", "cec", "edid", "packet"; + reg = <0x3d>; + interrupt-parent = <&gpio1>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; adi,dsi-lanes = <4>; - adi,input-depth = <8>; - adi,input-colorspace = "rgb"; - adi,input-clock = "1x"; - adi,input-style = <1>; - adi,input-justification = "evenly"; + avdd-supply = <®_buck5>; + dvdd-supply = <®_buck5>; + pvdd-supply = <®_buck5>; + a2vdd-supply = <®_buck5>; + v3p3-supply = <®_vext_3v3>; + v1p2-supply = <®_buck5>; ports { #address-cells = <1>; @@ -431,7 +440,7 @@ ports { port@0 { reg = <0>; - adv7533_in: endpoint { + adv7535_in: endpoint { remote-endpoint = <&dsi_out>; }; }; @@ -439,7 +448,7 @@ adv7533_in: endpoint { port@1 { reg = <1>; - adv7533_out: endpoint { + adv7535_out: endpoint { remote-endpoint = <&hdmi_connector_in>; }; }; @@ -524,7 +533,7 @@ port@1 { reg = <1>; dsi_out: endpoint { - remote-endpoint = <&adv7533_in>; + remote-endpoint = <&adv7535_in>; data-lanes = <1 2 3 4>; }; };