devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5] update tas2780.yaml
@ 2022-07-12  5:08 Raphael-Xu
  2022-07-13 14:51 ` Rob Herring
  0 siblings, 1 reply; 5+ messages in thread
From: Raphael-Xu @ 2022-07-12  5:08 UTC (permalink / raw)
  To: robh+dt
  Cc: alsa-devel, raphael-xu, shenghao-ding, navada, asyrus, broonie,
	devicetree, Raphael-Xu

1.remove unused item in DT 2.revise the format

Signed-off-by: Raphael-Xu <13691752556@139.com>
---
 .../devicetree/bindings/sound/tas2780.yaml    | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/tas2780.yaml b/Documentation/devicetree/bindings/sound/tas2780.yaml
index 5a0de0995066..21389a16fdb9 100644
--- a/Documentation/devicetree/bindings/sound/tas2780.yaml
+++ b/Documentation/devicetree/bindings/sound/tas2780.yaml
@@ -22,24 +22,29 @@ properties:
       - ti,tas2780
 
   reg:
-    maxItems: 1
-    description: |
-       I2C address of the device can be between 0x38 to 0x45.
+    description:
+       I2C address of the device can be between 0x38 to 0x3f.
+    minimum: 0x38
+    maximum: 0x3f
 
   reset-gpios:
-    maxItems: 1
     description: GPIO used to reset the device.
+    maxItems: 1
 
   interrupts:
     maxItems: 1
 
   ti,imon-slot-no:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: TDM TX current sense time slot.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 0
+    maximum: 3
 
   ti,vmon-slot-no:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: TDM TX voltage sense time slot.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 0
+    maximum: 3
 
   '#sound-dai-cells':
     const: 1
@@ -60,10 +65,8 @@ examples:
        compatible = "ti,tas2780";
        reg = <0x38>;
        #sound-dai-cells = <1>;
-       interrupt-parent = <&gpio1>;
        interrupts = <14>;
        reset-gpios = <&gpio1 15 0>;
-       shutdown-gpios = <&gpio1 15 0>;
        ti,imon-slot-no = <0>;
        ti,vmon-slot-no = <2>;
      };
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-20 23:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-12  5:08 [PATCH v5] update tas2780.yaml Raphael-Xu
2022-07-13 14:51 ` Rob Herring
2022-07-20  3:48   ` [EXTERNAL] " Xu, Yang
2022-07-20  5:43     ` Xu, Yang
2022-07-20 23:02       ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).