Skip to content

Commit 2f6444e

Browse files
committed
Add overlay and enable support for QCA7000 board
This adds a device tree overlay for the QCA7000 which can be used when attaching an I2SE's PLC Stamp micro EVK to the Raspberry Pi. This Evaluation Board embeds a QCA7000 chip, a Homeplug Green PHY powerline chip from Qualcomm/Atheros for the Internet of Things. This patch also enables the required QCA7000 driver module in the default configurations. Signed-off-by: Stefan Wahren <[email protected]> Signed-off-by: Michael Heimpold <[email protected]>
1 parent bf0bc44 commit 2f6444e

File tree

5 files changed

+63
-0
lines changed

5 files changed

+63
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ dtb-$(RPI_DT_OVERLAYS) += pitft28-resistive-overlay.dtb
4242
dtb-$(RPI_DT_OVERLAYS) += pps-gpio-overlay.dtb
4343
dtb-$(RPI_DT_OVERLAYS) += pwm-overlay.dtb
4444
dtb-$(RPI_DT_OVERLAYS) += pwm-2chan-overlay.dtb
45+
dtb-$(RPI_DT_OVERLAYS) += qca7000-overlay.dtb
4546
dtb-$(RPI_DT_OVERLAYS) += raspidac3-overlay.dtb
4647
dtb-$(RPI_DT_OVERLAYS) += rpi-backlight-overlay.dtb
4748
dtb-$(RPI_DT_OVERLAYS) += rpi-dac-overlay.dtb

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,14 @@ Params: pin Output pin (default 18) - see table
567567
clock PWM clock frequency (informational)
568568

569569

570+
Name: qca7000
571+
Info: I2SE's Evaluation Board for PLC Stamp micro
572+
Load: dtoverlay=qca7000,<param>=<val>
573+
Params: int_pin GPIO pin for interrupt signal (default 23)
574+
575+
speed SPI bus speed (default 12 MHz)
576+
577+
570578
Name: raspidac3
571579
Info: Configures the RaspiDAV Rev.3x audio card
572580
Load: dtoverlay=raspidac3
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Overlay for the Qualcomm Atheros QCA7000 on I2SE's PLC Stamp micro EVK
2+
// Visit: https://www.i2se.com/product/plc-stamp-micro-evk for details
3+
4+
/dts-v1/;
5+
/plugin/;
6+
7+
/ {
8+
compatible = "brcm,bcm2708";
9+
10+
fragment@0 {
11+
target = <&spi0>;
12+
__overlay__ {
13+
/* needed to avoid dtc warning */
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
17+
status = "okay";
18+
19+
spidev@0 {
20+
status = "disabled";
21+
};
22+
23+
eth1: qca7000@0 {
24+
compatible = "qca,qca7000";
25+
reg = <0>; /* CE0 */
26+
pinctrl-names = "default";
27+
pinctrl-0 = <&eth1_pins>;
28+
interrupt-parent = <&gpio>;
29+
interrupts = <23 0x1>; /* rising edge */
30+
spi-max-frequency = <12000000>;
31+
status = "okay";
32+
};
33+
};
34+
};
35+
36+
fragment@1 {
37+
target = <&gpio>;
38+
__overlay__ {
39+
eth1_pins: eth1_pins {
40+
brcm,pins = <23>;
41+
brcm,function = <0>; /* in */
42+
brcm,pull = <0>; /* none */
43+
};
44+
};
45+
};
46+
47+
__overrides__ {
48+
int_pin = <&eth1>, "interrupts:0",
49+
<&eth1_pins>, "brcm,pins:0";
50+
speed = <&eth1>, "spi-max-frequency:0";
51+
};
52+
};

arch/arm/configs/bcm2709_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ CONFIG_NETCONSOLE=m
444444
CONFIG_TUN=m
445445
CONFIG_VETH=m
446446
CONFIG_ENC28J60=m
447+
CONFIG_QCA7000=m
447448
CONFIG_MDIO_BITBANG=m
448449
CONFIG_PPP=m
449450
CONFIG_PPP_BSDCOMP=m

arch/arm/configs/bcmrpi_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ CONFIG_NETCONSOLE=m
437437
CONFIG_TUN=m
438438
CONFIG_VETH=m
439439
CONFIG_ENC28J60=m
440+
CONFIG_QCA7000=m
440441
CONFIG_MDIO_BITBANG=m
441442
CONFIG_PPP=m
442443
CONFIG_PPP_BSDCOMP=m

0 commit comments

Comments
 (0)