Message ID | 14616bce163d689a4e640ab7b372421ca8306a92.1701691923.git.unicorn_wang@outlook.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2739589vqy; Mon, 4 Dec 2023 04:55:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZims4hn4B3agQfvappxUlvUtK7TZp+KNHsXwbc03SaSWZNSNPYh3CHtB30PEP7PpAma0z X-Received: by 2002:a92:b751:0:b0:35d:59a2:2ca with SMTP id c17-20020a92b751000000b0035d59a202camr6000032ilm.106.1701694537061; Mon, 04 Dec 2023 04:55:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701694537; cv=none; d=google.com; s=arc-20160816; b=K7YwB9HBD/w8Kaxc4xXoSGAXseCksFUcSzRWUj1VO5OQq+n2fnasPtz+XBBxENA8rd yzYdY6JPkzoFS4Udz5Zf9COGO4dhNpBqVuBGJrPFJbxZJPO/4J+tAmYRALnThSkdXqsk f4VTuVQlcqQ2PrnHiCx51OrYjIFGgdRhZTsggAQ15uCY2a4BIf8Bsgo8WvFwE9TIvMbh Q2o8W2bJZlCmkrRxRiZ5UKgdICBSJ62hbP7qQoJZ4PaUmma1jRIpK4YURbLPNweIotly 68utkMd4Iqe0hc2Z7ZX5yUVipfwRQkE+W/Shp3GvgD1Xx+sRa84ptg2IAcc7FqwcRBRC F4XQ== 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=Fp1QQy4nHJOCAUXp1K0aSSWLaVTSFOXyfLRKjezIxlk=; fh=KH8xm6lWnQmjdwi1VtR18ptPhMUvoKU3JPF7cI3jXZo=; b=yA/ISWhUFdTMfmqtZ8q7TYi/O5AdgQybO2QlERCtVTZycezNaOCYi/nx8izBqwpVbl Tak/H3oFmgAZKoRoGT8eLKcoytpllvqJZvl47A1ZY0iPeIm4kaofPzMVofKDShMazr1e KeDKJ9/q0ri+xGVBsEjBcl9JJe5hY67TewpQzRHyCo+OGJtFebaf4YAayEzTcCYw5LB7 ZcGK5HIUZu7G+1XoVoT1iOmit53bDer1MYHBlxrNrPbZ9IvAOb8b4nii8GYdmzMCQw2T +s7ShWCvoW02x2bB/4/a3ygqdl2BhWcCP82Z7hk1C1G8p7YqLbkmhD8H60k8mjftYUcZ eKyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=crMc6+hF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id l65-20020a632544000000b005c1739564f7si3590530pgl.351.2023.12.04.04.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:55:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=crMc6+hF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 3FC988078C88; Mon, 4 Dec 2023 04:55:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233530AbjLDMzC (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Mon, 4 Dec 2023 07:55:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233473AbjLDMy6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 4 Dec 2023 07:54:58 -0500 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 870DFC3; Mon, 4 Dec 2023 04:55:04 -0800 (PST) Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3b8b6acc3e7so850441b6e.1; Mon, 04 Dec 2023 04:55:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701694504; x=1702299304; 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=Fp1QQy4nHJOCAUXp1K0aSSWLaVTSFOXyfLRKjezIxlk=; b=crMc6+hFFC48FXDu69Lf/+hSba4KQk635eEPchzjHi4K4KwRyVEIeDRKQYXRzAjaqb mCfDQn49t6f+OtvQP4xH7XM/p2AdntmdBSiSdkHNIaH5ig6QKCrT1jRbfd+WIez5Iob7 KhSC3i0+ZDaBtiS149GjO1r5T12Wnj3v4dO9P76ORBOMqVPvtaptbR+S9p19dDuuhGos IIpF0bDY4/ZcyZV42Y0hYXmgggsLyrAfQXQ7rL/L7EFvFxP//e97HQxwrYaGaNRmxlli nd4klAv9vBiZBYKSXEJNV4w7h7vDzjUAb6hWWKt7fPv133ZwiJ6BsaEOmVrAgAkR6Reb RZ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701694504; x=1702299304; 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=Fp1QQy4nHJOCAUXp1K0aSSWLaVTSFOXyfLRKjezIxlk=; b=ssVpVWDQEyKCRFsOOdgUnyP8zHJYOkavP7k+UBFQjbQt11W1u+o+1ZFm5lD5F7kkh1 m3tSTOAKiTR018c9X5wludcvVNREqjfcPx3l5I0QYCpbaRNZhuvfKNav8Q/AfKkqpJ05 DvjtDbUnFwS45U0PFAIjSqr4bwn9Ws9JrX48QmYR9PwZ/4eZq2sOIBXdb1B1/7S/RBNw z8Iujftz0bpXZzet/O4qQuz4nQ9XIAI+Gaq0qkTy6a+qn08R1uKJ9whwCIx1Y0a5Zde5 RJ8uGPG/E8Jmj8s0vaOVS7uvgD4zFwb2sjJiXAHT3u9JFzQnCYeQhzsckzClvuvmsCRa D3zA== X-Gm-Message-State: AOJu0Yzo2AkpUOQhpf/y0lPtxXvvn+0W6nreF8EGwePX57nCsX6Pmm8H DF+srh2gP1wL1NmUSWFH2VU= X-Received: by 2002:a05:6808:914:b0:3b8:643e:f09b with SMTP id w20-20020a056808091400b003b8643ef09bmr3855506oih.54.1701694503712; Mon, 04 Dec 2023 04:55:03 -0800 (PST) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id 13-20020aca280d000000b003b8b262a347sm1089986oix.7.2023.12.04.04.55.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:55:03 -0800 (PST) From: Chen Wang <unicornxw@gmail.com> 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 <unicorn_wang@outlook.com> Subject: [PATCH v3 1/4] dt-bindings: soc: sophgo: Add Sophgo system control module Date: Mon, 4 Dec 2023 20:54:53 +0800 Message-Id: <14616bce163d689a4e640ab7b372421ca8306a92.1701691923.git.unicorn_wang@outlook.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1701691923.git.unicorn_wang@outlook.com> References: <cover.1701691923.git.unicorn_wang@outlook.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:55:21 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784356050905133203 X-GMAIL-MSGID: 1784356050905133203 |
Series |
riscv: sophgo: add clock support for sg2042
|
|
Commit Message
Chen Wang
Dec. 4, 2023, 12:54 p.m. UTC
From: Chen Wang <unicorn_wang@outlook.com> Add documentation to describe Sophgo System Controller for SG2042. Signed-off-by: Chen Wang <unicorn_wang@outlook.com> --- .../soc/sophgo/sophgo,sg2042-sysctrl.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml
Comments
On Mon, 04 Dec 2023 20:54:53 +0800, Chen Wang wrote: > From: Chen Wang <unicorn_wang@outlook.com> > > Add documentation to describe Sophgo System Controller for SG2042. > > Signed-off-by: Chen Wang <unicorn_wang@outlook.com> > --- > .../soc/sophgo/sophgo,sg2042-sysctrl.yaml | 35 +++++++++++++++++++ > 1 file changed, 35 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.example.dtb: /example-0/system-controller@30010000: failed to match any schema with compatible: ['sophgo,sg2042-sysctl'] doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/14616bce163d689a4e640ab7b372421ca8306a92.1701691923.git.unicorn_wang@outlook.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
On 2023/12/4 22:25, Rob Herring wrote: > On Mon, 04 Dec 2023 20:54:53 +0800, Chen Wang wrote: >> From: Chen Wang <unicorn_wang@outlook.com> >> >> Add documentation to describe Sophgo System Controller for SG2042. >> >> Signed-off-by: Chen Wang <unicorn_wang@outlook.com> >> --- >> .../soc/sophgo/sophgo,sg2042-sysctrl.yaml | 35 +++++++++++++++++++ >> 1 file changed, 35 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml >> > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > yamllint warnings/errors: > > dtschema/dtc warnings/errors: > Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.example.dtb: /example-0/system-controller@30010000: failed to match any schema with compatible: ['sophgo,sg2042-sysctl'] > > doc reference errors (make refcheckdocs): > > See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/14616bce163d689a4e640ab7b372421ca8306a92.1701691923.git.unicorn_wang@outlook.com > > The base for the series is generally the latest rc1. A different dependency > should be noted in *this* patch. > > If you already ran 'make dt_binding_check' and didn't see the above > error(s), then make sure 'yamllint' is installed and dt-schema is up to > date: > > pip3 install dtschema --upgrade > > Please check and re-submit after running the above command yourself. Note > that DT_SCHEMA_FILES can be set to your schema file to speed up checking > your schema. However, it must be unset to test all examples with your schema. Thanks, Rob. My fault and I wrote the compatible string in example incorrectly. "DT_CHECKER_FLAGS=-m" is very good and do help efficiently catching this misspell issue not easy to find. Learned and thanks again. I will correct this.
diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml new file mode 100644 index 000000000000..cf4b4b5a6300 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,sg2042-sysctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo SG2042 SoC system controller + +maintainers: + - Chen Wang <unicorn_wang@outlook.com> + +description: + The Sophgo SG2042 SoC system controller provides register information such + as offset, mask and shift that can be used by other modules, such as clocks. + +properties: + compatible: + items: + - const: sophgo,sg2042-sysctrl + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + system-controller@30010000 { + compatible = "sophgo,sg2042-sysctl"; + reg = <0x30010000 0x1000>; + };