Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1557579lqp; Mon, 15 Apr 2024 09:43:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNviAwoDER0QOV+w8VHpTGI3y9fmHf1B1SuF5o17zYSHuKhaMlhM28ZpOQvWT2gA0MhNQ44ij9j+aOR7cq2qQ12hXT5Dj5NdlUx5O7xg== X-Google-Smtp-Source: AGHT+IGJzGoMo3AUeqJ2Ik79+j3b7SCLtXOtSgFcj2OHExVzJ8Tdq6VTce+FXrpo0Ep5Hw916U97 X-Received: by 2002:a05:6358:584b:b0:186:1eab:832f with SMTP id d11-20020a056358584b00b001861eab832fmr11355184rwf.17.1713199400110; Mon, 15 Apr 2024 09:43:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713199400; cv=pass; d=google.com; s=arc-20160816; b=ZCS5SvgKikSnEsxzRSaFK/IvCDeNM8cz3M1RR8nAaJgQt+8nTG5hLZrRXyBrUwEENc jZ6rnpZJT5jX1ExKQL1luBD51T8Vptn8pQ+yhLQUK6BeZO6lChb3IHgDfPaV4/kaXV1w UGlFrUyA3/8tR/oCC4pNZhii0ySqxHY5zGGhQNOlmKtWp78gsdI6gj2f/gF5er15Rv72 3W0QbtpsXMlAfwnUn52VN0rIRhvEPDiJ89dxCe5wuJsGgK1ynnfkAWbSLWS9BOLtn4dx W2bI1ZvbSFmZ7QiWe/0+mF9KFkDKifk/YOfqsyHoGp8BgLq6jro4OoJP1G6YMbZeXFxi IjHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Q1eViKNGOaxJej3GCBPsL0VK1m4Eh1vjO+ku4NwdJ/U=; fh=6DQUY+uc1q2b6W+5G84+WarYquK1M0UJgwJ48RhzWg8=; b=VUq9RUjCUa+2/zg2HiVXzprLLP/nt0GTAZlYwBxcA2XgQo/Yi9gaXgR8pqlKKlyehP Tj3vCRPpwl2jh7gmFkybB35WIcxRRFYIxCdrAKLtnNSWPR+pUbX0afTDIL1DQpEsAO8P fj3QcRJ8J7ObScOLbgVp1r3WXowuG31K8IyeNwm2dojH2coKCchQ19goSq1E77TY/fGL 9i4o3+zUOepkai3hwb3BoET5Rvs4GvHaii6qwjNdjp9e0oe3eIJvnmMnSfCcOeATNIgV etSI6GSG31BprO3PnUSvIrbSAK47P1X1GD1QcFzYvoFxFnaLiNxIpthFXm3V9ZnbLiiV RWkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qMt0OftN; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-145558-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145558-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v8-20020a655c48000000b005e10b746148si7888939pgr.432.2024.04.15.09.43.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 09:43:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145558-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qMt0OftN; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-145558-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145558-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 37B6AB23C75 for ; Mon, 15 Apr 2024 16:35:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 975E6823BF; Mon, 15 Apr 2024 16:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="qMt0OftN" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 278AB811FF; Mon, 15 Apr 2024 16:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713198933; cv=none; b=R6ryiYsbQyt2L5dw+sB25gnbOTfGBTys9k1nemXBiH8HfFUmW/xnp1MUi/YSpb532j94jsAI8SeNA8STk46YA8rds4zMEpltFTjXR0loHgrlYQjmPGlMeT82mkwqIP9OrZc8DYCHGjO64j/ytIVC9LUesckyyRXUJUhzOqKNZo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713198933; c=relaxed/simple; bh=zQ3mUcQ0V6TVm4bmNvVE8F5YpgKPg13IqXSQF1upC+A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C7t81xjJGRbJMVXEsMtxRNyCgQgJL+1cHC0+qUy3lBUcYTR+n4hfUpqrjVkNDE/94bM2ltmnt0TlIeT6VXqkr5xJ+a/8Tglq4uVPwIzMG/ybDRrBlEJuww/GVYsdDxJUtavGxziJS7E3sQSjHZF0SmjyZOjJP/U6pcDf6xHtZaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=qMt0OftN; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (117.145-247-81.adsl-dyn.isp.belgacom.be [81.247.145.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 773645B2; Mon, 15 Apr 2024 18:34:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1713198883; bh=zQ3mUcQ0V6TVm4bmNvVE8F5YpgKPg13IqXSQF1upC+A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qMt0OftNV/lrYtTYmBIaTowedeajRbC1r6L/70Ft/lYOh2o6DAz2ELDoSepJfngxJ Ely6YUfACt5adqQVUbhOz9mencaqicN3KLH36lC6U3d5Gfwu8CgCojoWr505RhqEND JCNgA83TsjBUjMMToEPPpfLIysEuZUMA8LaTlxg8= Date: Mon, 15 Apr 2024 19:35:20 +0300 From: Laurent Pinchart To: Kieran Bingham Cc: Christopher Obbard , linux-kernel@vger.kernel.org, Daniel Scally , kernel@collabora.com, Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v1 1/1] arm64: dts: imx8mp-debix-model-a: Add HDMI output support Message-ID: <20240415163520.GA22954@pendragon.ideasonboard.com> References: <20240415114135.25473-1-chris.obbard@collabora.com> <20240415114135.25473-2-chris.obbard@collabora.com> <171319369093.2333277.9109576229211275635@ping.linuxembedded.co.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <171319369093.2333277.9109576229211275635@ping.linuxembedded.co.uk> On Mon, Apr 15, 2024 at 04:08:10PM +0100, Kieran Bingham wrote: > Hi Chris, > > > Quoting Christopher Obbard (2024-04-15 12:41:27) > > Enable the HDMI output on the Debix Model A SBC, using the HDMI encoder > > present in the i.MX8MP SoC. > > Aha, you beat me to it. I have a commit locally (Dated 2022-09-06) but > not sent because I didn't realise the HDMI support finally got upstream > \o/ > > > Signed-off-by: Christopher Obbard > > --- > > > > .../dts/freescale/imx8mp-debix-model-a.dts | 47 +++++++++++++++++++ > > 1 file changed, 47 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts b/arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts > > index 2c19766ebf09..29529c2ecac9 100644 > > --- a/arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts > > +++ b/arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts > > @@ -20,6 +20,18 @@ chosen { > > stdout-path = &uart2; > > }; > > > > + hdmi-connector { > > + compatible = "hdmi-connector"; > > + label = "hdmi"; > > + type = "a"; > > + > > + port { > > + hdmi_connector_in: endpoint { > > + remote-endpoint = <&hdmi_tx_out>; > > + }; > > + }; > > + }; > > + > > Interesting. My patch missed this. But it looks correct. > > > leds { > > compatible = "gpio-leds"; > > pinctrl-names = "default"; > > @@ -94,6 +106,28 @@ ethphy0: ethernet-phy@0 { /* RTL8211E */ > > }; > > }; > > > > +&hdmi_pvi { > > + status = "okay"; > > +}; > > + > > +&hdmi_tx { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_hdmi>; > > + status = "okay"; > > + > > + ports { > > + port@1 { > > + hdmi_tx_out: endpoint { > > + remote-endpoint = <&hdmi_connector_in>; > > + }; > > + }; > > + }; > > +}; > > + > > +&hdmi_tx_phy { > > + status = "okay"; > > +}; > > + > > &i2c1 { > > clock-frequency = <400000>; > > pinctrl-names = "default"; > > @@ -241,6 +275,10 @@ &i2c6 { > > status = "okay"; > > }; > > > > +&lcdif3 { > > + status = "okay"; > > +}; > > + > > Except for the addition of the connector, the above matches my patch to > here. > > > &snvs_pwrkey { > > status = "okay"; > > }; > > But in my patch I have the following hunk here: (I haven't checked to > see if this still applies on mainline, so take with a pinch of salt if > it's not there!) > > > &iomuxc { > pinctrl-names = "default"; > - pinctrl-0 = <&pinctrl_hog>; > - > - pinctrl_hog: hoggrp { > - fsl,pins = < > - MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x400001c3 > - MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x400001c3 > - MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x40000019 > - MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC 0x40000019 > - >; > - }; > > pinctrl_eqos: eqosgrp { > fsl,pins = < > MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC 0x3 > MX8MP_IOMUXC_ENET_MDIO__ENET_QOS_MDIO 0x3 > > > > @@ -358,6 +396,15 @@ MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x19 > > >; > > }; > > > > + pinctrl_hdmi: hdmigrp { > > + fsl,pins = < > > + MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x400001c3 > > + MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x400001c3 > > + MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x40000019 > > + MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC 0x40000019 > > + >; > > + }; > > + > > And my addition here is : > > > + pinctrl_hdmi: hdmigrp { > + fsl,pins = < > + MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x1c3 > + MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x1c3 > + MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x19 > + MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC 0x19 > + >; > + }; > + > > > I haven't looked into what the 0x40000000 does yet, but just > highlighting the difference from the version I've been using to make use > of HDMI so far. > > Does anyone else know the impact here? Otherwise I'll try to find time > to check this later. (For some undefined term of later...) In drivers/pinctrl/freescale/pinctrl-imx.c, #define IMX_NO_PAD_CTL 0x80000000 /* no pin config need */ #define IMX_PAD_SION 0x40000000 /* set SION */ The SION (Software Input ON) bit forces the input path active for the pin. This can be used, for instance, to capture through GPIO the value of a pin driven by a module. I'm not sure that's needed here. > > pinctrl_i2c1: i2c1grp { > > fsl,pins = < > > MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c2 -- Regards, Laurent Pinchart