Microchip 93xx46 SPI compatible EEPROM family
Schema identifier ($id): "http://devicetree.org/schemas/eeprom/microchip,93lc46b.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cory Tusar <cory.tusar@pid1solutions.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "atmel,at93c46", "atmel,at93c46d", "atmel,at93c56", "atmel,at93c66", "eeprom-93xx46", "microchip,93lc46b"
data-size — required here #
number of data bits per word
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
reg — required here #
chip select of EEPROM
Maximum number of items (maxItems): 1
read-only — not listed as required here #
parameter-less property which disables writes to the EEPROM
Value type (type): "boolean"
select-gpios — not listed as required here #
specifies the GPIO that needs to be asserted prior to each access of EEPROM (e.g. for SPI bus multiplexing)
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "data-size", "spi-max-frequency"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/nvmem/nvmem.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
eeprom@0 {
compatible = "eeprom-93xx46";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cs-high;
data-size = <8>;
select-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)