Skip to content

Commit 5bd8024

Browse files
committed
ODROID-N2: arm64/dts: add 'meson64_odroidc2/n2/n2_plus/n2l/c4/hc4.dts' for compability
Change-Id: I361804b497d71fd67a4c6816463d5cac607e0a53 Signed-off-by: Dongjin Kim <[email protected]>
1 parent d794972 commit 5bd8024

File tree

7 files changed

+540
-0
lines changed

7 files changed

+540
-0
lines changed

arch/arm64/boot/dts/amlogic/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,10 @@ dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-hc4.dtb
7474
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb
7575
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air-gbit.dtb
7676
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air.dtb
77+
78+
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidc2.dtb
79+
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidc4.dtb
80+
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidhc4.dtb
81+
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidn2.dtb
82+
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidn2l.dtb
83+
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidn2_plus.dtb
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2020 Dongjin Kim <[email protected]>
4+
*
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "meson-gxbb-odroidc2.dts"
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2020 Dongjin Kim <[email protected]>
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "meson-sm1-odroid-c4.dts"
9+
10+
/ {
11+
odroid-reboot {
12+
compatible = "odroid,reboot";
13+
sys_reset = <0x84000009>;
14+
sys_poweroff = <0x84000008>;
15+
16+
sd-vqen = <&gpio_ao GPIOE_2 GPIO_ACTIVE_HIGH>;
17+
sd-vqsw = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>;
18+
sd-vmmc = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
19+
};
20+
};
21+
22+
&cpu_opp_table {
23+
/delete-node/ opp-100000000;
24+
/delete-node/ opp-250000000;
25+
/delete-node/ opp-500000000;
26+
/delete-node/ opp-667000000;
27+
28+
opp-1000000000 {
29+
opp-hz = /bits/ 64 <1000000000>;
30+
opp-microvolt = <799999>;
31+
};
32+
33+
opp-1200000000 {
34+
opp-hz = /bits/ 64 <1200000000>;
35+
opp-microvolt = <809999>;
36+
};
37+
38+
opp-1404000000 {
39+
opp-hz = /bits/ 64 <1404000000>;
40+
opp-microvolt = <819999>;
41+
};
42+
43+
opp-1500000000 {
44+
opp-hz = /bits/ 64 <1500000000>;
45+
opp-microvolt = <829999>;
46+
};
47+
48+
opp-1608000000 {
49+
opp-hz = /bits/ 64 <1608000000>;
50+
opp-microvolt = <859999>;
51+
};
52+
53+
opp-1704000000 {
54+
opp-hz = /bits/ 64 <1704000000>;
55+
opp-microvolt = <899999>;
56+
};
57+
58+
opp-1800000000 {
59+
opp-hz = /bits/ 64 <1800000000>;
60+
opp-microvolt = <939999>;
61+
};
62+
63+
opp-1908000000 {
64+
opp-hz = /bits/ 64 <1908000000>;
65+
opp-microvolt = <999999>;
66+
};
67+
opp-2016000000 {
68+
opp-hz = /bits/ 64 <2016000000>;
69+
opp-microvolt = <1010000>;
70+
};
71+
opp-2100000000 {
72+
opp-hz = /bits/ 64 <2100000000>;
73+
opp-microvolt = <1030000>;
74+
};
75+
};
76+
77+
&ethmac {
78+
/delete-property/ resets;
79+
/delete-property/ reset-names;
80+
};
81+
82+
&external_phy {
83+
/delete-property/ interrupts;
84+
/delete-property/ interrupts-parent;
85+
};
86+
87+
&gpu_opp_table {
88+
opp-999999984 {
89+
opp-hz = /bits/ 64 <999999984>;
90+
opp-microvolt = <800000>;
91+
};
92+
};
93+
94+
&vddcpu {
95+
regulator-max-microvolt = <1030000>;
96+
};
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2020 Dongjin Kim <[email protected]>
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "meson-sm1-odroid-hc4.dts"
9+
10+
&cpu_opp_table {
11+
/delete-node/ opp-100000000;
12+
/delete-node/ opp-250000000;
13+
/delete-node/ opp-500000000;
14+
/delete-node/ opp-667000000;
15+
16+
opp-1000000000 {
17+
opp-hz = /bits/ 64 <1000000000>;
18+
opp-microvolt = <860000>;
19+
};
20+
21+
opp-1200000000 {
22+
opp-hz = /bits/ 64 <1200000000>;
23+
opp-microvolt = <860000>;
24+
};
25+
26+
opp-1404000000 {
27+
opp-hz = /bits/ 64 <1404000000>;
28+
opp-microvolt = <870000>;
29+
};
30+
31+
opp-1500000000 {
32+
opp-hz = /bits/ 64 <1500000000>;
33+
opp-microvolt = <880000>;
34+
};
35+
36+
opp-1608000000 {
37+
opp-hz = /bits/ 64 <1608000000>;
38+
opp-microvolt = <890000>;
39+
};
40+
41+
opp-2016000000 {
42+
opp-hz = /bits/ 64 <2016000000>;
43+
opp-microvolt = <1010000>;
44+
};
45+
opp-2100000000 {
46+
opp-hz = /bits/ 64 <2100000000>;
47+
opp-microvolt = <1030000>;
48+
};
49+
};
50+
51+
&ethmac {
52+
/delete-property/ resets;
53+
/delete-property/ reset-names;
54+
};
55+
56+
&external_phy {
57+
/delete-property/ interrupts;
58+
/delete-property/ interrupts-parent;
59+
};
60+
61+
&fan0 {
62+
fan-supply = <&vcc_5v>;
63+
interrupt-parent = <&gpio_intc>;
64+
interrupts = <84 IRQ_TYPE_EDGE_FALLING>;
65+
pulses-per-revolutions = <2>;
66+
};
67+
68+
&gpu_opp_table {
69+
opp-999999984 {
70+
opp-hz = /bits/ 64 <999999984>;
71+
opp-microvolt = <800000>;
72+
};
73+
};
74+
75+
&vddcpu {
76+
regulator-max-microvolt = <1030000>;
77+
};
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2019 Dongjin Kim <[email protected]>
4+
*
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <dt-bindings/pwm/pwm.h>
10+
11+
#include "meson-g12b-odroid-n2.dts"
12+
13+
/ {
14+
reboot: odroid-reboot {
15+
compatible = "odroid,reboot";
16+
sys_reset = <0x84000009>;
17+
sys_poweroff = <0x84000008>;
18+
19+
sd-vmmc = <&gpio_ao GPIOAO_8 GPIO_ACTIVE_HIGH>;
20+
sd-vqsw = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
21+
};
22+
};
23+
24+
&ethmac {
25+
/delete-property/ resets;
26+
/delete-property/ reset-names;
27+
};
28+
29+
&gpu_opp_table {
30+
opp-999999984 {
31+
opp-hz = /bits/ 64 <999999984>;
32+
opp-microvolt = <800000>;
33+
};
34+
};
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2020 Dongjin Kim <[email protected]>
4+
*
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <dt-bindings/pwm/pwm.h>
10+
11+
#include "meson-g12b-odroid-n2-plus.dts"
12+
13+
/ {
14+
pwmgpio:pwmgpio {
15+
compatible = "pwm-gpio";
16+
#pwm-cells = <3>;
17+
pwm-gpios = <&gpio_ao GPIOAO_10 GPIO_ACTIVE_HIGH>;
18+
status = "okay";
19+
};
20+
21+
pwmfan:pwm-fan {
22+
compatible = "pwm-fan";
23+
pwms = <&pwmgpio 0 40000 PWM_POLARITY_INVERTED>;
24+
cooling-min-state = <0>;
25+
cooling-max-state = <3>;
26+
#cooling-cells = <2>;
27+
cooling-levels = <0 120 170 220>;
28+
};
29+
30+
reboot: odroid-reboot {
31+
compatible = "odroid,reboot";
32+
sys_reset = <0x84000009>;
33+
sys_poweroff = <0x84000008>;
34+
35+
sd-vmmc = <&gpio_ao GPIOAO_8 GPIO_ACTIVE_HIGH>;
36+
sd-vqen = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
37+
sd-vqsw = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
38+
};
39+
};
40+
41+
&ethmac {
42+
/delete-property/ resets;
43+
/delete-property/ reset-names;
44+
};
45+
46+
&gpu_opp_table {
47+
opp-999999984 {
48+
opp-hz = /bits/ 64 <999999984>;
49+
opp-microvolt = <800000>;
50+
};
51+
};
52+
53+
&vddcpu_a {
54+
regulator-min-microvolt = <680000>;
55+
regulator-max-microvolt = <1040000>;
56+
57+
pwms = <&pwm_ab 0 1500 0>;
58+
};
59+
60+
&vddcpu_b {
61+
regulator-min-microvolt = <680000>;
62+
regulator-max-microvolt = <1040000>;
63+
64+
pwms = <&pwm_AO_cd 1 1500 0>;
65+
};
66+
67+
&cpu_opp_table_0 {
68+
/delete-node/ opp-100000000;
69+
/delete-node/ opp-250000000;
70+
/delete-node/ opp-500000000;
71+
/delete-node/ opp-667000000;
72+
opp-1000000000 {
73+
opp-hz = /bits/ 64 <1000000000>;
74+
opp-microvolt = <760000>;
75+
};
76+
opp-1200000000 {
77+
opp-hz = /bits/ 64 <1200000000>;
78+
opp-microvolt = <780000>;
79+
};
80+
opp-1398000000 {
81+
opp-hz = /bits/ 64 <1398000000>;
82+
opp-microvolt = <810000>;
83+
};
84+
opp-1512000000 {
85+
opp-hz = /bits/ 64 <1512000000>;
86+
opp-microvolt = <860000>;
87+
};
88+
opp-1608000000 {
89+
opp-hz = /bits/ 64 <1608000000>;
90+
opp-microvolt = <900000>;
91+
};
92+
opp-1704000000 {
93+
opp-hz = /bits/ 64 <1704000000>;
94+
opp-microvolt = <960000>;
95+
};
96+
opp-1800000000 {
97+
opp-hz = /bits/ 64 <1800000000>;
98+
opp-microvolt = <1020000>;
99+
};
100+
opp-1908000000 {
101+
opp-hz = /bits/ 64 <1908000000>;
102+
opp-microvolt = <1030000>;
103+
};
104+
opp-2016000000 {
105+
opp-hz = /bits/ 64 <2016000000>;
106+
opp-microvolt = <1040000>;
107+
};
108+
};
109+
110+
&cpub_opp_table_1 {
111+
/delete-node/ opp-100000000;
112+
/delete-node/ opp-250000000;
113+
/delete-node/ opp-500000000;
114+
/delete-node/ opp-667000000;
115+
opp-1000000000 {
116+
opp-hz = /bits/ 64 <1000000000>;
117+
opp-microvolt = <730000>;
118+
};
119+
opp-1200000000 {
120+
opp-hz = /bits/ 64 <1200000000>;
121+
opp-microvolt = <750000>;
122+
};
123+
opp-1398000000 {
124+
opp-hz = /bits/ 64 <1398000000>;
125+
opp-microvolt = <770000>;
126+
};
127+
opp-1512000000 {
128+
opp-hz = /bits/ 64 <1512000000>;
129+
opp-microvolt = <770000>;
130+
};
131+
opp-1608000000 {
132+
opp-hz = /bits/ 64 <1608000000>;
133+
opp-microvolt = <780000>;
134+
};
135+
opp-1704000000 {
136+
opp-hz = /bits/ 64 <1704000000>;
137+
opp-microvolt = <790000>;
138+
};
139+
opp-1800000000 {
140+
opp-hz = /bits/ 64 <1800000000>;
141+
opp-microvolt = <830000>;
142+
};
143+
opp-1908000000 {
144+
opp-hz = /bits/ 64 <1908000000>;
145+
opp-microvolt = <860000>;
146+
};
147+
opp-2016000000 {
148+
opp-hz = /bits/ 64 <2016000000>;
149+
opp-microvolt = <910000>;
150+
};
151+
opp-2100000000 {
152+
opp-hz = /bits/ 64 <2100000000>;
153+
opp-microvolt = <960000>;
154+
};
155+
opp-2208000000 {
156+
opp-hz = /bits/ 64 <2208000000>;
157+
opp-microvolt = <1030000>;
158+
};
159+
opp-2304000000 {
160+
opp-hz = /bits/ 64 <2304000000>;
161+
opp-microvolt = <1030000>;
162+
};
163+
opp-2400000000 {
164+
opp-hz = /bits/ 64 <2400000000>;
165+
opp-microvolt = <1040000>;
166+
};
167+
};

0 commit comments

Comments
 (0)