Message ID | 20221201225703.6507-2-ddrokosov@sberdevices.ru |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp528322wrr; Thu, 1 Dec 2022 14:59:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7b/2nyaxI/ik+DNMEb8qGJ4RZRLfafwd21kLq6KyyAIazpTImuymK5MHrYISN9YyIzeHeH X-Received: by 2002:a17:906:b7c8:b0:7be:1164:2695 with SMTP id fy8-20020a170906b7c800b007be11642695mr23706287ejb.280.1669935541130; Thu, 01 Dec 2022 14:59:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669935541; cv=none; d=google.com; s=arc-20160816; b=t4ecW76U3GkX+g/42J/ccjyvVm8/NlEBAZdoz9CaOWfcklU1T3vJEVRUzlh27VQj0E 2RhQ1UpTbyLQhQFunCzyF9ThPkkiZLGc+WmZmzqsl1fUbmZI30tAdmmV70fHbJ/e99jq CuLp1xb9VprV+ZgokVF4qRmGx36djKB/dbw/0l+I1GtvmBbitgpQ/vztAtEeGbUP1mbi UMFI8+RhuLOTh/rVf+zEcMM/lLqhe72nDYt3HF9ZssiD6T2p36gQbsjDJNNf3VIVp/jf 38qmsacOw6d8PGda8TA+fykcNthq4D7+AuiQiT+qR5U0kZa2D/gnuCi4lBfdE5XvyLfV +8MA== 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=EQ9CARlmUHJwGJYtqkN5xpSRpu9hEHlDHl1ZbpZt5yY=; b=n+Kksf0XTx+gCjUXerpcvvZ+Ak0VkZhFBGn1MESaGpgiqGEpHFREelHAFyU1CWehX5 rSb4FTIiCJs61iWftyrYMdyLgylyMqGWlGwTto19wuyy5dAZe4f4pMHL9fPLBheb2syl r+QqeUfB2adt4HhMm/Ax1YCCreFuU0x+3W+Wqb1miWazxgPcmUfQEyd0TIHOHnv45QNa 0b/GM2Ap4fxr1lYvtk09vm+XBAOWsfAB859GYGJeXuFLE/BhP/K9nnjDvPsWLgX+FPES ZfwjvW6vaMMCPeN8ZhZ2Kqz6pIOL44uU+RshYbg8QlOt11VJ6w+c913umaiLGiH/lxsW qbvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=OSB0Cpsf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020aa7cd47000000b0046c0e8b6cadsi1096840edw.450.2022.12.01.14.58.36; Thu, 01 Dec 2022 14:59:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=OSB0Cpsf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231699AbiLAW5m (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Thu, 1 Dec 2022 17:57:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231575AbiLAW5i (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 1 Dec 2022 17:57:38 -0500 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D3AFC7269; Thu, 1 Dec 2022 14:57:29 -0800 (PST) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 825945FD09; Fri, 2 Dec 2022 01:57:27 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1669935447; bh=EQ9CARlmUHJwGJYtqkN5xpSRpu9hEHlDHl1ZbpZt5yY=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=OSB0Cpsf4gX2hE4mYCIVr5A4vk7HKyQqqsx7issPWIb77oAGUKZb7fHkf3gXz4m/O u/eRI/swfEZW72yb6WdtFNY6tiT1qyjmPDUSp6T/dwX8v0QjwbhzToN9qr4hAYzpoP nRDfCK8Z7vC7yZvm9RdLXGYXpOFj+tCvdWc00oeMDs6BYTuWMlmHc3DjLYILWwhm7a YL0QlVrezUIL/gxKlVUqErrY4eqGzm6bR4GyBAwBSq8qfRPC0lygioIRwI3H7SpX+6 00YOjhKD7VXsudiTMeYE/vTi3I1gjPYWRvejAa5InIdoJYnn47LbRVBUKUfhceD2sb TYGu/+hrrN96Q== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Fri, 2 Dec 2022 01:57:27 +0300 (MSK) From: Dmitry Rokosov <ddrokosov@sberdevices.ru> To: <neil.armstrong@linaro.org>, <jbrunet@baylibre.com>, <mturquette@baylibre.com>, <sboyd@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <khilman@baylibre.com>, <martin.blumenstingl@googlemail.com> CC: <jian.hu@amlogic.com>, <kernel@sberdevices.ru>, <rockosov@gmail.com>, <linux-amlogic@lists.infradead.org>, <linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, Dmitry Rokosov <ddrokosov@sberdevices.ru> Subject: [PATCH v8 01/11] dt-bindings: clock: meson: add A1 PLL clock controller bindings Date: Fri, 2 Dec 2022 01:56:53 +0300 Message-ID: <20221201225703.6507-2-ddrokosov@sberdevices.ru> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20221201225703.6507-1-ddrokosov@sberdevices.ru> References: <20221201225703.6507-1-ddrokosov@sberdevices.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH02.sberdevices.ru (172.16.1.5) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/12/01 20:49:00 #20634374 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751054329829718347?= X-GMAIL-MSGID: =?utf-8?q?1751054329829718347?= |
Series |
add Amlogic A1 clock controller drivers
|
|
Commit Message
Dmitry Rokosov
Dec. 1, 2022, 10:56 p.m. UTC
From: Jian Hu <jian.hu@amlogic.com> Add the documentation to support Amlogic A1 PLL clock driver, and add A1 PLL clock controller bindings. Signed-off-by: Jian Hu <jian.hu@amlogic.com> Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> --- .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ 2 files changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h
Comments
On Fri, 02 Dec 2022 01:56:53 +0300, Dmitry Rokosov wrote: > From: Jian Hu <jian.hu@amlogic.com> > > Add the documentation to support Amlogic A1 PLL clock driver, > and add A1 PLL clock controller bindings. > > Signed-off-by: Jian Hu <jian.hu@amlogic.com> > Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> > --- > .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ > include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ > 2 files changed, 68 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h > 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: ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml:26:6: [warning] wrong indentation: expected 6 but found 5 (indentation) dtschema/dtc warnings/errors: ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml: $id: relative path/filename doesn't match actual path or filename expected: http://devicetree.org/schemas/clock/amlogic,a1-pll-clkc.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.example.dtb: pll-clock-controller@7c80: reg: [[0, 31872], [0, 396]] is too long From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221201225703.6507-2-ddrokosov@sberdevices.ru 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 Thu, Dec 01, 2022 at 10:10:04PM -0600, Rob Herring wrote: > > On Fri, 02 Dec 2022 01:56:53 +0300, Dmitry Rokosov wrote: > > From: Jian Hu <jian.hu@amlogic.com> > > > > Add the documentation to support Amlogic A1 PLL clock driver, > > and add A1 PLL clock controller bindings. > > > > Signed-off-by: Jian Hu <jian.hu@amlogic.com> > > Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> > > --- > > .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ > > include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ > > 2 files changed, 68 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > > create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h > > > > 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: > ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml:26:6: [warning] wrong indentation: expected 6 but found 5 (indentation) > > dtschema/dtc warnings/errors: > ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml: $id: relative path/filename doesn't match actual path or filename > expected: http://devicetree.org/schemas/clock/amlogic,a1-pll-clkc.yaml# > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.example.dtb: pll-clock-controller@7c80: reg: [[0, 31872], [0, 396]] is too long > From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > > doc reference errors (make refcheckdocs): > > See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221201225703.6507-2-ddrokosov@sberdevices.ru > > 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. > Please find all fixes of above warnings and errors in the my patch located at the link: https://lore.kernel.org/linux-amlogic/20221201225703.6507-9-ddrokosov@sberdevices.ru/
On 02/12/2022 10:51, Dmitry Rokosov wrote: > On Thu, Dec 01, 2022 at 10:10:04PM -0600, Rob Herring wrote: >> >> On Fri, 02 Dec 2022 01:56:53 +0300, Dmitry Rokosov wrote: >>> From: Jian Hu <jian.hu@amlogic.com> >>> >>> Add the documentation to support Amlogic A1 PLL clock driver, >>> and add A1 PLL clock controller bindings. >>> >>> Signed-off-by: Jian Hu <jian.hu@amlogic.com> >>> Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> >>> --- >>> .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ >>> include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ >>> 2 files changed, 68 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml >>> create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h >>> >> >> 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: >> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml:26:6: [warning] wrong indentation: expected 6 but found 5 (indentation) >> >> dtschema/dtc warnings/errors: >> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml: $id: relative path/filename doesn't match actual path or filename >> expected: http://devicetree.org/schemas/clock/amlogic,a1-pll-clkc.yaml# >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.example.dtb: pll-clock-controller@7c80: reg: [[0, 31872], [0, 396]] is too long >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml >> >> doc reference errors (make refcheckdocs): >> >> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221201225703.6507-2-ddrokosov@sberdevices.ru >> >> 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. >> > > Please find all fixes of above warnings and errors in the my patch > located at the link: > > https://lore.kernel.org/linux-amlogic/20221201225703.6507-9-ddrokosov@sberdevices.ru/ Why? This patch here is broken and it should be fixed. Don't apply broken patches... Best regards, Krzysztof
On 01/12/2022 23:56, Dmitry Rokosov wrote: > From: Jian Hu <jian.hu@amlogic.com> > > Add the documentation to support Amlogic A1 PLL clock driver, > and add A1 PLL clock controller bindings. > > Signed-off-by: Jian Hu <jian.hu@amlogic.com> > Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> > --- > .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ > include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ > 2 files changed, 68 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > new file mode 100644 > index 000000000000..d67250fbeece > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/amlogic,a1-pll-clkc.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" Drop quotes from both. > + > +title: Amlogic Meson A/C serials PLL Clock Control Unit Device Tree Bindings Drop "Device Tree Bindings" > + > +maintainers: > + - Neil Armstrong <narmstrong@baylibre.com> Not correct email address. > + - Jerome Brunet <jbrunet@baylibre.com> > + - Jian Hu <jian.hu@jian.hu.com> > + > +properties: > + compatible: > + const: amlogic,a1-pll-clkc > + > + "#clock-cells": > + const: 1 > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: input xtal_fixpll > + - description: input xtal_hifipll As pointed already - this patch cannot work and must not be merged. > + > + clock-names: > + items: > + - const: xtal_fixpll > + - const: xtal_hifipll > + > +required: > + - compatible > + - "#clock-cells" > + - reg > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + clkc_pll: pll-clock-controller@7c80 { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "amlogic,a1-pll-clkc"; Use 4 spaces for example indentation. > + reg = <0 0x7c80 0 0x18c>; > + #clock-cells = <1>; > + clocks = <&clkc_periphs 1>, > + <&clkc_periphs 4>; > + clock-names = "xtal_fixpll", "xtal_hifipll"; > + }; > diff --git a/include/dt-bindings/clock/a1-pll-clkc.h b/include/dt-bindings/clock/a1-pll-clkc.h > new file mode 100644 > index 000000000000..58eae237e503 > --- /dev/null > +++ b/include/dt-bindings/clock/a1-pll-clkc.h Filename matching compatible / bindings file. > @@ -0,0 +1,16 @@ Best regards, Krzysztof
On Fri 02 Dec 2022 at 11:39, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > On 02/12/2022 10:51, Dmitry Rokosov wrote: >> On Thu, Dec 01, 2022 at 10:10:04PM -0600, Rob Herring wrote: >>> >>> On Fri, 02 Dec 2022 01:56:53 +0300, Dmitry Rokosov wrote: >>>> From: Jian Hu <jian.hu@amlogic.com> >>>> >>>> Add the documentation to support Amlogic A1 PLL clock driver, >>>> and add A1 PLL clock controller bindings. >>>> >>>> Signed-off-by: Jian Hu <jian.hu@amlogic.com> >>>> Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> >>>> --- >>>> .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ >>>> include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ >>>> 2 files changed, 68 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml >>>> create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h >>>> >>> >>> 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: >>> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml:26:6: [warning] wrong indentation: expected 6 but found 5 (indentation) >>> >>> dtschema/dtc warnings/errors: >>> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml: $id: relative path/filename doesn't match actual path or filename >>> expected: http://devicetree.org/schemas/clock/amlogic,a1-pll-clkc.yaml# >>> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.example.dtb: pll-clock-controller@7c80: reg: [[0, 31872], [0, 396]] is too long >>> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml >>> >>> doc reference errors (make refcheckdocs): >>> >>> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221201225703.6507-2-ddrokosov@sberdevices.ru >>> >>> 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. >>> >> >> Please find all fixes of above warnings and errors in the my patch >> located at the link: >> >> https://lore.kernel.org/linux-amlogic/20221201225703.6507-9-ddrokosov@sberdevices.ru/ > > Why? This patch here is broken and it should be fixed. Don't apply > broken patches... Dmitry is ressurecting a series that is several years old and not his to begin with. He was unsure about take the code of somebody else. To be fair, he even asked for advice on IRC about to proceed. Dmitry, as you may have guessed, for next revision, please fix Jian Hu original patches in place, not with fixup patches. If your fixes are minor (not complete rewrite), please keep the original author and add your SoB > > Best regards, > Krzysztof
On Fri 02 Dec 2022 at 01:56, Dmitry Rokosov <ddrokosov@sberdevices.ru> wrote: > From: Jian Hu <jian.hu@amlogic.com> > > Add the documentation to support Amlogic A1 PLL clock driver, > and add A1 PLL clock controller bindings. > > Signed-off-by: Jian Hu <jian.hu@amlogic.com> > Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> > --- > .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ > include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ > 2 files changed, 68 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > new file mode 100644 > index 000000000000..d67250fbeece > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/amlogic,a1-pll-clkc.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Amlogic Meson A/C serials PLL Clock Control Unit Device Tree Bindings > + > +maintainers: > + - Neil Armstrong <narmstrong@baylibre.com> > + - Jerome Brunet <jbrunet@baylibre.com> > + - Jian Hu <jian.hu@jian.hu.com> > + > +properties: > + compatible: > + const: amlogic,a1-pll-clkc > + > + "#clock-cells": > + const: 1 > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: input xtal_fixpll > + - description: input xtal_hifipll > + > + clock-names: > + items: > + - const: xtal_fixpll > + - const: xtal_hifipll Do we really need the "xtal_" prefix ? Seems like the clock is the PLL, not the xtal > + > +required: > + - compatible > + - "#clock-cells" > + - reg > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + clkc_pll: pll-clock-controller@7c80 { > + compatible = "amlogic,a1-pll-clkc"; > + reg = <0 0x7c80 0 0x18c>; > + #clock-cells = <1>; > + clocks = <&clkc_periphs 1>, > + <&clkc_periphs 4>; > + clock-names = "xtal_fixpll", "xtal_hifipll"; > + }; > diff --git a/include/dt-bindings/clock/a1-pll-clkc.h b/include/dt-bindings/clock/a1-pll-clkc.h > new file mode 100644 > index 000000000000..58eae237e503 > --- /dev/null > +++ b/include/dt-bindings/clock/a1-pll-clkc.h > @@ -0,0 +1,16 @@ > +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ > +/* > + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. > + */ > + > +#ifndef __A1_PLL_CLKC_H > +#define __A1_PLL_CLKC_H > + > +#define CLKID_FIXED_PLL 1 > +#define CLKID_FCLK_DIV2 6 > +#define CLKID_FCLK_DIV3 7 > +#define CLKID_FCLK_DIV5 8 > +#define CLKID_FCLK_DIV7 9 > +#define CLKID_HIFI_PLL 10 > + > +#endif /* __A1_PLL_CLKC_H */
On 02/12/2022 12:04, Jerome Brunet wrote: > > On Fri 02 Dec 2022 at 11:39, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > >> On 02/12/2022 10:51, Dmitry Rokosov wrote: >>> On Thu, Dec 01, 2022 at 10:10:04PM -0600, Rob Herring wrote: >>>> >>>> On Fri, 02 Dec 2022 01:56:53 +0300, Dmitry Rokosov wrote: >>>>> From: Jian Hu <jian.hu@amlogic.com> >>>>> >>>>> Add the documentation to support Amlogic A1 PLL clock driver, >>>>> and add A1 PLL clock controller bindings. >>>>> >>>>> Signed-off-by: Jian Hu <jian.hu@amlogic.com> >>>>> Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> >>>>> --- >>>>> .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ >>>>> include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ >>>>> 2 files changed, 68 insertions(+) >>>>> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml >>>>> create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h >>>>> >>>> >>>> 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: >>>> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml:26:6: [warning] wrong indentation: expected 6 but found 5 (indentation) >>>> >>>> dtschema/dtc warnings/errors: >>>> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml: $id: relative path/filename doesn't match actual path or filename >>>> expected: http://devicetree.org/schemas/clock/amlogic,a1-pll-clkc.yaml# >>>> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.example.dtb: pll-clock-controller@7c80: reg: [[0, 31872], [0, 396]] is too long >>>> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml >>>> >>>> doc reference errors (make refcheckdocs): >>>> >>>> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221201225703.6507-2-ddrokosov@sberdevices.ru >>>> >>>> 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. >>>> >>> >>> Please find all fixes of above warnings and errors in the my patch >>> located at the link: >>> >>> https://lore.kernel.org/linux-amlogic/20221201225703.6507-9-ddrokosov@sberdevices.ru/ >> >> Why? This patch here is broken and it should be fixed. Don't apply >> broken patches... > > Dmitry is ressurecting a series that is several years old and not his to > begin with. > > He was unsure about take the code of somebody else. > To be fair, he even asked for advice on IRC about to proceed. > > Dmitry, as you may have guessed, for next revision, please fix Jian Hu > original patches in place, not with fixup patches. > > If your fixes are minor (not complete rewrite), please keep the original > author and add your SoB We never take intentionally wrong patches, e.g. code which does not even compile, and immediately fix it in next patch. Can you imagine adding such drivers? Which are broken in the commit they are added? So the patchset is old or abandoned, take ownership, add co-developed etc. Just don't add known broken code. Best regards, Krzysztof
> > Node names should be generic. > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Thank you for the link, will change it in the next version. > > > + compatible = "amlogic,a1-pll-clkc"; > > Use 4 spaces for example indentation. Good point, I've fixed it in the my patches above. But as you mentioned in the all changes, I have to squash them....
> >>>> On Fri, 02 Dec 2022 01:56:53 +0300, Dmitry Rokosov wrote: > >>>>> From: Jian Hu <jian.hu@amlogic.com> > >>>>> > >>>>> Add the documentation to support Amlogic A1 PLL clock driver, > >>>>> and add A1 PLL clock controller bindings. > >>>>> > >>>>> Signed-off-by: Jian Hu <jian.hu@amlogic.com> > >>>>> Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> > >>>>> --- > >>>>> .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ > >>>>> include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ > >>>>> 2 files changed, 68 insertions(+) > >>>>> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > >>>>> create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h > >>>>> > >>>> > >>>> 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: > >>>> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml:26:6: [warning] wrong indentation: expected 6 but found 5 (indentation) > >>>> > >>>> dtschema/dtc warnings/errors: > >>>> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml: $id: relative path/filename doesn't match actual path or filename ... > >>> > >>> Please find all fixes of above warnings and errors in the my patch > >>> located at the link: > >>> > >>> https://lore.kernel.org/linux-amlogic/20221201225703.6507-9-ddrokosov@sberdevices.ru/ > >> > >> Why? This patch here is broken and it should be fixed. Don't apply > >> broken patches... > > > > Dmitry is ressurecting a series that is several years old and not his to > > begin with. > > > > He was unsure about take the code of somebody else. > > To be fair, he even asked for advice on IRC about to proceed. > > > > Dmitry, as you may have guessed, for next revision, please fix Jian Hu > > original patches in place, not with fixup patches. > > > > If your fixes are minor (not complete rewrite), please keep the original > > author and add your SoB > > We never take intentionally wrong patches, e.g. code which does not even > compile, and immediately fix it in next patch. > > Can you imagine adding such drivers? Which are broken in the commit they > are added? > > So the patchset is old or abandoned, take ownership, add co-developed > etc. Just don't add known broken code. Okay, I've got your point. It's reasonable. I will fix Jian Hu's patches (squash with mine) and mark all of them with co-developed and SoB Jian Hu tags. Thank you for explanation.
On Fri, Dec 02, 2022 at 12:11:53PM +0100, Jerome Brunet wrote: > > On Fri 02 Dec 2022 at 01:56, Dmitry Rokosov <ddrokosov@sberdevices.ru> wrote: > > > From: Jian Hu <jian.hu@amlogic.com> > > > > Add the documentation to support Amlogic A1 PLL clock driver, > > and add A1 PLL clock controller bindings. > > > > Signed-off-by: Jian Hu <jian.hu@amlogic.com> > > Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> > > --- > > .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ > > include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ > > 2 files changed, 68 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > > create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h > > > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > > new file mode 100644 > > index 000000000000..d67250fbeece > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > > @@ -0,0 +1,52 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: "http://devicetree.org/schemas/amlogic,a1-pll-clkc.yaml#" > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > > + > > +title: Amlogic Meson A/C serials PLL Clock Control Unit Device Tree Bindings > > + > > +maintainers: > > + - Neil Armstrong <narmstrong@baylibre.com> > > + - Jerome Brunet <jbrunet@baylibre.com> > > + - Jian Hu <jian.hu@jian.hu.com> > > + > > +properties: > > + compatible: > > + const: amlogic,a1-pll-clkc > > + > > + "#clock-cells": > > + const: 1 > > + > > + reg: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: input xtal_fixpll > > + - description: input xtal_hifipll > > + > > + clock-names: > > + items: > > + - const: xtal_fixpll > > + - const: xtal_hifipll > > Do we really need the "xtal_" prefix ? > > Seems like the clock is the PLL, not the xtal > This name was formed from specification registers description. Register CLKTREE_SYS_OSCIN_CTRL has "gate en" field which calls "xtal -> HIFIPLL", therefore if was transformed to xtal_hifipll name. But I agree with you, that "hifipll" is better name choice.
On 02/12/2022 12:28, Dmitry Rokosov wrote: >>>>>> On Fri, 02 Dec 2022 01:56:53 +0300, Dmitry Rokosov wrote: >>>>>>> From: Jian Hu <jian.hu@amlogic.com> >>>>>>> >>>>>>> Add the documentation to support Amlogic A1 PLL clock driver, >>>>>>> and add A1 PLL clock controller bindings. >>>>>>> >>>>>>> Signed-off-by: Jian Hu <jian.hu@amlogic.com> >>>>>>> Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> >>>>>>> --- >>>>>>> .../bindings/clock/amlogic,a1-pll-clkc.yaml | 52 +++++++++++++++++++ >>>>>>> include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ >>>>>>> 2 files changed, 68 insertions(+) >>>>>>> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml >>>>>>> create mode 100644 include/dt-bindings/clock/a1-pll-clkc.h >>>>>>> >>>>>> >>>>>> 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: >>>>>> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml:26:6: [warning] wrong indentation: expected 6 but found 5 (indentation) >>>>>> >>>>>> dtschema/dtc warnings/errors: >>>>>> ./Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml: $id: relative path/filename doesn't match actual path or filename > > ... > >>>>> >>>>> Please find all fixes of above warnings and errors in the my patch >>>>> located at the link: >>>>> >>>>> https://lore.kernel.org/linux-amlogic/20221201225703.6507-9-ddrokosov@sberdevices.ru/ >>>> >>>> Why? This patch here is broken and it should be fixed. Don't apply >>>> broken patches... >>> >>> Dmitry is ressurecting a series that is several years old and not his to >>> begin with. >>> >>> He was unsure about take the code of somebody else. >>> To be fair, he even asked for advice on IRC about to proceed. >>> >>> Dmitry, as you may have guessed, for next revision, please fix Jian Hu >>> original patches in place, not with fixup patches. >>> >>> If your fixes are minor (not complete rewrite), please keep the original >>> author and add your SoB >> >> We never take intentionally wrong patches, e.g. code which does not even >> compile, and immediately fix it in next patch. >> >> Can you imagine adding such drivers? Which are broken in the commit they >> are added? >> >> So the patchset is old or abandoned, take ownership, add co-developed >> etc. Just don't add known broken code. > > Okay, I've got your point. It's reasonable. > I will fix Jian Hu's patches (squash with mine) and mark all of them > with co-developed and SoB Jian Hu tags. Thank you for explanation. It was clearly explained in the cover-letter, nobody expected these patches to be applied as-is. Using RFC would have been the best solution, but this situation is rather specific and he made the right decisions to trigger this current discussion toward an acceptable solution for everybody. Neil >
diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml new file mode 100644 index 000000000000..d67250fbeece --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/amlogic,a1-pll-clkc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Amlogic Meson A/C serials PLL Clock Control Unit Device Tree Bindings + +maintainers: + - Neil Armstrong <narmstrong@baylibre.com> + - Jerome Brunet <jbrunet@baylibre.com> + - Jian Hu <jian.hu@jian.hu.com> + +properties: + compatible: + const: amlogic,a1-pll-clkc + + "#clock-cells": + const: 1 + + reg: + maxItems: 1 + + clocks: + items: + - description: input xtal_fixpll + - description: input xtal_hifipll + + clock-names: + items: + - const: xtal_fixpll + - const: xtal_hifipll + +required: + - compatible + - "#clock-cells" + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + clkc_pll: pll-clock-controller@7c80 { + compatible = "amlogic,a1-pll-clkc"; + reg = <0 0x7c80 0 0x18c>; + #clock-cells = <1>; + clocks = <&clkc_periphs 1>, + <&clkc_periphs 4>; + clock-names = "xtal_fixpll", "xtal_hifipll"; + }; diff --git a/include/dt-bindings/clock/a1-pll-clkc.h b/include/dt-bindings/clock/a1-pll-clkc.h new file mode 100644 index 000000000000..58eae237e503 --- /dev/null +++ b/include/dt-bindings/clock/a1-pll-clkc.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +/* + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. + */ + +#ifndef __A1_PLL_CLKC_H +#define __A1_PLL_CLKC_H + +#define CLKID_FIXED_PLL 1 +#define CLKID_FCLK_DIV2 6 +#define CLKID_FCLK_DIV3 7 +#define CLKID_FCLK_DIV5 8 +#define CLKID_FCLK_DIV7 9 +#define CLKID_HIFI_PLL 10 + +#endif /* __A1_PLL_CLKC_H */