From patchwork Mon Sep 16 22:23:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haylen Chu X-Patchwork-Id: 13805801 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 41ADEC3ABCB for ; Mon, 16 Sep 2024 22:23:54 +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: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=hsaDsrBNpX3R1JEppxYOTpnN2ED9aFe02sUem+bla8o=; b=QKLgm11LpE04ZX qWehfkfBLlUVaJmYgFcBO1VGAgRWurpEYhBPgTg2kJyNpO3YABHirMl/kFQpEIo2QneGsQCS1uQYW P6AUFFnQ6DW3r0ER8SjjTk88Y0KV9qV9CWREYQyI9BhvVdbt2zIk7Zjo2jcdkxQUS32LCoMw6Yh8M 6cSaePvRIFvHcxgLqkHNSuVHqUELs3EFvgPa5bsp/CIXA+YMX+3Stl9r9Pq11dcrqO/Mo20Eul7Un QYRxabYbKpHDKkBBuV74J0Nm6ywvfNkceFuY/IQb7lgLWGU7UYOZJHEgVdDprK+/YNdMrcydZqtsn 5VO4E54qfnbYJUAkiJLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqK8M-00000004zS1-3xyV; Mon, 16 Sep 2024 22:23:50 +0000 Received: from mail-eastasiaazolkn190100000.outbound.protection.outlook.com ([2a01:111:f403:d401::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqK8J-00000004zQ5-1QJf for linux-riscv@lists.infradead.org; Mon, 16 Sep 2024 22:23:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=alJxBQUKZDC2IHEAi8h1rjUPz1Yx02TqtEm/sEn1KGTtnwFg/+q0NqHjfpXNPa4dsaea64/wLnKG0kLuWk+qgSXejmuDugxQuzzIileNwWZnZMsH+AYA/M6TLay4NEVlUmSEm/qn7H3nlIIyo+mAKTy5MASSxePo8rFxiveH6drBNPKz4+gNhajOY1UnxJT6rOfR8/7kkZ3hPMdWlEliTfdNGjjKASHD1cwESr8lYnykuY5mbgiphkLIriIqMC5cthF/G5B7Q6XKg3wAEVxv/uQzRQSBTGmr8yOp/QeW4ri5fBc6wV55si6pnFlBJb2MJrbZEdQk0aOiph4lovIBYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=sMkXkE+ym+kBbeehwMuFPawz3HA0EZTobv741VQUSUA=; b=lyhtxbvHa7sqcwKF20xdYckWzw8KB4L2XR/VTxytEiMpTjK3nmQnXiLw9BXtzWFMNwd6DepLUNG+M2S8A3e4zWbphjMIOUW1cCxmjcDufbAUVh30fDoxtvcF4qszwoQhJe2+dAHpqk410H6YD4veKk31KuCDVxNCS3lCGsXCMNo06hjX8Gr5Ea1SrdP47FvWrR2ucyAtgNLWelMeq7hQG5F2r79ByTFFwpsU9nr9TnE3BOLOhKCm6dvxJoTa+YayKPDxM9pX5tRYSXKrfjCguaBPAhca7C1kRSKiRdDIYteA9GoNnu0IgroMMvj4kpVlwHaTjtH8XFtDmwJ8+74DXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sMkXkE+ym+kBbeehwMuFPawz3HA0EZTobv741VQUSUA=; b=EcozGenqOg3BVt1tkk2gNmfZ9rbKzuOvOYrBy0cIamVATl4Ju44q8ZvUeLM6XF1dvP4N3WR/6ifzUJkOB2O2ShR5UBH3PTvYzTa8v8fxqDnU/2T8HMU2Puedq0UEvoX1QGQ5gli2xlnt1uySN+FPWzK+5VTqgQ7LrVHpSoe2ESWa9rHP4ApprBpcRd7cMHkxaikQAd9p3S1jCNpNWdC0OD2AWE3KMRdOZwpHkh+GaTy5Nnj1l1mFIGYeut9tZYs8bSR/KFq2P9zbwjOCYIjZQxHXiaqEjPEieRYNGPqJrI1ITQR/vAkCaiCO4lZw/XEhQkVkYh3bJ8EK/uavrXfi5g== Received: from SEYPR01MB4221.apcprd01.prod.exchangelabs.com (2603:1096:101:56::12) by TYZPR01MB4847.apcprd01.prod.exchangelabs.com (2603:1096:400:285::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.24; Mon, 16 Sep 2024 22:23:42 +0000 Received: from SEYPR01MB4221.apcprd01.prod.exchangelabs.com ([fe80::b674:8f70:6e29:3756]) by SEYPR01MB4221.apcprd01.prod.exchangelabs.com ([fe80::b674:8f70:6e29:3756%2]) with mapi id 15.20.7962.022; Mon, 16 Sep 2024 22:23:42 +0000 From: Haylen Chu To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Inochi Amaoto , Chen Wang , Jisheng Zhang , Haylen Chu Subject: [PATCH v2 1/3] dt-bindings: soc: spacemit: Add spacemit,k1-syscon Date: Mon, 16 Sep 2024 22:23:08 +0000 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: X-ClientProxiedBy: TYCP286CA0243.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:456::17) To SEYPR01MB4221.apcprd01.prod.exchangelabs.com (2603:1096:101:56::12) X-Microsoft-Original-Message-ID: <20240916222309.43259-2-heylenay@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEYPR01MB4221:EE_|TYZPR01MB4847:EE_ X-MS-Office365-Filtering-Correlation-Id: 4fa8b857-386d-4c7c-eaf1-08dcd69e384d X-Microsoft-Antispam: BCL:0;ARA:14566002|15080799006|37102599003|19110799003|5072599009|461199028|8060799006|1602099012|440099028|4302099013|3412199025|1710799026; X-Microsoft-Antispam-Message-Info: 3hjoTC5kzJxoeJgqUP2X1c7ClKbK5RdmgKtbeYR9iYYR1yqTVUw2jlseZ63vrkuddiWurEh83g0b6OGEgzgP9jHL6E8WoKE1iK1ccb5QRy/0pniRweUXX8J1qznoKroBS95p3f5G+RZVnpC77aAbELZNcZ41w+cbtYGCXJiGrtUjpA5opd4lw46F+9XbFjgn3RORstPZrwl2BDBKB8OredSokCw/CkQOwjGolmx1n2g/aQop+7RAtpGFhHFsK3pcJyEy/o7GgMT/5cNYpEaKBGW11TFp4OyaBhZ+kcbW/go8jOc/tc3wdKY6d5YsuMVy1I5humRwUlQ86SeZmvnHSD8fLVN437K+YDBNFxdqmxIZYIFWTmdtN8u3kqJqR3x0LWo7VCRyShnyszZ6oOCYlSX6pWBaNMPs3O86Hup0Nin1wCJuHLhG5EcWiN/F0VVE+uN5NZyo73EyHbfKaopfO+bMp1Fvw0L7zV5NT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EAk4xIyyoRB+fdGXNddhCNzZ3ViDwYjY4F/xBDyEeppTc5MtM5b8PaXdHyQdwAJpUT90BNFZvYTHHAGkzK6XMaRF8HbVOrXpHcm9+lk/JkifIK0YykHcyYEM2b8QiCJMdZX4yPltFFgRoaAbz/Db4VElCKKOZfG9thJd/uR7vuaziGBZ62OTXW/yAaRmIfn10JZdYB0gR47A5wTxV0COLyeN/og0MzJui6bC9TyEv27y0n+auVvoGwosn3EBZKr0xbyv1X8uipiGmw3ZYVKI5njrsxXdRDhJ/eg49Wxx3ng3xOA21TQHlwwJL2pjxADiA7DyrxmZtyH/C72WqygtZWDOpKq7qhnYEQxlhX2TKnJMk79w6ApW5LgNYyTsN7gSqemj5d6825x/mwXe4MSJrRXrhEwzlHewAnL5aa9UFHRZwv+6hj+J+0qPOzWNh6jnZh9r99KAcJTstQPt61GkG2BNN0Za2SUogQtbVNAzp5cjAHTRdTIUh8jQBKA1+0gf5gpyQ9eitV55DWkcP3VHcdLIUexu1zPqbjkeJ+2HpeRgxRtrUkLk8gsFgb5SerwH4OQnTckHwk2RBMvNUJE6DtvMIsfC5X0PnAEwgdWbzYTxFYJFqRzO7yfqmPEpeFyGltvCfQRS039vU= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fa8b857-386d-4c7c-eaf1-08dcd69e384d X-MS-Exchange-CrossTenant-AuthSource: SEYPR01MB4221.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2024 22:23:41.9825 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR01MB4847 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240916_152347_403891_BF4F080D X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add documentation to describe Spacemit K1 system controller registers. Signed-off-by: Haylen Chu --- .../soc/spacemit/spacemit,k1-syscon.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/spacemit/spacemit,k1-syscon.yaml diff --git a/Documentation/devicetree/bindings/soc/spacemit/spacemit,k1-syscon.yaml b/Documentation/devicetree/bindings/soc/spacemit/spacemit,k1-syscon.yaml new file mode 100644 index 000000000000..4e3a72b48aff --- /dev/null +++ b/Documentation/devicetree/bindings/soc/spacemit/spacemit,k1-syscon.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/spacemit/spacemit,k1-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Spacemit K1 SoC System Controller + +maintainers: + - Haylen Chu + +description: + The Spacemit K1 SoC system controller provides access to shared register files + for related SoC modules, such as clock controller and reset controller. + +properties: + compatible: + items: + - enum: + - spacemit,k1-apbc-syscon + - spacemit,k1-apbs-syscon + - spacemit,k1-apmu-syscon + - spacemit,k1-mpmu-syscon + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + syscon_mpmu: system-controller@d4050000 { + compatible = "spacemit,mpmu-syscon", "syscon", "simple-mfd"; + reg = <0xd4050000 0x209c>; + };