summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/net
diff options
context:
space:
mode:
authorFugang Duan <fugang.duan@nxp.com>2019-05-10 15:26:50 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-12-02 18:04:25 +0800
commit77f76ace067ae470e8f6e0082d8659aaa032f5b2 (patch)
treef34c8e78d2e416bfc3a01e3e13528aae602959e5 /Documentation/devicetree/bindings/net
parentca906c76a1a0a3cd69a8c49efd24c56d9e5f65f9 (diff)
dt-bindings: doc: add new properties for of_get_mac_address from nvmem
Currently, of_get_mac_address supports NVMEM, some platforms MAC address that read from NVMEM efuse requires to swap bytes order, so add new property "nvmem_macaddr_swap" to specify the behavior. If the MAC address is valid from NVMEM, add new property "nvmem-mac-address" in ethernet node. Update these two properties in the binding documentation. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> [ Aisheng: update to yaml format ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Diffstat (limited to 'Documentation/devicetree/bindings/net')
-rw-r--r--Documentation/devicetree/bindings/net/ethernet-controller.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
index 0e7c31794ae6..0bac41cc7ba1 100644
--- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml
+++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
@@ -34,6 +34,15 @@ properties:
to the device by the boot program is different from the
local-mac-address property.
+ nvmem-mac-address:
+ allOf:
+ - $ref: /schemas/types.yaml#definitions/uint8-array
+ - minItems: 6
+ maxItems: 6
+ description:
+ Specifies the MAC address that was read from nvmem-cells and dynamically
+ add the property in device node;
+
max-frame-size:
$ref: /schemas/types.yaml#definitions/uint32
description:
@@ -54,6 +63,11 @@ properties:
nvmem-cells-names:
const: mac-address
+ nvmem_macaddr_swap:
+ $ref: /schemas/types.yaml#/definitions/flag
+ description:
+ swap bytes order for the 6 bytes of MAC address
+
phy-connection-type:
description:
Operation mode of the PHY interface