Unverified Commit a61faea1 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: dt-bindings: samsung: convert to dtschema

Merge series from Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>:

Convert Samsung DT bindings to dtschema
parents b0d0e85f c1fc51eb
Loading
Loading
Loading
Loading
+0 −25
Original line number Diff line number Diff line
Audio Binding for Arndale boards

Required properties:
- compatible : Can be one of the following:
		"samsung,arndale-rt5631",
		"samsung,arndale-wm1811"

- samsung,audio-cpu: The phandle of the Samsung I2S controller
- samsung,audio-codec: The phandle of the audio codec

Optional:
- samsung,model: The name of the sound-card

Arndale Boards has many audio daughter cards, one of them is
rt5631/alc5631. Below example shows audio bindings for rt5631/
alc5631 based codec.

Example:

sound {
		compatible = "samsung,arndale-rt5631";

		samsung,audio-cpu = <&i2s0>
		samsung,audio-codec = <&rt5631>;
};
+4 −0
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@ properties:
        description: |
          phandles to the I2S controller and bluetooth codec,
          in that order
    required:
      - sound-dai

  codec:
    type: object
@@ -38,6 +40,8 @@ properties:
      sound-dai:
        $ref: /schemas/types.yaml#/definitions/phandle-array
        description: phandle to the WM8994 CODEC
    required:
      - sound-dai

  samsung,audio-routing:
    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
+45 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/samsung,arndale.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Insignal Arndale boards audio complex

maintainers:
  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
  - Sylwester Nawrocki <s.nawrocki@samsung.com>

properties:
  compatible:
    enum:
      - samsung,arndale-alc5631
      - samsung,arndale-rt5631
      - samsung,arndale-wm1811

  samsung,audio-codec:
    description: Phandle to the audio codec.
    $ref: /schemas/types.yaml#/definitions/phandle

  samsung,audio-cpu:
    description: Phandle to the Samsung I2S controller.
    $ref: /schemas/types.yaml#/definitions/phandle

  samsung,model:
    description: The user-visible name of this sound complex.
    $ref: /schemas/types.yaml#/definitions/string

required:
  - compatible
  - samsung,audio-codec
  - samsung,audio-cpu

additionalProperties: false

examples:
  - |
    sound {
        compatible = "samsung,arndale-rt5631";
        samsung,audio-cpu = <&i2s0>;
        samsung,audio-codec = <&rt5631>;
    };
+0 −14
Original line number Diff line number Diff line
Samsung SMDK audio complex

Required properties:
- compatible : "samsung,smdk-wm8994"
- samsung,i2s-controller: The phandle of the Samsung I2S0 controller
- samsung,audio-codec: The phandle of the WM8994 audio codec
Example:

sound {
		compatible = "samsung,smdk-wm8994";

		samsung,i2s-controller = <&i2s0>;
		samsung,audio-codec = <&wm8994>;
};
+38 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/samsung,smdk5250.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung SMDK5250 audio complex with WM8994 codec

maintainers:
  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
  - Sylwester Nawrocki <s.nawrocki@samsung.com>

properties:
  compatible:
    const: samsung,smdk-wm8994

  samsung,audio-codec:
    description: Phandle to the audio codec.
    $ref: /schemas/types.yaml#/definitions/phandle

  samsung,i2s-controller:
    description: Phandle to the Samsung I2S controller.
    $ref: /schemas/types.yaml#/definitions/phandle

required:
  - compatible
  - samsung,audio-codec
  - samsung,i2s-controller

additionalProperties: false

examples:
  - |
    sound {
        compatible = "samsung,smdk-wm8994";
        samsung,i2s-controller = <&i2s0>;
        samsung,audio-codec = <&wm8994>;
    };
Loading