From patchwork Tue Feb 6 15:26:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13547531 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 24CCFC4828D for ; Tue, 6 Feb 2024 15:26:51 +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:Cc:To:Message-Id:MIME-Version:Subject: Date: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=hjAWXQ3audfowb5HFDl1yQJXyBswKA7fKMntatjVcf0=; b=a+vtBiRjghmiWw NxLvoBHCNLgQudbxSz5yfOJ9LLoW5Gdiqb/7m5OLftmKajVV6q7FZsQE88n9VpQ7NpU18NdqAu1fQ QuUxegV4IZeEdvcQnmc03Tiyt0LpIbt8wPrOjsS/qiMgUTiJB4d2g33ILdn/WvcuZDuUKLvBr6op3 CqmC/0WdwyO1FzZVG1RDs8s3dJ/WhcXtPYMZY1SLLXAbHojl1Y0OJV3Y0GzzYeSUeDqGEwEaxh6Fk reh2A3++AhtVAa24Oms+93QoRmnrU1QmYEwdf/Pv4TPaDEbxb7pOYnlpJMjaLk9bQNGPmBEvUuc8P uL/gFtNDbRHZ0Ezp8AEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXNLM-000000085f5-05pS; Tue, 06 Feb 2024 15:26:40 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXNLI-000000085dz-3adV for linux-arm-kernel@lists.infradead.org; Tue, 06 Feb 2024 15:26:38 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2d0b4ea773eso21910571fa.0 for ; Tue, 06 Feb 2024 07:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707233195; x=1707837995; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=2ZHheh7A/9s/Hf7PftrHIicPjlWlYwjVhGxny2MqOng=; b=lbbQh0HjCg/VUq9vXMSTEZsUXe2uk2Y/tX9o2cEdn82g8L1JGizqjZqXPWbChEIGu1 Yd0UoVBFcW6eZMlFsym0b9Q2a9U3onatB50iDh6fyGgvrOdtGfeeXhv8PEBlA47KwJXB WL/z9V4IrfFK9qaEjgnR9DuiQeHhzzYzNDHv8zdSOqP6lKXkvXrT4RQlh+JyaLAhBYFV oJTCiUBPa4nMVMM4sQoG4paYmOKtX3HoiwNuP1Iy0wofSx182egFQO10h0T697oDjSAO XGynYgBUA7lyX6GWx15FMplGgmgA69HMCTZ1cOgoNn+StTZsI6Q/H4LId3MhxJaPLYIp yHCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707233195; x=1707837995; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2ZHheh7A/9s/Hf7PftrHIicPjlWlYwjVhGxny2MqOng=; b=RaDTrDlinzeHrNVrz5nTceDQ5fr/OMvv04Dn3g/zOkJcUkw+fFaPITXjJdXOLrPlGj USuEIgepLvzEkWRfquDn7wxKJuzxnmPs8GSbGpDPFUdyJIvMEMkoSAoApKS0IPMPhvXW 9/2Gnjm3ShKspZ6CtIltsquA3MF5FdLyn3m4YSFp0eXcwI503sDSk5rA/X0QNkoYRK3h s1IawBc+alnSgVQqSzmAhOW3HhxgZeOIIP3saZnZ3XOcHhv6LinJ1aWkDcAeBYdaZbCN EGbMGU9KtNt7BD6ASBTqXJIX+vYeim3ayQN1W59oSS70/vNlkeAGPI9xBcVT/8CNOfZl y9UQ== X-Gm-Message-State: AOJu0YyUCT8igunC2uZ4O9CwNpKLGHzN3cg9W8vGxZyvKxkcfza0fzCf 1xIZmutDAulVBX1UUKtARYxzof5AjZKBWAsmYU76FP3wRxUOw9bJlZHcn/i7koU= X-Google-Smtp-Source: AGHT+IGwMflndyn2Ft0LjZVPr/Le1TpaQ18rSgqbCIbRvqef+QHvBhpfbtDTeBVOw7p6/wsgGKs3Bw== X-Received: by 2002:a05:651c:488:b0:2d0:a71f:5eb2 with SMTP id s8-20020a05651c048800b002d0a71f5eb2mr1561785ljc.23.1707233194623; Tue, 06 Feb 2024 07:26:34 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCX2/GLdfIW8VSh4paoHqir5PTgY/xvJZnA+xdbeoywVdHen2sEbjgJDM/ZcAEBLa6dZ+ZG/IW0dpTEQUWg91DsuanBZzjFHsY/mld0zJDSVuHz8NmTVMonAAG/jfT7Gs16/yhOnQlWIV80PyavaFHm8lkg9uwpB0x+vW8Ja+1pOGJK6eDPGKa0WoTT4hnz58ByRUva9SdahSDM2xecZIX4NUzl5txR/MlrRiKx7kVGO8Z0a+UxPV7LcgMY5lZ+A0zwMYnkH0g9Hk8YIccRzL2sQ6ZWzLU2texVa8gcrh53T2H7ey4buewiSmKbfRfPH4a2U/F+cxJJpywNNBpuVCCouB+MY7Dqrb4oUgYWQlL6fUSmsVBM= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f9-20020a2e6a09000000b002d0c19bae99sm112319ljc.110.2024.02.06.07.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:26:34 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 06 Feb 2024 17:26:29 +0200 Subject: [PATCH v2] ARM: dts: imx53-qsb: add support for the HDMI expander MIME-Version: 1.0 Message-Id: <20240206-imx53-qsb-hdmi-v2-1-a025fe0c4362@linaro.org> X-B4-Tracking: v=1; b=H4sIAKRPwmUC/3XMyw6CMBCF4Vchs3ZMp0BFV76HYcFlpJNIq61pM IR3t7J3+Z/kfCtEDsIRLsUKgZNE8S6HPhQw2M5NjDLmBq10pbQyKPNSl/iKPdpxFuyq3qhSszL EkE/PwHdZdvDW5rYS3z58dj/Rb/1LJUJCPp0b7okaGurrQ1wX/NGHCdpt276ifODLrQAAAA== To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3502; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=xfh8O6xBdWKXAe3z6qoy+MkMOujFrVTFLYRtNtIB9jY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlwk+pt89+HHwYFXM7NzIvcwUB51MrqinjuPsEl 4Mjir4v8lOJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcJPqQAKCRCLPIo+Aiko 1eNpB/0X74G5IprOKYCjxN5vCI9uVaPPrGUSjJW+xjcnBH3BtJNzBuGU5nhJ45uLGCGv8mu08rf 2/btvrhvGQWFsIFCaJ8MOUXKo9nVYkZcEXPx9XyPShd4dOoSwfqIfmuTD4V6N3O7UjTf86GUrs3 74FmcuyXm7Ta0No8kjyNxvYewKhQKyHUsxTJmfRY4V0dNfdSvjOIbHRvI25alHO+BER2vQyhKqT DqR82ti8Xv2puJtigUf+mZaUSv55EEgHiKwcG32w/Pm7NrGvdkYSuH6frcZkdQHwdgcDdtiZzgh hKjPCVDSclNPvdVCbMe67pUhufViJ81fMQLpp5pka1xwu3m/ X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240206_072637_113548_ED46FCAA X-CRM114-Status: GOOD ( 14.17 ) 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 Add support for the MCIMXHDMICARD expansion card attached to the iMX53 QSB / QSRB platforms. This enables HDMI output on those devices. Reviewed-by: Fabio Estevam Signed-off-by: Dmitry Baryshkov Tested-by: Fabio Estevam --- Changes in v2: - Fixed commit subject to mention imx53-qsb (Fabio) - Fixed epansion -> expansion typo (Fabio) - Link to v1: https://lore.kernel.org/r/20240206-imx53-qsb-hdmi-v1-1-e798eb1181c5@linaro.org --- arch/arm/boot/dts/nxp/imx/Makefile | 4 ++ arch/arm/boot/dts/nxp/imx/imx53-qsb-hdmi.dtso | 87 +++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) --- base-commit: 0dd3ee31125508cd67f7e7172247f05b7fd1753a change-id: 20240206-imx53-qsb-hdmi-a4b6032e061e Best regards, diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index a724d1a7a9a0..24654deba303 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -45,7 +45,9 @@ dtb-$(CONFIG_SOC_IMX53) += \ imx53-mba53.dtb \ imx53-ppd.dtb \ imx53-qsb.dtb \ + imx53-qsb-hdmi.dtb \ imx53-qsrb.dtb \ + imx53-qsrb-hdmi.dtb \ imx53-sk-imx53.dtb \ imx53-sk-imx53-atm0700d4-lvds.dtb \ imx53-sk-imx53-atm0700d4-rgb.dtb \ @@ -54,6 +56,8 @@ dtb-$(CONFIG_SOC_IMX53) += \ imx53-tx53-x13x.dtb \ imx53-usbarmory.dtb \ imx53-voipac-bsb.dtb +imx53-qsb-hdmi-dtbs := imx53-qsb.dtb imx53-qsb-hdmi.dtbo +imx53-qsrb-hdmi-dtbs := imx53-qsrb.dtb imx53-qsb-hdmi.dtbo dtb-$(CONFIG_SOC_IMX6Q) += \ imx6dl-alti6p.dtb \ imx6dl-apf6dev.dtb \ diff --git a/arch/arm/boot/dts/nxp/imx/imx53-qsb-hdmi.dtso b/arch/arm/boot/dts/nxp/imx/imx53-qsb-hdmi.dtso new file mode 100644 index 000000000000..c84e9b052527 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx53-qsb-hdmi.dtso @@ -0,0 +1,87 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * DT overlay for MCIMXHDMICARD as used with the iMX53 QSB or QSRB boards + */ + +#include +#include + +/dts-v1/; +/plugin/; + +&{/} { + /delete-node/ panel; + + hdmi: connector-hdmi { + compatible = "hdmi-connector"; + label = "hdmi"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&sii9022_out>; + }; + }; + }; + + reg_1p2v: regulator-1p2v { + compatible = "regulator-fixed"; + regulator-name = "1P2V"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + vin-supply = <®_3p2v>; + }; +}; + +&display0 { + status = "okay"; +}; + +&display0 { + port@1 { + display0_out: endpoint { + remote-endpoint = <&sii9022_in>; + }; + }; +}; + +&i2c2 { + #address-cells = <1>; + #size-cells = <0>; + + sii9022: bridge-hdmi@39 { + compatible = "sil,sii9022"; + reg = <0x39>; + reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; + interrupts-extended = <&gpio3 31 IRQ_TYPE_LEVEL_LOW>; + iovcc-supply = <®_3p2v>; + #sound-dai-cells = <0>; + sil,i2s-data-lanes = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + sii9022_in: endpoint { + remote-endpoint = <&display0_out>; + }; + }; + + port@1 { + reg = <1>; + + sii9022_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; +}; + +&tve { + status = "disabled"; +};