From: Fabio Estevam Date: Tue, 26 Aug 2025 14:17:36 +0000 (-0300) Subject: dt-bindings: nfc: ti,trf7970a: Restrict the ti,rx-gain-reduction-db values X-Git-Tag: v6.18-rc1~132^2~322 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40fb9751ccc6e2ad450a2b938d7c8583a34d4a56;p=thirdparty%2Flinux.git dt-bindings: nfc: ti,trf7970a: Restrict the ti,rx-gain-reduction-db values 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 Acked-by: Conor Dooley Reviewed-by: Krzysztof Kozlowski Link: https://patch.msgid.link/20250826141736.712827-1-festevam@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/Documentation/devicetree/bindings/net/nfc/ti,trf7970a.yaml b/Documentation/devicetree/bindings/net/nfc/ti,trf7970a.yaml index 783a85b84893c..7e96a625f0cff 100644 --- a/Documentation/devicetree/bindings/net/nfc/ti,trf7970a.yaml +++ b/Documentation/devicetree/bindings/net/nfc/ti,trf7970a.yaml @@ -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