i2c-imx-lpi2c.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/i2c/i2c-imx-lpi2c.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Freescale Low Power Inter IC (LPI2C) for i.MX
  7. maintainers:
  8. - Shawn Guo <shawnguo@kernel.org>
  9. - Sascha Hauer <s.hauer@pengutronix.de>
  10. - Fabio Estevam <festevam@gmail.com>
  11. allOf:
  12. - $ref: /schemas/i2c/i2c-controller.yaml#
  13. properties:
  14. compatible:
  15. oneOf:
  16. - enum:
  17. - fsl,imx7ulp-lpi2c
  18. - items:
  19. - enum:
  20. - fsl,imx8qxp-lpi2c
  21. - fsl,imx8dxl-lpi2c
  22. - fsl,imx8qm-lpi2c
  23. - fsl,imx8ulp-lpi2c
  24. - fsl,imx93-lpi2c
  25. - fsl,imx95-lpi2c
  26. - const: fsl,imx7ulp-lpi2c
  27. reg:
  28. maxItems: 1
  29. interrupts:
  30. maxItems: 1
  31. assigned-clock-parents: true
  32. assigned-clock-rates: true
  33. assigned-clocks: true
  34. clock-frequency: true
  35. clock-names:
  36. items:
  37. - const: per
  38. - const: ipg
  39. clocks:
  40. maxItems: 2
  41. dmas:
  42. items:
  43. - description: DMA controller phandle and request line for TX
  44. - description: DMA controller phandle and request line for RX
  45. dma-names:
  46. items:
  47. - const: tx
  48. - const: rx
  49. power-domains:
  50. maxItems: 1
  51. required:
  52. - compatible
  53. - reg
  54. - interrupts
  55. - clocks
  56. unevaluatedProperties: false
  57. examples:
  58. - |
  59. #include <dt-bindings/clock/imx7ulp-clock.h>
  60. #include <dt-bindings/interrupt-controller/arm-gic.h>
  61. i2c@40a50000 {
  62. compatible = "fsl,imx7ulp-lpi2c";
  63. reg = <0x40A50000 0x10000>;
  64. interrupt-parent = <&intc>;
  65. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  66. clocks = <&clks IMX7ULP_CLK_LPI2C7>,
  67. <&clks IMX7ULP_CLK_NIC1_BUS_DIV>;
  68. };