ti,trf7970a.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/nfc/ti,trf7970a.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Texas Instruments TRF7970A RFID/NFC/15693 Transceiver
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. - Mark Greer <mgreer@animalcreek.com>
  10. properties:
  11. compatible:
  12. const: ti,trf7970a
  13. autosuspend-delay:
  14. $ref: /schemas/types.yaml#/definitions/uint32
  15. description: |
  16. Specify autosuspend delay in milliseconds.
  17. clock-frequency:
  18. description: |
  19. Set to specify that the input frequency to the trf7970a is 13560000Hz or
  20. 27120000Hz
  21. en2-rf-quirk:
  22. type: boolean
  23. description: |
  24. Specify that the trf7970a being used has the "EN2 RF" erratum
  25. interrupts:
  26. maxItems: 1
  27. irq-status-read-quirk:
  28. type: boolean
  29. description: |
  30. Specify that the trf7970a being used has the "IRQ Status Read" erratum
  31. reg:
  32. maxItems: 1
  33. ti,enable-gpios:
  34. minItems: 1
  35. maxItems: 2
  36. description: |
  37. One or two GPIO entries used for 'EN' and 'EN2' pins on the TRF7970A. EN2
  38. is optional.
  39. vdd-io-supply:
  40. description: |
  41. Regulator specifying voltage for VDD-IO
  42. vin-supply:
  43. description: |
  44. Regulator for supply voltage to VIN pin
  45. ti,rx-gain-reduction-db:
  46. description: |
  47. Specify an RX gain reduction to reduce antenna sensitivity with 5dB per
  48. increment, with a maximum of 15dB.
  49. enum: [ 0, 5, 10, 15]
  50. required:
  51. - compatible
  52. - interrupts
  53. - reg
  54. - spi-max-frequency
  55. - ti,enable-gpios
  56. - vin-supply
  57. allOf:
  58. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  59. unevaluatedProperties: false
  60. examples:
  61. - |
  62. #include <dt-bindings/gpio/gpio.h>
  63. #include <dt-bindings/interrupt-controller/irq.h>
  64. spi {
  65. #address-cells = <1>;
  66. #size-cells = <0>;
  67. nfc@0 {
  68. compatible = "ti,trf7970a";
  69. reg = <0>;
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&trf7970a_default>;
  72. spi-max-frequency = <2000000>;
  73. interrupt-parent = <&gpio2>;
  74. interrupts = <14 0>;
  75. ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>,
  76. <&gpio2 5 GPIO_ACTIVE_HIGH>;
  77. vin-supply = <&ldo3_reg>;
  78. vdd-io-supply = <&ldo2_reg>;
  79. autosuspend-delay = <30000>;
  80. irq-status-read-quirk;
  81. en2-rf-quirk;
  82. clock-frequency = <27120000>;
  83. ti,rx-gain-reduction-db = <15>;
  84. };
  85. };