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
41 # Please don't use this alternative for new bindings.
49 $ref: /schemas/types.yaml#/definitions/uint32
50 enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072]
52 Size of the eeprom page. FRAMs don't have pages.
55 $ref: /schemas/types.yaml#/definitions/uint32
57 Total eeprom size in bytes.
60 $ref: /schemas/types.yaml#/definitions/uint32
61 enum: [ 8, 9, 16, 24 ]
63 Number of address bits.
64 For 9 bits, the MSB of the address is sent as bit 3 of the instruction
65 byte, before the address byte.
73 Disable writes to the eeprom.
79 GPIO to which the write-protect pin of the chip is connected.
81 # Deprecated: at25,byte-len, at25,addr-mode, at25,page-size
83 $ref: /schemas/types.yaml#/definitions/uint32
85 Total eeprom size in bytes. Deprecated, use "size" property instead.
89 $ref: /schemas/types.yaml#/definitions/uint32
91 Addr-mode flags, as defined in include/linux/spi/eeprom.h.
92 Deprecated, use "address-width" property instead.
96 $ref: /schemas/types.yaml#/definitions/uint32
98 Size of the eeprom page. Deprecated, use "pagesize" property instead.
107 - $ref: /schemas/spi/spi-peripheral-props.yaml#
108 - $ref: /schemas/nvmem/nvmem.yaml
121 unevaluatedProperties: false
125 #include <dt-bindings/gpio/gpio.h>
127 #address-cells = <1>;
131 compatible = "st,m95256", "atmel,at25";
133 spi-max-frequency = <5000000>;
136 wp-gpios = <&gpio1 3 0>;
140 address-width = <16>;
144 compatible = "cypress,fm25", "atmel,at25";
146 spi-max-frequency = <40000000>;