diff options
author | Heiko Stuebner <heiko@sntech.de> | 2014-07-15 14:09:44 -0400 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2014-07-26 07:07:25 -0400 |
commit | 6ce0562a75a9b283afe089cccdf1c111b5f461f1 (patch) | |
tree | cf46327e35b3c76dd7c6de253b48835441a71836 | |
parent | 2ab557b72d46cf5ee746b041e86e41e550a4b10c (diff) |
ARM: dts: add rk3288 evaluation board
There exist 2 variants using either the act8846 or rk808 as pmic, while the
rest of the board stays the same.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/boot/dts/rk3288-evb-act8846.dts | 134 | ||||
-rw-r--r-- | arch/arm/boot/dts/rk3288-evb-rk808.dts | 18 | ||||
-rw-r--r-- | arch/arm/boot/dts/rk3288-evb.dtsi | 74 |
3 files changed, 226 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-evb-act8846.dts b/arch/arm/boot/dts/rk3288-evb-act8846.dts new file mode 100644 index 000000000000..7d59ff4de408 --- /dev/null +++ b/arch/arm/boot/dts/rk3288-evb-act8846.dts | |||
@@ -0,0 +1,134 @@ | |||
1 | /* | ||
2 | * This program is free software; you can redistribute it and/or modify | ||
3 | * it under the terms of the GNU General Public License as published by | ||
4 | * the Free Software Foundation; either version 2 of the License, or | ||
5 | * (at your option) any later version. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | ||
12 | |||
13 | /dts-v1/; | ||
14 | #include "rk3288-evb.dtsi" | ||
15 | |||
16 | / { | ||
17 | compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288"; | ||
18 | }; | ||
19 | |||
20 | &i2c0 { | ||
21 | hym8563@51 { | ||
22 | compatible = "haoyu,hym8563"; | ||
23 | reg = <0x51>; | ||
24 | |||
25 | interrupt-parent = <&gpio0>; | ||
26 | interrupts = <4 IRQ_TYPE_EDGE_FALLING>; | ||
27 | |||
28 | pinctrl-names = "default"; | ||
29 | pinctrl-0 = <&hym8563_int>; | ||
30 | |||
31 | #clock-cells = <0>; | ||
32 | clock-output-names = "xin32k"; | ||
33 | }; | ||
34 | |||
35 | act8846: act8846@5a { | ||
36 | compatible = "active-semi,act8846"; | ||
37 | reg = <0x5a>; | ||
38 | status = "okay"; | ||
39 | |||
40 | regulators { | ||
41 | vcc_ddr: REG1 { | ||
42 | regulator-name = "VCC_DDR"; | ||
43 | regulator-min-microvolt = <1200000>; | ||
44 | regulator-max-microvolt = <1200000>; | ||
45 | regulator-always-on; | ||
46 | }; | ||
47 | |||
48 | vcc_io: REG2 { | ||
49 | regulator-name = "VCC_IO"; | ||
50 | regulator-min-microvolt = <3300000>; | ||
51 | regulator-max-microvolt = <3300000>; | ||
52 | regulator-always-on; | ||
53 | }; | ||
54 | |||
55 | vdd_log: REG3 { | ||
56 | regulator-name = "VDD_LOG"; | ||
57 | regulator-min-microvolt = <1000000>; | ||
58 | regulator-max-microvolt = <1000000>; | ||
59 | regulator-always-on; | ||
60 | }; | ||
61 | |||
62 | vcc_20: REG4 { | ||
63 | regulator-name = "VCC_20"; | ||
64 | regulator-min-microvolt = <2000000>; | ||
65 | regulator-max-microvolt = <2000000>; | ||
66 | regulator-always-on; | ||
67 | }; | ||
68 | |||
69 | vccio_sd: REG5 { | ||
70 | regulator-name = "VCCIO_SD"; | ||
71 | regulator-min-microvolt = <3300000>; | ||
72 | regulator-max-microvolt = <3300000>; | ||
73 | regulator-always-on; | ||
74 | }; | ||
75 | |||
76 | vdd10_lcd: REG6 { | ||
77 | regulator-name = "VDD10_LCD"; | ||
78 | regulator-min-microvolt = <1000000>; | ||
79 | regulator-max-microvolt = <1000000>; | ||
80 | regulator-always-on; | ||
81 | }; | ||
82 | |||
83 | vcca_codec: REG7 { | ||
84 | regulator-name = "VCCA_CODEC"; | ||
85 | regulator-min-microvolt = <3300000>; | ||
86 | regulator-max-microvolt = <3300000>; | ||
87 | regulator-always-on; | ||
88 | }; | ||
89 | |||
90 | vcca_tp: REG8 { | ||
91 | regulator-name = "VCCA_TP"; | ||
92 | regulator-min-microvolt = <3300000>; | ||
93 | regulator-max-microvolt = <3300000>; | ||
94 | regulator-always-on; | ||
95 | }; | ||
96 | |||
97 | vccio_pmu: REG9 { | ||
98 | regulator-name = "VCCIO_PMU"; | ||
99 | regulator-min-microvolt = <3300000>; | ||
100 | regulator-max-microvolt = <3300000>; | ||
101 | regulator-always-on; | ||
102 | }; | ||
103 | |||
104 | vdd_10: REG10 { | ||
105 | regulator-name = "VDD_10"; | ||
106 | regulator-min-microvolt = <1000000>; | ||
107 | regulator-max-microvolt = <1000000>; | ||
108 | regulator-always-on; | ||
109 | }; | ||
110 | |||
111 | vcc_18: REG11 { | ||
112 | regulator-name = "VCC_18"; | ||
113 | regulator-min-microvolt = <1800000>; | ||
114 | regulator-max-microvolt = <1800000>; | ||
115 | regulator-always-on; | ||
116 | }; | ||
117 | |||
118 | vcc18_lcd: REG12 { | ||
119 | regulator-name = "VCC18_LCD"; | ||
120 | regulator-min-microvolt = <1800000>; | ||
121 | regulator-max-microvolt = <1800000>; | ||
122 | regulator-always-on; | ||
123 | }; | ||
124 | }; | ||
125 | }; | ||
126 | }; | ||
127 | |||
128 | &pinctrl { | ||
129 | hym8563 { | ||
130 | hym8563_int: hym8563-int { | ||
131 | rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>; | ||
132 | }; | ||
133 | }; | ||
134 | }; | ||
diff --git a/arch/arm/boot/dts/rk3288-evb-rk808.dts b/arch/arm/boot/dts/rk3288-evb-rk808.dts new file mode 100644 index 000000000000..9a88b6c66396 --- /dev/null +++ b/arch/arm/boot/dts/rk3288-evb-rk808.dts | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * This program is free software; you can redistribute it and/or modify | ||
3 | * it under the terms of the GNU General Public License as published by | ||
4 | * the Free Software Foundation; either version 2 of the License, or | ||
5 | * (at your option) any later version. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | ||
12 | |||
13 | /dts-v1/; | ||
14 | #include "rk3288-evb.dtsi" | ||
15 | |||
16 | / { | ||
17 | compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288"; | ||
18 | }; | ||
diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi new file mode 100644 index 000000000000..749e20db3b37 --- /dev/null +++ b/arch/arm/boot/dts/rk3288-evb.dtsi | |||
@@ -0,0 +1,74 @@ | |||
1 | /* | ||
2 | * This program is free software; you can redistribute it and/or modify | ||
3 | * it under the terms of the GNU General Public License as published by | ||
4 | * the Free Software Foundation; either version 2 of the License, or | ||
5 | * (at your option) any later version. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | ||
12 | |||
13 | #include "rk3288.dtsi" | ||
14 | |||
15 | / { | ||
16 | memory { | ||
17 | reg = <0x0 0x80000000>; | ||
18 | }; | ||
19 | |||
20 | gpio-keys { | ||
21 | compatible = "gpio-keys"; | ||
22 | #address-cells = <1>; | ||
23 | #size-cells = <0>; | ||
24 | autorepeat; | ||
25 | |||
26 | pinctrl-names = "default"; | ||
27 | pinctrl-0 = <&pwrbtn>; | ||
28 | |||
29 | button@0 { | ||
30 | gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; | ||
31 | linux,code = <116>; | ||
32 | label = "GPIO Key Power"; | ||
33 | linux,input-type = <1>; | ||
34 | gpio-key,wakeup = <1>; | ||
35 | debounce-interval = <100>; | ||
36 | }; | ||
37 | }; | ||
38 | }; | ||
39 | |||
40 | &i2c0 { | ||
41 | status = "okay"; | ||
42 | }; | ||
43 | |||
44 | &wdt { | ||
45 | status = "okay"; | ||
46 | }; | ||
47 | |||
48 | &uart0 { | ||
49 | status = "okay"; | ||
50 | }; | ||
51 | |||
52 | &uart1 { | ||
53 | status = "okay"; | ||
54 | }; | ||
55 | |||
56 | &uart2 { | ||
57 | status = "okay"; | ||
58 | }; | ||
59 | |||
60 | &uart3 { | ||
61 | status = "okay"; | ||
62 | }; | ||
63 | |||
64 | &uart4 { | ||
65 | status = "okay"; | ||
66 | }; | ||
67 | |||
68 | &pinctrl { | ||
69 | buttons { | ||
70 | pwrbtn: pwrbtn { | ||
71 | rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>; | ||
72 | }; | ||
73 | }; | ||
74 | }; | ||