Skip to content

Commit 4c6b721

Browse files
committed
drivers:dts: Aspeed specific driver porting for AST2700 A2
- AMD specific AST2700 drivers are ported from Aspeed SDK 6.10 - Drivers are proted from: - URL : https://github.com/AspeedTech-BMC/linux/tree/aspeed-master-v6.6, Tag:v00.06.09 - Commint ID: 0364b2f - Latest base DTS 'aspeed-g7.dtsi' pulled from above repo. - dts files modified to accomodate latest base DTS and driver changes. Signed-off-by: aasboddu_amdeng <Aashray.Boddu@amd.com>
1 parent 4abaa77 commit 4c6b721

55 files changed

Lines changed: 7236 additions & 2569 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

arch/arm64/boot/dts/aspeed/aspeed-bmc-amd-congo.dts

Lines changed: 5 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include <dt-bindings/i3c/i3c.h>
1111

1212
//#define VERONA 1
13+
#define PCIE0_EP 1 // 1: EP, 0: RC
14+
#define PCIE1_EP 1 // 1: EP, 0: RC
1315

1416
/ {
1517
model = "AMD Congo VRB";
@@ -37,65 +39,14 @@
3739
#size-cells = <2>;
3840
ranges;
3941

40-
mcu_fw: mcu-firmware@42fe00000 {
41-
reg = <0x4 0x2fe00000 0x0 0x200000>;
42-
no-map;
43-
};
44-
45-
atf: trusted-firmware-a@430000000 {
46-
reg = <0x4 0x30000000 0x0 0x80000>;
47-
no-map;
48-
};
49-
50-
optee_core: optee-core@430080000 {
51-
reg = <0x4 0x30080000 0x0 0x1000000>;
52-
no-map;
53-
};
54-
55-
bmc_dev0_memory: bmc_dev0_memory@423800000 {
56-
reg = <0x4 0x23800000 0x0 0x100000>;
57-
no-map;
58-
};
59-
60-
vbios_base0: vbios-base0@431bb0000 {
61-
reg = <0x4 0x31bb0000 0x0 0x10000>;
62-
no-map;
63-
};
64-
65-
vbios_base1: vbios-base1@431bc0000 {
66-
reg = <0x4 0x31bc0000 0x0 0x10000>;
67-
no-map;
68-
};
42+
#include "ast2700-reserved-mem.dtsi"
6943

7044
video_engine_memory0: video0 {
7145
size = <0x0 0x04000000>;
7246
alignment = <0x0 0x00010000>;
7347
compatible = "shared-dma-pool";
7448
reusable;
7549
};
76-
77-
pcc_memory: pccbuffer {
78-
reg = <0x4 0xE0000000 0x00001000>; /* 4K */
79-
no-map;
80-
};
81-
82-
xdma_memory0: xdma0 {
83-
size = <0x0 0x01000000>;
84-
alignment = <0x0 0x01000000>;
85-
compatible = "shared-dma-pool";
86-
no-map;
87-
};
88-
89-
espi0_mmbi_memory: espi0-mmbi-memory@424000000 {
90-
reg = <0x4 0x24000000 0x0 0x4000000>;
91-
no-map;
92-
};
93-
94-
mctp0_reserved: mctp0_reserved@431080000 {
95-
reg = <0x4 0x31080000 0x0 0x10000>;
96-
compatible = "shared-dma-pool";
97-
no-map;
98-
};
9950
};
10051

10152
aliases {
@@ -161,7 +112,7 @@
161112

162113
&mac0 {
163114
status = "okay";
164-
phy-mode = "rgmii";
115+
phy-mode = "rgmii-id";
165116
phy-handle = <&ethphy0>;
166117
pinctrl-names = "default";
167118
pinctrl-0 = <&pinctrl_rgmii0_default &pinctrl_rgmii0_driving>;
@@ -173,6 +124,7 @@
173124
pinctrl-0 = <&pinctrl_rmii1_default>;
174125
clock-names = "MACCLK", "RCLK";
175126
use-ncsi;
127+
phy-mode = "rmii";
176128
};
177129

178130
&fmc {
@@ -1026,7 +978,6 @@ spd_ ## bus ## _ ## index: spd@addr,4cc5118 ## index ## 000 { \
1026978
port-addr = <0x80>;
1027979
dma-mode;
1028980
A2600-15;
1029-
memory-region = <&pcc_memory>;
1030981
rec-mode = <0x1>;
1031982
port-addr-hbits-select = <0x1>;
1032983
port-addr-xbits = <0x3>;

arch/arm64/boot/dts/aspeed/aspeed-bmc-amd-eagle.dts

Lines changed: 6 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#include <dt-bindings/i2c/i2c.h>
1010
#include <dt-bindings/i3c/i3c.h>
1111

12+
#define PCIE0_EP 1 // 1: EP, 0: RC
13+
#define PCIE1_EP 1 // 1: EP, 0: RC
14+
1215
/ {
1316
model = "AMD Eagle VRB";
1417
compatible = "amd,eagle-bmc", "aspeed,ast2700";
@@ -35,65 +38,14 @@
3538
#size-cells = <2>;
3639
ranges;
3740

38-
mcu_fw: mcu-firmware@42fe00000 {
39-
reg = <0x4 0x2fe00000 0x0 0x200000>;
40-
no-map;
41-
};
42-
43-
atf: trusted-firmware-a@430000000 {
44-
reg = <0x4 0x30000000 0x0 0x80000>;
45-
no-map;
46-
};
47-
48-
optee_core: optee-core@430080000 {
49-
reg = <0x4 0x30080000 0x0 0x1000000>;
50-
no-map;
51-
};
52-
53-
bmc_dev0_memory: bmc_dev0_memory@423800000 {
54-
reg = <0x4 0x23800000 0x0 0x100000>;
55-
no-map;
56-
};
57-
58-
vbios_base0: vbios-base0@431bb0000 {
59-
reg = <0x4 0x31bb0000 0x0 0x10000>;
60-
no-map;
61-
};
62-
63-
vbios_base1: vbios-base1@431bc0000 {
64-
reg = <0x4 0x31bc0000 0x0 0x10000>;
65-
no-map;
66-
};
41+
#include "ast2700-reserved-mem.dtsi"
6742

6843
video_engine_memory0: video0 {
6944
size = <0x0 0x04000000>;
7045
alignment = <0x0 0x00010000>;
7146
compatible = "shared-dma-pool";
7247
reusable;
7348
};
74-
75-
pcc_memory: pccbuffer {
76-
reg = <0x4 0xE0000000 0x00001000>; /* 4K */
77-
no-map;
78-
};
79-
80-
xdma_memory0: xdma0 {
81-
size = <0x0 0x01000000>;
82-
alignment = <0x0 0x01000000>;
83-
compatible = "shared-dma-pool";
84-
no-map;
85-
};
86-
87-
espi0_mmbi_memory: espi0-mmbi-memory@424000000 {
88-
reg = <0x4 0x24000000 0x0 0x4000000>;
89-
no-map;
90-
};
91-
92-
mctp0_reserved: mctp0_reserved@431080000 {
93-
reg = <0x4 0x31080000 0x0 0x10000>;
94-
compatible = "shared-dma-pool";
95-
no-map;
96-
};
9749
};
9850

9951
aliases {
@@ -159,7 +111,7 @@
159111

160112
&mac0 {
161113
status = "okay";
162-
phy-mode = "rgmii";
114+
phy-mode = "rgmii-id";
163115
phy-handle = <&ethphy0>;
164116
pinctrl-names = "default";
165117
pinctrl-0 = <&pinctrl_rgmii0_default &pinctrl_rgmii0_driving>;
@@ -171,6 +123,7 @@
171123
pinctrl-0 = <&pinctrl_rmii1_default>;
172124
clock-names = "MACCLK", "RCLK";
173125
use-ncsi;
126+
phy-mode = "rmii";
174127
};
175128

176129
&fmc {
@@ -1002,7 +955,6 @@ spd_ ## bus ## _ ## index: spd@addr,4cc5118 ## index ## 000 { \
1002955
port-addr = <0x80>;
1003956
dma-mode;
1004957
A2600-15;
1005-
memory-region = <&pcc_memory>;
1006958
rec-mode = <0x1>;
1007959
port-addr-hbits-select = <0x1>;
1008960
port-addr-xbits = <0x3>;

arch/arm64/boot/dts/aspeed/aspeed-bmc-amd-falcon.dts

Lines changed: 6 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#include <dt-bindings/i2c/i2c.h>
1010
#include <dt-bindings/i3c/i3c.h>
1111

12+
#define PCIE0_EP 1 // 1: EP, 0: RC
13+
#define PCIE1_EP 1 // 1: EP, 0: RC
14+
1215
/ {
1316
model = "AMD Falcon PRB";
1417
compatible = "amd,falcon-bmc", "aspeed,ast2700";
@@ -35,65 +38,14 @@
3538
#size-cells = <2>;
3639
ranges;
3740

38-
mcu_fw: mcu-firmware@42fe00000 {
39-
reg = <0x4 0x2fe00000 0x0 0x200000>;
40-
no-map;
41-
};
42-
43-
atf: trusted-firmware-a@430000000 {
44-
reg = <0x4 0x30000000 0x0 0x80000>;
45-
no-map;
46-
};
47-
48-
optee_core: optee-core@430080000 {
49-
reg = <0x4 0x30080000 0x0 0x1000000>;
50-
no-map;
51-
};
52-
53-
bmc_dev0_memory: bmc_dev0_memory@423800000 {
54-
reg = <0x4 0x23800000 0x0 0x100000>;
55-
no-map;
56-
};
57-
58-
vbios_base0: vbios-base0@431bb0000 {
59-
reg = <0x4 0x31bb0000 0x0 0x10000>;
60-
no-map;
61-
};
62-
63-
vbios_base1: vbios-base1@431bc0000 {
64-
reg = <0x4 0x31bc0000 0x0 0x10000>;
65-
no-map;
66-
};
41+
#include "ast2700-reserved-mem.dtsi"
6742

6843
video_engine_memory0: video0 {
6944
size = <0x0 0x04000000>;
7045
alignment = <0x0 0x00010000>;
7146
compatible = "shared-dma-pool";
7247
reusable;
7348
};
74-
75-
pcc_memory: pccbuffer {
76-
reg = <0x4 0xE0000000 0x00001000>; /* 4K */
77-
no-map;
78-
};
79-
80-
xdma_memory0: xdma0 {
81-
size = <0x0 0x01000000>;
82-
alignment = <0x0 0x01000000>;
83-
compatible = "shared-dma-pool";
84-
no-map;
85-
};
86-
87-
espi0_mmbi_memory: espi0-mmbi-memory@424000000 {
88-
reg = <0x4 0x24000000 0x0 0x4000000>;
89-
no-map;
90-
};
91-
92-
mctp0_reserved: mctp0_reserved@431080000 {
93-
reg = <0x4 0x31080000 0x0 0x10000>;
94-
compatible = "shared-dma-pool";
95-
no-map;
96-
};
9749
};
9850

9951
aliases {
@@ -130,7 +82,7 @@
13082

13183
&mac0 {
13284
status = "okay";
133-
phy-mode = "rgmii";
85+
phy-mode = "rgmii-id";
13486
phy-handle = <&ethphy0>;
13587
pinctrl-names = "default";
13688
pinctrl-0 = <&pinctrl_rgmii0_default &pinctrl_rgmii0_driving>;
@@ -142,6 +94,7 @@
14294
pinctrl-0 = <&pinctrl_rmii1_default>;
14395
clock-names = "MACCLK", "RCLK";
14496
use-ncsi;
97+
phy-mode = "rmii";
14598
};
14699

147100
&fmc {
@@ -565,7 +518,6 @@ spd_ ## bus ## _ ## index: spd@addr,4cc5118 ## index ## 000 { \
565518
port-addr = <0x80>;
566519
dma-mode;
567520
A2600-15;
568-
memory-region = <&pcc_memory>;
569521
rec-mode = <0x1>;
570522
port-addr-hbits-select = <0x1>;
571523
port-addr-xbits = <0x3>;

0 commit comments

Comments
 (0)