From b43c190079eb32eb19e1ba7d550c420933c182ad Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Thu, 9 Feb 2017 21:58:36 +0100 Subject: brcm63xx: probe SPI connected switches through DT Now that we can configure the switches through DT, do so. Signed-off-by: Jonas Gorski --- target/linux/brcm63xx/dts/dgnd3700v1.dts | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'target/linux/brcm63xx/dts/dgnd3700v1.dts') diff --git a/target/linux/brcm63xx/dts/dgnd3700v1.dts b/target/linux/brcm63xx/dts/dgnd3700v1.dts index 7701bd013a..ea917e8f37 100644 --- a/target/linux/brcm63xx/dts/dgnd3700v1.dts +++ b/target/linux/brcm63xx/dts/dgnd3700v1.dts @@ -119,3 +119,53 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pci>; }; + +&lsspi { + switch@1 { + compatible = "brcm,bcm53115"; + reg = <1>; + spi-max-frequency = <781000>; + + lede,alias = "eth0"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + wan@0 { + reg = <0>; + label = "wan"; + }; + + lan@1 { + reg = <1>; + label = "lan1"; + }; + + lan@2 { + reg = <2>; + label = "lan2"; + }; + + lan@3 { + reg = <3>; + label = "lan3"; + }; + + lan@4 { + reg = <4>; + label = "lan4"; + }; + + cpu@8 { + reg = <8>; + label = "cpu"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; +}; -- cgit v1.2.3