linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] dt-bindings: mips: lantiq: Document lantiq dcdc binding
@ 2025-08-18 21:37 Aleksander Jan Bajkowski
  2025-08-19 17:56 ` Conor Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-08-18 21:37 UTC (permalink / raw)
  To: tsbogend, robh, krzk+dt, conor+dt, olek2, linux-mips, devicetree,
	linux-kernel

Lantiq DCDC is a voltage converter with a voltage sensor. The converter
is inside the SoC. This driver only reads the voltage and prints it at
startup. The voltage supplied by this converter powers one of the power
domains. It powers the CPU core and probably other peripherals as well.
The voltage is programmed by the bootloader and Linux never touches it.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
v3:
- extended commit description
v2:
- added missing commit description
---
 .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.yaml

diff --git a/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.yaml b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.yaml
new file mode 100644
index 000000000000..d951012392bf
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mips/lantiq/lantiq,dcdc-xrx200.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Lantiq DCDC (DC-DC converter with voltage sensor)
+
+maintainers:
+  - Aleksander Jan Bajkowski <olek2@wp.pl>
+
+description:
+  Lantiq DCDC is a voltage converter with a voltage sensor. The converter is
+  inside the xRX200 SoC. This driver only reads the voltage and prints it at
+  startup. The voltage supplied by this converter powers one of the power
+  domains. It powers the CPU core and probably other peripherals as well.
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - lantiq,dcdc-xrx200
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    dcdc@106a00 {
+        compatible = "lantiq,dcdc-xrx200";
+        reg = <0x106a00 0x200>;
+    };
-- 
2.47.2


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

* Re: [PATCH v3] dt-bindings: mips: lantiq: Document lantiq dcdc binding
  2025-08-18 21:37 [PATCH v3] dt-bindings: mips: lantiq: Document lantiq dcdc binding Aleksander Jan Bajkowski
@ 2025-08-19 17:56 ` Conor Dooley
  0 siblings, 0 replies; 2+ messages in thread
From: Conor Dooley @ 2025-08-19 17:56 UTC (permalink / raw)
  To: Aleksander Jan Bajkowski
  Cc: tsbogend, robh, krzk+dt, conor+dt, linux-mips, devicetree,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2412 bytes --]

On Mon, Aug 18, 2025 at 11:37:28PM +0200, Aleksander Jan Bajkowski wrote:
> Lantiq DCDC is a voltage converter with a voltage sensor. The converter
> is inside the SoC. This driver only reads the voltage and prints it at
> startup. The voltage supplied by this converter powers one of the power
> domains. It powers the CPU core and probably other peripherals as well.
> The voltage is programmed by the bootloader and Linux never touches it.
> 
> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> ---
> v3:
> - extended commit description
> v2:
> - added missing commit description
> ---
>  .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 38 +++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.yaml
> 
> diff --git a/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.yaml b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.yaml
> new file mode 100644
> index 000000000000..d951012392bf
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.yaml

Still in a weird directory, why isn't this under regulators?

> @@ -0,0 +1,38 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mips/lantiq/lantiq,dcdc-xrx200.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Lantiq DCDC (DC-DC converter with voltage sensor)
> +
> +maintainers:
> +  - Aleksander Jan Bajkowski <olek2@wp.pl>
> +
> +description:
> +  Lantiq DCDC is a voltage converter with a voltage sensor. The converter is
> +  inside the xRX200 SoC. This driver only reads the voltage and prints it at
> +  startup. The voltage supplied by this converter powers one of the power
> +  domains. It powers the CPU core and probably other peripherals as well.
> +
> +properties:
> +  compatible:
> +    items:
> +      - enum:
> +          - lantiq,dcdc-xrx200

An items list containing one element doesn't do anything, just get rid
of it and use enum directly.

> +
> +  reg:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    dcdc@106a00 {
> +        compatible = "lantiq,dcdc-xrx200";
> +        reg = <0x106a00 0x200>;
> +    };
> -- 
> 2.47.2
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, other threads:[~2025-08-19 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 21:37 [PATCH v3] dt-bindings: mips: lantiq: Document lantiq dcdc binding Aleksander Jan Bajkowski
2025-08-19 17:56 ` Conor Dooley

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).