Qualcomm QCA7000

Schema identifier ($id): "http://devicetree.org/schemas/net/qca,qca7000.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

The QCA7000 is a serial-to-powerline bridge with a host interface which could be configured either as SPI or UART slave. This configuration is done by the QCA7000 firmware.

(a) Ethernet over SPI

In order to use the QCA7000 as SPI device it must be defined as a child of a SPI master in the device tree.

(b) Ethernet over UART

In order to use the QCA7000 as UART slave it must be defined as a child of a UART master in the device tree. It is possible to preconfigure the UART settings of the QCA7000 firmware, but it's not possible to change them during runtime

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "qca,qca7000"

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

qca,legacy-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Set the SPI data transfer of the QCA7000 to legacy mode. In this mode the SPI master must toggle the chip select between each data word. In burst mode these gaps aren't necessary, which is faster. This setting depends on how the QCA7000 is setup via GPIO pin strapping. If the property is missing the driver defaults to burst mode.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): ethernet-controller.yaml#

Rule 2 #

Condition (if) #

Required in this object (required): "reg"

When the condition matches (then) #

Properties and child nodes (properties)

spi-cpha — not listed as required here

true — No constraints added by this property rule.

spi-cpol — not listed as required here

true — No constraints added by this property rule.

spi-max-frequency — not listed as required here

Default value (default): 8000000

Maximum value (maximum): 16000000

Minimum value (minimum): 1000000

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

When the condition does not match (else) #

Properties and child nodes (properties)

current-speed — not listed as required here

Default value (default): 115200

qca,legacy-mode — not listed as required here

false — Not permitted by this property rule.

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): /schemas/serial/serial-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    ethernet@0 {
        compatible = "qca,qca7000";
        reg = <0x0>;
        interrupt-parent = <&gpio3>;
        interrupts = <25 IRQ_TYPE_EDGE_RISING>;
        spi-cpha;
        spi-cpol;
        spi-max-frequency = <8000000>;
        local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
    };
};
serial {
    ethernet {
        compatible = "qca,qca7000";
        local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
        current-speed = <38400>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page