From patchwork Sun Feb 18 04:16:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 202733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp621162dyc; Sat, 17 Feb 2024 20:17:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV520c6khMcYnK6/EnEgD0grjlRqAdGI3m72R+GQ2vAMHYdM3Gfn00XacgIrSE6o8G8ayWonydg7dj+oTmDU3sbdkPwcA== X-Google-Smtp-Source: AGHT+IGF9JWhI85I+efdUuhWIuoPIpMSXlbEcSqTyWjgAdD8wcoaou5QF9BZACeFgeNiO66NoUr3 X-Received: by 2002:a17:902:ce91:b0:1d9:a7b9:313a with SMTP id f17-20020a170902ce9100b001d9a7b9313amr12367877plg.47.1708229854009; Sat, 17 Feb 2024 20:17:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708229853; cv=pass; d=google.com; s=arc-20160816; b=fvnjzjj1j8UWdZaV6Mm0DWAvGPe8ej8B52LSe5Gk5BoSXkyyRGwHko+5T+AvR1vNFa wdCbeRa3QQWbx81NYHw3A7P3sHCXkteBvvtgHtxDhVUki9gCWnvNuyyh0G4SLq9D5RKy CYE3sMbJPlN8I1JBYon00OILjSe668mz2y0l/ag6Du3XMBBujkbE2U3Vj3LkXCiQAFi9 bxPWOPestGn24Chp5WqvjQJOAl0vHipNg4b+CXD+4Y5MFE6qu68WGLxkiurVYhbI7PgL HhNINt8pju2J8R7uc0W8JKdeByF61SYtqWY257dU0xcAIkjUkQPXOb3iqt+HZ+yclCSB 0Z6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/Fq4bA2B7Uab8ElK+yYy6D/1DzFXoNcJhp7LrG8FrCM=; fh=nPR7slqT3NPHfB++D8fWsEM+Dwbq0biOqKq7duqXvcg=; b=cYBzPveyHbAw5Of+DHYAVTvJTcFVi93/Ap+9IYnEvGtCiiq9m11n5nmMrfkM0PiSyX B2iznLym7WLwsr4o/eXyoLUIhkX5dQ2N3QK2Btq6wYx1SkZY+G9/iq5CE2QP5zycvn3o L3s+wqXK6Jyd6u9ITHnwip88mPBZxaPWuEkf95vDjKXJpa9aS2zdyCYFzlDY4ROeBorb fzt/m0xp+Hicx5enb7eXtE4Q+vTKCt2u5UWA5t0oLBZhzlhJOuWeez9somgez/A45raN RfZUDQ6J9N91EwoXkHrVZ0Opctptsqw5pIn7r01nKZiyMjlK4Srli8s9jUEFbV/rQpZR pMeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KrIOQCUt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70186-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70186-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t3-20020a170902e84300b001d8a955d000si2454640plg.355.2024.02.17.20.17.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 20:17:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70186-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KrIOQCUt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70186-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70186-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CBD9C283845 for ; Sun, 18 Feb 2024 04:17:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AAF3611E; Sun, 18 Feb 2024 04:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KrIOQCUt" Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFD991C2E; Sun, 18 Feb 2024 04:17:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708229824; cv=none; b=leTrX5dwrsO3G/8s8lLzh9zSQABYrOpfildfh6LA1K1ggbQZq060JTujv/QMwuGrO0XwEm1jCh4jemvajYqlOEp4SL11kemv9L9Spqp3zlqtANHUqyQn37virU0EsDLC/zG0kmPPSUPCrMATsn1txBruR6QtENWq3CrHxL1pspM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708229824; c=relaxed/simple; bh=N+UwTydptlHPc3mFPvmA4W/hxrfr17496ywBzME5BbQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=D3uTrPjhnD50UH2VitrTSvqP65Wg0fPCGOxgxEX1O5X9bVsBEmg2ldq8L3opA1mP+URgui49//w/KpogctAP3NeUyedezsFkrn09ZGyQTm2UTUnugxHnWzmvz8zGWu0MS+nUMbEHehraYvwuE8FfUPhb3bKcRM6TNkvcogwl+Zc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KrIOQCUt; arc=none smtp.client-ip=209.85.219.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-f50.google.com with SMTP id 6a1803df08f44-68f429f55b7so7376786d6.1; Sat, 17 Feb 2024 20:17:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708229821; x=1708834621; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/Fq4bA2B7Uab8ElK+yYy6D/1DzFXoNcJhp7LrG8FrCM=; b=KrIOQCUtP3WoQWutRzwSJIPB8T9yV0D+vBBTkIidjobk4NF3/v+Bz/epaMXHMLWPrE L36l7RjPRo9GfvnJTFgPaxH5pdzLPVkuhu3HhSpQAqpcKibzVFMj/ISWpyMxuxTwlqKr HdvQHqEXnPX8E87pGDVF/y0tLZ/3yKtKPVyCXulNqvNxeybFrqJg1OMA2eZ0zFKyNGBJ urF4lTJU7777FgoJ/ltbm49qiPZvnfygPK3lMQn0OgETEqZK8ofQ6OVeo1Yk0S10ryXu KYwLiR5DdTj5XnF8LQhlgraNJLRVCnAB+joItoSSsOWnaOW1T89jDlqVGfnwTkUOZhSz eyXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708229821; x=1708834621; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/Fq4bA2B7Uab8ElK+yYy6D/1DzFXoNcJhp7LrG8FrCM=; b=iBhd+kNPqVTjHHzz0Gtu/X3YGpPsTSkgVj2t82OqZ0TcXMSHgsuRNboNfw6hhYYmuG gjA5YcFx/tHBax4XbG0FG6c7U0R0bfgr5STitQ0JwAhXNM6GY7gwBGCk6Ex2O0UaEz6A mtKz6tEIbQNG6G8VCVH/Xd8/Rl/sExgZNLnF5i1Pw7ZqO0JF3YRyE8UMT0x0qsn2yPNn EU4vXYx3gKQVkfa7HTPuVCnS3O46ubJg2AXS3elAdGITt/ZFr6J/6Ne8CF3Bj+OL4zv7 6269358KxpmjqZiKn4dueuaOTs1yfWvxTMEafAk5x2oZi6v8edOA5kmNEI+08ojyTu5c fEpA== X-Forwarded-Encrypted: i=1; AJvYcCU9EY03Tg/fodZqZG49s6eBIpWtNw9HyzzPhLfDMO6XT7QGVpxpzPp+HC++W3GJg2O4Fhhow4PYrPPaXAP8N6uL3ml2+ocAOUr2Eg2dIrU+H39yqnqVdI/m3aJBp+M4rES8qsgWUPWHfg== X-Gm-Message-State: AOJu0YwhddNygQB+lXDX4yUzZ/mrgr70m+U6Gguy1FwpyEZyXZtUN0k2 AaSCGzsXbBIGgSrlLqfv9W52A9hWpic4LxEdCP/wXN2szNsXa2m3 X-Received: by 2002:a05:6214:21e8:b0:68f:60fd:d328 with SMTP id p8-20020a05621421e800b0068f60fdd328mr353063qvj.43.1708229821553; Sat, 17 Feb 2024 20:17:01 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:dde9:2f2d:61e4:7364]) by smtp.gmail.com with ESMTPSA id or31-20020a056214469f00b0068eeebc4656sm1713621qvb.139.2024.02.17.20.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 20:17:01 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org Cc: aford@beaconembedded.com, Lucas Stach , Adam Ford , Krzysztof Kozlowski , Luca Ceresoli , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 1/6] dt-bindings: phy: add binding for the i.MX8MP HDMI PHY Date: Sat, 17 Feb 2024 22:16:39 -0600 Message-ID: <20240218041649.1209173-2-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240218041649.1209173-1-aford173@gmail.com> References: <20240218041649.1209173-1-aford173@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791208827275384561 X-GMAIL-MSGID: 1791208827275384561 From: Lucas Stach Add a DT binding for the HDMI PHY found on the i.MX8MP SoC. Signed-off-by: Lucas Stach Signed-off-by: Adam Ford Reviewed-by: Krzysztof Kozlowski Reviewed-by: Luca Ceresoli --- V5: No Change V4: No Change V3: Removed mintems at the request of Krzysztof and add his reviewed-by V2: I (Adam) tried to help move this along, so I took Lucas' patch and attempted to apply fixes based on feedback. I don't have all the history, so apologies for that. Added phy-cells to the required list and fixed an error due to the word 'binding' being in the title. --- .../bindings/phy/fsl,imx8mp-hdmi-phy.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/fsl,imx8mp-hdmi-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8mp-hdmi-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8mp-hdmi-phy.yaml new file mode 100644 index 000000000000..c43e86a8c2e0 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/fsl,imx8mp-hdmi-phy.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/fsl,imx8mp-hdmi-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8MP HDMI PHY + +maintainers: + - Lucas Stach + +properties: + compatible: + enum: + - fsl,imx8mp-hdmi-phy + + reg: + maxItems: 1 + + "#clock-cells": + const: 0 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: apb + - const: ref + + "#phy-cells": + const: 0 + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - "#clock-cells" + - clocks + - clock-names + - "#phy-cells" + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + + phy@32fdff00 { + compatible = "fsl,imx8mp-hdmi-phy"; + reg = <0x32fdff00 0x100>; + clocks = <&clk IMX8MP_CLK_HDMI_APB>, + <&clk IMX8MP_CLK_HDMI_24M>; + clock-names = "apb", "ref"; + power-domains = <&hdmi_blk_ctrl IMX8MP_HDMIBLK_PD_HDMI_TX_PHY>; + #clock-cells = <0>; + #phy-cells = <0>; + };