2022-09-02 06:05:03

by Neal Liu

[permalink] [raw]
Subject: [PATCH v1 4/4] dt-bindings: bus: add documentation for Aspeed AHBC

Add device tree binding documentation for the Aspeed
Advanced High-Performance Bus (AHB) Controller.

Signed-off-by: Neal Liu <[email protected]>
---
.../bindings/bus/aspeed,ast2600-ahbc.yaml | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml

diff --git a/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml b/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
new file mode 100644
index 000000000000..ca09eb531666
--- /dev/null
+++ b/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/bus/aspeed,ast2600-ahbc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ASPEED Advanced High-Performance Bus Controller (AHBC) Device Tree Bindings
+
+maintainers:
+ - Neal Liu <[email protected]>
+ - Chia-Wei Wang <[email protected]>
+
+description: |
+ Advanced High-performance Bus Controller (AHBC) supports plenty of mechanisms
+ including a priority arbiter, an address decoder and a data multiplexer
+ to control the overall operations of Advanced Highperformance
+ Bus (AHB). AHB is the main system bus for ARM CPU to communicate with the
+ related peripherals.
+
+properties:
+ compatible:
+ enum:
+ - aspeed,ast2600-ahbc
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ ahbc: bus@1e600000 {
+ compatible = "aspeed,ast2600-ahbc";
+ reg = <0x1e600000 0x100>;
+ };
--
2.25.1


2022-09-07 20:56:18

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH v1 4/4] dt-bindings: bus: add documentation for Aspeed AHBC

On Fri, Sep 02, 2022 at 02:00:12PM +0800, Neal Liu wrote:
> Add device tree binding documentation for the Aspeed
> Advanced High-Performance Bus (AHB) Controller.
>
> Signed-off-by: Neal Liu <[email protected]>
> ---
> .../bindings/bus/aspeed,ast2600-ahbc.yaml | 39 +++++++++++++++++++
> 1 file changed, 39 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
>
> diff --git a/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml b/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
> new file mode 100644
> index 000000000000..ca09eb531666
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/bus/aspeed,ast2600-ahbc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ASPEED Advanced High-Performance Bus Controller (AHBC) Device Tree Bindings
> +
> +maintainers:
> + - Neal Liu <[email protected]>
> + - Chia-Wei Wang <[email protected]>
> +
> +description: |
> + Advanced High-performance Bus Controller (AHBC) supports plenty of mechanisms
> + including a priority arbiter, an address decoder and a data multiplexer
> + to control the overall operations of Advanced Highperformance

High-performance

> + Bus (AHB). AHB is the main system bus for ARM CPU to communicate with the
> + related peripherals.
> +
> +properties:
> + compatible:
> + enum:
> + - aspeed,ast2600-ahbc
> +
> + reg:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + ahbc: bus@1e600000 {
> + compatible = "aspeed,ast2600-ahbc";
> + reg = <0x1e600000 0x100>;

Shouldn't devices on the bus be child nodes?

> + };
> --
> 2.25.1
>
>

2022-09-08 03:37:13

by Neal Liu

[permalink] [raw]
Subject: RE: [PATCH v1 4/4] dt-bindings: bus: add documentation for Aspeed AHBC

> On Fri, Sep 02, 2022 at 02:00:12PM +0800, Neal Liu wrote:
> > Add device tree binding documentation for the Aspeed Advanced
> > High-Performance Bus (AHB) Controller.
> >
> > Signed-off-by: Neal Liu <[email protected]>
> > ---
> > .../bindings/bus/aspeed,ast2600-ahbc.yaml | 39
> +++++++++++++++++++
> > 1 file changed, 39 insertions(+)
> > create mode 100644
> > Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
> >
> > diff --git
> > a/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
> > b/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
> > new file mode 100644
> > index 000000000000..ca09eb531666
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml
> > @@ -0,0 +1,39 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/bus/aspeed,ast2600-ahbc.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: ASPEED Advanced High-Performance Bus Controller (AHBC) Device
> > +Tree Bindings
> > +
> > +maintainers:
> > + - Neal Liu <[email protected]>
> > + - Chia-Wei Wang <[email protected]>
> > +
> > +description: |
> > + Advanced High-performance Bus Controller (AHBC) supports plenty of
> > +mechanisms
> > + including a priority arbiter, an address decoder and a data
> > +multiplexer
> > + to control the overall operations of Advanced Highperformance
>
> High-performance
>
> > + Bus (AHB). AHB is the main system bus for ARM CPU to communicate
> > + with the related peripherals.
> > +
> > +properties:
> > + compatible:
> > + enum:
> > + - aspeed,ast2600-ahbc
> > +
> > + reg:
> > + maxItems: 1
> > +
> > +required:
> > + - compatible
> > + - reg
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + ahbc: bus@1e600000 {
> > + compatible = "aspeed,ast2600-ahbc";
> > + reg = <0x1e600000 0x100>;
>
> Shouldn't devices on the bus be child nodes?

Yes, I miss this part, I'll update it.
Thanks.

> > + };
> > --
> > 2.25.1
> >
> >