From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Neil Armstrong <neil.armstrong@linaro.org>,
Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>
Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org
Subject: Re: [PATCH 3/6] dt-bindings: soc: amlogic: document System Control registers
Date: Mon, 13 Feb 2023 11:59:16 +0100 [thread overview]
Message-ID: <10ddd574-3ad1-f2e7-e7b4-a6803ee240d6@linaro.org> (raw)
In-Reply-To: <20230209-b4-amlogic-bindings-convert-take2-v1-3-c4fe9049def9@linaro.org>
On 09/02/2023 14:41, Neil Armstrong wrote:
> Document the System Control registers regions found on all Amlogic
> SoC families and it's clock, power, pinctrl and phy subnodes.
>
> The regions has various independent registers tied to other
> hardware devices, thus the syscon compatible.
>
> Clock controllers and Pinctrl devices are not yet documented, the
> definition of those will be updated in a second time.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> .../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 109 +++++++++++++++++++++
> 1 file changed, 109 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml
> new file mode 100644
> index 000000000000..672eabd90c09
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml
> @@ -0,0 +1,109 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Amlogic Meson System Control registers
> +
> +maintainers:
> + - Neil Armstrong <neil.armstrong@linaro.org>
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - amlogic,meson-gx-hhi-sysctrl
> + - amlogic,meson-gx-ao-sysctrl
> + - amlogic,meson-axg-hhi-sysctrl
> + - amlogic,meson-axg-ao-sysctrl
> + - const: simple-mfd
> + - const: syscon
> +
> + reg:
> + maxItems: 1
> +
> + clock-controller:
> + type: object
> +
> + power-controller:
> + $ref: /schemas/power/amlogic,meson-ee-pwrc.yaml
> +
> + pinctrl:
> + type: object
> +
> + phy:
> + type: object
> +
> +allOf:
> + - if:
> + properties:
> + compatible:
> + enum:
> + - amlogic,meson-gx-hhi-sysctrl
> + - amlogic,meson-axg-hhi-sysctrl
> + then:
> + required:
> + - power-controller
> +
> + - if:
> + properties:
> + compatible:
> + enum:
> + - amlogic,meson-gx-ao-sysctrl
> + - amlogic,meson-axg-ao-sysctrl
> + then:
> + required:
> + - pinctrl
> +
> + - if:
> + properties:
> + compatible:
> + enum:
> + - amlogic,meson-axg-hhi-sysctrl
> + then:
> + properties:
> + phy:
> + oneOf:
> + - $ref: /schemas/phy/amlogic,g12a-mipi-dphy-analog.yaml
> + - $ref: /schemas/phy/amlogic,meson-axg-mipi-pcie-analog.yaml
And all other variants? This allows phy/power/pinctrl/clock in any
combination, thus maybe the binding should be just split? Hard to say
without full picture.
> +
> +required:
> + - compatible
> + - reg
> + - clock-controller
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + sysctrl: system-controller@0 {
> + compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
> + reg = <0 0x400>;
> +
> + clock-controller { };
The example should be complete, so empty node does not look correct. If
you wait for other bindings, send them as patchset when all are ready.
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-02-13 11:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-09 13:41 [PATCH 0/6] dt-bindings: second batch of dt-schema conversions for Amlogic Meson bindings Neil Armstrong
2023-02-09 13:41 ` [PATCH 1/6] dt-bindings: rtc: convert rtc-meson-vrtc.txt to dt-schema Neil Armstrong
2023-02-11 20:10 ` Martin Blumenstingl
2023-02-13 10:49 ` Krzysztof Kozlowski
2023-02-09 13:41 ` [PATCH 2/6] dt-bindings: soc: amlogic: convert clk-measure.txt " Neil Armstrong
2023-02-11 20:13 ` Martin Blumenstingl
2023-02-13 10:54 ` Krzysztof Kozlowski
2023-02-09 13:41 ` [PATCH 3/6] dt-bindings: soc: amlogic: document System Control registers Neil Armstrong
2023-02-11 20:25 ` Martin Blumenstingl
2023-02-13 10:59 ` Krzysztof Kozlowski [this message]
2023-02-09 13:41 ` [PATCH 4/6] dt-bindings: soc: amlogic: convert amlogic,gxbb-clkc.txt to dt-schema Neil Armstrong
2023-02-13 11:01 ` Krzysztof Kozlowski
2023-02-09 13:41 ` [PATCH 5/6] dt-bindings: soc: amlogic: convert amlogic,gxbb-aoclkc.txt " Neil Armstrong
2023-02-13 11:05 ` Krzysztof Kozlowski
2023-02-09 13:41 ` [PATCH 6/6] dt-bindings: soc: amlogic: update sysctrl clock-controller subnode type Neil Armstrong
2023-02-13 11:00 ` Krzysztof Kozlowski
2023-02-13 11:03 ` Neil Armstrong
2023-02-13 11:06 ` Krzysztof Kozlowski
2023-03-06 8:39 ` (subset) [PATCH 0/6] dt-bindings: second batch of dt-schema conversions for Amlogic Meson bindings Neil Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10ddd574-3ad1-f2e7-e7b4-a6803ee240d6@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).