public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings
@ 2021-01-01 18:01 Aleksander Jan Bajkowski
  2021-01-11 22:22 ` Rob Herring
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Aleksander Jan Bajkowski @ 2021-01-01 18:01 UTC (permalink / raw)
  To: tsbogend, robh+dt, john, linux-mips, devicetree, linux-kernel
  Cc: Aleksander Jan Bajkowski

Document the Lantiq Xway SoC series Clock Generation Unit (CGU) bindings.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
 .../bindings/mips/lantiq/lantiq,cgu.yaml      | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,cgu.yaml

diff --git a/Documentation/devicetree/bindings/mips/lantiq/lantiq,cgu.yaml b/Documentation/devicetree/bindings/mips/lantiq/lantiq,cgu.yaml
new file mode 100644
index 000000000000..d5805725befb
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,cgu.yaml
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mips/lantiq/lantiq,cgu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Lantiq Xway SoC series Clock Generation Unit (CGU)
+
+maintainers:
+  - John Crispin <john@phrozen.org>
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - lantiq,cgu-xway
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    cgu@103000 {
+        compatible = "lantiq,cgu-xway";
+        reg = <0x103000 0x1000>;
+    };
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings
  2021-01-01 18:01 [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings Aleksander Jan Bajkowski
@ 2021-01-11 22:22 ` Rob Herring
  2021-01-13 10:09 ` Thomas Bogendoerfer
  2021-01-16 20:29 ` Martin Blumenstingl
  2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2021-01-11 22:22 UTC (permalink / raw)
  To: Aleksander Jan Bajkowski
  Cc: tsbogend, robh+dt, linux-mips, devicetree, john, linux-kernel

On Fri, 01 Jan 2021 19:01:18 +0100, Aleksander Jan Bajkowski wrote:
> Document the Lantiq Xway SoC series Clock Generation Unit (CGU) bindings.
> 
> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> ---
>  .../bindings/mips/lantiq/lantiq,cgu.yaml      | 32 +++++++++++++++++++
>  1 file changed, 32 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,cgu.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings
  2021-01-01 18:01 [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings Aleksander Jan Bajkowski
  2021-01-11 22:22 ` Rob Herring
@ 2021-01-13 10:09 ` Thomas Bogendoerfer
  2021-01-16 20:29 ` Martin Blumenstingl
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Bogendoerfer @ 2021-01-13 10:09 UTC (permalink / raw)
  To: Aleksander Jan Bajkowski
  Cc: robh+dt, john, linux-mips, devicetree, linux-kernel

On Fri, Jan 01, 2021 at 07:01:18PM +0100, Aleksander Jan Bajkowski wrote:
> Document the Lantiq Xway SoC series Clock Generation Unit (CGU) bindings.
> 
> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> ---
>  .../bindings/mips/lantiq/lantiq,cgu.yaml      | 32 +++++++++++++++++++
>  1 file changed, 32 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,cgu.yaml

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings
  2021-01-01 18:01 [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings Aleksander Jan Bajkowski
  2021-01-11 22:22 ` Rob Herring
  2021-01-13 10:09 ` Thomas Bogendoerfer
@ 2021-01-16 20:29 ` Martin Blumenstingl
  2 siblings, 0 replies; 4+ messages in thread
From: Martin Blumenstingl @ 2021-01-16 20:29 UTC (permalink / raw)
  To: olek2; +Cc: devicetree, john, linux-kernel, linux-mips, robh+dt, tsbogend

(sorry for only seeing this late)

[...]
> +maintainers:
> +  - John Crispin <john@phrozen.org>
personally I think we should get at least John's Acked-by but I don't
know if there's any rule for adding a dt-binding for some other
maintainer

[...]
> +required:
> +  - compatible
> +  - reg
based on "DOs and DON’Ts for designing and writing Devicetree bindings"
from [0] I think this is incomplete
As far as I know CGU contains some PLLs. These PLLs need at least one
input: the main XTAL which is found on the board

Also the Lantiq code does not use the common clock framework yet. Once
that's used we also need #clock-cells = <1>. I don't know if that
should be added already (or not).

> +examples:
> +  - |
> +    cgu@103000 {
this should be clock-controller@...


Best regards,
Martin


[0] https://www.kernel.org/doc/html/latest/devicetree/bindings/writing-bindings.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-16 20:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-01 18:01 [PATCH] dt-bindings: mips: lantiq: Document Lantiq Xway CGU bindings Aleksander Jan Bajkowski
2021-01-11 22:22 ` Rob Herring
2021-01-13 10:09 ` Thomas Bogendoerfer
2021-01-16 20:29 ` Martin Blumenstingl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox