^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) EEPROMs (SPI) compatible with Microchip Technology 93xx46 family.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible : shall be one of:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) "atmel,at93c46d"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) "eeprom-93xx46"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - data-size : number of data bits per word (either 8 or 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - read-only : parameter-less property which disables writes to the EEPROM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - select-gpios : if present, specifies the GPIO that will be asserted prior to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) each access to the EEPROM (e.g. for SPI bus multiplexing)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) apply. In particular, "reg" and "spi-max-frequency" properties must be given.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) eeprom@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) compatible = "eeprom-93xx46";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) reg = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) spi-max-frequency = <1000000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) spi-cs-high;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) data-size = <8>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) select-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };