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.
45 spi-max-frequency: true
48 $ref: /schemas/types.yaml#definitions/uint32
49 enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072]
51 Size of the eeprom page.
54 $ref: /schemas/types.yaml#definitions/uint32
56 Total eeprom size in bytes.
59 $ref: /schemas/types.yaml#/definitions/uint32
60 enum: [ 8, 9, 16, 24 ]
62 Number of address bits.
63 For 9 bits, the MSB of the address is sent as bit 3 of the instruction
64 byte, before the address byte.
72 Disable writes to the eeprom.
78 GPIO to which the write-protect pin of the chip is connected.
80 # Deprecated: at25,byte-len, at25,addr-mode, at25,page-size
82 $ref: /schemas/types.yaml#/definitions/uint32
84 Total eeprom size in bytes. Deprecated, use "size" property instead.
88 $ref: /schemas/types.yaml#/definitions/uint32
90 Addr-mode flags, as defined in include/linux/spi/eeprom.h.
91 Deprecated, use "address-width" property instead.
95 $ref: /schemas/types.yaml#/definitions/uint32
97 Size of the eeprom page. Deprecated, use "pagesize" property instead.
108 additionalProperties: false
112 #include <dt-bindings/gpio/gpio.h>
114 #address-cells = <1>;
118 compatible = "st,m95256", "atmel,at25";
120 spi-max-frequency = <5000000>;
123 wp-gpios = <&gpio1 3 0>;
127 address-width = <16>;