All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Liviu Dudau <liviu.dudau@arm.com>,
	Robin Murphy <robin.murphy@arm.com>,
	devicetree@vger.kernel.org, Will Deacon <will@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	alsa-devel@alsa-project.org
Subject: [PATCH v2 04/11] dt-bindings: sound: add Arm PL041 AACI DT schema
Date: Fri,  6 May 2022 15:05:26 +0100	[thread overview]
Message-ID: <20220506140533.3566431-5-andre.przywara@arm.com> (raw)
In-Reply-To: <20220506140533.3566431-1-andre.przywara@arm.com>

The Arm PrimeCell Advanced Audio CODEC Interface (AACI aka PL041) is
a peripheral that provides communication with an audio CODEC.

Add a simple DT schema binding for it, so that DTs can be validated
automatically.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 .../devicetree/bindings/sound/arm,pl041.yaml  | 62 +++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/arm,pl041.yaml

diff --git a/Documentation/devicetree/bindings/sound/arm,pl041.yaml b/Documentation/devicetree/bindings/sound/arm,pl041.yaml
new file mode 100644
index 0000000000000..7896b8150cf0f
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/arm,pl041.yaml
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/arm,pl041.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Arm Ltd. PrimeCell PL041 AACI sound interface
+
+maintainers:
+  - Andre Przywara <andre.przywara@arm.com>
+
+description:
+  The Arm PrimeCell Advanced Audio CODEC Interface (AACI) is an AMBA compliant
+  peripheral that provides communication with an audio CODEC using the AC-link
+  protocol.
+
+# We need a select here so we don't match all nodes with 'arm,primecell'
+select:
+  properties:
+    compatible:
+      contains:
+        const: arm,pl041
+  required:
+    - compatible
+
+properties:
+  compatible:
+    items:
+      - const: arm,pl041
+      - const: arm,primecell
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    description: APB register access clock
+
+  clock-names:
+    const: apb_pclk
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+additionalProperties: false
+
+examples:
+  - |
+    audio-controller@40000 {
+        compatible = "arm,pl041", "arm,primecell";
+        reg = <0x040000 0x1000>;
+        interrupts = <11>;
+        clocks = <&v2m_clk24mhz>;
+        clock-names = "apb_pclk";
+    };
+
+...
-- 
2.25.1


WARNING: multiple messages have this Message-ID (diff)
From: Andre Przywara <andre.przywara@arm.com>
To: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
	Will Deacon <will@kernel.org>, Liviu Dudau <liviu.dudau@arm.com>,
	Takashi Iwai <tiwai@suse.com>,
	Robin Murphy <robin.murphy@arm.com>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 04/11] dt-bindings: sound: add Arm PL041 AACI DT schema
Date: Fri,  6 May 2022 15:05:26 +0100	[thread overview]
Message-ID: <20220506140533.3566431-5-andre.przywara@arm.com> (raw)
In-Reply-To: <20220506140533.3566431-1-andre.przywara@arm.com>

The Arm PrimeCell Advanced Audio CODEC Interface (AACI aka PL041) is
a peripheral that provides communication with an audio CODEC.

Add a simple DT schema binding for it, so that DTs can be validated
automatically.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 .../devicetree/bindings/sound/arm,pl041.yaml  | 62 +++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/arm,pl041.yaml

diff --git a/Documentation/devicetree/bindings/sound/arm,pl041.yaml b/Documentation/devicetree/bindings/sound/arm,pl041.yaml
new file mode 100644
index 0000000000000..7896b8150cf0f
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/arm,pl041.yaml
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/arm,pl041.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Arm Ltd. PrimeCell PL041 AACI sound interface
+
+maintainers:
+  - Andre Przywara <andre.przywara@arm.com>
+
+description:
+  The Arm PrimeCell Advanced Audio CODEC Interface (AACI) is an AMBA compliant
+  peripheral that provides communication with an audio CODEC using the AC-link
+  protocol.
+
+# We need a select here so we don't match all nodes with 'arm,primecell'
+select:
+  properties:
+    compatible:
+      contains:
+        const: arm,pl041
+  required:
+    - compatible
+
+properties:
+  compatible:
+    items:
+      - const: arm,pl041
+      - const: arm,primecell
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    description: APB register access clock
+
+  clock-names:
+    const: apb_pclk
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+additionalProperties: false
+
+examples:
+  - |
+    audio-controller@40000 {
+        compatible = "arm,pl041", "arm,primecell";
+        reg = <0x040000 0x1000>;
+        interrupts = <11>;
+        clocks = <&v2m_clk24mhz>;
+        clock-names = "apb_pclk";
+    };
+
+...
-- 
2.25.1


WARNING: multiple messages have this Message-ID (diff)
From: Andre Przywara <andre.przywara@arm.com>
To: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Liviu Dudau <liviu.dudau@arm.com>,
	Robin Murphy <robin.murphy@arm.com>,
	devicetree@vger.kernel.org, Will Deacon <will@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	alsa-devel@alsa-project.org
Subject: [PATCH v2 04/11] dt-bindings: sound: add Arm PL041 AACI DT schema
Date: Fri,  6 May 2022 15:05:26 +0100	[thread overview]
Message-ID: <20220506140533.3566431-5-andre.przywara@arm.com> (raw)
In-Reply-To: <20220506140533.3566431-1-andre.przywara@arm.com>

The Arm PrimeCell Advanced Audio CODEC Interface (AACI aka PL041) is
a peripheral that provides communication with an audio CODEC.

Add a simple DT schema binding for it, so that DTs can be validated
automatically.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 .../devicetree/bindings/sound/arm,pl041.yaml  | 62 +++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/arm,pl041.yaml

diff --git a/Documentation/devicetree/bindings/sound/arm,pl041.yaml b/Documentation/devicetree/bindings/sound/arm,pl041.yaml
new file mode 100644
index 0000000000000..7896b8150cf0f
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/arm,pl041.yaml
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/arm,pl041.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Arm Ltd. PrimeCell PL041 AACI sound interface
+
+maintainers:
+  - Andre Przywara <andre.przywara@arm.com>
+
+description:
+  The Arm PrimeCell Advanced Audio CODEC Interface (AACI) is an AMBA compliant
+  peripheral that provides communication with an audio CODEC using the AC-link
+  protocol.
+
+# We need a select here so we don't match all nodes with 'arm,primecell'
+select:
+  properties:
+    compatible:
+      contains:
+        const: arm,pl041
+  required:
+    - compatible
+
+properties:
+  compatible:
+    items:
+      - const: arm,pl041
+      - const: arm,primecell
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    description: APB register access clock
+
+  clock-names:
+    const: apb_pclk
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+additionalProperties: false
+
+examples:
+  - |
+    audio-controller@40000 {
+        compatible = "arm,pl041", "arm,primecell";
+        reg = <0x040000 0x1000>;
+        interrupts = <11>;
+        clocks = <&v2m_clk24mhz>;
+        clock-names = "apb_pclk";
+    };
+
+...
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2022-05-06 14:05 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-06 14:05 [PATCH v2 00/11] dt-bindings: Convert Arm Ltd. peripherals to DT schema Andre Przywara
2022-05-06 14:05 ` Andre Przywara
2022-05-06 14:05 ` [PATCH v2 01/11] dt-bindings: iommu: arm,smmu-v3: make PRI IRQ optional Andre Przywara
2022-05-06 14:05   ` [PATCH v2 01/11] dt-bindings: iommu: arm, smmu-v3: " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 14:05 ` [PATCH v2 02/11] dt-bindings: arm: spe-pmu: convert to DT schema Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 14:05 ` [PATCH v2 03/11] dt-bindings: arm: sp810: " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-07 16:39   ` Krzysztof Kozlowski
2022-05-07 16:39     ` Krzysztof Kozlowski
2022-05-06 14:05 ` Andre Przywara [this message]
2022-05-06 14:05   ` [PATCH v2 04/11] dt-bindings: sound: add Arm PL041 AACI " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-07 16:39   ` Krzysztof Kozlowski
2022-05-07 16:39     ` Krzysztof Kozlowski
2022-05-07 16:39     ` Krzysztof Kozlowski
2022-05-06 14:05 ` [PATCH v2 05/11] dt-bindings: serio: add Arm PL050 " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-07 16:40   ` Krzysztof Kozlowski
2022-05-07 16:40     ` Krzysztof Kozlowski
2022-05-06 14:05 ` [PATCH v2 06/11] dt-bindings: arm: convert vexpress-sysregs to " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 22:39   ` Rob Herring
2022-05-06 22:39     ` Rob Herring
2022-05-06 14:05 ` [PATCH v2 07/11] dt-bindings: arm: convert vexpress-config " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 14:05 ` [PATCH v2 08/11] dt-bindings: display: convert PL110/PL111 " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 22:39   ` Rob Herring
2022-05-06 22:39     ` Rob Herring
2022-05-06 22:39     ` Rob Herring
2022-05-06 14:05 ` [PATCH v2 09/11] dt-bindings: display: convert Arm HDLCD " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 22:39   ` Rob Herring
2022-05-06 22:39     ` Rob Herring
2022-05-06 22:39     ` Rob Herring
2022-05-06 14:05 ` [PATCH v2 10/11] dt-bindings: display: convert Arm Mali-DP " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 22:39   ` Rob Herring
2022-05-06 22:39     ` Rob Herring
2022-05-06 22:39     ` Rob Herring
2022-05-09 13:49     ` Andre Przywara
2022-05-09 13:49       ` Andre Przywara
2022-05-09 13:49       ` Andre Przywara
2022-05-11 12:03       ` Liviu Dudau
2022-05-11 12:03         ` Liviu Dudau
2022-05-11 12:03         ` Liviu Dudau
2022-06-09 16:31         ` Andre Przywara
2022-06-09 16:31           ` Andre Przywara
2022-06-09 16:31           ` Andre Przywara
2022-05-06 14:05 ` [PATCH v2 11/11] dt-bindings: display: convert Arm Komeda " Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-06 14:05   ` Andre Przywara
2022-05-13 10:42   ` Carsten Haitzler
2022-05-13 10:42     ` Carsten Haitzler
2022-05-13 10:42     ` Carsten Haitzler
2022-05-09 19:15 ` [PATCH v2 00/11] dt-bindings: Convert Arm Ltd. peripherals " Rob Herring
2022-05-09 19:15   ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220506140533.3566431-5-andre.przywara@arm.com \
    --to=andre.przywara@arm.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=liviu.dudau@arm.com \
    --cc=perex@perex.cz \
    --cc=robh+dt@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=tiwai@suse.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.