Skip to content

Commit 3e55c86

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 3e55c86

55 files changed

Lines changed: 7215 additions & 2558 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: 3 additions & 53 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 {
@@ -1026,7 +977,6 @@ spd_ ## bus ## _ ## index: spd@addr,4cc5118 ## index ## 000 { \
1026977
port-addr = <0x80>;
1027978
dma-mode;
1028979
A2600-15;
1029-
memory-region = <&pcc_memory>;
1030980
rec-mode = <0x1>;
1031981
port-addr-hbits-select = <0x1>;
1032982
port-addr-xbits = <0x3>;

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

Lines changed: 4 additions & 53 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 {
@@ -1002,7 +954,6 @@ spd_ ## bus ## _ ## index: spd@addr,4cc5118 ## index ## 000 { \
1002954
port-addr = <0x80>;
1003955
dma-mode;
1004956
A2600-15;
1005-
memory-region = <&pcc_memory>;
1006957
rec-mode = <0x1>;
1007958
port-addr-hbits-select = <0x1>;
1008959
port-addr-xbits = <0x3>;

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

Lines changed: 4 additions & 53 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 {
@@ -565,7 +517,6 @@ spd_ ## bus ## _ ## index: spd@addr,4cc5118 ## index ## 000 { \
565517
port-addr = <0x80>;
566518
dma-mode;
567519
A2600-15;
568-
memory-region = <&pcc_memory>;
569520
rec-mode = <0x1>;
570521
port-addr-hbits-select = <0x1>;
571522
port-addr-xbits = <0x3>;

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

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

13+
#define PCIE0_EP 1 // 1: EP, 0: RC
14+
#define PCIE1_EP 1 // 1: EP, 0: RC
15+
1316
/ {
1417
model = "AMD Ghana PRB";
1518
compatible = "amd,ghana-bmc", "aspeed,ast2700";
@@ -36,35 +39,7 @@
3639
#size-cells = <2>;
3740
ranges;
3841

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

6944
video_engine_memory0: video0 {
7045
size = <0x0 0x04000000>; /* 64M */
@@ -79,35 +54,6 @@
7954
compatible = "shared-dma-pool";
8055
reusable;
8156
};
82-
83-
pcc_memory: pccbuffer {
84-
reg = <0x4 0xE0000000 0x00001000>; /* 4K */
85-
no-map;
86-
};
87-
88-
xdma_memory0: xdma0 {
89-
size = <0x0 0x01000000>;
90-
alignment = <0x0 0x01000000>;
91-
compatible = "shared-dma-pool";
92-
no-map;
93-
};
94-
95-
espi0_mmbi_memory: espi0-mmbi-memory@424000000 {
96-
reg = <0x4 0x24000000 0x0 0x4000000>;
97-
no-map;
98-
};
99-
100-
mctp0_reserved: mctp0_reserved@431080000 {
101-
reg = <0x4 0x31080000 0x0 0x10000>;
102-
compatible = "shared-dma-pool";
103-
no-map;
104-
};
105-
106-
mctp1_reserved: mctp1_reserved@431090000 {
107-
reg = <0x4 0x31090000 0x0 0x10000>;
108-
compatible = "shared-dma-pool";
109-
no-map;
110-
};
11157
};
11258

11359
aliases {
@@ -758,7 +704,6 @@ spd_ ## bus ## _ ## index: spd@addr,4cc5118 ## index ## 000 { \
758704
port-addr = <0x80>;
759705
dma-mode;
760706
A2600-15;
761-
memory-region = <&pcc_memory>;
762707
rec-mode = <0x1>;
763708
port-addr-hbits-select = <0x1>;
764709
port-addr-xbits = <0x3>;

0 commit comments

Comments
 (0)