ARM: dts: BCM53573: Describe Tenda AC9 PCIe card in DT
PATCH 1/2 ARM: dts: BCM53573: Describe Tenda AC9 PCIe card in DT
From: Rafa? Mi?ecki <[email protected]>
Tenda AC9 has PCIe controller with just one device connected to it:
0000:00:00.0 14e4:d145 Bridge Device
?? 0000:01:00.0 14e4:a8db Network Controller
This card is directly on SoC (doesn't use physical connector) and has BCM43217 chipset with bcma bus. One of its components is ChipCommon core which is also a GPIO controller. We need to describe it to be able to add devices using its GPIO pins.
Signed-off-by Rafa? Mi?ecki <[email protected]>
--- arch/arm/boot/dts/bcm47189-tenda-ac9.dts | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/bcm53573.dtsi | 4 ++++ 2 files changed, 31 insertions(+)
arch/arm/boot/dts/bcm47189-tenda-ac9.dts +27 -0
@@ -72,3 +72,30 @@ }; }; }; + +&pcie0 { + ranges = <0x00000000 0 0 0 0 0x00100000>; + #address-cells = <3>; + #size-cells = <2>; + + bridge at 0,0,0 { + reg = <0x0000 0 0 0 0>; + ranges = <0x00000000 0 0 0 0 0 0 0x00100000>; + #address-cells = <3>; + #size-cells = <2>; + + wifi at 0,1,0 { + reg = <0x0000 0 0 0 0>; + ranges = <0x00000000 0 0 0 0x00100000>; + #address-cells = <1>; + #size-cells = <1>; + + pcie0_chipcommon: chipcommon at 0 { + reg = <0 0x1000>; + + gpio-controller; + #gpio-cells = <2>; + }; + }; + }; +};
arch/arm/boot/dts/bcm53573.dtsi +4 -0
@@ -113,6 +113,10 @@ }; }; + pcie0: pcie at 2000 { + reg = <0x00002000 0x1000>; + }; + usb2: usb2 at 4000 { reg = <0x4000 0x1000>; ranges;
Signature · 1 line
2.11.0
PATCH 2/2 ARM: dts: BCM53573: Add Tenda AC9 2 GHz LED
From: Rafa? Mi?ecki <[email protected]>
It's connected to a GPIO pin of an extra controller placed on the PCIe card.
Signed-off-by Rafa? Mi?ecki <[email protected]>
--- arch/arm/boot/dts/bcm47189-tenda-ac9.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/bcm47189-tenda-ac9.dts +10 -0
@@ -48,6 +48,16 @@ }; }; + pcie0_leds { + compatible = "gpio-leds"; + + 2ghz { + label = "bcm53xx:blue:2ghz"; + gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "default-off"; + }; + }; + gpio-keys { compatible = "gpio-keys"; #address-cells = <1>;
Signature · 1 line
2.11.0