From patchwork Mon Mar 18 06:38:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13595049 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 54091C54E58 for ; Mon, 18 Mar 2024 06:39:34 +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=vViSf+HSLsO26idyz4uzmfEhKVq6R8EffNOxlwlDKTU=; b=hfOBoPq6CTKElm qxrq67DLawTbJFUz7hVL/3sYFc848f/OK5n3n2mevUMqbh+mAAFiSbItA6fZXQ68DY4rnWAYkQCnn XEi8q61c8UOQPPG04csGXWsW2S/RuF1BI7f82ZnXZvyu+F8Ckxg+j7SJvUc1B8NI/l1nK4Gre4vlW AToxikoF60wiGaMGz1NJQ+sODN1LFUbgK/F8d1t6xGZlNZLXwiaKkVl170N8p2Id/zQoll7gT8fdH hU0D9S3wP4jWfc2Hr3U9UUBPTvZu2ly4JGGZP+EdmZvQPCy2xiA8lcD5GWgQzJLGbLMehPUhvcOFG +1clNb9bj4Uh1HKdMO8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rm6ef-00000007Ue8-0NmI; Mon, 18 Mar 2024 06:39:29 +0000 Received: from mail-bn7nam10olkn20800.outbound.protection.outlook.com ([2a01:111:f403:2804::800] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rm6ea-00000007UZB-001g for linux-riscv@lists.infradead.org; Mon, 18 Mar 2024 06:39:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dYR1Jy+wQ8+RMyCaBxb4ZQxzhir6+Yj7ilMDseo4RecY8fKRj1oyZJPEkKuUs/bO5QaKuzlB6fZ/7eiPNZcBedNsC7p88E0nLDxN+ykeKZaDLYUOS8FeHRV93L/3lZi0gcZlxuVgncvID6PH9LK2SBnSsHiWz/oXlt6vgaOutlF3Ms9Cgtzf1VQgb5QC88su5MXzOBnpeFscGm4qfh6VHehd6VITbgR76JhBpznicgDciAbETBAo0dnRPZQHm7YWW759FjC4JhERAlM7Mc6GkXl7KZkO9nce+yaePOQ9clylSGdkm3JgtvuAokt+ho+Mf1WPnqXMLvb26lPM/dThSA== 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=DUPDeMgzx5bBbMIFB5my6AeSJvafCKMk3W8pCIQGUSM=; b=PNzeMRN4Jmn5OBVxl3WgvuXv9H48kw9qth3gc+Ck4zE0Xd91U6ARvegapejlpTPyciT8Qn/s7NB0vS9F9FubyKrE5wn0qa6c1w6PuTdLwsp7IWhW5xSXTLPi4zL87Rel9XJeQM7/opAcGeu9oLBSaeSchxOoQjd/H8UUy6h7R5K3CVR/DalIuw2gBFVlo4Vbo3hX3mwtJkRYBv/yQFjWtKHPCYGUWWZUEycTou0o46yEA1lkcUHmmNG2F5LflLixWYK0IvJuo+aOs8M7KGrRgAB5RrYv7b3gzGN8MXSfxiAMc7cTzO2P01htyndQp6r6nRqKtS6lF/LQ68OrcDiARg== 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=DUPDeMgzx5bBbMIFB5my6AeSJvafCKMk3W8pCIQGUSM=; b=cuG6cfWIlLmA/Sgl51zPi9H8fbAkiaFGLr8bnt9Av6AaqrIx5auqzetdjBYnzcFZvRw+cn3cXGTPIgKrEFmRQDk4rZ4WLrCe+56XuHDBZcemNHUcH4FRclyLF00JzK84BJ+sfraysv8ZcrsY5K7TXFgLV55W2nREFro8ztK+yD6ljD9EDcTOCcRU51QZZS4UVKMY7ikXC60M0Pl8c4vST5XBNIfBcNmT/87mP0XnMZgwb1oNymeznQg++N+A1Vr7RPfl7dfKrEVg0tnayY6VfM8TJqu6aiow7b3XEuwXU3qAQD/wKG3uG0Z/p3GtcDJse3EaR3eNNMjdIE6Mlr0xpA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SN7PR20MB5460.namprd20.prod.outlook.com (2603:10b6:806:2ab::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.25; Mon, 18 Mar 2024 06:39:09 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::8615:efe2:7c8e:2041]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::8615:efe2:7c8e:2041%3]) with mapi id 15.20.7386.025; Mon, 18 Mar 2024 06:39:09 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v4 2/4] dt-bindings: soc: sophgo: Add top misc controller of CV18XX/SG200X series SoC Date: Mon, 18 Mar 2024 14:38:49 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [FsOmjLBBlLNCs8Y3njdAwO6TWmGnFPSV1JROZl0lzrE=] X-ClientProxiedBy: TY2PR04CA0013.apcprd04.prod.outlook.com (2603:1096:404:f6::25) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240318063852.1554712-2-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SN7PR20MB5460:EE_ X-MS-Office365-Filtering-Correlation-Id: 7cb41ed8-3be1-4fbe-0a0e-08dc47161dc9 X-MS-Exchange-SLBlob-MailProps: RlF2DIMZ1qUQWS8lN22nULkf5597sA7XTOYMcwrjOxIakFiGGMGZrpbOnudJ6iHK8HIMbrkc7/xtsAkSj+ikLljg5qT63tEJ0wH/mTogyh5OBbofutqo5iU2BXSinr5WNip5asT0Vf6v9E+iWmOjuR1fmEgPI2TT2wLXVHnIWSQQDiHmDT4DTesB0JaEv5G40wMOQM66AlV3rsURTvTC/IqSi3gqD0EhZ8JEoQ6JTVtyCHouK671EZbj4WxEKyDiRulWgJy+lzfMrcamRRxv8oxz0DKOpQBNwT2BZcF9/I5Bg5m4vlblP7IdcoIuoAy4CDTAKU6NrKxJmjJyPJMKpLU+QXvC9UyGh5J/8OexpZ+yoXuebgiJVuzgiftJCvBRgtR0rzdkV1shrj7gp/M8njfR1PFp10rnDtuyVk7SFBeCFJHEeJ9fFazEXe9+ueMTgCXwWpENiGGZYGeXkaTsd/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y1O/gplAknx5tA4wnkVLXEoCe57418houUJjQUCy3sHFnG9BC9v1jTFf9KDOy7rhIo9KMxN0IjzTTcjYskeYxgNI8JIWLQf3qajlqoO47fxTn4hj3edH63px0lJplPsWSVUJ4uGwUi3Uam4hcvq/R8XAkgOVdsrJdfjgLqrK1eHslqoeGDdxHFnVbiP8xAQW8Kf/Cl21kiKFmwKgxKmmYMh8gDYu0KvvRd/A64Ij/cfpirRuPbSssmxt5aG7dCcxT1h85W4hamRgmvXvO2OVnuKQwrKVrSEDV5XKmbI/8gt/BGXfI0JVq9F7Pl9AzXX9B8x1215cgJxq6psCaIYeN9E45z6zUbLH X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7cb41ed8-3be1-4fbe-0a0e-08dc47161dc9 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 06:39:09.5566 (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: SN7PR20MB5460 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240317_233924_636711_BDC98C4F X-CRM114-Status: GOOD ( 10.88 ) 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 CV18XX/SG200X series SoCs have a special top misc system controller, which provides register access for several devices. In addition to register access, this system controller also contains some subdevices (such as dmamux). Add bindings for top misc controller of CV18XX/SG200X series SoC. Signed-off-by: Inochi Amaoto --- .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml -- 2.44.0 diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml new file mode 100644 index 000000000000..009e45e520d9 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800-top-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo CV1800/SG2000 SoC top system controller + +maintainers: + - Inochi Amaoto + +description: + The Sophgo CV1800/SG2000 SoC top misc system controller provides + register access to configure related modules. + +properties: + compatible: + items: + - const: sophgo,cv1800-top-syscon + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +required: + - compatible + - reg + +additionalProperties: + type: object + +examples: + - | + syscon@3000000 { + compatible = "sophgo,cv1800-top-syscon", + "syscon", "simple-mfd"; + reg = <0x03000000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + dma-router@154 { + compatible = "sophgo,cv1800-dmamux"; + reg = <0x154 0x8>, <0x298 0x4>; + #dma-cells = <3>; + dma-masters = <&dmac>; + dma-requests = <8>; + }; + }; + +...