]> www.infradead.org Git - users/hch/misc.git/commitdiff
dt-bindings: nfc: ti,trf7970a: Restrict the ti,rx-gain-reduction-db values
authorFabio Estevam <festevam@gmail.com>
Tue, 26 Aug 2025 14:17:36 +0000 (11:17 -0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Aug 2025 00:17:58 +0000 (17:17 -0700)
Instead of stating the supported values for the ti,rx-gain-reduction-db
property in free text format, add an enum entry that can help validating
the devicetree files.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250826141736.712827-1-festevam@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/nfc/ti,trf7970a.yaml

index 783a85b84893ce14d4752037769b6d97b90f24ce..7e96a625f0cffd23642755c3ae1183632162cc92 100644 (file)
@@ -58,7 +58,8 @@ properties:
   ti,rx-gain-reduction-db:
     description: |
       Specify an RX gain reduction to reduce antenna sensitivity with 5dB per
-      increment, with a maximum of 15dB. Supported values: [0, 5, 10, 15].
+      increment, with a maximum of 15dB.
+    enum: [ 0, 5, 10, 15]
 
 required:
   - compatible