1 * Qualcomm QCA7000 2 3 The QCA7000 is a serial-to-powerline bridge wi 4 be configured either as SPI or UART slave. Thi 5 the QCA7000 firmware. 6 7 (a) Ethernet over SPI 8 9 In order to use the QCA7000 as SPI device it m 10 SPI master in the device tree. 11 12 Required properties: 13 - compatible : Should be "qca,qca7000" 14 - reg : Should specify the SPI c 15 - interrupts : The first cell should sp 16 interrupt and the second 17 type as rising edge 18 - spi-cpha : Must be set 19 - spi-cpol : Must be set 20 21 Optional properties: 22 - spi-max-frequency : Maximum frequency of the 23 Numbers smaller than 100 24 are invalid. Missing the 25 frequency to 8000000 Her 26 - qca,legacy-mode : Set the SPI data transfe 27 In this mode the SPI mas 28 between each data word. 29 necessary, which is fast 30 the QCA7000 is setup via 31 property is missing the 32 33 The MAC address will be determined using the o 34 defined in ethernet.txt. 35 36 SPI Example: 37 38 /* Freescale i.MX28 SPI master*/ 39 ssp2: spi@80014000 { 40 #address-cells = <1>; 41 #size-cells = <0>; 42 compatible = "fsl,imx28-spi"; 43 pinctrl-names = "default"; 44 pinctrl-0 = <&spi2_pins_a>; 45 46 qca7000: ethernet@0 { 47 compatible = "qca,qca7000"; 48 reg = <0x0>; 49 interrupt-parent = <&gpio3>; 50 interrupts = <25 0x1>; 51 spi-cpha; 52 spi-cpol; 53 spi-max-frequency = <8000000>; 54 local-mac-address = [ A0 B0 C0 55 }; 56 }; 57 58 (b) Ethernet over UART 59 60 In order to use the QCA7000 as UART slave it m 61 UART master in the device tree. It is possible 62 settings of the QCA7000 firmware, but it's not 63 runtime. 64 65 Required properties: 66 - compatible : Should be "qca,qca7000" 67 68 Optional properties: 69 - local-mac-address : see ./ethernet.txt 70 - current-speed : current baud rate of QCA 71 if absent, see also ../s 72 73 UART Example: 74 75 /* Freescale i.MX28 UART */ 76 auart0: serial@8006a000 { 77 compatible = "fsl,imx28-auart", "fsl,i 78 reg = <0x8006a000 0x2000>; 79 pinctrl-names = "default"; 80 pinctrl-0 = <&auart0_2pins_a>; 81 82 qca7000: ethernet { 83 compatible = "qca,qca7000"; 84 local-mac-address = [ A0 B0 C0 85 current-speed = <38400>; 86 }; 87 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.