1f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2f126890aSEmmanuel Vadot%YAML 1.2 3f126890aSEmmanuel Vadot--- 4f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/nvmem/layouts/fixed-cell.yaml# 5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6f126890aSEmmanuel Vadot 7f126890aSEmmanuel Vadottitle: Fixed offset & size NVMEM cell 8f126890aSEmmanuel Vadot 9f126890aSEmmanuel Vadotmaintainers: 10f126890aSEmmanuel Vadot - Rafał Miłecki <rafal@milecki.pl> 11f126890aSEmmanuel Vadot - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 12f126890aSEmmanuel Vadot 13f126890aSEmmanuel Vadotproperties: 14aa1a8ff2SEmmanuel Vadot compatible: 15aa1a8ff2SEmmanuel Vadot oneOf: 16aa1a8ff2SEmmanuel Vadot - const: mac-base 17aa1a8ff2SEmmanuel Vadot description: > 18aa1a8ff2SEmmanuel Vadot Cell with base MAC address to be used for calculating extra relative 19aa1a8ff2SEmmanuel Vadot addresses. 20aa1a8ff2SEmmanuel Vadot It can be stored in a plain binary format (cell length 6) or as an 21aa1a8ff2SEmmanuel Vadot ASCII text like "00:11:22:33:44:55" (cell length 17). 22aa1a8ff2SEmmanuel Vadot 23f126890aSEmmanuel Vadot reg: 24f126890aSEmmanuel Vadot maxItems: 1 25f126890aSEmmanuel Vadot 26f126890aSEmmanuel Vadot bits: 27f126890aSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-array 28f126890aSEmmanuel Vadot items: 29f126890aSEmmanuel Vadot - minimum: 0 30f126890aSEmmanuel Vadot maximum: 7 31f126890aSEmmanuel Vadot description: 32f126890aSEmmanuel Vadot Offset in bit within the address range specified by reg. 33f126890aSEmmanuel Vadot - minimum: 1 34f126890aSEmmanuel Vadot description: 35f126890aSEmmanuel Vadot Size in bit within the address range specified by reg. 36f126890aSEmmanuel Vadot 37aa1a8ff2SEmmanuel VadotallOf: 38aa1a8ff2SEmmanuel Vadot - if: 39aa1a8ff2SEmmanuel Vadot properties: 40aa1a8ff2SEmmanuel Vadot compatible: 41aa1a8ff2SEmmanuel Vadot contains: 42aa1a8ff2SEmmanuel Vadot const: mac-base 43*01950c46SEmmanuel Vadot required: [ compatible ] 44aa1a8ff2SEmmanuel Vadot then: 45aa1a8ff2SEmmanuel Vadot properties: 46aa1a8ff2SEmmanuel Vadot "#nvmem-cell-cells": 47aa1a8ff2SEmmanuel Vadot description: The first argument is a MAC address offset. 48aa1a8ff2SEmmanuel Vadot const: 1 49aa1a8ff2SEmmanuel Vadot required: 50aa1a8ff2SEmmanuel Vadot - "#nvmem-cell-cells" 51aa1a8ff2SEmmanuel Vadot 52f126890aSEmmanuel Vadotrequired: 53f126890aSEmmanuel Vadot - reg 54f126890aSEmmanuel Vadot 55f126890aSEmmanuel VadotadditionalProperties: true 56