From patchwork Mon Nov 27 00:58:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Wang X-Patchwork-Id: 169928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2771756vqx; Sun, 26 Nov 2023 16:59:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpTn1RsSZoC/brV1pgkWyixwhTVbz6zNazJW3aoB86D+ATqbl91GHn4iGsr8NbkVlT8x5b X-Received: by 2002:a17:903:183:b0:1cf:66d5:70ac with SMTP id z3-20020a170903018300b001cf66d570acmr10409436plg.50.1701046754147; Sun, 26 Nov 2023 16:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701046754; cv=none; d=google.com; s=arc-20160816; b=luqTKuy3ivmvpnqKR8vJRm+6bJWyenav7xdWoHHk76Ih20wHaAFU0gNy6RmZl8QE/u bwhtKlLRT6K3wuWWWgMeCJD9H/dW5m+odHK15RJPJiy0z8yhU5ICv+f8qwo8IFH1rrdu VxnHaL+kXbkFp1WizndmHNidpYIQzmEoy9Cb8n2UyFSuGULVSAi5kzpl1aPuIiikj9/Y c7PIviPaTFYr08z1wd7SJneEXPC6dzdKMc1rCL0HtkaHkVdFGLHk10bvEHyPEtusm4aF BqiSrkFYmm+KyXq3Tiv1jFcLKHeTumdTxw+nUHBg4ZcBJMf0aUB+Beoz4uyuThqj8AbC NrRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tlbXLStT9Yzi3MnsBsStbxN6rymsbOLs17hYyIxF/KU=; fh=KH8xm6lWnQmjdwi1VtR18ptPhMUvoKU3JPF7cI3jXZo=; b=YzTHqobIEnnFAG688+BzKhkWpqpoxYUXNIu4xFOJ/LS2LmoVbM+h8ixpWiPXpuPVAW VVaPCK4NWwyiE343hFrodgNh3zXVfHIpBIkbfUDa78Iun0DSZzyHgCI9WspFrqFs7nhF I567SRnqc6P6rXp6F/Lxxa1YLIV+Dj3DQZmZ3T3QU3N8AXVsDBqEBvJEzmW6PHqxrIG/ /OMAiZx/O3lJLwjxWde+xZeChq3NCw+x66GoPu14DdZIrMVOb6DbvfoxQIISbbYJHtpg P53mUF1rJ1+tDbEVbTmb+GI7ft7bGCpdcuodXoMuHrs0/n+kY3BzodLP2NQTmBMRqNIT L7QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FDPiC3hJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h11-20020a170902f54b00b001c5f80bf574si9117847plf.487.2023.11.26.16.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 16:59:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FDPiC3hJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 70E56806E3FB; Sun, 26 Nov 2023 16:59:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbjK0A7C (ORCPT + 99 others); Sun, 26 Nov 2023 19:59:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbjK0A66 (ORCPT ); Sun, 26 Nov 2023 19:58:58 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 099B99C; Sun, 26 Nov 2023 16:59:05 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3b8382b8f5aso2393336b6e.0; Sun, 26 Nov 2023 16:59:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701046744; x=1701651544; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tlbXLStT9Yzi3MnsBsStbxN6rymsbOLs17hYyIxF/KU=; b=FDPiC3hJdMnVxP7oRNN8ALW3SH9G6LHrsnqSeuV1lwWvMeFkrhyAws1/4c9yP7gWZl l7Ej+cSbprDsAYQkYPG5AAJ9Od/nRQNh1jXOlEFAsuyjQX15I+gdEHvTDxrY9eQevGo2 3I1pqD0cFKrLFxHihlV3KfAi/uuUfZSmPCc0NJa6WfVkklS4lec7RTwbVFCNw1r53xxH 0J9WZm670Oxn5ZdVTdKY8+e6GeRYmD/gwwt+uVazqwSQ3uY4Oh7c5SLGVbY0rFgXlpq6 6JD5tcA2Kl0fOS8FnipnvIlsRjIF0HlbAey34Pg6t4aBpLveaWPuuRAT9qCvjnzwRvce RgEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701046744; x=1701651544; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tlbXLStT9Yzi3MnsBsStbxN6rymsbOLs17hYyIxF/KU=; b=KJW7FuNAn3THrwkSt5sZuE8e1Up87fJydeXK+MSZtsXstbsMGWpOk0LyxvfKmTeWyF u2SEeByDop8sbEHOSzYGa0txNguMNczAuHFmxxr5m3fiw+2Pv+nVWBBLWUcr4pmiImQJ vxP0lwoEkHPIwWjyAcP/QkabAWxnAb0eFeIj62X+CJ3VSoYxPrTrsGrdVVUZeXk/5gFI f89qEt6pH66riJynq/bz+CsLkS8vAoz416v58ZYFr8AybkQVubWKB1O3PUvHm0P9AnSx WUYK5wIGvRmBTFQ+HjXbNjh5mWhHVy+/9mIMCxlefiec3Dbwvo99rTAtQ2nkT9lbrSOZ FGmA== X-Gm-Message-State: AOJu0Yzq24+R7C4op2f7DuGwod7Kv2DdVr/45Z9pt22BwLyyAs5nHfA4 Pf2Pu6fzwaEDKRk+ml7b9Q4= X-Received: by 2002:a05:6808:3024:b0:3ae:251b:5552 with SMTP id ay36-20020a056808302400b003ae251b5552mr13085224oib.12.1701046744290; Sun, 26 Nov 2023 16:59:04 -0800 (PST) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id 2-20020aca0f02000000b003b2e536a96dsm1307697oip.24.2023.11.26.16.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 16:59:04 -0800 (PST) From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, palmer@dabbelt.com, paul.walmsley@sifive.com, richardcochran@gmail.com, robh+dt@kernel.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com, samuel.holland@sifive.com Cc: Chen Wang Subject: [PATCH v2 2/4] dt-bindings: soc: sophgo: Add Sophgo syscon module Date: Mon, 27 Nov 2023 08:58:56 +0800 Message-Id: <6ff37629458cde4549067e0caddeb5cb640ca7f9.1701044106.git.unicorn_wang@outlook.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 26 Nov 2023 16:59:11 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783676801179871899 X-GMAIL-MSGID: 1783676801179871899 From: Chen Wang Add documentation to describe Sophgo System Controller Registers for SG2042. Signed-off-by: Chen Wang --- .../soc/sophgo/sophgo,sg2042-syscon.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-syscon.yaml diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-syscon.yaml new file mode 100644 index 000000000000..329d645091b4 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-syscon.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,sg2042-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo SG2042 SoC system controller + +maintainers: + - Chen Wang + +description: + The Sophgo SG2042 SoC system controller provides register information such + as offset, mask and shift to configure some modules, such as clocks, reset + signals and pinctrl. + +properties: + compatible: + items: + - enum: + - sophgo,sg2042-syscon + - const: syscon + + reg: + maxItems: 1 + + clock-controller: + # Child node + type: object + $ref: ../../clock/sophgo/sophgo,sg2042-clkgen.yaml + description: + Clock controller for the SoC clocks. This child node definition + should follow the bindings specified in + Documentation/devicetree/bindings/clock/sophgo/sophgo,sg2042-clkgen.yaml + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@30010000 { + compatible = "sophgo,sg2042-syscon", "syscon"; + reg = <0x30010000 0x1000>; + }; + + syscon@30020000 { + compatible = "sophgo,sg2042-syscon", "syscon"; + reg = <0x30020000 0x1000>; + + clock-controller { + compatible = "sophgo,sg2042-clkgen"; + clocks = <&osc>; + #clock-cells = <1>; + }; + };