dt-bindings: mips: lantiq: Document Lantiq Xway VMMC
Subsystems (2)
PATCH 1/1 dt-bindings: mips: lantiq: Document Lantiq Xway VMMC
The Lantiq SoCs have a 2nd mips core called "voice mips macro core (vmmc)" which is used to run the voice firmware.
--- .../mips/lantiq/lantiq,vmmc-xway.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml
Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml new file +51 -0
@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mips/lantiq/lantiq,vmmc-xway.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Lantiq VMMC (Voice MIPS Macro Core) + +maintainers: + - Aleksander Jan Bajkowski <[email protected]> + +description: + The Lantiq SoCs have a 2nd mips core called "Voice MIPS Macro Core (VMMC)" + which is used to run the voice firmware. The firmware handles analog + telephone lines. + +properties: + compatible: + items: + - enum: + - lantiq,vmmc-xway + + reg: + maxItems: 1 + + interrupts: + minItems: 6 + maxItems: 6 + + gpios: true + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + vmmc@107000 { + compatible = "lantiq,vmmc-xway"; + reg = <0x107000 0x300>; + interrupt-parent = <&icu0>; + interrupts = <150>, <151>, <152>, <153>, <154>, <155>; + gpios = <&gpio 30 GPIO_ACTIVE_HIGH + &gpio 31 GPIO_ACTIVE_HIGH + &gpio 3 GPIO_ACTIVE_HIGH>; + + };
Signature · 1 line
2.47.2
Quoted 26 lines · Aleksander Jan Bajkowski
The Lantiq SoCs have a 2nd mips core called "voice mips macro core (vmmc)" which is used to run the voice firmware.
Signed-off-by Aleksander Jan Bajkowski <[email protected]>--- .../mips/lantiq/lantiq,vmmc-xway.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yamlDocumentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml new file +11
-0@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mips/lantiq/lantiq,vmmc-xway.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Lantiq VMMC (Voice MIPS Macro Core) + +maintainers: + - Aleksander Jan Bajkowski <[email protected]> +
Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml line 21
Quoted 10 lines
Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml new file +10
-0+description: + The Lantiq SoCs have a 2nd mips core called "Voice MIPS Macro Core (VMMC)" + which is used to run the voice firmware. The firmware handles analog + telephone lines. + +properties: + compatible: + items: + - enum: + - lantiq,vmmc-xway
Same comment here as elsewhere, the commit message seems to suggest that you're trying to use one compatible for multiple devices. Not using soc-specific compatibles requires justification if that's what you're doing as they are the norm.
Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml line 28
Quoted 7 lines
Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml new file +7
-0+ + reg: + maxItems: 1 + + interrupts: + minItems: 6 + maxItems: 6
Same comment here as elsewhere re: items list explaining each item.
Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml line 30
Quoted 2 lines
Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml new file +2
-0+ + gpios: true
What are these gpios? You've got 3 below, what portion of those three are required? How many mix/max?
Quoted 24 lines
Documentation/devicetree/bindings/mips/lantiq/lantiq,vmmc-xway.yaml new file +21
-0+ +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + vmmc@107000 { + compatible = "lantiq,vmmc-xway"; + reg = <0x107000 0x300>; + interrupt-parent = <&icu0>; + interrupts = <150>, <151>, <152>, <153>, <154>, <155>; + gpios = <&gpio 30 GPIO_ACTIVE_HIGH + &gpio 31 GPIO_ACTIVE_HIGH + &gpio 3 GPIO_ACTIVE_HIGH>; + + };Signature · 1 line
2.47.2