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