From patchwork Mon May 10 04:07:02 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: 12246785 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,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 49B58C433B4 for ; Mon, 10 May 2021 03:41:04 +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 CB0846109F for ; Mon, 10 May 2021 03:41:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB0846109F 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=G62Z3owotmNHc810Nx9SVi2+WkP3sCp9zPaTTkAOl1s=; b=PjUliJEnoIi7Crz84wXKgviCT cCsITP3vpcyHY3Y89HrlLKqxr1NqLI4Kx/Gdo7JQuIebFw6ecZJ+SKSMRFfNLdK5nG32OtHz1qb+n +C6SdzTbFSpqtShZgOQnsEA+fGB6jhIQ6BCeVWanP834MKWxXsRCNyZXETvdj/NSPSSG4L/b3IQX5 ixHW6IwepLPXCsh8OqCq6E8oi7SLqXFUEV7eA3otcLFR/mU+UV2er8M8EcTP1WsOl6YPx1M1eeCCf eibSuphmDrdePtdHQRcIClaCLGT1C82kiC+lxI9Uh3ZdsPxYPEcu3+Qi/wv0SShLqNZrorWwdbG1Q yEdAmzZTw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lfwkq-00D0gF-Cc; Mon, 10 May 2021 03:38:49 +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 1lfwh9-00Czh3-Bd for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 03:35:04 +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=0aB9k0PrMCYDScMBixgBT3+fJPleWCeHpDcOqnFBs8Q=; b=nipggMyHjqLJPo4aD7aKonLGSu wzRsERaAeMa6blgT7Kl1o/GVFArBN423u5BvaUMT4CkzlIeLC3SLTpgVCUJQJk3GPx835R0FfCgXW l1q6Qfo7ad+QqDiVP6v+4CuBOwbbPZgjBJDf2OJ5G2ZoZMJK8ebXrAyNWPQ9VZSYvV3gRTcVpXnVM VP7bj24xV+E4A4BBz22WBBSHzzNRBedaQSnSRlGv51peQHZXEtUhJTT8Eqj1AIa3ABRAWpAeIP1Dk wsD7rbwYqIA5G3g5OKAJL/7g+NRG/qcHr3aDHaIDmgsU1HVHjw4QqvnsXfAuQ18Y+luM20Fd29+Ju Galda1FQ==; Received: from mail-db8eur05on2081.outbound.protection.outlook.com ([40.107.20.81] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lfwh6-008F4R-GS for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 03:34:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y8yMEjHiDq7uuRb3Prgfuv3Me6FUMb8DOz1qgTdlbpKJKov0hl+w+bfI28IMhQjrcxg8bHhNtsR2eKLOen9Fxz7dgInyR7LuqMkJkO8+wsT1Isfz0rokTWT+IIVPef0uiYhqX9tZ47SF8IcWkyC6Emsn4gz8o/VqlFSlnEZk/GnyjKbzWXvASNO8Im5i2W2sBrFKIGQ9EKFEijccunnwo4XCr2XftUrZUwrfPsfHVOceGBE/5UfgULnLW052Fx3DIOTXxpdOv9tlEO4ZKxCQQYe4dNn38pvw+9citVUK76EocMnSKC7miQz9T1JF2QS4yiEKKCMMXtH8G4qIwruBCQ== 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=0aB9k0PrMCYDScMBixgBT3+fJPleWCeHpDcOqnFBs8Q=; b=L9i69r14l/pGxueIBTsDLS4nms3KXD8a++C8IEs4op9ukp5BgzfOU7nbWPFromi65466MFrCAVcKP7r/wMtDJbVoUGig9r7tch9QzFY82kR6jd3HHY5Zeax2mUsDV0NvKCvodPgYgYt08VK7Np+dmIEyBDL4lDgmZHSdn5mjyT0dBcknANs6aGNAASCzPwepJz3mKeDpqLfWeeG2zAZph02ULR5avHilw1JoLKa6h9CGaPVRAbAgAkhHERRmjyinIwdyudXuHXQOZdq41OVvcm+PDjkmmdj8+X02LPCL4J/QbqujL9wdSoQQGaYHQRC6RY50r8tqa3cM7f/+3vw68g== 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=0aB9k0PrMCYDScMBixgBT3+fJPleWCeHpDcOqnFBs8Q=; b=NL5FGrRZcksl9smhhgymctlxJW0KXplYVgcyBjVm+3Kwo2Obd4sbjX1WhnGKrhHBiX4hBqCfzmDdx+ITJWJKfga1riDywQJmssG0fysZLeTpmzLJClKgWEh3wgdgcU5ddi5vrya5jO7GWrT1xku2TqowuZs/P7yD1g1sAHxud7M= 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 (2603:10a6:4:a1::14) by DBBPR04MB7930.eurprd04.prod.outlook.com (2603:10a6:10:1ea::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Mon, 10 May 2021 03:34: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.4108.031; Mon, 10 May 2021 03:34: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 , Rob Herring Subject: [PATCH V4 2/4] Documentation: bindings: clk: Add bindings for i.MX BLK_CTL Date: Mon, 10 May 2021 12:07:02 +0800 Message-Id: <20210510040704.14997-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210510040704.14997-1-peng.fan@oss.nxp.com> References: <20210510040704.14997-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR03CA0159.apcprd03.prod.outlook.com (2603:1096:4:c9::14) 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 SG2PR03CA0159.apcprd03.prod.outlook.com (2603:1096:4:c9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.12 via Frontend Transport; Mon, 10 May 2021 03:34:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 221265b7-6ee6-4d94-d403-08d9136492d4 X-MS-TrafficTypeDiagnostic: DBBPR04MB7930: 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: vOBjtTPJ1MoXHowwmua8OpA5r/SgW3d/oVL2q92GL8RyqP5l0B1sYABz336fFWca4B68Nv3BjO65Lj1wNmnYw0FzaWkK1JHsARlsoQgo1LwBL3PHP+vw444L8hukmeUnH84xsLiL/ipVQUX1CUypGqrjXFbg7CevmIxKxLdgEvkjdbTOUwnjzz9ar/xkVFeLDV/HnTrszj+UqIV/zilR4ejqIv7Cw9rtHyONPFhACdYFgWg1cmXWzeiWxQTe6ALX0ZfrG+fWMWKP/UbhIbRF+JOtiFbX2sxwtWQyJ66odhM9woI5aIv0VxxDxMyZK6GnqHw1NWdM2lfDGrkPWNJ7baV7H8IX9iDtAtHlKgBPYQCTVXKc+UW2WDrFYJAXqjibYkC7CScYWRuQ/5q7RuIr6M5eXE8FZiTTEpge8ZT3tLaToXoauEAuju/acaf4Oolxtdr8lF8x486qYIlZX6SjFDHiQ8ZGyhsCq+Ika2iWtUs0FIByXxlZ66jqFmafQIRZ5kGfsRSVMRWMcYMIQzLKRlIIoKqSYI/UvFVLfoONZdwioL2JJNnVrjJ+07cTP3Z2h6y5I1XN+ew2FRs2w4hhwCz2u9ay988bdW1eXC5FbmWig0QB5zB+MQ0MqQrkityR5Pd9GyqbAlLTVCADyVQ3KOgAE9nsTbP9Met0SQgUGSbU8nYYxg2KaQKkm8iGbGaRGKQvz/rWPwvAXYUZ1+So6am/5sjtiph+qm2ET3I3FRM= 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)(39860400002)(136003)(366004)(396003)(376002)(38350700002)(38100700002)(54906003)(956004)(2906002)(6486002)(66476007)(4326008)(316002)(66556008)(66946007)(8676002)(2616005)(7416002)(86362001)(52116002)(186003)(83380400001)(1076003)(5660300002)(16526019)(8936002)(6506007)(6666004)(966005)(26005)(6512007)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: dCV2dsCGl4fupwayGbKeE9KTnp8zKL3USYXlDSx66zJWyp3QIeeuTXXdmQmghBOSG7lNRWu9usQqKe7MuM8U4d9d3X8OKYY0UBp+h8IawOQClPLr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77qmgfdzOh6xL5A5aINYUJs/7TVKPENU1Fub4VxE6fP/2bEP8le3dNowpHTTiqLIP0xut/Bt/iKRP3z5+VNGQYQeWIPC9FTN3bhxAfv0N23rXnq8/HmnNqjcXWr7gLQp2YqZ05MCJQ2akUXkH7ZwZx X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 221265b7-6ee6-4d94-d403-08d9136492d4 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 03:34:53.2653 (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: +zI+fGiG6Ye/BFMM1TBXprnw2YowgTk0WYdelyPrQcPmIa5kRtGY3PdH9b1FjU7x7d0tJALvuQa9zWkQY3Sw8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7930 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210509_203456_598530_5FDCB7BE X-CRM114-Status: GOOD ( 13.64 ) 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"; Reviewed-by: Rob Herring 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 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>; + };