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: 431628 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp1070516jao; Wed, 5 May 2021 20:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8uzzJDiAvPWeMXcx5X60JHh2plElpYOsmlXXPyFins9aTe7zd2FrWMXQJqOsA+FyV5X5M X-Received: by 2002:a17:906:fb0e:: with SMTP id lz14mr2044326ejb.424.1620272637048; Wed, 05 May 2021 20:43:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620272637; cv=pass; d=google.com; s=arc-20160816; b=f9e6oB8w8t4HmJL3XFkbgxdoX+nt6kMyeG9PQsufXaT1PKtEocPBCZ4ZvBcQ3tYkge ivsuOqGiE4rKNga7cYVJH6GVoUoBQue2D26aPc6EGPKj1KVCrEp4WwXmqMKFJDvpi5mH uW6Ql5G/+z0sti95jA7EHcpdNJd04Zj2RKOXPZE01RWEKcvtYtlsJ3R8adTM9pu67FMZ L327xmVVyAlDp3COsTVpmnAIxsMWPCnAGiJiSbiX8m8m6YuZ9aAfN10ZaUDwScdKBGDI 6lmC96lbkvluXfeFxFyPkWxz16iIKglbxWleXjgfxWoDkfdT62PW/saQcWWCmBfVly+d O8CA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CoYuZ6fKfcB+WwVVfZF8+Omv1B3nHCEknsEO01revno=; b=VrMfpa0NvfRFCWYSZI+ySCtZ7mc88urWzXdA2SR44MvnrAT1totO+oSsQVXpizd23Q Fp7sq7i+4/LVGXFOahfC6d2WmLlov3RnfibNzcBMPGTav2NfIgYKFuw6swZ0xax5VnYn cIXkuBP8cN7zNro0ix/N5zm3BFTb6INa+SekTfkCnfvzWB3zkLpmSJxW+wKpARnAXsm3 OnSjmcBJRNbBNUCVWqeAeSEPiRNhheCHGlVE/P31y5Gg8Srn81Q6AWrIIxDBTn1ssVEN /gh2T2gHmLG03HplmQPEm33WVgH18DeHp150cGD8IXOf0houYpIJISHxjTbqBBSXxFFB MLNA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=HPk9Fcwc; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si1119706ejx.447.2021.05.05.20.43.56; Wed, 05 May 2021 20:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=HPk9Fcwc; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231336AbhEFDox (ORCPT + 6 others); Wed, 5 May 2021 23:44:53 -0400 Received: from mail-db8eur05on2082.outbound.protection.outlook.com ([40.107.20.82]:27233 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231800AbhEFDow (ORCPT ); Wed, 5 May 2021 23:44:52 -0400 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/J9WMI6sBcQFsl2L0RWq9TUmjhzEK4y0drLQ1YXcfI1yfHEjwOy7uJ9CWr73/dAgS8I3wZ6ZjopMCAFyeY1wHiBr7Hz0qG2Wz4r2gZPhRDtqj5LYpH5isijEgfp7hKhc7SI9KUyblsozgK9mbr6L9eygM4kZz4fT2SY/C8i/PWP3MmlXyeKKT7G7IWCK9EsRr2s9oTj7mPS5kx0bstU65MHJtEi0G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-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 --- .../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 -- 2.30.0 Reviewed-by: Rob Herring 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>; + };