From patchwork Thu May 6 04:15:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241547 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40CBDC433ED for ; Thu, 6 May 2021 03:46:25 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF13F611AC for ; Thu, 6 May 2021 03:46:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF13F611AC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=MgFVDoQN2prNsBV5tFNIY2695oPl2NH1axhqmG7VGXA=; b=nx1/q9D+JEM6sEhxZNzjGry1Y zwb2l7ad14IB88tLb2NfH0jjgS21bZ679IDTNfQOo0I4ufqAq5qGIOJ5YPJqs8Yq/Ub1Yby415jQC woQ64EFVdU6UXyMMmhdZwmU01DO+US1UM9JGVcC+UnmFh6J1WLx4JaAA2aDwiEzcfHwCAhIfUdj0T gmMCagQIFoGef3NyqPYG1RD/VINkK3rG2K+ywfu4xRMPHOa7qc7ler6P9zznughSA45SEqFOIzvUV /jqrg7V3cEMVLYHNtFqkN/tGGiiuao0luasd05cO9cymhgMWM7YOlCNXrGsNBkeox5iCQ1msxbK7p g1VvDMARg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leUwB-0032KG-D9; Thu, 06 May 2021 03:44:32 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leUve-0032GI-JS for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 03:43:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=CoYuZ6fKfcB+WwVVfZF8+Omv1B3nHCEknsEO01revno=; b=xNnk320LQ8qK8h1TftZYakY9+q N6dN8OQjRRyeJjTkKDj04FSsczQ1cLoLNkcLKH3XwHnFIzfzAXGNr336wZALzaJMuR9OR/Ms59ZXJ z3hg/iG5XVwKp14c5eXvbrGwVMvx2Rjw/uYJVIljyi4/2AlaKKFPGJeKSrWeDMpXdfeiSwh8h3+S3 WXW/clJIXNFV0m5J5+1SNxuAtM1WQV4ATnE3/m8/Jl/b9r/vylHPmr6/uMOjQobGDWKmyiuK6MrI7 DCNuty8tnAhIBtlAIPg52fG7ryDXSm+1W0fuXljwrzRz1eULtI8K9fFIj6iijOGpn5OmbvRh52t6b QrkoKhcQ==; Received: from mail-db8eur05on2075.outbound.protection.outlook.com ([40.107.20.75] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leUvb-005Z3a-Pj for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 03:43:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AF6pyAwLKr62jOdGu/2qMaGqlGt9AgnJkUIJIANX8YfvFN4139hTmj4lBH0lOfKMHBWB5ZV9IxJsAS8RorWCBm4ekdY6LS8Qr2jHj8EDDyA5OEckXgKg2R/eEFikGb8CQtDFADAyj69bHxFBrcf6TG+xyGcVAfxEuXQv5bSKGUo3/yjP360bGhXlu1kUVrg8LOB3uwTsz6o4nxL5hBdXjK8n3qRbJizNq4udSFAvqMILMxe2JFB2Vk83esuSQHYzdBORcoWrhp699iDcSXJnVwuXBU+QfivTVlzoQdCLBLJ0QozNeJd+EJCx1ffU8ZGdySo/1LaSuGvKp4opLwVtEw== 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-SenderADCheck; bh=CoYuZ6fKfcB+WwVVfZF8+Omv1B3nHCEknsEO01revno=; b=EwGKtnazxes8O3p8wUmzDK49Op8HjN3cByyHfKGsBPb+sir3vrZZ10+m/+m+FvTKIiWL6D7zhmuRbS7IDw+rZW0TX6Mc1XNs/089BW1oPag1Dfk1a8i95UvbZXMIGeAhVGjVltxVRr9+LEUxdkh5txkxUUabeqVKkvy4Ui2jCbtQUFRrQxlkdFacd7We8j2UNElJHOehgC0E7jwoXSssoIxy2bNe2QR9gLsHDDIfrgcEhqV3ImJwdiW6koUVb3wqbb8pL0mBmLjkoVHpfKEJIc08SuVkm+kGWk73ngJFTmL1+xr/7hy3z4tcgHff7C4iLVOjL6LZWN6TjR8mkiYFeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CoYuZ6fKfcB+WwVVfZF8+Omv1B3nHCEknsEO01revno=; b=HPk9Fcwcw+LvZPuKBc439FJUQseu7ROAwbma5p06quQWCaE2Q7loW5vgoDH3KcUOpj4YNMn8MfMXzbaM1/AhwM9VBDobyIEVbsd9u5n5kg/cuRZd4hwvyQp25jPwR/atrOY7xdci/UpA7/xNVU6nb7QMJy6gTKljJSeE2U9LBGo= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (10.172.251.142) by DBBPR04MB7979.eurprd04.prod.outlook.com (20.182.191.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Thu, 6 May 2021 03:43:53 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 03:43:53 +0000 From: "Peng Fan (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, l.stach@pengutronix.de, krzk@kernel.org, agx@sigxcpu.org, marex@denx.de, andrew.smirnov@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ping.bai@nxp.com, frieder.schrempf@kontron.de, aford173@gmail.com, abel.vesa@nxp.com, Peng Fan Subject: [PATCH V3 2/4] Documentation: bindings: clk: Add bindings for i.MX BLK_CTL Date: Thu, 6 May 2021 12:15:53 +0800 Message-Id: <20210506041555.10719-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210506041555.10719-1-peng.fan@oss.nxp.com> References: <20210506041555.10719-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0115.apcprd06.prod.outlook.com (2603:1096:1:1d::17) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR06CA0115.apcprd06.prod.outlook.com (2603:1096:1:1d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 03:43:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72ad65e9-5a13-4952-25d6-08d910412af7 X-MS-TrafficTypeDiagnostic: DBBPR04MB7979: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zesOgzV4AsmccxE0w497twsMwxROT57kk66KDKpOBUVFbNfcUkaoKvAKEi3nwKdhMDFKOSniaYfaO8yVuF0guRqGemsWlXTITar7OifLgU7hEy/v9QpO0Dzb8HpeTRF3Tbis7vL+o4U4TVQ2Jd3R+wf/S5Qs0VDCd+iv4kmecqzzHbnUgk0Gjx5zcepdSNvt/9ZY3CXGh5+N9TFkkrYpMpEPEH5Rv2u6PF5c9pzD+Pc98GJpOBiqGN9/oaBuOV4rZmljsVmd8H6WXLfswG1NPxzpyd0TjOjC12jWRVsV2q4v6mZ7lRgfQ/NL/RHzQrDGIYLDyLwvYmKjyHAHiUNlgR1Q/vAvwHxRkRjsu+N1M5KOfrTW9yZIpaDA69sPdNBtXEd782zeY1+7K9UXX2jpSyvKTz77M05SCqe0m7LYSjTF8xcGOHhyN84RWDFvUN59oLosMhDxL2CZBJnIyK+JGo9+K+Z7Uxwr+ITGAaKcMcAr2oaDYfto1l+XQFxi220aoVFrlLx4gxWOesw2zhWBqJUx1VHt0YgVZtICa8YyWy2xKnjD4rg982NDmOOBXOInql4C7F5+H2U97HRPMitnPOmnRCnzqN+9g4c8FtOCLBnI9177uyjgFfwAF6vbJGCrBuvCxOTK6C4EQ5Y7r2Xz6xv3BYRrtHcBx7huV4YKnz2Ff/bZ7MmKDMyh7/DRWVZoTp0SNeMZ68Zv56Dttd6/NsmCTWptGwBqIfyKP/U4wvc= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(136003)(396003)(366004)(376002)(39850400004)(4326008)(2906002)(316002)(8676002)(6512007)(956004)(2616005)(5660300002)(6506007)(6666004)(66946007)(8936002)(66476007)(66556008)(83380400001)(52116002)(7416002)(478600001)(26005)(186003)(16526019)(1076003)(6486002)(86362001)(38100700002)(966005)(38350700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 3a2fATAVE2ZeLQv7y7KfLtrFJeSqivVpDQS4bOFw0/fVYv0OWxgHdK9kZR5/jeejbc1BU4AhwH0EfbX17N4AjwFPXm0OEOmiOsqCiu+Nr4aP5/J9WMI6sBc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4ZbSb46CDvpQRLII/8gjLtcPKolKIx/3NR6JswDTROYNvm0gdJ6y8pFcBSq13WNiMPPyxJa33ba7lgZ81DHwQgiulUj856T38mUPRJ+8GNaJzB52oKrl+9TO81/1aX82cYpT0hoockn5q6Mx+ZrJUAkaN0G733Fm X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 72ad65e9-5a13-4952-25d6-08d910412af7 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 03:43:53.1343 (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: +ug+fw7R5yMru11XqKA5nvv+MzJTYWWxpv2VK9mk1YrUoQyZLCSbLZsLcvS/VpsyNHRfrrJLFnCarw1d8tEHrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7979 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_204355_861467_66923610 X-CRM114-Status: GOOD ( 13.08 ) 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 From: Peng Fan Document the i.MX BLK_CTL with its devicetree properties. Each BLK CTL have different power domain inputs and they have different names, so we are not able to list all the power domain names for each BLK CTL here. For example: i.MX8MM dispmix BLK CTL, it has power-domains = <&pgc_dispmix>, <&pgc_mipi>; power-domain-names = "dispmix", "mipi"; vpumix BLK CTL, it has power-domains = <&vpumix_pd>, <&vpu_g1_pd>, <&vpu_g2_pd>, <&vpu_h1_pd>; power-domain-names = "vpumix", "g1", "g2", "h1"; Signed-off-by: Peng Fan Reviewed-by: Rob Herring --- .../bindings/soc/imx/fsl,imx-blk-ctl.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/imx/fsl,imx-blk-ctl.yaml diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-blk-ctl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-blk-ctl.yaml new file mode 100644 index 000000000000..a66f11acc6b4 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-blk-ctl.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx-blk-ctl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX BLK_CTL + +maintainers: + - Peng Fan + +description: + i.MX BLK_CTL is a conglomerate of different GPRs that are + dedicated to a specific subsystem. It usually contains + clocks and resets amongst other things. Here we take the clocks + and resets as virtual PDs, the reason we could not take it as + clock provider is there is A/B lock issue between power domain + and clock. + +properties: + compatible: + items: + - enum: + - fsl,imx8mm-dispmix-blk-ctl + - fsl,imx8mm-vpumix-blk-ctl + - const: syscon + + reg: + maxItems: 1 + + "#power-domain-cells": + const: 1 + + power-domains: + minItems: 1 + maxItems: 32 + + power-domain-names: + minItems: 1 + maxItems: 32 + + clocks: + minItems: 1 + maxItems: 32 + +required: + - compatible + - reg + - power-domains + - power-domain-names + +additionalProperties: false + +examples: + - | + #include + + dispmix_blk_ctl: blk-ctl@32e28000 { + compatible = "fsl,imx8mm-dispmix-blk-ctl", "syscon"; + reg = <0x32e28000 0x100>; + #power-domain-cells = <1>; + power-domains = <&pgc_dispmix>, <&pgc_mipi>; + power-domain-names = "dispmix", "mipi"; + clocks = <&clk IMX8MM_CLK_DISP_ROOT>, <&clk IMX8MM_CLK_DISP_AXI_ROOT>, + <&clk IMX8MM_CLK_DISP_APB_ROOT>; + };