diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2016-03-16 23:34:25 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-05-13 08:01:47 -0400 |
commit | 98c1c5078deba1feb9c040eb7708a299e41a8d84 (patch) | |
tree | 9dfc67e28c71678a7a80b72327826562e23e9d72 /arch/mips/boot | |
parent | f40aec27ea9943c01db34ef95317768073e8d118 (diff) |
MIPS: ath79: add initial support for DPT-Module
The following features are supported:
* UART;
* SPI-flash;
* USB host;
* GPIO key and LED.
Links:
* https://dptechnics.com/shop/index.php?route=product/product&path=59&product_id=50
* https://dptechnics.com/shop/index.php?route=product/product&path=59&product_id=63
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Cc: Daan Pape <daan@dptechnics.com>
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12886/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r-- | arch/mips/boot/dts/qca/Makefile | 1 | ||||
-rw-r--r-- | arch/mips/boot/dts/qca/ar9331_dpt_module.dts | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/qca/Makefile b/arch/mips/boot/dts/qca/Makefile index dc0b5a4071c4..63a9ddf048c9 100644 --- a/arch/mips/boot/dts/qca/Makefile +++ b/arch/mips/boot/dts/qca/Makefile | |||
@@ -1,5 +1,6 @@ | |||
1 | # All DTBs | 1 | # All DTBs |
2 | dtb-$(CONFIG_ATH79) += ar9132_tl_wr1043nd_v1.dtb | 2 | dtb-$(CONFIG_ATH79) += ar9132_tl_wr1043nd_v1.dtb |
3 | dtb-$(CONFIG_ATH79) += ar9331_dpt_module.dtb | ||
3 | dtb-$(CONFIG_ATH79) += ar9331_dragino_ms14.dtb | 4 | dtb-$(CONFIG_ATH79) += ar9331_dragino_ms14.dtb |
4 | dtb-$(CONFIG_ATH79) += ar9331_omega.dtb | 5 | dtb-$(CONFIG_ATH79) += ar9331_omega.dtb |
5 | dtb-$(CONFIG_ATH79) += ar9331_tl_mr3020.dtb | 6 | dtb-$(CONFIG_ATH79) += ar9331_tl_mr3020.dtb |
diff --git a/arch/mips/boot/dts/qca/ar9331_dpt_module.dts b/arch/mips/boot/dts/qca/ar9331_dpt_module.dts new file mode 100644 index 000000000000..98e74500e79d --- /dev/null +++ b/arch/mips/boot/dts/qca/ar9331_dpt_module.dts | |||
@@ -0,0 +1,78 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | #include <dt-bindings/gpio/gpio.h> | ||
4 | #include <dt-bindings/input/input.h> | ||
5 | |||
6 | #include "ar9331.dtsi" | ||
7 | |||
8 | / { | ||
9 | model = "DPTechnics DPT-Module"; | ||
10 | compatible = "dptechnics,dpt-module"; | ||
11 | |||
12 | aliases { | ||
13 | serial0 = &uart; | ||
14 | }; | ||
15 | |||
16 | memory@0 { | ||
17 | device_type = "memory"; | ||
18 | reg = <0x0 0x4000000>; | ||
19 | }; | ||
20 | |||
21 | leds { | ||
22 | compatible = "gpio-leds"; | ||
23 | |||
24 | system { | ||
25 | label = "dpt-module:green:system"; | ||
26 | gpios = <&gpio 27 GPIO_ACTIVE_LOW>; | ||
27 | default-state = "off"; | ||
28 | }; | ||
29 | }; | ||
30 | |||
31 | gpio-keys-polled { | ||
32 | compatible = "gpio-keys-polled"; | ||
33 | #address-cells = <1>; | ||
34 | #size-cells = <0>; | ||
35 | poll-interval = <100>; | ||
36 | |||
37 | button@0 { | ||
38 | label = "reset"; | ||
39 | linux,code = <KEY_RESTART>; | ||
40 | gpios = <&gpio 11 GPIO_ACTIVE_LOW>; | ||
41 | }; | ||
42 | }; | ||
43 | }; | ||
44 | |||
45 | &ref { | ||
46 | clock-frequency = <25000000>; | ||
47 | }; | ||
48 | |||
49 | &uart { | ||
50 | status = "okay"; | ||
51 | }; | ||
52 | |||
53 | &gpio { | ||
54 | status = "okay"; | ||
55 | }; | ||
56 | |||
57 | &usb { | ||
58 | dr_mode = "host"; | ||
59 | status = "okay"; | ||
60 | }; | ||
61 | |||
62 | &usb_phy { | ||
63 | status = "okay"; | ||
64 | }; | ||
65 | |||
66 | &spi { | ||
67 | num-chipselects = <1>; | ||
68 | status = "okay"; | ||
69 | |||
70 | /* Winbond 25Q128FVSG SPI flash */ | ||
71 | spiflash: w25q128@0 { | ||
72 | #address-cells = <1>; | ||
73 | #size-cells = <1>; | ||
74 | compatible = "winbond,w25q128", "jedec,spi-nor"; | ||
75 | spi-max-frequency = <104000000>; | ||
76 | reg = <0>; | ||
77 | }; | ||
78 | }; | ||