Skip to contentSkip to conversation

dt-bindings: add bindings for polarfire soc mailbox

PATCH Superseded [email protected] 3 participants 5 messages Nov 19, 2020 – Nov 30, 2020

Subsystems (4)

v1 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 3/6 dt-bindings: add bindings for polarfire soc mailbox

From: Conor Dooley <[email protected]>

Add device tree bindings for the MSS system controller mailbox on the Microchip PolarFire SoC.

---
 .../mailbox/microchip,mpfs-mailbox.yaml       | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +46 -0
new file mode 100644
index 000000000000..5d6ccaa13dc2
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/mailbox/microchip,mpfs-mailbox.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Microchip MPFS mss mailbox controller
+
+maintainers:
+  - Conor Dooley <[email protected]>
+
+properties:
+  compatible:
+    const: microchip,polarfire-soc-mailbox # PolarFire
+
+  reg:
+    items:
+      - description: mailbox data registers
+      - description: mailbox int registers
+    maxItems: 2
+
+  interrupts:
+    maxItems: 1
+
+  "#mbox-cells":
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupt-parent
+  - interrupts
+  - "#mbox-cells"
+
+unevaluatedProperties: false
+additionalProperties: false
+
+examples:
+  - |
+    mailbox@37020000 {
+      compatible = "microchip,polarfire-soc-mailbox";
+      reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318c 0x0 0x40>;
+      interrupt-parent = <&L1>;
+      interrupts = <96>;
+      #mbox-cells = <1>;
+    };
Signature · 1 line
2.17.1
#1 lore raw
Quoted 38 lines · On 2020/11/20 2:05, [email protected] wrote:

From: Conor Dooley <[email protected]>

Add device tree bindings for the MSS system controller mailbox on the Microchip PolarFire SoC.

---
 .../mailbox/microchip,mpfs-mailbox.yaml       | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +21 -0
new file mode 100644
index 000000000000..5d6ccaa13dc2
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/mailbox/microchip,mpfs-mailbox.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Microchip MPFS mss mailbox controller
+
+maintainers:
+  - Conor Dooley <[email protected]>
+
+properties:
+  compatible:
+    const: microchip,polarfire-soc-mailbox # PolarFire
+
+  reg:
+    items:
+      - description: mailbox data registers
+      - description: mailbox int registers
+    maxItems: 2
+

Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml line 31

Quoted 10 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +10 -0
+  interrupts:
+    maxItems: 1
+
+  "#mbox-cells":
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupt-parent

This one is not listed as a property above.
Did you run "make dt_binding_check" ?

Quoted 16 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +15 -0
+  - interrupts
+  - "#mbox-cells"
+
+unevaluatedProperties: false
+additionalProperties: false
+
+examples:
+  - |
+    mailbox@37020000 {
+      compatible = "microchip,polarfire-soc-mailbox";
+      reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318c 0x0 0x40>;
+      interrupt-parent = <&L1>;
+      interrupts = <96>;
+      #mbox-cells = <1>;
+    };
Signature · 7 lines
Damien Le Moal
Western Digital Research

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
maintainer
#3 lore raw
In reply to [email protected]
Quoted 11 lines · On Thu, 19 Nov 2020 17:04:32 +0000, [email protected] wrote:

From: Conor Dooley <[email protected]>

Add device tree bindings for the MSS system controller mailbox on the Microchip PolarFire SoC.

---
 .../mailbox/microchip,mpfs-mailbox.yaml       | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.example.dt.yaml: example-0: mailbox@37020000:reg:0: [0, 922877952, 0, 4096] is too long
From schema: /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.example.dt.yaml: example-0: mailbox@37020000:reg:1: [0, 536883596, 0, 64] is too long
From schema: /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml

See https://patchwork.ozlabs.org/patch/1403152

The base for the patch is generally the last rc1. Any dependencies should be noted.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit.

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

maintainer
#4 lore raw
In reply to [email protected]
Quoted 21 lines · On Thu, Nov 19, 2020 at 05:04:32PM +0000, [email protected] wrote:

From: Conor Dooley <[email protected]>

Add device tree bindings for the MSS system controller mailbox on the Microchip PolarFire SoC.

---
 .../mailbox/microchip,mpfs-mailbox.yaml       | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +4 -0
new file mode 100644
index 000000000000..5d6ccaa13dc2
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/mailbox/microchip,mpfs-mailbox.yaml#"

Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml line 14

Quoted 10 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +10 -0
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Microchip MPFS mss mailbox controller
+
+maintainers:
+  - Conor Dooley <[email protected]>
+
+properties:
+  compatible:
+    const: microchip,polarfire-soc-mailbox # PolarFire

Comment is redundant.

Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml line 20

Quoted 6 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +6 -0
+
+  reg:
+    items:
+      - description: mailbox data registers
+      - description: mailbox int registers
+    maxItems: 2

maxItems is implied by size of 'items'.

Quoted 6 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +6 -0
+
+  interrupts:
+    maxItems: 1
+
+  "#mbox-cells":
+    const: 1

Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml line 36

Quoted 10 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +10 -0
+
+required:
+  - compatible
+  - reg
+  - interrupt-parent
+  - interrupts
+  - "#mbox-cells"
+
+unevaluatedProperties: false
+additionalProperties: false

Only need one and in this case additionalProperties.

Quoted 13 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +10 -0
+
+examples:
+  - |
+    mailbox@37020000 {
+      compatible = "microchip,polarfire-soc-mailbox";
+      reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318c 0x0 0x40>;
+      interrupt-parent = <&L1>;
+      interrupts = <96>;
+      #mbox-cells = <1>;
+    };
Signature · 1 line
2.17.1
author maintainer
#2 lore raw
In reply to Damien Le Moal
Quoted 45 lines · Damien Le Moal

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 42 lines · On 2020/11/20 2:05, [email protected] wrote:

From: Conor Dooley <[email protected]>

Add device tree bindings for the MSS system controller mailbox on the Microchip PolarFire SoC.

---
 .../mailbox/microchip,mpfs-mailbox.yaml       | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +25 -0
new file mode 100644
index 000000000000..5d6ccaa13dc2
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/mailbox/microchip,mpfs-mailbox.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Microchip MPFS mss mailbox controller
+
+maintainers:
+  - Conor Dooley <[email protected]>
+
+properties:
+  compatible:
+    const: microchip,polarfire-soc-mailbox # PolarFire
+
+  reg:
+    items:
+      - description: mailbox data registers
+      - description: mailbox int registers
+    maxItems: 2
+
+  interrupts:
+    maxItems: 1
+
+  "#mbox-cells":
Quoted 8 lines

Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml line 31

Quoted 6 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +6 -0
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupt-parent

This one is not listed as a property above.
Did you run "make dt_binding_check" ?

I did, causes a fail if it is listed as a property. I'm going to remove it entirely in V2.

Quoted 12 lines
Quoted 12 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +12 -0
+  - interrupts
+  - "#mbox-cells"
+
+unevaluatedProperties: false
+additionalProperties: false
+
+examples:
+  - |
+    mailbox@37020000 {
+      compatible = "microchip,polarfire-soc-mailbox";
+      reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318c 0x0 0x40>;
+      interrupt-parent = <&L1>;
Quoted 8 lines

Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml line 46

Quoted 4 lines
Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml new file +3 -0
+      interrupts = <96>;
+      #mbox-cells = <1>;
+    };

--
Damien Le Moal
Western Digital Research

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv