1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: "http://devicetree.org/schemas/eeprom/at25.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: SPI EEPROMs compatible with Atmel's AT25
10 - Christian Eggers <ceggers@arri.de>
14 pattern: "^eeprom@[0-9a-f]{1,2}$"
16 # There are multiple known vendors who manufacture EEPROM chips compatible
17 # with Atmel's AT25. The compatible string requires two items where the
18 # 'vendor' and 'model' parts of the first are the actual chip and the second
19 # item is fixed to "atmel,at25". Some existing bindings only have the
20 # "atmel,at25" part and should be fixed by somebody who knows vendor and
37 # Please don't use this alternative for new bindings.
44 spi-max-frequency: true
47 $ref: /schemas/types.yaml#/definitions/uint32
48 enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072]
50 Size of the eeprom page.
53 $ref: /schemas/types.yaml#/definitions/uint32
55 Total eeprom size in bytes.
58 $ref: /schemas/types.yaml#/definitions/uint32
59 enum: [ 8, 9, 16, 24 ]
61 Number of address bits.
62 For 9 bits, the MSB of the address is sent as bit 3 of the instruction
63 byte, before the address byte.
71 Disable writes to the eeprom.
77 GPIO to which the write-protect pin of the chip is connected.
79 # Deprecated: at25,byte-len, at25,addr-mode, at25,page-size
81 $ref: /schemas/types.yaml#/definitions/uint32
83 Total eeprom size in bytes. Deprecated, use "size" property instead.
87 $ref: /schemas/types.yaml#/definitions/uint32
89 Addr-mode flags, as defined in include/linux/spi/eeprom.h.
90 Deprecated, use "address-width" property instead.
94 $ref: /schemas/types.yaml#/definitions/uint32
96 Size of the eeprom page. Deprecated, use "pagesize" property instead.
107 additionalProperties: false
111 #include <dt-bindings/gpio/gpio.h>
113 #address-cells = <1>;
117 compatible = "st,m95256", "atmel,at25";
119 spi-max-frequency = <5000000>;
122 wp-gpios = <&gpio1 3 0>;
126 address-width = <16>;