soc: amlogic: switch bindings to yaml and adjust some dtbs's
Subsystems (4)
cover soc: amlogic: switch bindings to yaml and adjust some dtbs's
Switch two Amlogic Meson bindings to yaml. As prerequisite adjust the order of some compatibles first.
New versions of the bindings have been submitted as individual patches in between. Put it into a series again.
Heiner Kallweit (4):
arm: dts: meson: adjust order of some compatibles
arm64: dts: meson: adjust order of some compatibles
dt-bindings: pwm: Convert Amlogic Meson PWM binding
dt-bindings: interrupt-controller: Convert Amlogic Meson GPIO
interrupt controller binding
.../amlogic,meson-gpio-intc.txt | 38 ---------- .../amlogic,meson-gpio-intc.yaml | 72 +++++++++++++++++++ .../devicetree/bindings/pwm/pwm-amlogic.yaml | 70 ++++++++++++++++++ .../devicetree/bindings/pwm/pwm-meson.txt | 29 -------- arch/arm/boot/dts/meson8b.dtsi | 4 +- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 4 +- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 4 +- 7 files changed, 148 insertions(+), 73 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml create mode 100644 Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-meson.txt
Signature · 1 line
2.39.1
PATCH 1/4 arm: dts: meson: adjust order of some compatibles
During review of a new yaml binding, affecting these dts, it turned out that some compatibles aren't ordered as they should be. Order should be most specific to least specific.
--- arch/arm/boot/dts/meson8b.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/meson8b.dtsi +2 -2
@@ -580,8 +580,8 @@ ðmac { }; &gpio_intc { - compatible = "amlogic,meson-gpio-intc", - "amlogic,meson8b-gpio-intc"; + compatible = "amlogic,meson8b-gpio-intc", + "amlogic,meson-gpio-intc"; status = "okay"; };
Signature · 1 line
2.39.1
Re: [PATCH 1/4] arm: dts: meson: adjust order of some compatibles
Quoted 15 lines · Heiner Kallweit
During review of a new yaml binding, affecting these dts, it turned out that some compatibles aren't ordered as they should be. Order should be most specific to least specific.
Suggested-by Rob Herring <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>--- arch/arm/boot/dts/meson8b.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/meson8b.dtsi +0
-0
arch/arm/boot/dts/meson8b.dtsi ðmac { · line 587
Quoted 10 lines
arch/arm/boot/dts/meson8b.dtsi +2
-2@@ -580,8 +580,8 @@ ðmac { }; &gpio_intc { - compatible = "amlogic,meson-gpio-intc", - "amlogic,meson8b-gpio-intc"; + compatible = "amlogic,meson8b-gpio-intc", + "amlogic,meson-gpio-intc"; status = "okay"; };
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Re: [PATCH 1/4] arm: dts: meson: adjust order of some compatibles
In reply to Heiner KallweitQuoted 7 lines · Heiner Kallweit
During review of a new yaml binding, affecting these dts, it turned out that some compatibles aren't ordered as they should be. Order should be most specific to least specific.
Suggested-by Rob Herring <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>
PATCH 2/4 arm64: dts: meson: adjust order of some compatibles
In reply to Heiner KallweitDuring review of a new yaml binding, affecting these dts, it turned out that some compatibles aren't ordered as they should be. Order should be most specific to least specific.
--- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 4 ++-- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +2 -2
@@ -300,8 +300,8 @@ ðmac { }; &gpio_intc { - compatible = "amlogic,meson-gpio-intc", - "amlogic,meson-gxbb-gpio-intc"; + compatible = "amlogic,meson-gxbb-gpio-intc", + "amlogic,meson-gpio-intc"; status = "okay"; };
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +2 -2
@@ -312,8 +312,8 @@ &clkc_AO { }; &gpio_intc { - compatible = "amlogic,meson-gpio-intc", - "amlogic,meson-gxl-gpio-intc"; + compatible = "amlogic,meson-gxl-gpio-intc", + "amlogic,meson-gpio-intc"; status = "okay"; };
Signature · 1 line
2.39.1
Re: [PATCH 2/4] arm64: dts: meson: adjust order of some compatibles
Quoted 31 lines · Heiner Kallweit
During review of a new yaml binding, affecting these dts, it turned out that some compatibles aren't ordered as they should be. Order should be most specific to least specific.
Suggested-by Rob Herring <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>--- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 4 ++-- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +2
-2@@ -300,8 +300,8 @@ ðmac { }; &gpio_intc { - compatible = "amlogic,meson-gpio-intc", - "amlogic,meson-gxbb-gpio-intc"; + compatible = "amlogic,meson-gxbb-gpio-intc", + "amlogic,meson-gpio-intc"; status = "okay"; };arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +0
-0
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi &clkc_AO { · line 319
Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +2
-2@@ -312,8 +312,8 @@ &clkc_AO { }; &gpio_intc { - compatible = "amlogic,meson-gpio-intc", - "amlogic,meson-gxl-gpio-intc"; + compatible = "amlogic,meson-gxl-gpio-intc", + "amlogic,meson-gpio-intc"; status = "okay"; };
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Re: [PATCH 2/4] arm64: dts: meson: adjust order of some compatibles
In reply to Heiner KallweitQuoted 7 lines · Heiner Kallweit
During review of a new yaml binding, affecting these dts, it turned out that some compatibles aren't ordered as they should be. Order should be most specific to least specific.
Suggested-by Rob Herring <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>
PATCH 3/4 dt-bindings: pwm: Convert Amlogic Meson PWM binding
In reply to Heiner KallweitConvert Amlogic Meson PWM binding to yaml.
--- .../devicetree/bindings/pwm/pwm-amlogic.yaml | 70 +++++++++++++++++++ .../devicetree/bindings/pwm/pwm-meson.txt | 29 -------- 2 files changed, 70 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-meson.txt
Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml new file +70 -0
@@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/pwm-amlogic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic PWM + +maintainers: + - Heiner Kallweit <[email protected]> + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + oneOf: + - enum: + - amlogic,meson8b-pwm + - amlogic,meson-gxbb-pwm + - amlogic,meson-gxbb-ao-pwm + - amlogic,meson-axg-ee-pwm + - amlogic,meson-axg-ao-pwm + - amlogic,meson-g12a-ee-pwm + - amlogic,meson-g12a-ao-pwm-ab + - amlogic,meson-g12a-ao-pwm-cd + - amlogic,meson-s4-pwm + - items: + - const: amlogic,meson-gx-pwm + - const: amlogic,meson-gxbb-pwm + - items: + - const: amlogic,meson-gx-ao-pwm + - const: amlogic,meson-gxbb-ao-pwm + - items: + - const: amlogic,meson8-pwm + - const: amlogic,meson8b-pwm + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + oneOf: + - items: + - enum: [clkin0, clkin1] + - items: + - const: clkin0 + - const: clkin1 + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pwm@8550 { + compatible = "amlogic,meson-gxbb-pwm"; + reg = <0x08550 0x10>; + clocks = <&xtal>, <&xtal>; + clock-names = "clkin0", "clkin1"; + #pwm-cells = <3>; + };
Documentation/devicetree/bindings/pwm/pwm-meson.txt deleted +0 -29
@@ -1,29 +0,0 @@ -Amlogic Meson PWM Controller -============================ - -Required properties: -- compatible: Shall contain "amlogic,meson8b-pwm" - or "amlogic,meson-gxbb-pwm" - or "amlogic,meson-gxbb-ao-pwm" - or "amlogic,meson-axg-ee-pwm" - or "amlogic,meson-axg-ao-pwm" - or "amlogic,meson-g12a-ee-pwm" - or "amlogic,meson-g12a-ao-pwm-ab" - or "amlogic,meson-g12a-ao-pwm-cd" -- #pwm-cells: Should be 3. See pwm.yaml in this directory for a description of - the cells format. - -Optional properties: -- clocks: Could contain one or two parents clocks phandle for each of the two - PWM channels. -- clock-names: Could contain at least the "clkin0" and/or "clkin1" names. - -Example: - - pwm_ab: pwm@8550 { - compatible = "amlogic,meson-gxbb-pwm"; - reg = <0x0 0x08550 0x0 0x10>; - #pwm-cells = <3>; - clocks = <&xtal>, <&xtal>; - clock-names = "clkin0", "clkin1"; - }
Signature · 1 line
2.39.1
Re: [PATCH 3/4] dt-bindings: pwm: Convert Amlogic Meson PWM binding
Hello,
Quoted 4 lines · Heiner Kallweit
Convert Amlogic Meson PWM binding to yaml.
Reviewed-by Rob Herring <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>
How is supposed to pick up this patch? Does it go in together with the other patches in this series via amlogic/arm; or is there an expectation that it enters via PWM?
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Re: [PATCH 3/4] dt-bindings: pwm: Convert Amlogic Meson PWM binding
Quoted 12 lines · Uwe Kleine-König
Hello,
Quoted 4 lines · Heiner Kallweit
Convert Amlogic Meson PWM binding to yaml.
Reviewed-by Rob Herring <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>How is supposed to pick up this patch? Does it go in together with the other patches in this series via amlogic/arm; or is there an expectation that it enters via PWM?
Neil,
are you going to take this via the amlogic tree?
Quoted 3 lines
Best regards
Uwe
Heiner
Neil Armstrong
maintainerRe: [PATCH 3/4] dt-bindings: pwm: Convert Amlogic Meson PWM binding
In reply to Uwe Kleine-KönigHi,
Quoted 11 lines · Uwe Kleine-König
Hello,
Quoted 4 lines · Heiner Kallweit
Convert Amlogic Meson PWM binding to yaml.
Reviewed-by Rob Herring <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>How is supposed to pick up this patch? Does it go in together with the other patches in this series via amlogic/arm; or is there an expectation that it enters via PWM?
I expect Thierry to pick it, if he can't I can take with his ack.
Neil
Quoted 4 lines
Best regards
Uwe
Re: [PATCH 3/4] dt-bindings: pwm: Convert Amlogic Meson PWM binding
In reply to Heiner KallweitHello,
Quoted 4 lines · Heiner Kallweit
Convert Amlogic Meson PWM binding to yaml.
Reviewed-by Rob Herring <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>
this is effectively v4 of
https://lore.kernel.org/linux-pwm/[email protected]
and the ony change compared to v3 is that you dropped "items:" (and reindented). I'll mark above v3 as superseeded in our patchwork, please scream if I got that wrong.
Other than that:
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
PATCH 4/4 dt-bindings: interrupt-controller: Convert Amlogic Meson GPIO interrupt controller binding
In reply to Heiner KallweitConvert Amlogic Meson GPIO interrupt controller binding to yaml.
---
- consider that more than one compatible may be set
- remove bus part from example
- remove minItem/maxItem properties for compatible
- reduce compatible fallback complexity
--- .../amlogic,meson-gpio-intc.txt | 38 ---------- .../amlogic,meson-gpio-intc.yaml | 72 +++++++++++++++++++ 2 files changed, 72 insertions(+), 38 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt deleted +0 -38
@@ -1,38 +0,0 @@ -Amlogic meson GPIO interrupt controller - -Meson SoCs contains an interrupt controller which is able to watch the SoC -pads and generate an interrupt on edge or level. The controller is essentially -a 256 pads to 8 GIC interrupt multiplexer, with a filter block to select edge -or level and polarity. It does not expose all 256 mux inputs because the -documentation shows that the upper part is not mapped to any pad. The actual -number of interrupt exposed depends on the SoC. - -Required properties: - -- compatible : must have "amlogic,meson8-gpio-intc" and either - "amlogic,meson8-gpio-intc" for meson8 SoCs (S802) or - "amlogic,meson8b-gpio-intc" for meson8b SoCs (S805) or - "amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or - "amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912) - "amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X) - "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2) - "amlogic,meson-sm1-gpio-intc" for SM1 SoCs (S905D3, S905X3, S905Y3) - "amlogic,meson-a1-gpio-intc" for A1 SoCs (A113L) - "amlogic,meson-s4-gpio-intc" for S4 SoCs (S802X2, S905Y4, S805X2G, S905W2) -- reg : Specifies base physical address and size of the registers. -- interrupt-controller : Identifies the node as an interrupt controller. -- #interrupt-cells : Specifies the number of cells needed to encode an - interrupt source. The value must be 2. -- meson,channel-interrupts: Array with the 8 upstream hwirq numbers. These - are the hwirqs used on the parent interrupt controller. - -Example: - -gpio_interrupt: interrupt-controller@9880 { - compatible = "amlogic,meson-gxbb-gpio-intc", - "amlogic,meson-gpio-intc"; - reg = <0x0 0x9880 0x0 0x10>; - interrupt-controller; - #interrupt-cells = <2>; - meson,channel-interrupts = <64 65 66 67 68 69 70 71>; -};
Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml new file +72 -0
72 lines not on this page · raw message
Signature · 1 line
2.39.1
Re: [PATCH 4/4] dt-bindings: interrupt-controller: Convert Amlogic Meson GPIO interrupt controller binding
Quoted 8 lines · Heiner Kallweit
Convert Amlogic Meson GPIO interrupt controller binding to yaml.
Signed-off-by Heiner Kallweit <[email protected]>---
- consider that more than one compatible may be set
- remove bus part from example
- remove minItem/maxItem properties for compatible
- reduce compatible fallback complexity
Quoted 7 lines
--- .../amlogic,meson-gpio-intc.txt | 38 ---------- .../amlogic,meson-gpio-intc.yaml | 72 +++++++++++++++++++ 2 files changed, 72 insertions(+), 38 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml
Re: (subset) [PATCH 0/4] soc: amlogic: switch bindings to yaml and adjust some dtbs's
In reply to Heiner KallweitHi,
Quoted 6 lines · Heiner Kallweit
Switch two Amlogic Meson bindings to yaml. As prerequisite adjust the order of some compatibles first.
New versions of the bindings have been submitted as individual patches in between. Put it into a series again.
Quoted 8 lines
Heiner Kallweit (4):
arm: dts: meson: adjust order of some compatibles
arm64: dts: meson: adjust order of some compatibles
dt-bindings: pwm: Convert Amlogic Meson PWM binding
dt-bindings: interrupt-controller: Convert Amlogic Meson GPIO
interrupt controller binding[...]
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.4/arm64-dt)
[2/4] arm64: dts: meson: adjust order of some compatibles
https://git.kernel.org/amlogic/c/4dcc844c99d3e47820f574911b495b58f7da1d94
These changes has been applied on the intermediate git tree [1].
The v6.4/arm64-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers for inclusion in their intermediate git branches in order to be sent to Linus during the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate kernel and as soon they appear on the Linux master branch they will be backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3], people are encouraged testing these pre-release kernels and report issues on the relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signature · 1 line
Neil
Re: (subset) [PATCH 0/4] soc: amlogic: switch bindings to yaml and adjust some dtbs's
In reply to Heiner KallweitHi,
Quoted 6 lines · Heiner Kallweit
Switch two Amlogic Meson bindings to yaml. As prerequisite adjust the order of some compatibles first.
New versions of the bindings have been submitted as individual patches in between. Put it into a series again.
Quoted 8 lines
Heiner Kallweit (4):
arm: dts: meson: adjust order of some compatibles
arm64: dts: meson: adjust order of some compatibles
dt-bindings: pwm: Convert Amlogic Meson PWM binding
dt-bindings: interrupt-controller: Convert Amlogic Meson GPIO
interrupt controller binding[...]
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.4/arm-dt)
[1/4] arm: dts: meson: adjust order of some compatibles
https://git.kernel.org/amlogic/c/0c187cca73291f2c355fae31eed3fc7aa783b2de
These changes has been applied on the intermediate git tree [1].
The v6.4/arm-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers for inclusion in their intermediate git branches in order to be sent to Linus during the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate kernel and as soon they appear on the Linux master branch they will be backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3], people are encouraged testing these pre-release kernels and report issues on the relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signature · 1 line
Neil