loongson,ls2x-i2c.yaml 1005 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/i2c/loongson,ls2x-i2c.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Loongson LS2X I2C Controller
  7. maintainers:
  8. - Binbin Zhou <zhoubinbin@loongson.cn>
  9. allOf:
  10. - $ref: /schemas/i2c/i2c-controller.yaml#
  11. properties:
  12. compatible:
  13. enum:
  14. - loongson,ls2k-i2c
  15. - loongson,ls7a-i2c
  16. reg:
  17. maxItems: 1
  18. interrupts:
  19. maxItems: 1
  20. required:
  21. - compatible
  22. - reg
  23. - interrupts
  24. unevaluatedProperties: false
  25. examples:
  26. - |
  27. #include <dt-bindings/interrupt-controller/irq.h>
  28. i2c0: i2c@1fe21000 {
  29. compatible = "loongson,ls2k-i2c";
  30. reg = <0x1fe21000 0x8>;
  31. interrupt-parent = <&extioiic>;
  32. interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. eeprom@57 {
  36. compatible = "atmel,24c16";
  37. reg = <0x57>;
  38. pagesize = <16>;
  39. };
  40. };