amphenol,chipcap2.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwmon/amphenol,chipcap2.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ChipCap 2 humidity and temperature iio sensor
  7. maintainers:
  8. - Javier Carrasco <javier.carrasco.cruz@gmail.com>
  9. description: |
  10. Relative humidity and temperature sensor on I2C bus.
  11. Datasheets:
  12. https://www.amphenol-sensors.com/en/telaire/humidity/527-humidity-sensors/3095-chipcap-2
  13. properties:
  14. compatible:
  15. oneOf:
  16. - const: amphenol,cc2d23
  17. - items:
  18. - enum:
  19. - amphenol,cc2d23s
  20. - amphenol,cc2d25
  21. - amphenol,cc2d25s
  22. - amphenol,cc2d33
  23. - amphenol,cc2d33s
  24. - amphenol,cc2d35
  25. - amphenol,cc2d35s
  26. - const: amphenol,cc2d23
  27. reg:
  28. maxItems: 1
  29. interrupts:
  30. items:
  31. - description: measurement ready indicator
  32. - description: low humidity alarm
  33. - description: high humidity alarm
  34. interrupt-names:
  35. items:
  36. - const: ready
  37. - const: low
  38. - const: high
  39. vdd-supply:
  40. description:
  41. Dedicated, controllable supply-regulator to reset the device and
  42. enter in command mode.
  43. required:
  44. - compatible
  45. - reg
  46. - vdd-supply
  47. additionalProperties: false
  48. examples:
  49. - |
  50. #include <dt-bindings/interrupt-controller/irq.h>
  51. i2c {
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. humidity@28 {
  55. compatible = "amphenol,cc2d23s", "amphenol,cc2d23";
  56. reg = <0x28>;
  57. interrupt-parent = <&gpio>;
  58. interrupts = <4 IRQ_TYPE_EDGE_RISING>,
  59. <5 IRQ_TYPE_EDGE_RISING>,
  60. <6 IRQ_TYPE_EDGE_RISING>;
  61. interrupt-names = "ready", "low", "high";
  62. vdd-supply = <&reg_vdd>;
  63. };
  64. };