From: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: Lee Jones <lee.jones@linaro.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-serial@vger.kernel.org
Subject: Re: [PATCH 4/5] dt-bindings: mfd: samsung,exynos5433-lpass: Convert to dtschema
Date: Tue, 1 Feb 2022 11:38:05 -0600 [thread overview]
Message-ID: <Yflv/RaGyGyyr096@robh.at.kernel.org> (raw)
In-Reply-To: <20220129175332.298666-4-krzysztof.kozlowski@canonical.com>
On Sat, Jan 29, 2022 at 06:53:31PM +0100, Krzysztof Kozlowski wrote:
> Convert the Exynos5433 LPASS bindings to DT schema format.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---
> .../bindings/mfd/samsung,exynos5433-lpass.txt | 72 -----------
> .../mfd/samsung,exynos5433-lpass.yaml | 119 ++++++++++++++++++
> 2 files changed, 119 insertions(+), 72 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.txt
> create mode 100644 Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml
>
> diff --git a/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.txt b/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.txt
> deleted file mode 100644
> index 30ea27c3936d..000000000000
> --- a/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.txt
> +++ /dev/null
> @@ -1,72 +0,0 @@
> -Samsung Exynos SoC Low Power Audio Subsystem (LPASS)
> -
> -Required properties:
> -
> - - compatible : "samsung,exynos5433-lpass"
> - - reg : should contain the LPASS top SFR region location
> - and size
> - - clock-names : should contain following required clocks: "sfr0_ctrl"
> - - clocks : should contain clock specifiers of all clocks, which
> - input names have been specified in clock-names
> - property, in same order.
> - - #address-cells : should be 1
> - - #size-cells : should be 1
> - - ranges : must be present
> -
> -Each IP block of the Low Power Audio Subsystem should be specified as
> -an optional sub-node. For "samsung,exynos5433-lpass" compatible this includes:
> -UART, SLIMBUS, PCM, I2S, DMAC, Timers 0...4, VIC, WDT 0...1 devices.
> -
> -Bindings of the sub-nodes are described in:
> - ../serial/samsung_uart.yaml
> - ../sound/samsung-i2s.txt
> - ../dma/arm-pl330.txt
> -
> -
> -Example:
> -
> -audio-subsystem {
> - compatible = "samsung,exynos5433-lpass";
> - reg = <0x11400000 0x100>, <0x11500000 0x08>;
> - clocks = <&cmu_aud CLK_PCLK_SFR0_CTRL>;
> - clock-names = "sfr0_ctrl";
> - #address-cells = <1>;
> - #size-cells = <1>;
> - ranges;
> -
> - adma: adma@11420000 {
> - compatible = "arm,pl330", "arm,primecell";
> - reg = <0x11420000 0x1000>;
> - interrupts = <0 73 0>;
> - clocks = <&cmu_aud CLK_ACLK_DMAC>;
> - clock-names = "apb_pclk";
> - #dma-cells = <1>;
> - #dma-channels = <8>;
> - #dma-requests = <32>;
> - };
> -
> - i2s0: i2s0@11440000 {
> - compatible = "samsung,exynos7-i2s";
> - reg = <0x11440000 0x100>;
> - dmas = <&adma 0 &adma 2>;
> - dma-names = "tx", "rx";
> - interrupts = <0 70 0>;
> - clocks = <&cmu_aud CLK_PCLK_AUD_I2S>,
> - <&cmu_aud CLK_SCLK_AUD_I2S>,
> - <&cmu_aud CLK_SCLK_I2S_BCLK>;
> - clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
> - pinctrl-names = "default";
> - pinctrl-0 = <&i2s0_bus>;
> - };
> -
> - serial_3: serial@11460000 {
> - compatible = "samsung,exynos5433-uart";
> - reg = <0x11460000 0x100>;
> - interrupts = <0 67 0>;
> - clocks = <&cmu_aud CLK_PCLK_AUD_UART>,
> - <&cmu_aud CLK_SCLK_AUD_UART>;
> - clock-names = "uart", "clk_uart_baud0";
> - pinctrl-names = "default";
> - pinctrl-0 = <&uart_aud_bus>;
> - };
> - };
> diff --git a/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml b/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml
> new file mode 100644
> index 000000000000..96ef6113c8bf
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml
> @@ -0,0 +1,119 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/samsung,exynos5433-lpass.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Samsung Exynos SoC Low Power Audio Subsystem (LPASS)
> +
> +maintainers:
> + - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> + - Sylwester Nawrocki <s.nawrocki@samsung.com>
> +
> +properties:
> + compatible:
> + const: samsung,exynos5433-lpass
> +
> + '#address-cells':
> + const: 1
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + items:
> + - const: sfr0_ctrl
> +
> + power-domains:
> + maxItems: 1
> +
> + ranges: true
> +
> + reg:
> + minItems: 2
> + maxItems: 2
> +
> + '#size-cells':
> + const: 1
> +
> +patternProperties:
> + "^dma-controller@[0-9a-f]+$":
> + $ref: /schemas/dma/arm,pl330.yaml
> +
> + "^i2s@[0-9a-f]+$":
> + $ref: /schemas/sound/samsung-i2s.yaml
> +
> + "^serial@[0-9a-f]+$":
> + $ref: /schemas/serial/samsung_uart.yaml
> +
> +required:
> + - compatible
> + - '#address-cells'
> + - clocks
> + - clock-names
> + - ranges
> + - reg
> + - '#size-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/exynos5433.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + audio-subsystem@11400000 {
> + compatible = "samsung,exynos5433-lpass";
> + reg = <0x11400000 0x100>, <0x11500000 0x08>;
> + clocks = <&cmu_aud CLK_PCLK_SFR0_CTRL>;
> + clock-names = "sfr0_ctrl";
> + power-domains = <&pd_aud>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + dma-controller@11420000 {
> + compatible = "arm,pl330", "arm,primecell";
> + reg = <0x11420000 0x1000>;
> + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cmu_aud CLK_ACLK_DMAC>;
> + clock-names = "apb_pclk";
> + #dma-cells = <1>;
> + #dma-channels = <8>;
> + #dma-requests = <32>;
> + power-domains = <&pd_aud>;
> + };
> +
> + i2s@11440000 {
> + compatible = "samsung,exynos7-i2s";
> + reg = <0x11440000 0x100>;
> + dmas = <&adma 0>, <&adma 2>;
> + dma-names = "tx", "rx";
> + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&cmu_aud CLK_PCLK_AUD_I2S>,
> + <&cmu_aud CLK_SCLK_AUD_I2S>,
> + <&cmu_aud CLK_SCLK_I2S_BCLK>;
> + clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
> + #clock-cells = <1>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2s0_bus>;
> + power-domains = <&pd_aud>;
> + #sound-dai-cells = <1>;
> + status = "disabled";
Drop 'status'.
> + };
> +
> + serial@11460000 {
> + compatible = "samsung,exynos5433-uart";
> + reg = <0x11460000 0x100>;
> + interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cmu_aud CLK_PCLK_AUD_UART>,
> + <&cmu_aud CLK_SCLK_AUD_UART>;
> + clock-names = "uart", "clk_uart_baud0";
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart_aud_bus>;
> + power-domains = <&pd_aud>;
> + status = "disabled";
Ditto.
With that,
Reviewed-by: Rob Herring <robh@kernel.org>
next prev parent reply other threads:[~2022-02-01 17:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20220129175341epcas5p480a45065d3d6faee0e405a1efda46a1f@epcas5p4.samsung.com>
2022-01-29 17:53 ` [PATCH 1/5] arm64: dts: exynos: align pl330 node name with dtschema Krzysztof Kozlowski
2022-01-29 17:53 ` [PATCH 2/5] arm64: dts: exynos: drop unneeded syscon phandle in Exynos5433 LPASS Krzysztof Kozlowski
2022-01-30 7:34 ` Alim Akhtar
2022-01-31 9:02 ` (subset) " Krzysztof Kozlowski
2022-01-29 17:53 ` [PATCH 3/5] mfd: exynos-lpass: Drop unneeded syscon.h include Krzysztof Kozlowski
2022-01-30 7:36 ` Alim Akhtar
2022-01-29 17:53 ` [PATCH 4/5] dt-bindings: mfd: samsung,exynos5433-lpass: Convert to dtschema Krzysztof Kozlowski
2022-01-30 0:22 ` Rob Herring
2022-01-31 8:49 ` Krzysztof Kozlowski
2022-02-01 17:38 ` Rob Herring [this message]
2022-01-29 17:53 ` [PATCH 5/5] dt-bindings: serial: samsung_uart: Document Exynos5433 compatible Krzysztof Kozlowski
2022-01-30 7:39 ` Alim Akhtar
2022-02-01 17:36 ` Rob Herring
2022-01-30 7:17 ` [PATCH 1/5] arm64: dts: exynos: align pl330 node name with dtschema Alim Akhtar
2022-01-30 7:20 ` Alim Akhtar
2022-01-31 9:02 ` (subset) " Krzysztof Kozlowski
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=Yflv/RaGyGyyr096@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=alim.akhtar@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzysztof.kozlowski@canonical.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=s.nawrocki@samsung.com \
/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).