From patchwork Tue Feb 6 13:04:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13547236 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 97DEFC4828D for ; Tue, 6 Feb 2024 13:04:33 +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=2mvomN1Js9/h0ez8ex6Ejujlb/ZvTVuGflStBib3kd4=; b=0y8DZG8tr8O0zP 73uhwYsPwR1xk7kyneUYRHLZj0ZzSjpmfXJFLQ4qNxfu5uQNzkMY2GSbwpXbcCXyeNhtxGIYn61w4 oI4WYeE+9nbH/kqYW5xi2s3iCpmHdNCv1Ij+sx71iSr2sQEV4tkC1lvN7wL1UiNgKbOLjuuC/DUa8 k2K9L1z64p48SSQ0xdU/JhXyF2DWdrMKhUZhWWrDTW/RHQeJ5pqu5Ma3NRy8cjpbsVXNdWhCftxGc 0mQEXStbr5iBxJFSnYL3V4Jy+Cfqcm9v0nMrTAly5dIMA9RU32Nc6W6oMUeTbPpLBCM7VW7K/rop0 ShVQtKx5ifW3gJl904VQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXL7X-00000007ee2-2mK4; Tue, 06 Feb 2024 13:04:15 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXL7V-00000007edN-0nck for linux-arm-kernel@lists.infradead.org; Tue, 06 Feb 2024 13:04:14 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-5101cd91017so7364651e87.2 for ; Tue, 06 Feb 2024 05:04:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707224651; x=1707829451; 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=ih/azNYN+X+a8wjDjZ5vcKW6st8xlCCJWn8HPKXJ4mE=; b=EoOlkjbWUZnpS8X7gtvvxPm7/Wnz1SKkj4i6xIxxsOTkjkct7JfAOWzi0UPb8vShSL hx6sqtfB9kH6uHizyXT1L4NQM2EG9csZj04iPvi9O8NWWQxVNB+kb6cg6DcoTLM0NCyf 0dcUvFqoR0wUFD1Oc/V5AB60pCitiV90gSzBAtYMxS/CWh09yfyRUxvOT9yKYMhP13UA AMNpjyaYUnjL7BROg1vt7baHmPiHPqwIGMbcI9yUfFl1Cj7zrgUFt/XVMRyhdKfP6s/4 XzxWCXfvKke08uoPIdfKtZcI+ZCMXf725JR1m34+pwbpZ6tSLBfL02ubQ4bBrpv2Zzg8 YSiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707224651; x=1707829451; 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=ih/azNYN+X+a8wjDjZ5vcKW6st8xlCCJWn8HPKXJ4mE=; b=HxrDLBy2tCWRqjC/u6Z//I3EE4miVDE3T4F5/zWYoi4xFCVfCxjQe2z1rzUUZnmPjp 4RIA2oGZ+5SVjyfL8iAFwovHAialpifmoRUCPljdPh99owhzxKNkP4a6E1pVeh6elwAU sHPKq0YiqUwftsrWDlCzFmmvTZPjnfZKC134x7pMhsurXWaHnEEeEMigCzvsQJ5mX/gh Ta5VW+NwohdjafMFOpc6VF137n7G37+VejQqNuxwunP5bvmVA3UjnhpZCks9IjATENWH SUtCk/7sn5TrMQJQACyocCGYJZ9GEDYEuTAxJVQYoP1RJF9B99+qAhOZjOWBNLNyzzjY zrgw== X-Gm-Message-State: AOJu0YwB4RHHOQTfiQRZ3DDJs2wUu8WYl+hr3cxEt07h8X3gYHJZ1ZL/ Fg0k/eyk0PekS5SdWzUdxbjQXhQGVjqYKpZmXJWAkRAc4yRFtBCV4f/lZgh2mmMmhxsPilpoYY8 g X-Google-Smtp-Source: AGHT+IF4u++XJafTG3ufmNo2JxWBxncjo3vXj/9ucYhhg/yty/3xqyAYhWUUKNwLEZn397dfkQ8rdA== X-Received: by 2002:ac2:5e30:0:b0:511:1a26:daab with SMTP id o16-20020ac25e30000000b005111a26daabmr1608986lfg.2.1707224650797; Tue, 06 Feb 2024 05:04:10 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXjPFYjR5R9FYssW69gDr2OwTZsYRntQqzBXyk0ESnYx4ahKVaHHPU/IKpUkjIckRgiEC04+QhvN2j/IPGL1z+kmerv6+ZGEpfy2xR8sa5GjHCFLl1E/7h0yvu4sT0jKDIaSOvGZC1K4O2W2k0sc9pJ1bT8NhoCPNkherLUxqqHK7Yu+NZLqNPZsRYgEZk9WB/7mrv6C0I8YUb9A6zE0+/7DhzHHClY0u2tbFtyjO8qAvIvKvVcJ6QZpWoQpuK97D3P2Qu23qQrHM4nzbJ27vPGpYqG/NSZWqFignnmniV78Bd+7/CM+A96CoihV7rnCtW9BNtz7v7q Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id b19-20020a056512071300b0051149bfeeddsm237739lfs.84.2024.02.06.05.04.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:04:10 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 06 Feb 2024 15:04:10 +0200 Subject: [PATCH] ARM: dts: imx53: add support for the HDMI expander MIME-Version: 1.0 Message-Id: <20240206-imx53-qsb-hdmi-v1-1-e798eb1181c5@linaro.org> X-B4-Tracking: v=1; b=H4sIAEkuwmUC/x3MMQ6AIAxA0auYzjapoAxexTiAVO0gKiSGxHB3i eMb/n8hcRROMDYvRH4kyRkquraBZbdhYxRfDYpUT4oMypEHjXdyuPtD0PbOkFZMpmOo0RV5lfw Pp7mUD4Bj70dgAAAA 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 X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3240; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=d26F1G3+gK4hU4HwHo79vFomF/ZbXoVmzImcd2QK4Fo=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlwi5KM5Qo3HsucHtX1taRaL0UmlVB/08QvC6ai s/DZ0HUAn2JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcIuSgAKCRCLPIo+Aiko 1chQB/9Xx5FMBzRNC8dw+5/eghddvK3+zBHC7WpCN3Mutm6UenfrFDZoxfTjMuaP+KbVq+ZC2VK HdtS2wlymkrBgn6Wtb04hK8Ph/rk8vwO2zAcEwKIQ3MpjRp4f9himCdwlmmIs0sZgdxT6gmmkEf LtLKOyUYjhUkcVlqCfnoe4r4B2EdLXpOoR87yh1qVglWdUkiDHLBSTsnQC+1zAMKaF3jWZzR8Fz PyZlMcvsJTehrK8CEItfhmJidneyDmRe/TiDdE9vdO/LKfxTis5JwW7v5RtfYjtC06glCk8svlu E9jfPO8zhhMk27L4ZE9HzEpZR+axFp5RDc3WYAtMPEO3Mu5W 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_050413_287941_C81489C4 X-CRM114-Status: GOOD ( 13.38 ) 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 epansion card attached to the iMX53 QSB / QSRB platforms. This enables HDMI output on those devices. Signed-off-by: Dmitry Baryshkov Reviewed-by: Fabio Estevam --- 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"; +};