Skip to contentSkip to conversation

dt-bindings: mips: lantiq: Document Lantiq SoC dt bindings

PATCH In review Aleksander Jan Bajkowski 2 participants 4 messages Mar 26, 2023 – Mar 28, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: mips: lantiq: Document Lantiq SoC dt bindings

Document the legacy Lantiq device tree bindings. Compatible strings for xRX100 (ar9) and newer SoCs should be renamed and will be added later.

---
 .../devicetree/bindings/mips/lantiq/soc.yaml  | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mips/lantiq/soc.yaml
Documentation/devicetree/bindings/mips/lantiq/soc.yaml new file +38 -0
new file mode 100644
index 000000000000..90e8148b111b
@@ -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/soc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Lantiq SoC based Platform
+
+maintainers:
+  - Aleksander Jan Bajkowski <[email protected]>
+
+description:
+  Devices with a Lantiq CPU shall have the following properties.
+
+properties:
+  $nodename:
+    const: "/"
+  compatible:
+    oneOf:
+      - description: Boards with Lantiq Amazon-SE SoC
+        items:
+          - const: lantiq,ase
+
+      - description: Boards with Lantiq Danube SoC
+        items:
+          - const: lantiq,danube
+
+      - description: Boards with Lantiq Falcon SoC
+        items:
+          - const: lantiq,falcon
+
+      - description: Boards with Lantiq Twinpass SoC
+        items:
+          - const: lantiq,twinpass
+
+additionalProperties: true
+
+...
Signature · 1 line
2.30.2
#1 lore raw
Quoted 1 line · Aleksander Jan Bajkowski

Document the legacy Lantiq device tree bindings.

This suggests you are documenting existing compatibles, but I do not see them at all. Confusing.

Quoted 1 line

Compatible strings for xRX100 (ar9) and newer SoCs

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v5.18-rc4/source/Documentation/process/submitting-patches.rst#L586

Quoted 1 line

should be renamed and will be added later.

Subject: drop second/last, redundant "dt bindings". The "dt-bindings" prefix is already stating that these are bindings.

Quoted 25 lines
---
 .../devicetree/bindings/mips/lantiq/soc.yaml  | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mips/lantiq/soc.yaml
Documentation/devicetree/bindings/mips/lantiq/soc.yaml new file +12 -0
new file mode 100644
index 000000000000..90e8148b111b
@@ -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/soc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Lantiq SoC based Platform
+
+maintainers:
+  - Aleksander Jan Bajkowski <[email protected]>
+
+description:

Documentation/devicetree/bindings/mips/lantiq/soc.yaml line 22

Quoted 10 lines
Documentation/devicetree/bindings/mips/lantiq/soc.yaml new file +10 -0
+  Devices with a Lantiq CPU shall have the following properties.
+
+properties:
+  $nodename:
+    const: "/"
+  compatible:
+    oneOf:
+      - description: Boards with Lantiq Amazon-SE SoC
+        items:
+          - const: lantiq,ase

This does not look like proper board compatible. Boards have almost always minimum two compatibles - one for SoC and one for board. With commit msg this just adds to confusion...

Best regards,
Krzysztof

#2 lore raw

Hi Krzysztof,

Quoted 4 lines · Krzysztof Kozlowski
Quoted 1 line · Aleksander Jan Bajkowski

Document the legacy Lantiq device tree bindings.

This suggests you are documenting existing compatibles, but I do not see them at all. Confusing.

The added compatible strings can be found in:
- arch/mips/lantiq/xway/sysctrl.c,
- arch/mips/lantiq/falcon/prom.c,
- arch/mips/lantiq/xway/prom.c.

Upstream only has one dts for danube development board. More dts can be found in OpenWRT [1]. I have a bunch of these devices and intend to send dts files upstream.

Quoted 5 lines
Quoted 2 lines

Compatible strings for xRX100 (ar9) and newer SoCs

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v5.18-rc4/source/Documentation/process/submitting-patches.rst#L586

Will be fixed in v2.

Quoted 3 lines
Quoted 1 line

should be renamed and will be added later.

Subject: drop second/last, redundant "dt bindings". The "dt-bindings" prefix is already stating that these are bindings.

Will be fixed in v2.

Quoted 30 lines
Quoted 30 lines
---
 .../devicetree/bindings/mips/lantiq/soc.yaml  | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mips/lantiq/soc.yaml
Documentation/devicetree/bindings/mips/lantiq/soc.yaml new file +17 -0
new file mode 100644
index 000000000000..90e8148b111b
@@ -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/soc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Lantiq SoC based Platform
+
+maintainers:
+  - Aleksander Jan Bajkowski <[email protected]>
+
+description:
+  Devices with a Lantiq CPU shall have the following properties.
+
+properties:
+  $nodename:
+    const: "/"
Quoted 9 lines

Documentation/devicetree/bindings/mips/lantiq/soc.yaml line 22

Quoted 5 lines
Documentation/devicetree/bindings/mips/lantiq/soc.yaml new file +5 -0
+  compatible:
+    oneOf:
+      - description: Boards with Lantiq Amazon-SE SoC
+        items:
+          - const: lantiq,ase

This does not look like proper board compatible. Boards have almost always minimum two compatibles - one for SoC and one for board. With commit msg this just adds to confusion...

The added dt-binding contains only the SoC part. The compatible strings for individual boards will be added later together with the dts files. Before sending the dts files I want to document current bindings and clear checkpach warnings about undocumented strings.

Quoted 3 lines

Best regards,
Krzysztof

1. https://github.com/openwrt/openwrt/tree/master/target/linux/lantiq/files/arch/mips/boot/dts/lantiq

Best Regards,
Aleksander

#3 lore raw
Quoted 13 lines · Aleksander Bajkowski
Quoted 8 lines

Documentation/devicetree/bindings/mips/lantiq/soc.yaml line 22

Quoted 8 lines
Documentation/devicetree/bindings/mips/lantiq/soc.yaml new file +8 -0
+properties:
+  $nodename:
+    const: "/"
+  compatible:
+    oneOf:
+      - description: Boards with Lantiq Amazon-SE SoC
+        items:
+          - const: lantiq,ase
Quoted 4 lines

This does not look like proper board compatible. Boards have almost always minimum two compatibles - one for SoC and one for board. With commit msg this just adds to confusion...

Quoted 4 lines

The added dt-binding contains only the SoC part. The compatible strings for individual boards will be added later together with the dts files. Before sending the dts files I want to document current bindings and clear checkpach warnings about undocumented strings.

Which is incomplete and inaccurate documentation. Instead, document proper, full compatibles.

Best regards,
Krzysztof