From patchwork Sun Mar 24 07:52:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13600770 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 92FFFC47DD9 for ; Sun, 24 Mar 2024 07:44:29 +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:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lmFlBtq4kNC5tTHewOpU6FTEg5v6zHzgQT2aLF1iUDg=; b=4AWhu0aBi2xQJVZzVjx381t5GX k1+NkUWRb9Q2iEhvNbBTzDYg1wSnwPkjxRVneb/qi4KWUIqGWRNZg53oGalo/T7TZw0BKvbX3LV4C 7Kl2WNDQViAXGLkE59B7IcA8L8xLzoZrKZuecd3DXiHzS1Z04WYlERKqnf/Xi1WfB4pDWPfMgeLx1 DpvVx+ohF8Z0uslcb0pIUzsQt+ENAEXBbBlFmLS7y4UD9uJUxX0zIFAyTGa4GPErpmUJnypL3UzxO WBh6JPN+wEzpPufi4lwZtMTbEFx/RYmXmmwvG/j0VD74S2Axwv1h+ruf9z7H3Uvzu+q4AhhasRjyx Oh6BzQhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roIWi-0000000C6bs-17Gt; Sun, 24 Mar 2024 07:44:20 +0000 Received: from mail-db8eur05on20618.outbound.protection.outlook.com ([2a01:111:f400:7e1a::618] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roIWZ-0000000C6UT-0hSN for linux-arm-kernel@lists.infradead.org; Sun, 24 Mar 2024 07:44:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Djpd+Fc/UjvUBdHcAVYU14KAfB9TFJn9VVr83Ybk7vpYWH1lAB4MaHqkic/CM+5ocUn2Dk6UNSfZHQ+YWvouefiI0U9DA2w8pmFMsYqwTnCNwoxnH7/z9SukT1agG9XR4coQGJYY7DzlmrL35NmtH7luwfTzLg2kb3at1hLCSEps4rYywvNfkTRd8gYDkop1BkLOrIoqguCxsbSYRmOPopwQzWlpGM74X4LqknDc36nzZ5yGGiiwfpwfFozaPPBG20lX+uVwhxba+xaX3TgHl1TobNKAsM981xrH9PDZpJjFoBNp4enKz4AQgKs7d0ee9r2PE6+MMPhAKLL4FfugWA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tXn7A4A42e0zMGYz7OukSr4fWxtPhi4VfBmYQ8wzWBE=; b=Wm2NZ69mzK5tIErq5itBWu8tTIxUp9IckOVgXNe+vHR5VbzA4QE0hA3W2Svlcd2lmve3xicaIRaLD8tNVxck8k2C1K7yRhOS4bAFGhDwvz63qTrtw6U9vh0fuya3n6c6W2Mxcg83+ATPX1wdZBbRcK/vE4I5CwOKoHZ38ctrgdQC/KEUKMAXcMVBhw3HRg3hutLlKPDfdLmUvYy27kf5hkxkR5CA+Z1F3g29IOO/EQXvDSr8rKNXukLV8EBNw6kSaHO2o7bdk+V1k1u/S+84vK1z/zravkVXeiY9Dfmj0c/hvckuyY5jIToO3/rrParOTQ/j+e6zGQGbRWQ9rWsFPQ== 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=tXn7A4A42e0zMGYz7OukSr4fWxtPhi4VfBmYQ8wzWBE=; b=aDwcCscQIWoozx264zBTXf+/w6RurI0fUW/zbUyme0XYC/AuPwl8YTDP6YMX1htyC1+HMvIyJXhzErr45y+rnhJrPJlCMmzvLHczE7pX4m1ig/Xfut+LFz4Ru+qgtXb4dD3o0svq1GGbYLwYtWFxJmrJzC6PyZ35N8sejEOKHK8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PAXPR04MB8573.eurprd04.prod.outlook.com (2603:10a6:102:214::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Sun, 24 Mar 2024 07:44:01 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7386.037; Sun, 24 Mar 2024 07:44:01 +0000 From: "Peng Fan (OSS)" Date: Sun, 24 Mar 2024 15:52:01 +0800 Subject: [PATCH v5 2/4] dt-bindings: clock: support i.MX95 Display Master CSR module Message-Id: <20240324-imx95-blk-ctl-v5-2-7a706174078a@nxp.com> References: <20240324-imx95-blk-ctl-v5-0-7a706174078a@nxp.com> In-Reply-To: <20240324-imx95-blk-ctl-v5-0-7a706174078a@nxp.com> To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Abel Vesa Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711266729; l=2127; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=2d9nh8kBtXx1E9vliQEQis83+mP6bDEMh2YtH/J8JOg=; b=PIAM+K6aWC7Bc0adGLVpq/tWe1m7e0CarnziLvZFZf7NpgZfjXWpDpe2YjSVaCTzTz//yAkMs 1yH34JeY8HMCGTEw7x8fwCyoldQOqkh1icNtmPSU01NPAzbR7vAPsPK X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR03CA0110.apcprd03.prod.outlook.com (2603:1096:4:91::14) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PAXPR04MB8573:EE_ X-MS-Office365-Filtering-Correlation-Id: f4801788-9331-4222-17bf-08dc4bd62c15 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FpcZ3/S6hT0U5PLrRkWg1g65Zv6RCQi1CwAAck9ucqzzTeNdzcYoFzzuLJFo6drbQxdWrm0roFZi6RrRWJK0pioon4o5lS2LtqBhS0C3aPONf/98f1qzCZmhm9uLQRCJWCoYYBkIWMWGcBpjqwi6Fm+IWxQkKORRImPL4melpEV2812QcWoquiqysF2Pj4H7hE7rgnIGiA98LzNaCDbtv+wu2HSaa3tIKJSsYBWoMP4MtrR4u9GP2BjcwVi2LuG9urDk4cvInz7fpU9de7U8xza03VxAYz8cwBb9iCAcsIq0vyEdk0QtoVUxVlS7AZETAFK3ncmE65KKzjioKlY7lPKiDY6mKuFYAOKzyjWGuoidkW+hFyaZLbmzJQjG9dn5+Grz5quTCHaM2Dq8avoIna0J1iEhdyYvaKmnXVnVddKwLXYRsTKN02t/h8oTZO84wiXc0kADnDNIC9uzl70ZqQt0Uob7b++YDZKquB45ZQ25+t3/QN72Ncy2t3zGMTluc8yQeXbbxdv0Pk/VX07dd4Ll7DdwOHDXIcNqbnE+Ql4E+pHmP0Sr+hpu+6s1hT2Bto4vFFjyvaw/7EzwQrZMGZ/WRSbT+J7IFQgPdW3oja4I2fNMXNpXJEof7z2BHUuXh9kzLhu1TtA5zh/yRfMhZgNPw39O1ho4KONzZoZRM+itA76O67ZFfiv4z9/Sh8Bh X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(376005)(1800799015)(52116005)(366007)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ggiKaIsvPPm2zg7PPbXzLEeI2B64?= =?utf-8?q?b/aZeejv9yQfXNw6lkP7SEJV3E+9Z0AlXwAjdW+TNTI2xbGz19JGtItNXPN8yKbOY?= =?utf-8?q?jHOz4X/wyApsfk/yOupaVPPE8xGivuQwWIVFM4ZJD1eTsyD9tPIXzAPKNTi7Zop/y?= =?utf-8?q?Pedkt/6LQP6ot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r4jwZLbXxITpH+9f1BCACKaSuEq3uyysUTbLDVoEoWxj?= =?utf-8?q?UJ/p0gkydEK7wrrQt8wxdLq/qvXaMltkxH+3yJowC4xpoeOWpzuSTRa8DVmhtmFz8?= =?utf-8?q?1YQd2TMQx+qPnCGbSB4+RJw4a10+CfxbcwxsOKYrnCmmSEYnUylhp7u7f4uqe7HRH?= =?utf-8?q?GmTyaHgogejmkvZSgx+5eswci8vTYGGjFvpEwmpUMnEB2FOTIV9GY+UsiV4svC/2w?= =?utf-8?q?VAjuRzJc6VVX4GAcmEv1EPnDHPlYLhNco9VSmPZR2V6POS7ImqlvztlrrxRSLiqqA?= =?utf-8?q?9Cedv8ePexAKBukjdhyP0GHriAjT3V6Vdvb7ohFo16jsWXx3SB31ZspFTfJoOwDra?= =?utf-8?q?sq8CZjmh/p92S63MmRQx0fapQBm66okzGflIe8J8XtDG/KHEMopmsv0/M3Ylr9Aug?= =?utf-8?q?CrBRpw2Q1XXati8MKQgSV0x8zQQObTpBedmTLUSIlpoCwrAG9Vwd3ljtCq5yHBSr7?= =?utf-8?q?rF+r6odsv2ih?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4801788-9331-4222-17bf-08dc4bd62c15 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2024 07:44:01.6042 (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: 7XQdzTQIKhIZG6wIMUnWh3Ap7ZIBcpz+y4J/AnDzhTBC94hEomRZsQ9XHUnxr7AA9yU/B92oKYcKIyBi620tTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8573 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240324_004411_345825_FB2B66B0 X-CRM114-Status: GOOD ( 11.12 ) 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 i.MX95 DISPLAY_MASTER_CSR includes registers to control DSI clock settings, clock gating, and pixel link select. Add dt-schema for it. Signed-off-by: Peng Fan Reviewed-by: Krzysztof Kozlowski --- .../clock/nxp,imx95-display-master-csr.yaml | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/nxp,imx95-display-master-csr.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-display-master-csr.yaml new file mode 100644 index 000000000000..07f7412e7658 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-display-master-csr.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/nxp,imx95-display-master-csr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX95 Display Master Block Control + +maintainers: + - Peng Fan + +properties: + compatible: + items: + - const: nxp,imx95-display-master-csr + - const: syscon + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + clocks: + maxItems: 1 + + '#clock-cells': + const: 1 + description: + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. See + include/dt-bindings/clock/nxp,imx95-clock.h + + mux-controller: + type: object + $ref: /schemas/mux/reg-mux.yaml + +required: + - compatible + - reg + - '#clock-cells' + - mux-controller + - power-domains + - clocks + +additionalProperties: false + +examples: + - | + syscon@4c410000 { + compatible = "nxp,imx95-display-master-csr", "syscon"; + reg = <0x4c410000 0x10000>; + #clock-cells = <1>; + clocks = <&scmi_clk 62>; + power-domains = <&scmi_devpd 3>; + + mux: mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x4 0x00000001>; /* Pixel_link_sel */ + idle-states = <0>; + }; + }; +...