Skip to content

Commit b0c0f19

Browse files
Xianwei Zhaosuperna9999
authored andcommitted
arm64: dts: amlogic: enable some nodes for board AQ222
Add reserved memory for board AQ222 which is used by ATF. Enable NAND, SPICC nodes for board AQ222. Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20231208-s4-dts-v2-2-5a93fa356c5d@amlogic.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent 40ae672 commit b0c0f19

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323
reg = <0x0 0x0 0x0 0x40000000>;
2424
};
2525

26+
reserved-memory {
27+
#address-cells = <2>;
28+
#size-cells = <2>;
29+
ranges;
30+
31+
/* 52 MiB reserved for ARM Trusted Firmware */
32+
secmon_reserved: secmon@5000000 {
33+
reg = <0x0 0x05000000 0x0 0x3400000>;
34+
no-map;
35+
};
36+
};
2637
};
2738

2839
&uart_B {
@@ -34,3 +45,48 @@
3445
pinctrl-0 = <&remote_pins>;
3546
pinctrl-names = "default";
3647
};
48+
49+
&nand {
50+
status = "okay";
51+
#address-cells = <1>;
52+
#size-cells = <0>;
53+
54+
pinctrl-0 = <&nand_pins>;
55+
pinctrl-names = "default";
56+
57+
nand@0 {
58+
reg = <0>;
59+
#address-cells = <1>;
60+
#size-cells = <1>;
61+
62+
nand-on-flash-bbt;
63+
64+
partition@0 {
65+
label = "boot";
66+
reg = <0x0 0x00200000>;
67+
};
68+
partition@200000 {
69+
label = "env";
70+
reg = <0x00200000 0x00400000>;
71+
};
72+
partition@600000 {
73+
label = "system";
74+
reg = <0x00600000 0x00a00000>;
75+
};
76+
partition@1000000 {
77+
label = "rootfs";
78+
reg = <0x01000000 0x03000000>;
79+
};
80+
partition@4000000 {
81+
label = "media";
82+
reg = <0x04000000 0x8000000>;
83+
};
84+
};
85+
};
86+
87+
&spicc0 {
88+
status = "okay";
89+
pinctrl-names = "default";
90+
pinctrl-0 = <&spicc0_pins_x>;
91+
cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>;
92+
};

0 commit comments

Comments
 (0)