i2c-owl.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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-owl.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Actions Semi Owl I2C Controller
  7. maintainers:
  8. - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  9. description: |
  10. This I2C controller is found in the Actions Semi Owl SoCs:
  11. S500, S700 and S900.
  12. allOf:
  13. - $ref: /schemas/i2c/i2c-controller.yaml#
  14. properties:
  15. compatible:
  16. enum:
  17. - actions,s500-i2c # Actions Semi S500 compatible SoCs
  18. - actions,s700-i2c # Actions Semi S700 compatible SoCs
  19. - actions,s900-i2c # Actions Semi S900 compatible SoCs
  20. reg:
  21. maxItems: 1
  22. interrupts:
  23. maxItems: 1
  24. clocks:
  25. description: Phandle of the clock feeding the I2C controller.
  26. minItems: 1
  27. clock-frequency:
  28. description: |
  29. Desired I2C bus clock frequency in Hz. As only Standard and Fast
  30. modes are supported, possible values are 100000 and 400000.
  31. enum: [100000, 400000]
  32. required:
  33. - compatible
  34. - reg
  35. - interrupts
  36. - clocks
  37. unevaluatedProperties: false
  38. examples:
  39. - |
  40. #include <dt-bindings/clock/actions,s900-cmu.h>
  41. #include <dt-bindings/interrupt-controller/arm-gic.h>
  42. i2c@e0170000 {
  43. compatible = "actions,s900-i2c";
  44. reg = <0xe0170000 0x1000>;
  45. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  46. clocks = <&cmu CLK_I2C0>;
  47. clock-frequency = <100000>;
  48. };
  49. ...