microchip,93lc46b.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/eeprom/microchip,93lc46b.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Microchip 93xx46 SPI compatible EEPROM family
  7. maintainers:
  8. - Cory Tusar <cory.tusar@pid1solutions.com>
  9. properties:
  10. compatible:
  11. enum:
  12. - atmel,at93c46
  13. - atmel,at93c46d
  14. - atmel,at93c56
  15. - atmel,at93c66
  16. - eeprom-93xx46
  17. - microchip,93lc46b
  18. data-size:
  19. description: number of data bits per word
  20. $ref: /schemas/types.yaml#/definitions/uint32
  21. enum: [8, 16]
  22. reg:
  23. description: chip select of EEPROM
  24. maxItems: 1
  25. read-only:
  26. description:
  27. parameter-less property which disables writes to the EEPROM
  28. type: boolean
  29. select-gpios:
  30. description:
  31. specifies the GPIO that needs to be asserted prior to each access
  32. of EEPROM (e.g. for SPI bus multiplexing)
  33. maxItems: 1
  34. required:
  35. - compatible
  36. - reg
  37. - data-size
  38. - spi-max-frequency
  39. allOf:
  40. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  41. - $ref: /schemas/nvmem/nvmem.yaml
  42. unevaluatedProperties: false
  43. examples:
  44. - |
  45. #include <dt-bindings/gpio/gpio.h>
  46. spi {
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. eeprom@0 {
  50. compatible = "eeprom-93xx46";
  51. reg = <0>;
  52. spi-max-frequency = <1000000>;
  53. spi-cs-high;
  54. data-size = <8>;
  55. select-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
  56. };
  57. };