1*354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*354d7675SEmmanuel Vadot%YAML 1.2 3*354d7675SEmmanuel Vadot--- 4*354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/misc/eeprom-93xx46.yaml# 5*354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*354d7675SEmmanuel Vadot 7*354d7675SEmmanuel Vadottitle: Microchip 93xx46 SPI compatible EEPROM family dt bindings 8*354d7675SEmmanuel Vadot 9*354d7675SEmmanuel Vadotmaintainers: 10*354d7675SEmmanuel Vadot - Cory Tusar <cory.tusar@pid1solutions.com> 11*354d7675SEmmanuel Vadot 12*354d7675SEmmanuel Vadotproperties: 13*354d7675SEmmanuel Vadot compatible: 14*354d7675SEmmanuel Vadot enum: 15*354d7675SEmmanuel Vadot - atmel,at93c46 16*354d7675SEmmanuel Vadot - atmel,at93c46d 17*354d7675SEmmanuel Vadot - atmel,at93c56 18*354d7675SEmmanuel Vadot - atmel,at93c66 19*354d7675SEmmanuel Vadot - eeprom-93xx46 20*354d7675SEmmanuel Vadot - microchip,93lc46b 21*354d7675SEmmanuel Vadot 22*354d7675SEmmanuel Vadot data-size: 23*354d7675SEmmanuel Vadot description: number of data bits per word 24*354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 25*354d7675SEmmanuel Vadot enum: [8, 16] 26*354d7675SEmmanuel Vadot 27*354d7675SEmmanuel Vadot reg: 28*354d7675SEmmanuel Vadot description: chip select of EEPROM 29*354d7675SEmmanuel Vadot maxItems: 1 30*354d7675SEmmanuel Vadot 31*354d7675SEmmanuel Vadot spi-max-frequency: true 32*354d7675SEmmanuel Vadot spi-cs-high: true 33*354d7675SEmmanuel Vadot 34*354d7675SEmmanuel Vadot read-only: 35*354d7675SEmmanuel Vadot description: 36*354d7675SEmmanuel Vadot parameter-less property which disables writes to the EEPROM 37*354d7675SEmmanuel Vadot type: boolean 38*354d7675SEmmanuel Vadot 39*354d7675SEmmanuel Vadot select-gpios: 40*354d7675SEmmanuel Vadot description: 41*354d7675SEmmanuel Vadot specifies the GPIO that needs to be asserted prior to each access 42*354d7675SEmmanuel Vadot of EEPROM (e.g. for SPI bus multiplexing) 43*354d7675SEmmanuel Vadot maxItems: 1 44*354d7675SEmmanuel Vadot 45*354d7675SEmmanuel Vadot 46*354d7675SEmmanuel Vadotrequired: 47*354d7675SEmmanuel Vadot - compatible 48*354d7675SEmmanuel Vadot - reg 49*354d7675SEmmanuel Vadot - data-size 50*354d7675SEmmanuel Vadot - spi-max-frequency 51*354d7675SEmmanuel Vadot 52*354d7675SEmmanuel VadotadditionalProperties: false 53*354d7675SEmmanuel Vadot 54*354d7675SEmmanuel Vadotexamples: 55*354d7675SEmmanuel Vadot - | 56*354d7675SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 57*354d7675SEmmanuel Vadot 58*354d7675SEmmanuel Vadot spi { 59*354d7675SEmmanuel Vadot #address-cells = <1>; 60*354d7675SEmmanuel Vadot #size-cells = <0>; 61*354d7675SEmmanuel Vadot 62*354d7675SEmmanuel Vadot eeprom@0 { 63*354d7675SEmmanuel Vadot compatible = "eeprom-93xx46"; 64*354d7675SEmmanuel Vadot reg = <0>; 65*354d7675SEmmanuel Vadot spi-max-frequency = <1000000>; 66*354d7675SEmmanuel Vadot spi-cs-high; 67*354d7675SEmmanuel Vadot data-size = <8>; 68*354d7675SEmmanuel Vadot select-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>; 69*354d7675SEmmanuel Vadot }; 70*354d7675SEmmanuel Vadot }; 71