Path: blob/master/Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml
26351 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/eeprom/microchip,93lc46b.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Microchip 93xx46 SPI compatible EEPROM family78maintainers:9- Cory Tusar <cory.tusar@pid1solutions.com>1011properties:12compatible:13enum:14- atmel,at93c4615- atmel,at93c46d16- atmel,at93c5617- atmel,at93c6618- eeprom-93xx4619- microchip,93lc46b2021data-size:22description: number of data bits per word23$ref: /schemas/types.yaml#/definitions/uint3224enum: [8, 16]2526reg:27description: chip select of EEPROM28maxItems: 12930read-only:31description:32parameter-less property which disables writes to the EEPROM33type: boolean3435select-gpios:36description:37specifies the GPIO that needs to be asserted prior to each access38of EEPROM (e.g. for SPI bus multiplexing)39maxItems: 14041required:42- compatible43- reg44- data-size45- spi-max-frequency4647allOf:48- $ref: /schemas/spi/spi-peripheral-props.yaml#49- $ref: /schemas/nvmem/nvmem.yaml5051unevaluatedProperties: false5253examples:54- |55#include <dt-bindings/gpio/gpio.h>5657spi {58#address-cells = <1>;59#size-cells = <0>;6061eeprom@0 {62compatible = "eeprom-93xx46";63reg = <0>;64spi-max-frequency = <1000000>;65spi-cs-high;66data-size = <8>;67select-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;68};69};707172