diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2016-03-03 04:53:57 -0500 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2016-04-26 03:51:13 -0400 |
commit | 0767a5cb425374aafa89d33d6b1190a01d7f6b0e (patch) | |
tree | 48590b1530eb7558c7bc731380575021579e19dd | |
parent | f85d8ffbecadf72d2d80077f5fabba820ea4c55b (diff) |
ARM: boot: dts: Add Western Digital My Book World Edition device tree
Add Western Digital My Book World Edition device tree based on
Oxford Semiconductor OX810SE SoC.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
-rw-r--r-- | arch/arm/boot/dts/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/wd-mbwe.dts | 112 |
2 files changed, 114 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 95c1923ce6fa..7005585030ae 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -538,6 +538,8 @@ dtb-$(CONFIG_ARCH_ORION5X) += \ | |||
538 | orion5x-rd88f5182-nas.dtb | 538 | orion5x-rd88f5182-nas.dtb |
539 | dtb-$(CONFIG_ARCH_PRIMA2) += \ | 539 | dtb-$(CONFIG_ARCH_PRIMA2) += \ |
540 | prima2-evb.dtb | 540 | prima2-evb.dtb |
541 | dtb-$(CONFIG_ARCH_OXNAS) += \ | ||
542 | wd-mbwe.dtb | ||
541 | dtb-$(CONFIG_ARCH_QCOM) += \ | 543 | dtb-$(CONFIG_ARCH_QCOM) += \ |
542 | qcom-apq8064-cm-qs600.dtb \ | 544 | qcom-apq8064-cm-qs600.dtb \ |
543 | qcom-apq8064-ifc6410.dtb \ | 545 | qcom-apq8064-ifc6410.dtb \ |
diff --git a/arch/arm/boot/dts/wd-mbwe.dts b/arch/arm/boot/dts/wd-mbwe.dts new file mode 100644 index 000000000000..ac3250ae8fc4 --- /dev/null +++ b/arch/arm/boot/dts/wd-mbwe.dts | |||
@@ -0,0 +1,112 @@ | |||
1 | /* | ||
2 | * wd-mbwe.dtsi - Device tree file for Western Digital My Book World Edition | ||
3 | * | ||
4 | * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com> | ||
5 | * | ||
6 | * Licensed under GPLv2 or later | ||
7 | */ | ||
8 | |||
9 | /dts-v1/; | ||
10 | #include "ox810se.dtsi" | ||
11 | |||
12 | / { | ||
13 | model = "Western Digital My Book World Edition"; | ||
14 | |||
15 | compatible = "wd,mbwe", "oxsemi,ox810se"; | ||
16 | |||
17 | chosen { | ||
18 | bootargs = "console=ttyS1,115200n8 earlyprintk=serial"; | ||
19 | }; | ||
20 | |||
21 | memory { | ||
22 | /* 128Mbytes DDR */ | ||
23 | reg = <0x48000000 0x8000000>; | ||
24 | }; | ||
25 | |||
26 | aliases { | ||
27 | serial1 = &uart1; | ||
28 | gpio0 = &gpio0; | ||
29 | gpio1 = &gpio1; | ||
30 | }; | ||
31 | |||
32 | gpio-keys-polled { | ||
33 | compatible = "gpio-keys-polled"; | ||
34 | #address-cells = <1>; | ||
35 | #size-cells = <0>; | ||
36 | poll-interval = <100>; | ||
37 | |||
38 | power { | ||
39 | label = "power"; | ||
40 | gpios = <&gpio0 0 1>; | ||
41 | linux,code = <0x198>; | ||
42 | }; | ||
43 | |||
44 | recovery { | ||
45 | label = "recovery"; | ||
46 | gpios = <&gpio0 4 1>; | ||
47 | linux,code = <0xab>; | ||
48 | }; | ||
49 | }; | ||
50 | |||
51 | leds { | ||
52 | compatible = "gpio-leds"; | ||
53 | |||
54 | a0 { | ||
55 | label = "activity0"; | ||
56 | gpios = <&gpio0 25 0>; | ||
57 | default-state = "keep"; | ||
58 | }; | ||
59 | |||
60 | a1 { | ||
61 | label = "activity1"; | ||
62 | gpios = <&gpio0 26 0>; | ||
63 | default-state = "keep"; | ||
64 | }; | ||
65 | |||
66 | a2 { | ||
67 | label = "activity2"; | ||
68 | gpios = <&gpio0 5 0>; | ||
69 | default-state = "keep"; | ||
70 | }; | ||
71 | |||
72 | a3 { | ||
73 | label = "activity3"; | ||
74 | gpios = <&gpio0 6 0>; | ||
75 | default-state = "keep"; | ||
76 | }; | ||
77 | |||
78 | a4 { | ||
79 | label = "activity4"; | ||
80 | gpios = <&gpio0 7 0>; | ||
81 | default-state = "keep"; | ||
82 | }; | ||
83 | |||
84 | a5 { | ||
85 | label = "activity5"; | ||
86 | gpios = <&gpio1 2 0>; | ||
87 | default-state = "keep"; | ||
88 | }; | ||
89 | }; | ||
90 | |||
91 | i2c-gpio { | ||
92 | compatible = "i2c-gpio"; | ||
93 | gpios = <&gpio0 3 0 /* sda */ | ||
94 | &gpio0 2 0 /* scl */ | ||
95 | >; | ||
96 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ | ||
97 | #address-cells = <1>; | ||
98 | #size-cells = <0>; | ||
99 | |||
100 | rtc0: rtc@48 { | ||
101 | compatible = "st,m41t00"; | ||
102 | reg = <0x68>; | ||
103 | }; | ||
104 | }; | ||
105 | }; | ||
106 | |||
107 | &uart1 { | ||
108 | status = "okay"; | ||
109 | |||
110 | pinctrl-names = "default"; | ||
111 | pinctrl-0 = <&pinctrl_uart1>; | ||
112 | }; | ||