dt-bindings: crypto: Convert stm32 CRC bindings to json-schema
Subsystems (3)
PATCH 1/1 dt-bindings: crypto: Convert stm32 CRC bindings to json-schema
Convert the STM32 CRC binding to DT schema format using json-schema
--- .../devicetree/bindings/crypto/st,stm32-crc.txt | 16 --------- .../devicetree/bindings/crypto/st,stm32-crc.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-crc.txt create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-crc.yaml
Documentation/devicetree/bindings/crypto/st,stm32-crc.txt deleted +0 -16
@@ -1,16 +0,0 @@ -* STMicroelectronics STM32 CRC - -Required properties: -- compatible: Should be "st,stm32f7-crc". -- reg: The address and length of the peripheral registers space -- clocks: The input clock of the CRC instance - -Optional properties: none - -Example: - -crc: crc@40023000 { - compatible = "st,stm32f7-crc"; - reg = <0x40023000 0x400>; - clocks = <&rcc 0 12>; -};
Documentation/devicetree/bindings/crypto/st,stm32-crc.yaml new file +38 -0
@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/st,stm32-crc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 CRC bindings + +maintainers: + - Lionel Debieve <[email protected]> + +properties: + compatible: + const: st,stm32f7-crc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/stm32mp1-clks.h> + crc@40023000 { + compatible = "st,stm32f7-crc"; + reg = <0x40023000 0x400>; + clocks = <&rcc 0 12>; + }; + +...
Signature · 1 line
2.15.0
PATCH 1/1 dt-bindings: crypto: Convert stm32 HASH bindings to json-schema
Convert the STM32 HASH binding to DT schema format using json-schema
--- .../devicetree/bindings/crypto/st,stm32-hash.txt | 30 ---------- .../devicetree/bindings/crypto/st,stm32-hash.yaml | 64 ++++++++++++++++++++++ 2 files changed, 64 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-hash.txt create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml
Documentation/devicetree/bindings/crypto/st,stm32-hash.txt deleted +0 -30
@@ -1,30 +0,0 @@ -* STMicroelectronics STM32 HASH - -Required properties: -- compatible: Should contain entries for this and backward compatible - HASH versions: - - "st,stm32f456-hash" for stm32 F456. - - "st,stm32f756-hash" for stm32 F756. -- reg: The address and length of the peripheral registers space -- interrupts: the interrupt specifier for the HASH -- clocks: The input clock of the HASH instance - -Optional properties: -- resets: The input reset of the HASH instance -- dmas: DMA specifiers for the HASH. See the DMA client binding, - Documentation/devicetree/bindings/dma/dma.txt -- dma-names: DMA request name. Should be "in" if a dma is present. -- dma-maxburst: Set number of maximum dma burst supported - -Example: - -hash1: hash@50060400 { - compatible = "st,stm32f756-hash"; - reg = <0x50060400 0x400>; - interrupts = <80>; - clocks = <&rcc 0 STM32F7_AHB2_CLOCK(HASH)>; - resets = <&rcc STM32F7_AHB2_RESET(HASH)>; - dmas = <&dma2 7 2 0x400 0x0>; - dma-names = "in"; - dma-maxburst = <0>; -};
Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml new file +64 -0
64 lines not on this page · raw message
Signature · 7 lines
2.15.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Rob Herring
maintainerRe: [PATCH] dt-bindings: crypto: Convert stm32 HASH bindings to json-schema
Quoted 80 lines · Benjamin Gaignard
Convert the STM32 HASH binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/crypto/st,stm32-hash.txt | 30 ---------- .../devicetree/bindings/crypto/st,stm32-hash.yaml | 64 ++++++++++++++++++++++ 2 files changed, 64 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-hash.txt create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-hash.yamlDocumentation/devicetree/bindings/crypto/st,stm32-hash.txt deleted +0
-30@@ -1,30 +0,0 @@ -* STMicroelectronics STM32 HASH - -Required properties: -- compatible: Should contain entries for this and backward compatible - HASH versions: - - "st,stm32f456-hash" for stm32 F456. - - "st,stm32f756-hash" for stm32 F756. -- reg: The address and length of the peripheral registers space -- interrupts: the interrupt specifier for the HASH -- clocks: The input clock of the HASH instance - -Optional properties: -- resets: The input reset of the HASH instance -- dmas: DMA specifiers for the HASH. See the DMA client binding, - Documentation/devicetree/bindings/dma/dma.txt -- dma-names: DMA request name. Should be "in" if a dma is present. -- dma-maxburst: Set number of maximum dma burst supported - -Example: - -hash1: hash@50060400 { - compatible = "st,stm32f756-hash"; - reg = <0x50060400 0x400>; - interrupts = <80>; - clocks = <&rcc 0 STM32F7_AHB2_CLOCK(HASH)>; - resets = <&rcc STM32F7_AHB2_RESET(HASH)>; - dmas = <&dma2 7 2 0x400 0x0>; - dma-names = "in"; - dma-maxburst = <0>; -};Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml new file +28
-0@@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/st,stm32-hash.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 HASH bindings + +maintainers: + - Lionel Debieve <[email protected]> + +properties: + compatible: + enum: + - st,stm32f456-hash + - st,stm32f756-hash + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + resets: + maxItems: 1
Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml line 38
Quoted 10 lines
Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml new file +10
-0+ + dmas: + maxItems: 1 + + dma-names: + items: + - const: in + + dma-maxburst: + description: Set number of maximum dma burst supported
Needs a type ref and some constraints. What's the default?
Quoted 29 lines
Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml new file +26
-0+ +required: + - compatible + - reg + - clocks + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/clock/stm32mp1-clks.h> + #include <dt-bindings/reset/stm32mp1-resets.h> + hash@54002000 { + compatible = "st,stm32f756-hash"; + reg = <0x54002000 0x400>; + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&rcc HASH1>; + resets = <&rcc HASH1_R>; + dmas = <&mdma1 31 0x10 0x1000A02 0x0 0x0>; + dma-names = "in"; + dma-maxburst = <2>; + }; + +...Signature · 1 line
2.15.0
PATCH 1/1 dt-bindings: crypto: Convert stm32 CRYP bindings to json-schema
In reply to Benjamin GaignardConvert the STM32 CRYP binding to DT schema format using json-schema
--- .../devicetree/bindings/crypto/st,stm32-cryp.txt | 19 -------- .../devicetree/bindings/crypto/st,stm32-cryp.yaml | 51 ++++++++++++++++++++++ 2 files changed, 51 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-cryp.txt create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml
Documentation/devicetree/bindings/crypto/st,stm32-cryp.txt deleted +0 -19
@@ -1,19 +0,0 @@ -* STMicroelectronics STM32 CRYP - -Required properties: -- compatible: Should be "st,stm32f756-cryp". -- reg: The address and length of the peripheral registers space -- clocks: The input clock of the CRYP instance -- interrupts: The CRYP interrupt - -Optional properties: -- resets: The input reset of the CRYP instance - -Example: -crypto@50060000 { - compatible = "st,stm32f756-cryp"; - reg = <0x50060000 0x400>; - interrupts = <79>; - clocks = <&rcc 0 STM32F7_AHB2_CLOCK(CRYP)>; - resets = <&rcc STM32F7_AHB2_RESET(CRYP)>; -};
Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml new file +51 -0
51 lines not on this page · raw message
Signature · 1 line
2.15.0
Re: [PATCH] dt-bindings: crypto: Convert stm32 CRYP bindings to json-schema
Quoted 10 lines · Benjamin Gaignard
Convert the STM32 CRYP binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/crypto/st,stm32-cryp.txt | 19 -------- .../devicetree/bindings/crypto/st,stm32-cryp.yaml | 51 ++++++++++++++++++++++ 2 files changed, 51 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-cryp.txt create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml
Applied, thanks.
Rob
Quoted 10 lines · Benjamin Gaignard
Convert the STM32 CRC binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/crypto/st,stm32-crc.txt | 16 --------- .../devicetree/bindings/crypto/st,stm32-crc.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-crc.txt create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-crc.yaml
Applied, thanks.
Rob