soundwire-controller.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/soundwire/soundwire-controller.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: SoundWire Controller Common Properties
  7. maintainers:
  8. - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
  9. - Vinod Koul <vkoul@kernel.org>
  10. description: |
  11. SoundWire busses can be described with a node for the SoundWire controller
  12. device and a set of child nodes for each SoundWire slave on the bus.
  13. properties:
  14. $nodename:
  15. pattern: "^soundwire(@.*)?$"
  16. "#address-cells":
  17. const: 2
  18. "#size-cells":
  19. const: 0
  20. patternProperties:
  21. "^.*@[0-9a-f],[0-9a-f]$":
  22. type: object
  23. properties:
  24. compatible:
  25. pattern: "^sdw[0-9a-f]{1}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{2}$"
  26. description: Is the textual representation of SoundWire Enumeration
  27. address. compatible string should contain SoundWire Version ID,
  28. Manufacturer ID, Part ID and Class ID in order and shall be in
  29. lower-case hexadecimal with leading zeroes.
  30. Valid sizes of these fields are
  31. Version ID is 1 nibble, number '0x1' represents SoundWire 1.0
  32. and '0x2' represents SoundWire 1.1 and so on.
  33. MFD is 4 nibbles
  34. PID is 4 nibbles
  35. CID is 2 nibbles
  36. More Information on detail of encoding of these fields can be
  37. found in MIPI Alliance DisCo & SoundWire 1.0 Specifications.
  38. reg:
  39. maxItems: 1
  40. description:
  41. Link ID followed by Instance ID of SoundWire Device Address.
  42. required:
  43. - compatible
  44. - reg
  45. required:
  46. - "#address-cells"
  47. - "#size-cells"
  48. additionalProperties: true
  49. examples:
  50. - |
  51. soundwire@c2d0000 {
  52. #address-cells = <2>;
  53. #size-cells = <0>;
  54. reg = <0x0c2d0000 0x2000>;
  55. speaker@0,1 {
  56. compatible = "sdw10217201000";
  57. reg = <0 1>;
  58. powerdown-gpios = <&wcdpinctrl 2 0>;
  59. #thermal-sensor-cells = <0>;
  60. #sound-dai-cells = <0>;
  61. };
  62. speaker@0,2 {
  63. compatible = "sdw10217201000";
  64. reg = <0 2>;
  65. powerdown-gpios = <&wcdpinctrl 2 0>;
  66. #thermal-sensor-cells = <0>;
  67. #sound-dai-cells = <0>;
  68. };
  69. };
  70. ...