* [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU
@ 2025-08-14 9:36 Aleksander Jan Bajkowski
2025-08-14 9:37 ` [PATCH 2/2] mips: lantiq: danube: add missing timer interrupts Aleksander Jan Bajkowski
2025-08-14 20:50 ` [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU Conor Dooley
0 siblings, 2 replies; 5+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-08-14 9:36 UTC (permalink / raw)
To: tsbogend, robh, krzk+dt, conor+dt, olek2, linux-mips, devicetree,
linux-kernel
The Lantiq SoC has six built-in 16-bit general purpose timers (GPTU).
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
.../mips/lantiq/lantiq,gptu-xway.yaml | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
diff --git a/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
new file mode 100644
index 000000000000..fcfc634dd391
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mips/lantiq/lantiq,gptu-xway.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Lantiq Xway SoC series General Purpose Timer Unit (GPTU)
+
+maintainers:
+ - Aleksander Jan Bajkowski <olek2@wp.pl>
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - lantiq,gptu-xway
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ minItems: 6
+ maxItems: 6
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ gptu@e100a00 {
+ compatible = "lantiq,gptu-xway";
+ reg = <0xe100a00 0x100>;
+ interrupt-parent = <&icu0>;
+ interrupts = <126>, <127>, <128>, <129> ,<130>, <131>;
+ };
--
2.47.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] mips: lantiq: danube: add missing timer interrupts
2025-08-14 9:36 [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU Aleksander Jan Bajkowski
@ 2025-08-14 9:37 ` Aleksander Jan Bajkowski
2025-08-14 20:50 ` [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU Conor Dooley
1 sibling, 0 replies; 5+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-08-14 9:37 UTC (permalink / raw)
To: tsbogend, robh, krzk+dt, conor+dt, olek2, linux-mips, devicetree,
linux-kernel
The driver expects six interrupt lines to be specified.
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
arch/mips/boot/dts/lantiq/danube.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/boot/dts/lantiq/danube.dtsi b/arch/mips/boot/dts/lantiq/danube.dtsi
index 7a7ba66aa534..371d06d1a225 100644
--- a/arch/mips/boot/dts/lantiq/danube.dtsi
+++ b/arch/mips/boot/dts/lantiq/danube.dtsi
@@ -71,6 +71,8 @@ fpi@10000000 {
gptu@e100a00 {
compatible = "lantiq,gptu-xway";
reg = <0xe100a00 0x100>;
+ interrupt-parent = <&icu0>;
+ interrupts = <126 127 128 129 130 131>;
};
serial@e100c00 {
--
2.47.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU
2025-08-14 9:36 [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU Aleksander Jan Bajkowski
2025-08-14 9:37 ` [PATCH 2/2] mips: lantiq: danube: add missing timer interrupts Aleksander Jan Bajkowski
@ 2025-08-14 20:50 ` Conor Dooley
2025-08-16 12:04 ` Aleksander Jan Bajkowski
1 sibling, 1 reply; 5+ messages in thread
From: Conor Dooley @ 2025-08-14 20:50 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: 1929 bytes --]
On Thu, Aug 14, 2025 at 11:36:59AM +0200, Aleksander Jan Bajkowski wrote:
> The Lantiq SoC has six built-in 16-bit general purpose timers (GPTU).
>
> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> ---
> .../mips/lantiq/lantiq,gptu-xway.yaml | 39 +++++++++++++++++++
> 1 file changed, 39 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
>
> diff --git a/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
> new file mode 100644
> index 000000000000..fcfc634dd391
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mips/lantiq/lantiq,gptu-xway.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Lantiq Xway SoC series General Purpose Timer Unit (GPTU)
"SoC series" implies that you're using the same compatible for multiple
devices. Why are you not using device-specific compatibles?
> +
> +maintainers:
> + - Aleksander Jan Bajkowski <olek2@wp.pl>
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - lantiq,gptu-xway
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + minItems: 6
> + maxItems: 6
And these interrupts are what exactly? I'd rather an items list
explaining what they are tbh.
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + gptu@e100a00 {
> + compatible = "lantiq,gptu-xway";
> + reg = <0xe100a00 0x100>;
> + interrupt-parent = <&icu0>;
> + interrupts = <126>, <127>, <128>, <129> ,<130>, <131>;
> + };
> --
> 2.47.2
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU
2025-08-14 20:50 ` [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU Conor Dooley
@ 2025-08-16 12:04 ` Aleksander Jan Bajkowski
2025-08-18 15:14 ` Conor Dooley
0 siblings, 1 reply; 5+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-08-16 12:04 UTC (permalink / raw)
To: Conor Dooley
Cc: tsbogend, robh, krzk+dt, conor+dt, linux-mips, devicetree,
linux-kernel
On 8/14/25 22:50, Conor Dooley wrote:
> On Thu, Aug 14, 2025 at 11:36:59AM +0200, Aleksander Jan Bajkowski wrote:
>> The Lantiq SoC has six built-in 16-bit general purpose timers (GPTU).
>>
>> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
>> ---
>> .../mips/lantiq/lantiq,gptu-xway.yaml | 39 +++++++++++++++++++
>> 1 file changed, 39 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
>> new file mode 100644
>> index 000000000000..fcfc634dd391
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
>> @@ -0,0 +1,39 @@
>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/mips/lantiq/lantiq,gptu-xway.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Lantiq Xway SoC series General Purpose Timer Unit (GPTU)
> "SoC series" implies that you're using the same compatible for multiple
> devices. Why are you not using device-specific compatibles?
This IP Core didn't change in subsequent generations of SoCs, so it had
one compatible string. In the next iteration, I will add device-specific
compatibles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU
2025-08-16 12:04 ` Aleksander Jan Bajkowski
@ 2025-08-18 15:14 ` Conor Dooley
0 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2025-08-18 15:14 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: 1740 bytes --]
On Sat, Aug 16, 2025 at 02:04:09PM +0200, Aleksander Jan Bajkowski wrote:
>
> On 8/14/25 22:50, Conor Dooley wrote:
> > On Thu, Aug 14, 2025 at 11:36:59AM +0200, Aleksander Jan Bajkowski wrote:
> > > The Lantiq SoC has six built-in 16-bit general purpose timers (GPTU).
> > >
> > > Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
> > > ---
> > > .../mips/lantiq/lantiq,gptu-xway.yaml | 39 +++++++++++++++++++
> > > 1 file changed, 39 insertions(+)
> > > create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
> > >
> > > diff --git a/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
> > > new file mode 100644
> > > index 000000000000..fcfc634dd391
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml
> > > @@ -0,0 +1,39 @@
> > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/mips/lantiq/lantiq,gptu-xway.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: Lantiq Xway SoC series General Purpose Timer Unit (GPTU)
> > "SoC series" implies that you're using the same compatible for multiple
> > devices. Why are you not using device-specific compatibles?
>
> This IP Core didn't change in subsequent generations of SoCs, so it had
> one compatible string. In the next iteration, I will add device-specific
> compatibles.
You can (and should) use a fallback when you do that, probably to
whatever the first device to contain the IP is. The driver need only
contain the one fallback compatible.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-08-18 15:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 9:36 [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU Aleksander Jan Bajkowski
2025-08-14 9:37 ` [PATCH 2/2] mips: lantiq: danube: add missing timer interrupts Aleksander Jan Bajkowski
2025-08-14 20:50 ` [PATCH 1/2] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU Conor Dooley
2025-08-16 12:04 ` Aleksander Jan Bajkowski
2025-08-18 15:14 ` 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).