From: Rob Herring <robh@kernel.org>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH v10 1/7] dt-bindings: soc: Add Aspeed XDMA Engine
Date: Wed, 22 Apr 2020 15:13:25 -0500 [thread overview]
Message-ID: <20200422201325.GA12023@bogus> (raw)
In-Reply-To: <20200420202611.17776-2-eajames@linux.ibm.com>
On Mon, Apr 20, 2020 at 03:26:05PM -0500, Eddie James wrote:
> Document the bindings for the Aspeed AST25XX and AST26XX XDMA engine.
>
> Signed-off-by: Eddie James <eajames@linux.ibm.com>
> Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
> ---
> .../devicetree/bindings/soc/aspeed/xdma.yaml | 108 ++++++++++++++++++
> MAINTAINERS | 6 +
> 2 files changed, 114 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/soc/aspeed/xdma.yaml
>
> diff --git a/Documentation/devicetree/bindings/soc/aspeed/xdma.yaml b/Documentation/devicetree/bindings/soc/aspeed/xdma.yaml
> new file mode 100644
> index 000000000000..428a575da1be
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/aspeed/xdma.yaml
> @@ -0,0 +1,108 @@
> +# SPDX-License-Identifier: (GPL-2.0-or-later)
Dual license new bindings please:
(GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/aspeed/xdma.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Aspeed AST25XX and AST26XX XDMA Engine
> +
> +maintainers:
> + - Eddie James <eajames@linux.ibm.com>
> +
> +description: |
> + This binding describes the XDMA Engine embedded in the AST2500 and AST2600
> + SOCs. The XDMA engine can perform automatic DMA operations over PCI between
> + the SOC (acting as a BMC) and a host processor.
> +
> +properties:
> + compatible:
> + enum:
> + - aspeed,ast2500-xdma
> + - aspeed,ast2600-xdma
> +
> + reg:
> + items:
> + - description: engine register space
That's all 'reg' properties. You don't need a description for a
single entry. Just:
reg:
maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + resets:
> + minItems: 1
> + maxItems: 2
> +
> + reset-names:
> + maxItems: 2
> + items:
> + - const: device
> + - const: root-complex
> +
> + interrupts-extended:
Just use 'interrupts'. The tools fix things up so both work.
> + maxItems: 2
> + items:
> + - description: global interrupt for the XDMA engine
> + - description: PCI-E reset or PERST interrupt
> +
> + aspeed,scu:
> + description: a reference to the System Control Unit node of the Aspeed SOC.
> + allOf:
> + - $ref: /schemas/types.yaml#/definitions/phandle
> +
> + aspeed,pcie-device:
> + description: describes which PCI-E device the XDMA engine should use
> + allOf:
> + - $ref: /schemas/types.yaml#/definitions/string
> + - oneOf:
> + - items:
> + - const: bmc
> + - items:
> + - const: vga
The oneOf (inclusive) can be just:
enum: [ bmc, vga ]
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - resets
> + - interrupts-extended
> + - aspeed,scu
> + - memory-region
> +
> +if:
> + properties:
> + compatible:
> + contains:
> + const: aspeed,ast2600-xdma
> +then:
> + required:
> + - reset-names
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/ast2600-clock.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/interrupt-controller/aspeed-scu-ic.h>
> + syscon: syscon at 1e6e2000 {
> + reg = <0x1e6e2000 0x1000>;
> + ranges = <0 0x1e6e2000 0x1000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + #clock-cells = <1>;
> + #reset-cells = <1>;
> + scu_ic0: interrupt-controller at 560 {
> + reg = <0x560 0x4>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + };
> + };
> + xdma at 1e6e7000 {
> + compatible = "aspeed,ast2600-xdma";
> + reg = <0x1e6e7000 0x100>;
> + clocks = <&syscon ASPEED_CLK_GATE_BCLK>;
> + resets = <&syscon ASPEED_RESET_DEV_XDMA>, <&syscon ASPEED_RESET_RC_XDMA>;
> + reset-names = "device", "root-complex";
> + interrupts-extended = <&gic GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
> + <&scu_ic0 ASPEED_AST2600_SCU_IC0_PCIE_PERST_LO_TO_HI>;
> + aspeed,scu = <&syscon>;
> + aspeed,pcie-device = "bmc";
> + memory-region = <&vga_memory>;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index ecd7def6ff4b..b1963e01a75e 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -2774,6 +2774,12 @@ S: Maintained
> F: Documentation/devicetree/bindings/media/aspeed-video.txt
> F: drivers/media/platform/aspeed-video.c
>
> +ASPEED XDMA ENGINE DRIVER
> +M: Eddie James <eajames@linux.ibm.com>
> +L: linux-aspeed at lists.ozlabs.org (moderated for non-subscribers)
> +S: Maintained
> +F: Documentation/devicetree/bindings/soc/aspeed/xdma.yaml
> +
> ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS
> M: Corentin Chary <corentin.chary@gmail.com>
> L: acpi4asus-user at lists.sourceforge.net
> --
> 2.24.0
>
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Eddie James <eajames@linux.ibm.com>
Cc: linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, joel@jms.id.au, andrew@aj.id.au
Subject: Re: [PATCH v10 1/7] dt-bindings: soc: Add Aspeed XDMA Engine
Date: Wed, 22 Apr 2020 15:13:25 -0500 [thread overview]
Message-ID: <20200422201325.GA12023@bogus> (raw)
In-Reply-To: <20200420202611.17776-2-eajames@linux.ibm.com>
On Mon, Apr 20, 2020 at 03:26:05PM -0500, Eddie James wrote:
> Document the bindings for the Aspeed AST25XX and AST26XX XDMA engine.
>
> Signed-off-by: Eddie James <eajames@linux.ibm.com>
> Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
> ---
> .../devicetree/bindings/soc/aspeed/xdma.yaml | 108 ++++++++++++++++++
> MAINTAINERS | 6 +
> 2 files changed, 114 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/soc/aspeed/xdma.yaml
>
> diff --git a/Documentation/devicetree/bindings/soc/aspeed/xdma.yaml b/Documentation/devicetree/bindings/soc/aspeed/xdma.yaml
> new file mode 100644
> index 000000000000..428a575da1be
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/aspeed/xdma.yaml
> @@ -0,0 +1,108 @@
> +# SPDX-License-Identifier: (GPL-2.0-or-later)
Dual license new bindings please:
(GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/aspeed/xdma.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Aspeed AST25XX and AST26XX XDMA Engine
> +
> +maintainers:
> + - Eddie James <eajames@linux.ibm.com>
> +
> +description: |
> + This binding describes the XDMA Engine embedded in the AST2500 and AST2600
> + SOCs. The XDMA engine can perform automatic DMA operations over PCI between
> + the SOC (acting as a BMC) and a host processor.
> +
> +properties:
> + compatible:
> + enum:
> + - aspeed,ast2500-xdma
> + - aspeed,ast2600-xdma
> +
> + reg:
> + items:
> + - description: engine register space
That's all 'reg' properties. You don't need a description for a
single entry. Just:
reg:
maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + resets:
> + minItems: 1
> + maxItems: 2
> +
> + reset-names:
> + maxItems: 2
> + items:
> + - const: device
> + - const: root-complex
> +
> + interrupts-extended:
Just use 'interrupts'. The tools fix things up so both work.
> + maxItems: 2
> + items:
> + - description: global interrupt for the XDMA engine
> + - description: PCI-E reset or PERST interrupt
> +
> + aspeed,scu:
> + description: a reference to the System Control Unit node of the Aspeed SOC.
> + allOf:
> + - $ref: /schemas/types.yaml#/definitions/phandle
> +
> + aspeed,pcie-device:
> + description: describes which PCI-E device the XDMA engine should use
> + allOf:
> + - $ref: /schemas/types.yaml#/definitions/string
> + - oneOf:
> + - items:
> + - const: bmc
> + - items:
> + - const: vga
The oneOf (inclusive) can be just:
enum: [ bmc, vga ]
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - resets
> + - interrupts-extended
> + - aspeed,scu
> + - memory-region
> +
> +if:
> + properties:
> + compatible:
> + contains:
> + const: aspeed,ast2600-xdma
> +then:
> + required:
> + - reset-names
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/ast2600-clock.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/interrupt-controller/aspeed-scu-ic.h>
> + syscon: syscon@1e6e2000 {
> + reg = <0x1e6e2000 0x1000>;
> + ranges = <0 0x1e6e2000 0x1000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + #clock-cells = <1>;
> + #reset-cells = <1>;
> + scu_ic0: interrupt-controller@560 {
> + reg = <0x560 0x4>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + };
> + };
> + xdma@1e6e7000 {
> + compatible = "aspeed,ast2600-xdma";
> + reg = <0x1e6e7000 0x100>;
> + clocks = <&syscon ASPEED_CLK_GATE_BCLK>;
> + resets = <&syscon ASPEED_RESET_DEV_XDMA>, <&syscon ASPEED_RESET_RC_XDMA>;
> + reset-names = "device", "root-complex";
> + interrupts-extended = <&gic GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
> + <&scu_ic0 ASPEED_AST2600_SCU_IC0_PCIE_PERST_LO_TO_HI>;
> + aspeed,scu = <&syscon>;
> + aspeed,pcie-device = "bmc";
> + memory-region = <&vga_memory>;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index ecd7def6ff4b..b1963e01a75e 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -2774,6 +2774,12 @@ S: Maintained
> F: Documentation/devicetree/bindings/media/aspeed-video.txt
> F: drivers/media/platform/aspeed-video.c
>
> +ASPEED XDMA ENGINE DRIVER
> +M: Eddie James <eajames@linux.ibm.com>
> +L: linux-aspeed@lists.ozlabs.org (moderated for non-subscribers)
> +S: Maintained
> +F: Documentation/devicetree/bindings/soc/aspeed/xdma.yaml
> +
> ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS
> M: Corentin Chary <corentin.chary@gmail.com>
> L: acpi4asus-user@lists.sourceforge.net
> --
> 2.24.0
>
next prev parent reply other threads:[~2020-04-22 20:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 20:26 [PATCH v10 0/7] soc: aspeed: Add XDMA engine driver Eddie James
2020-04-20 20:26 ` Eddie James
2020-04-20 20:26 ` [PATCH v10 1/7] dt-bindings: soc: Add Aspeed XDMA Engine Eddie James
2020-04-20 20:26 ` Eddie James
2020-04-22 20:13 ` Rob Herring [this message]
2020-04-22 20:13 ` Rob Herring
2020-04-20 20:26 ` [PATCH v10 2/7] soc: aspeed: Add XDMA Engine Driver Eddie James
2020-04-20 20:26 ` Eddie James
2020-04-20 20:26 ` [PATCH v10 3/7] soc: aspeed: xdma: Add user interface Eddie James
2020-04-20 20:26 ` Eddie James
2020-04-20 20:26 ` [PATCH v10 4/7] soc: aspeed: xdma: Add reset ioctl Eddie James
2020-04-20 20:26 ` Eddie James
2020-04-20 20:26 ` [PATCH v10 5/7] ARM: dts: Aspeed: AST2600: Add XDMA PCI-E root control reset Eddie James
2020-04-20 20:26 ` Eddie James
2020-04-20 20:26 ` [PATCH v10 6/7] ARM: dts: Aspeed: AST2500: Add missing SCU interrupt controller include Eddie James
2020-04-20 20:26 ` Eddie James
2020-04-20 20:26 ` [PATCH v10 7/7] ARM: dts: Aspeed: AST2600: " Eddie James
2020-04-20 20:26 ` Eddie James
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=20200422201325.GA12023@bogus \
--to=robh@kernel.org \
--cc=linux-aspeed@lists.ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.