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