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