Skip to contentSkip to conversation

ASoC: dt-bindings: cdns: Convert xtfpga I2S to dt-schema

PATCH Superseded Chaitanya Sabnis 2 participants 2 messages Apr 17 – Apr 21

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ASoC: dt-bindings: cdns: Convert xtfpga I2S to dt-schema

Convert the xtfpga I2S controller plain-text binding documentation to standard dt-schema (YAML).

The hardware requires exactly one memory region, one interrupt line, and one phandle to the master clock. Verified these constraints against the driver source in sound/soc/xtensa/xtfpga-i2s.c.

---
 .../bindings/sound/cdns,xtfpga-i2s.txt        | 18 -------
 .../bindings/sound/cdns,xtfpga-i2s.yaml       | 48 +++++++++++++++++++
 2 files changed, 48 insertions(+), 18 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/sound/cdns,xtfpga-i2s.txt
 create mode 100644 Documentation/devicetree/bindings/sound/cdns,xtfpga-i2s.yaml
Documentation/devicetree/bindings/sound/cdns,xtfpga-i2s.txt deleted +0 -18
deleted file mode 100644
index 860fc0da39c0..000000000000
@@ -1,18 +0,0 @@
-Bindings for I2S controller built into xtfpga Xtensa bitstreams.
-
-Required properties:
-- compatible: shall be "cdns,xtfpga-i2s".
-- reg: memory region (address and length) with device registers.
-- interrupts: interrupt for the device.
-- clocks: phandle to the clk used as master clock. I2S bus clock
-  is derived from it.
-
-Examples:
-
-	i2s0: xtfpga-i2s@d080000 {
-		#sound-dai-cells = <0>;
-		compatible = "cdns,xtfpga-i2s";
-		reg = <0x0d080000 0x40>;
-		interrupts = <2 1>;
-		clocks = <&cdce706 4>;
-	};
Documentation/devicetree/bindings/sound/cdns,xtfpga-i2s.yaml new file +48 -0

48 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw
Quoted 2 lines · Chaitanya Sabnis

Convert the xtfpga I2S controller plain-text binding documentation to standard dt-schema (YAML).

Drop YAML references.

Quoted 4 lines

The hardware requires exactly one memory region, one interrupt line, and one phandle to the master clock. Verified these constraints against the driver source in sound/soc/xtensa/xtfpga-i2s.c.

You changed the binding - added sound-dai-cells. This needs short explanation in the commit msg.

Quoted 3 lines

There is no blank line between tags. Please use b4 to collect tags.

Quoted 1 line

Subject - s/cdns/cdns,xtfpga-i2s/. And then drop redundant parts. You are not changing here the cdns (cdns is a company), but a specific ONE file.

Best regards,
Krzysztof