apple,i2c.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/i2c/apple,i2c.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Apple/PASemi I2C controller
  7. maintainers:
  8. - Sven Peter <sven@svenpeter.dev>
  9. description: |
  10. Apple SoCs such as the M1 come with a I2C controller based on the one found
  11. in machines with P. A. Semi's PWRficient processors.
  12. The bus is used to communicate with e.g. USB PD chips or the speaker
  13. amp.
  14. allOf:
  15. - $ref: /schemas/i2c/i2c-controller.yaml#
  16. properties:
  17. compatible:
  18. items:
  19. - enum:
  20. - apple,t8103-i2c
  21. - apple,t8112-i2c
  22. - apple,t6000-i2c
  23. - const: apple,i2c
  24. reg:
  25. maxItems: 1
  26. clocks:
  27. items:
  28. - description: I2C bus reference clock
  29. interrupts:
  30. maxItems: 1
  31. clock-frequency:
  32. description: |
  33. Desired I2C bus clock frequency in Hz. If not specified, 100 kHz will be
  34. used. This frequency is generated by dividing the reference clock.
  35. Allowed values are between ref_clk/(16*4) and ref_clk/(16*255).
  36. power-domains:
  37. maxItems: 1
  38. required:
  39. - compatible
  40. - reg
  41. - clocks
  42. - interrupts
  43. unevaluatedProperties: false
  44. examples:
  45. - |
  46. i2c@35010000 {
  47. compatible = "apple,t8103-i2c", "apple,i2c";
  48. reg = <0x35010000 0x4000>;
  49. interrupt-parent = <&aic>;
  50. interrupts = <0 627 4>;
  51. clocks = <&ref_clk>;
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. };