mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 17:26:40 +07:00
e67ae6be73
This hooks the Integrator/AP into the SoC bus when booting from device tree, by mapping the AP controller registers first, then registering the SoC device, and then populating the device tree with the SoC device as parent. Introduce some helpers in the core to provide sysfs files detailing the use of the SoC ID which will later be reused by the Integrator/CP patch for the same bus grouping. Cc: Lee Jones <lee.jones@linaro.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
74 lines
1.4 KiB
Plaintext
74 lines
1.4 KiB
Plaintext
/*
|
|
* Device Tree for the ARM Integrator/AP platform
|
|
*/
|
|
|
|
/dts-v1/;
|
|
/include/ "integrator.dtsi"
|
|
|
|
/ {
|
|
model = "ARM Integrator/AP";
|
|
compatible = "arm,integrator-ap";
|
|
|
|
aliases {
|
|
arm,timer-primary = &timer2;
|
|
arm,timer-secondary = &timer1;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "root=/dev/ram0 console=ttyAM0,38400n8 earlyprintk";
|
|
};
|
|
|
|
syscon {
|
|
/* AP system controller registers */
|
|
reg = <0x11000000 0x100>;
|
|
};
|
|
|
|
timer0: timer@13000000 {
|
|
compatible = "arm,integrator-timer";
|
|
};
|
|
|
|
timer1: timer@13000100 {
|
|
compatible = "arm,integrator-timer";
|
|
};
|
|
|
|
timer2: timer@13000200 {
|
|
compatible = "arm,integrator-timer";
|
|
};
|
|
|
|
pic: pic@14000000 {
|
|
valid-mask = <0x003fffff>;
|
|
};
|
|
|
|
fpga {
|
|
/*
|
|
* The Integator/AP predates the idea to have magic numbers
|
|
* identifying the PrimeCell in hardware, thus we have to
|
|
* supply these from the device tree.
|
|
*/
|
|
rtc: rtc@15000000 {
|
|
compatible = "arm,pl030", "arm,primecell";
|
|
arm,primecell-periphid = <0x00041030>;
|
|
};
|
|
|
|
uart0: uart@16000000 {
|
|
compatible = "arm,pl010", "arm,primecell";
|
|
arm,primecell-periphid = <0x00041010>;
|
|
};
|
|
|
|
uart1: uart@17000000 {
|
|
compatible = "arm,pl010", "arm,primecell";
|
|
arm,primecell-periphid = <0x00041010>;
|
|
};
|
|
|
|
kmi0: kmi@18000000 {
|
|
compatible = "arm,pl050", "arm,primecell";
|
|
arm,primecell-periphid = <0x00041050>;
|
|
};
|
|
|
|
kmi1: kmi@19000000 {
|
|
compatible = "arm,pl050", "arm,primecell";
|
|
arm,primecell-periphid = <0x00041050>;
|
|
};
|
|
};
|
|
};
|