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