diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-03-30 20:21:07 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-03-30 20:21:07 +0000 |
commit | f77b44605157d5eafcc9a4328a052cbccef240a5 (patch) | |
tree | 03b7560966912234aab9f39850814095407aa8b1 /target/linux/brcm63xx/dts | |
parent | f644c1581ad2f48a38b497836f182bc46c7534ca (diff) | |
download | upstream-f77b44605157d5eafcc9a4328a052cbccef240a5.tar.gz upstream-f77b44605157d5eafcc9a4328a052cbccef240a5.tar.bz2 upstream-f77b44605157d5eafcc9a4328a052cbccef240a5.zip |
brcm63xx: move bcm6318 reference boards to DT
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 45167
Diffstat (limited to 'target/linux/brcm63xx/dts')
-rw-r--r-- | target/linux/brcm63xx/dts/bcm96318ref.dts | 47 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm96318ref_p300.dts | 53 |
2 files changed, 100 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/dts/bcm96318ref.dts b/target/linux/brcm63xx/dts/bcm96318ref.dts new file mode 100644 index 0000000000..84b33362c9 --- /dev/null +++ b/target/linux/brcm63xx/dts/bcm96318ref.dts @@ -0,0 +1,47 @@ +/dts-v1/; + +/include/ "bcm6318.dtsi" + +/ { + model = "Broadcom BCM96318REF reference board"; + compatible = "brcm,bcm96318ref", "brcm,bcm6318"; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + debounce-interval = <60>; + + wps { + label = "wps"; + gpios = <&gpio1 1 1>; + linux,code = <0x211>; + }; + + reset { + label = "reset"; + gpios = <&gpio1 2 1>; + linux,code = <0x198>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + inet { + label = "96318REF:green:inet"; + gpios = <&gpio0 8 1>; + }; + + inet_fail { + label = "96318REF:red:inet-fail"; + gpios = <&gpio0 9 1>; + }; + + post_failed { + label = "96318REF:red:post-failed"; + gpios = <&gpio0 11 1>; + }; + }; +}; diff --git a/target/linux/brcm63xx/dts/bcm96318ref_p300.dts b/target/linux/brcm63xx/dts/bcm96318ref_p300.dts new file mode 100644 index 0000000000..5d91d7608d --- /dev/null +++ b/target/linux/brcm63xx/dts/bcm96318ref_p300.dts @@ -0,0 +1,53 @@ +/dts-v1/; + +/include/ "bcm6318.dtsi" + +/ { + model = "Broadcom BCM96318REF_P300 reference board"; + compatible = "brcm,bcm96318ref_p300", "brcm,bcm6318"; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + debounce-interval = <60>; + + wps { + label = "wps"; + gpios = <&gpio1 1 1>; + linux,code = <0x211>; + }; + + reset { + label = "reset"; + gpios = <&gpio1 2 1>; + linux,code = <0x198>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + inet { + label = "96318REF_P300:green:inet"; + gpios = <&gpio0 8 1>; + }; + + inet_fail { + label = "96318REF_P300:red:inet-fail"; + gpios = <&gpio0 9 1>; + }; + + post_failed { + label = "96318REF_P300:red:post-failed"; + gpios = <&gpio0 11 1>; + }; + + usb_pwron { + label = "96318REF_P300::usb-pwron"; + gpios = <&gpio0 13 1>; + default-state = "on"; + }; + }; +}; |