devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding
@ 2025-08-14  8:26 Aleksander Jan Bajkowski
  2025-08-14 20:48 ` Conor Dooley
  0 siblings, 1 reply; 7+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-08-14  8:26 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.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
 .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 32 +++++++++++++++++++
 1 file changed, 32 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..5648b9676b3c
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.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,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>
+
+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] 7+ messages in thread

* Re: [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding
  2025-08-14  8:26 [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding Aleksander Jan Bajkowski
@ 2025-08-14 20:48 ` Conor Dooley
  2025-08-15 10:13   ` Aleksander Jan Bajkowski
  0 siblings, 1 reply; 7+ messages in thread
From: Conor Dooley @ 2025-08-14 20:48 UTC (permalink / raw)
  To: Aleksander Jan Bajkowski, y
  Cc: tsbogend, robh, krzk+dt, conor+dt, linux-mips, devicetree,
	linux-kernel

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

On Thu, Aug 14, 2025 at 10:26:56AM +0200, Aleksander Jan Bajkowski wrote:
> Lantiq DCDC is a voltage converter with a voltage sensor.
> 
> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> ---
>  .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 32 +++++++++++++++++++
>  1 file changed, 32 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..5648b9676b3c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.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,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>
> +
> +properties:
> +  compatible:
> +    items:
> +      - enum:
> +          - lantiq,dcdc-xrx200

What is "xrx2000" in this context?

> +
> +  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] 7+ messages in thread

* Re: [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding
  2025-08-14 20:48 ` Conor Dooley
@ 2025-08-15 10:13   ` Aleksander Jan Bajkowski
  2025-08-15 15:48     ` Conor Dooley
  0 siblings, 1 reply; 7+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-08-15 10:13 UTC (permalink / raw)
  To: Conor Dooley, y
  Cc: tsbogend, robh, krzk+dt, conor+dt, linux-mips, devicetree,
	linux-kernel

Hi Conor,

On 8/14/25 22:48, Conor Dooley wrote:
> On Thu, Aug 14, 2025 at 10:26:56AM +0200, Aleksander Jan Bajkowski wrote:
>> Lantiq DCDC is a voltage converter with a voltage sensor.
>>
>> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
>> ---
>>   .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 32 +++++++++++++++++++
>>   1 file changed, 32 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..5648b9676b3c
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.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,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>
>> +
>> +properties:
>> +  compatible:
>> +    items:
>> +      - enum:
>> +          - lantiq,dcdc-xrx200
> What is "xrx2000" in this context?


“xrx200” is one of the generations of Lantiq SoCs. It includes four part 
numbers
with the same memory map. The other generations are amazon-se, danube, 
ARX100,
GRX100, xRX200, xRX300, xRX330. These correspond to the internal code 
names: ase,
danube, ar9, gr9, vr9, ar10, grx390.


Best regards,
Aleksander

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

* Re: [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding
  2025-08-15 10:13   ` Aleksander Jan Bajkowski
@ 2025-08-15 15:48     ` Conor Dooley
  2025-08-15 15:50       ` Conor Dooley
  2025-08-15 16:46       ` Aleksander Jan Bajkowski
  0 siblings, 2 replies; 7+ messages in thread
From: Conor Dooley @ 2025-08-15 15:48 UTC (permalink / raw)
  To: Aleksander Jan Bajkowski
  Cc: y, tsbogend, robh, krzk+dt, conor+dt, linux-mips, devicetree,
	linux-kernel

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

On Fri, Aug 15, 2025 at 12:13:41PM +0200, Aleksander Jan Bajkowski wrote:
> Hi Conor,
> 
> On 8/14/25 22:48, Conor Dooley wrote:
> > On Thu, Aug 14, 2025 at 10:26:56AM +0200, Aleksander Jan Bajkowski wrote:
> > > Lantiq DCDC is a voltage converter with a voltage sensor.
> > > 
> > > Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> > > ---
> > >   .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 32 +++++++++++++++++++
> > >   1 file changed, 32 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..5648b9676b3c
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.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,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>
> > > +
> > > +properties:
> > > +  compatible:
> > > +    items:
> > > +      - enum:
> > > +          - lantiq,dcdc-xrx200
> > What is "xrx2000" in this context?
> 
> 
> “xrx200” is one of the generations of Lantiq SoCs. It includes four part
> numbers
> with the same memory map. The other generations are amazon-se, danube,
> ARX100,
> GRX100, xRX200, xRX300, xRX330. These correspond to the internal code names:
> ase,
> danube, ar9, gr9, vr9, ar10, grx390.

And the dc-dc converter is part of the SoC?
Either way, you've got this file in the wrong location probably, dc-dc
converters are usually under the regulator directory.

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

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

* Re: [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding
  2025-08-15 15:48     ` Conor Dooley
@ 2025-08-15 15:50       ` Conor Dooley
  2025-08-15 16:46       ` Aleksander Jan Bajkowski
  1 sibling, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2025-08-15 15:50 UTC (permalink / raw)
  To: Aleksander Jan Bajkowski
  Cc: y, tsbogend, robh, krzk+dt, conor+dt, linux-mips, devicetree,
	linux-kernel

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

On Fri, Aug 15, 2025 at 04:48:42PM +0100, Conor Dooley wrote:
> On Fri, Aug 15, 2025 at 12:13:41PM +0200, Aleksander Jan Bajkowski wrote:
> > Hi Conor,
> > 
> > On 8/14/25 22:48, Conor Dooley wrote:
> > > On Thu, Aug 14, 2025 at 10:26:56AM +0200, Aleksander Jan Bajkowski wrote:
> > > > Lantiq DCDC is a voltage converter with a voltage sensor.
> > > > 
> > > > Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> > > > ---
> > > >   .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 32 +++++++++++++++++++
> > > >   1 file changed, 32 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..5648b9676b3c
> > > > --- /dev/null
> > > > +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.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,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>
> > > > +
> > > > +properties:
> > > > +  compatible:
> > > > +    items:
> > > > +      - enum:
> > > > +          - lantiq,dcdc-xrx200
> > > What is "xrx2000" in this context?
> > 
> > 
> > “xrx200” is one of the generations of Lantiq SoCs. It includes four part
> > numbers
> > with the same memory map. The other generations are amazon-se, danube,
> > ARX100,
> > GRX100, xRX200, xRX300, xRX330. These correspond to the internal code names:
> > ase,
> > danube, ar9, gr9, vr9, ar10, grx390.
> 
> And the dc-dc converter is part of the SoC?

(whether it is or not, you'd be well served by having a more complete
explanation either in your commit message, the description field of the
binding or both)

> Either way, you've got this file in the wrong location probably, dc-dc
> converters are usually under the regulator directory.



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

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

* Re: [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding
  2025-08-15 15:48     ` Conor Dooley
  2025-08-15 15:50       ` Conor Dooley
@ 2025-08-15 16:46       ` Aleksander Jan Bajkowski
  2025-08-15 16:48         ` Conor Dooley
  1 sibling, 1 reply; 7+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-08-15 16:46 UTC (permalink / raw)
  To: Conor Dooley
  Cc: y, tsbogend, robh, krzk+dt, conor+dt, linux-mips, devicetree,
	linux-kernel


On 8/15/25 17:48, Conor Dooley wrote:
> On Fri, Aug 15, 2025 at 12:13:41PM +0200, Aleksander Jan Bajkowski wrote:
>> Hi Conor,
>>
>> On 8/14/25 22:48, Conor Dooley wrote:
>>> On Thu, Aug 14, 2025 at 10:26:56AM +0200, Aleksander Jan Bajkowski wrote:
>>>> Lantiq DCDC is a voltage converter with a voltage sensor.
>>>>
>>>> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
>>>> ---
>>>>    .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 32 +++++++++++++++++++
>>>>    1 file changed, 32 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..5648b9676b3c
>>>> --- /dev/null
>>>> +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.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,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>
>>>> +
>>>> +properties:
>>>> +  compatible:
>>>> +    items:
>>>> +      - enum:
>>>> +          - lantiq,dcdc-xrx200
>>> What is "xrx2000" in this context?
>>
>> “xrx200” is one of the generations of Lantiq SoCs. It includes four part
>> numbers
>> with the same memory map. The other generations are amazon-se, danube,
>> ARX100,
>> GRX100, xRX200, xRX300, xRX330. These correspond to the internal code names:
>> ase,
>> danube, ar9, gr9, vr9, ar10, grx390.
> And the dc-dc converter is part of the SoC?
> Either way, you've got this file in the wrong location probably, dc-dc
> converters are usually under the regulator directory.


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.


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

* Re: [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding
  2025-08-15 16:46       ` Aleksander Jan Bajkowski
@ 2025-08-15 16:48         ` Conor Dooley
  0 siblings, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2025-08-15 16:48 UTC (permalink / raw)
  To: Aleksander Jan Bajkowski
  Cc: y, tsbogend, robh, krzk+dt, conor+dt, linux-mips, devicetree,
	linux-kernel

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

On Fri, Aug 15, 2025 at 06:46:21PM +0200, Aleksander Jan Bajkowski wrote:
> 
> On 8/15/25 17:48, Conor Dooley wrote:
> > On Fri, Aug 15, 2025 at 12:13:41PM +0200, Aleksander Jan Bajkowski wrote:
> > > Hi Conor,
> > > 
> > > On 8/14/25 22:48, Conor Dooley wrote:
> > > > On Thu, Aug 14, 2025 at 10:26:56AM +0200, Aleksander Jan Bajkowski wrote:
> > > > > Lantiq DCDC is a voltage converter with a voltage sensor.
> > > > > 
> > > > > Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> > > > > ---
> > > > >    .../mips/lantiq/lantiq,dcdc-xrx200.yaml       | 32 +++++++++++++++++++
> > > > >    1 file changed, 32 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..5648b9676b3c
> > > > > --- /dev/null
> > > > > +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,dcdc-xrx200.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,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>
> > > > > +
> > > > > +properties:
> > > > > +  compatible:
> > > > > +    items:
> > > > > +      - enum:
> > > > > +          - lantiq,dcdc-xrx200
> > > > What is "xrx2000" in this context?
> > > 
> > > “xrx200” is one of the generations of Lantiq SoCs. It includes four part
> > > numbers
> > > with the same memory map. The other generations are amazon-se, danube,
> > > ARX100,
> > > GRX100, xRX200, xRX300, xRX330. These correspond to the internal code names:
> > > ase,
> > > danube, ar9, gr9, vr9, ar10, grx390.
> > And the dc-dc converter is part of the SoC?
> > Either way, you've got this file in the wrong location probably, dc-dc
> > converters are usually under the regulator directory.
> 
> 
> 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.

Okay cool, compatible is fine then :) The location change and more
information (like what you've given here) in the description are still
needed though unfortunately for you.

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

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

end of thread, other threads:[~2025-08-15 16:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14  8:26 [PATCH v2] dt-bindings: mips: lantiq: Document lantiq dcdc binding Aleksander Jan Bajkowski
2025-08-14 20:48 ` Conor Dooley
2025-08-15 10:13   ` Aleksander Jan Bajkowski
2025-08-15 15:48     ` Conor Dooley
2025-08-15 15:50       ` Conor Dooley
2025-08-15 16:46       ` Aleksander Jan Bajkowski
2025-08-15 16:48         ` 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).