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 or FRAMs compatible with Atmel's AT25
10 - Christian Eggers <ceggers@arri.de>
15 - pattern: "^eeprom@[0-9a-f]{1,2}$"
16 - pattern: "^fram@[0-9a-f]{1,2}$"
18 # There are multiple known vendors who manufacture EEPROM chips compatible
19 # with Atmel's AT25. The compatible string requires two items where the
20 # 'vendor' and 'model' parts of the first are the actual chip and the second
21 # item is fixed to "atmel,at25". Some existing bindings only have the
22 # "atmel,at25" part and should be fixed by somebody who knows vendor and
40 # Please don't use this alternative for new bindings.
47 spi-max-frequency: true
50 $ref: /schemas/types.yaml#/definitions/uint32
51 enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072]
53 Size of the eeprom page. FRAMs don't have pages.
56 $ref: /schemas/types.yaml#/definitions/uint32
58 Total eeprom size in bytes.
61 $ref: /schemas/types.yaml#/definitions/uint32
62 enum: [ 8, 9, 16, 24 ]
64 Number of address bits.
65 For 9 bits, the MSB of the address is sent as bit 3 of the instruction
66 byte, before the address byte.
74 Disable writes to the eeprom.
80 GPIO to which the write-protect pin of the chip is connected.
82 # Deprecated: at25,byte-len, at25,addr-mode, at25,page-size
84 $ref: /schemas/types.yaml#/definitions/uint32
86 Total eeprom size in bytes. Deprecated, use "size" property instead.
90 $ref: /schemas/types.yaml#/definitions/uint32
92 Addr-mode flags, as defined in include/linux/spi/eeprom.h.
93 Deprecated, use "address-width" property instead.
97 $ref: /schemas/types.yaml#/definitions/uint32
99 Size of the eeprom page. Deprecated, use "pagesize" property instead.
120 additionalProperties: false
124 #include <dt-bindings/gpio/gpio.h>
126 #address-cells = <1>;
130 compatible = "st,m95256", "atmel,at25";
132 spi-max-frequency = <5000000>;
135 wp-gpios = <&gpio1 3 0>;
139 address-width = <16>;
143 compatible = "cypress,fm25", "atmel,at25";
145 spi-max-frequency = <40000000>;