1* Qualcomm QCA7000
2
3The QCA7000 is a serial-to-powerline bridge with a host interface which could
4be configured either as SPI or UART slave. This configuration is done by
5the QCA7000 firmware.
6
7(a) Ethernet over SPI
8
9In order to use the QCA7000 as SPI device it must be defined as a child of a
10SPI master in the device tree.
11
12Required properties:
13- compatible	    : Should be "qca,qca7000"
14- reg		    : Should specify the SPI chip select
15- interrupts	    : The first cell should specify the index of the source
16		      interrupt and the second cell should specify the trigger
17		      type as rising edge
18- spi-cpha	    : Must be set
19- spi-cpol	    : Must be set
20
21Optional properties:
22- spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at.
23		      Numbers smaller than 1000000 or greater than 16000000
24		      are invalid. Missing the property will set the SPI
25		      frequency to 8000000 Hertz.
26- local-mac-address : see ./ethernet.txt
27- qca,legacy-mode   : Set the SPI data transfer of the QCA7000 to legacy mode.
28		      In this mode the SPI master must toggle the chip select
29		      between each data word. In burst mode these gaps aren't
30		      necessary, which is faster. This setting depends on how
31		      the QCA7000 is setup via GPIO pin strapping. If the
32		      property is missing the driver defaults to burst mode.
33
34SPI Example:
35
36/* Freescale i.MX28 SPI master*/
37ssp2: spi@80014000 {
38	#address-cells = <1>;
39	#size-cells = <0>;
40	compatible = "fsl,imx28-spi";
41	pinctrl-names = "default";
42	pinctrl-0 = <&spi2_pins_a>;
43
44	qca7000: ethernet@0 {
45		compatible = "qca,qca7000";
46		reg = <0x0>;
47		interrupt-parent = <&gpio3>;      /* GPIO Bank 3 */
48		interrupts = <25 0x1>;            /* Index: 25, rising edge */
49		spi-cpha;                         /* SPI mode: CPHA=1 */
50		spi-cpol;                         /* SPI mode: CPOL=1 */
51		spi-max-frequency = <8000000>;    /* freq: 8 MHz */
52		local-mac-address = [ A0 B0 C0 D0 E0 F0 ];
53	};
54};
55
56(b) Ethernet over UART
57
58In order to use the QCA7000 as UART slave it must be defined as a child of a
59UART master in the device tree. It is possible to preconfigure the UART
60settings of the QCA7000 firmware, but it's not possible to change them during
61runtime.
62
63Required properties:
64- compatible        : Should be "qca,qca7000"
65
66Optional properties:
67- local-mac-address : see ./ethernet.txt
68- current-speed     : current baud rate of QCA7000 which defaults to 115200
69		      if absent, see also ../serial/slave-device.txt
70
71UART Example:
72
73/* Freescale i.MX28 UART */
74auart0: serial@8006a000 {
75	compatible = "fsl,imx28-auart", "fsl,imx23-auart";
76	reg = <0x8006a000 0x2000>;
77	pinctrl-names = "default";
78	pinctrl-0 = <&auart0_2pins_a>;
79
80	qca7000: ethernet {
81		compatible = "qca,qca7000";
82		local-mac-address = [ A0 B0 C0 D0 E0 F0 ];
83		current-speed = <38400>;
84	};
85};
86