-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays: Add overlay for QCA7000 via UART0
This adds an overlay to connect the QCA7000 in UART mode via UART0. The qcauart driver uses the serial device bus instead of deprecated line disciplines. Signed-off-by: Stefan Wahren <stefan.wahren@in-tech.com>
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Overlay for the Qualcomm Atheros QCA7000 on PLC Stamp micro EVK | ||
// Visit: https://in-tech-smartcharging.com/products/evaluation-tools/plc-stamp-micro-2-evaluation-board for details | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2835"; | ||
|
||
fragment@0 { | ||
target = <&uart0>; | ||
__overlay__ { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart0_pins>; | ||
status = "okay"; | ||
|
||
eth2: qca7000 { | ||
compatible = "qca,qca7000"; | ||
current-speed = <115200>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gpio>; | ||
__overlay__ { | ||
uart0_pins: uart0_pins { | ||
brcm,pins = <14 15>; | ||
brcm,function = <4>; /* alt0 */ | ||
brcm,pull = <0 2>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target-path = "/aliases"; | ||
__overlay__ { | ||
serial0 = "/soc/serial@7e201000"; | ||
serial1 = "/soc/serial@7e215040"; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
baudrate = <ð2>, "current-speed:0"; | ||
}; | ||
}; |