mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 09:46:44 +07:00
powerpc/512x: dts: add MPC5125 clock specs
add clock related specs to the MPC5125 "tower" board DTS - add clock providers (crystal/oscillator, clock control module) - add consumers (the CAN, SDHC, I2C, DIU, FEC, USB, PSC peripherals) Signed-off-by: Gerhard Sittig <gsi@denx.de> Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
319bbe0ef5
commit
bc75059422
@ -12,6 +12,8 @@
|
||||
* option) any later version.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/clock/mpc512x-clock.h>
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
@ -54,6 +56,17 @@ sram@30000000 {
|
||||
reg = <0x30000000 0x08000>; // 32K at 0x30000000
|
||||
};
|
||||
|
||||
clocks {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
osc: osc {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <33000000>;
|
||||
};
|
||||
};
|
||||
|
||||
soc@80000000 {
|
||||
compatible = "fsl,mpc5121-immr";
|
||||
#address-cells = <1>;
|
||||
@ -87,9 +100,12 @@ reset@e00 { // Reset module
|
||||
reg = <0xe00 0x100>;
|
||||
};
|
||||
|
||||
clock@f00 { // Clock control
|
||||
clks: clock@f00 { // Clock control
|
||||
compatible = "fsl,mpc5121-clock";
|
||||
reg = <0xf00 0x100>;
|
||||
#clock-cells = <1>;
|
||||
clocks = <&osc>;
|
||||
clock-names = "osc";
|
||||
};
|
||||
|
||||
pmc@1000{ // Power Management Controller
|
||||
@ -114,18 +130,33 @@ can@1300 { // CAN rev.2
|
||||
compatible = "fsl,mpc5121-mscan";
|
||||
interrupts = <12 0x8>;
|
||||
reg = <0x1300 0x80>;
|
||||
clocks = <&clks MPC512x_CLK_BDLC>,
|
||||
<&clks MPC512x_CLK_IPS>,
|
||||
<&clks MPC512x_CLK_SYS>,
|
||||
<&clks MPC512x_CLK_REF>,
|
||||
<&clks MPC512x_CLK_MSCAN0_MCLK>;
|
||||
clock-names = "ipg", "ips", "sys", "ref", "mclk";
|
||||
};
|
||||
|
||||
can@1380 {
|
||||
compatible = "fsl,mpc5121-mscan";
|
||||
interrupts = <13 0x8>;
|
||||
reg = <0x1380 0x80>;
|
||||
clocks = <&clks MPC512x_CLK_BDLC>,
|
||||
<&clks MPC512x_CLK_IPS>,
|
||||
<&clks MPC512x_CLK_SYS>,
|
||||
<&clks MPC512x_CLK_REF>,
|
||||
<&clks MPC512x_CLK_MSCAN1_MCLK>;
|
||||
clock-names = "ipg", "ips", "sys", "ref", "mclk";
|
||||
};
|
||||
|
||||
sdhc@1500 {
|
||||
compatible = "fsl,mpc5121-sdhc";
|
||||
interrupts = <8 0x8>;
|
||||
reg = <0x1500 0x100>;
|
||||
clocks = <&clks MPC512x_CLK_IPS>,
|
||||
<&clks MPC512x_CLK_SDHC>;
|
||||
clock-names = "ipg", "per";
|
||||
};
|
||||
|
||||
i2c@1700 {
|
||||
@ -134,6 +165,8 @@ i2c@1700 {
|
||||
compatible = "fsl,mpc5121-i2c", "fsl-i2c";
|
||||
reg = <0x1700 0x20>;
|
||||
interrupts = <0x9 0x8>;
|
||||
clocks = <&clks MPC512x_CLK_I2C>;
|
||||
clock-names = "ipg";
|
||||
};
|
||||
|
||||
i2c@1720 {
|
||||
@ -142,6 +175,8 @@ i2c@1720 {
|
||||
compatible = "fsl,mpc5121-i2c", "fsl-i2c";
|
||||
reg = <0x1720 0x20>;
|
||||
interrupts = <0xa 0x8>;
|
||||
clocks = <&clks MPC512x_CLK_I2C>;
|
||||
clock-names = "ipg";
|
||||
};
|
||||
|
||||
i2c@1740 {
|
||||
@ -150,6 +185,8 @@ i2c@1740 {
|
||||
compatible = "fsl,mpc5121-i2c", "fsl-i2c";
|
||||
reg = <0x1740 0x20>;
|
||||
interrupts = <0xb 0x8>;
|
||||
clocks = <&clks MPC512x_CLK_I2C>;
|
||||
clock-names = "ipg";
|
||||
};
|
||||
|
||||
i2ccontrol@1760 {
|
||||
@ -161,6 +198,8 @@ diu@2100 {
|
||||
compatible = "fsl,mpc5121-diu";
|
||||
reg = <0x2100 0x100>;
|
||||
interrupts = <64 0x8>;
|
||||
clocks = <&clks MPC512x_CLK_DIU>;
|
||||
clock-names = "ipg";
|
||||
};
|
||||
|
||||
mdio@2800 {
|
||||
@ -180,6 +219,8 @@ eth0: ethernet@2800 {
|
||||
interrupts = <4 0x8>;
|
||||
phy-handle = < &phy0 >;
|
||||
phy-connection-type = "rmii";
|
||||
clocks = <&clks MPC512x_CLK_FEC>;
|
||||
clock-names = "per";
|
||||
};
|
||||
|
||||
// IO control
|
||||
@ -200,6 +241,8 @@ usb@3000 {
|
||||
interrupts = <43 0x8>;
|
||||
dr_mode = "host";
|
||||
phy_type = "ulpi";
|
||||
clocks = <&clks MPC512x_CLK_USB1>;
|
||||
clock-names = "ipg";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
@ -211,6 +254,9 @@ serial@11100 {
|
||||
interrupts = <40 0x8>;
|
||||
fsl,rx-fifo-size = <16>;
|
||||
fsl,tx-fifo-size = <16>;
|
||||
clocks = <&clks MPC512x_CLK_PSC1>,
|
||||
<&clks MPC512x_CLK_PSC1_MCLK>;
|
||||
clock-names = "ipg", "mclk";
|
||||
};
|
||||
|
||||
// PSC9 uart1 aka ttyPSC1
|
||||
@ -220,12 +266,17 @@ serial@11900 {
|
||||
interrupts = <40 0x8>;
|
||||
fsl,rx-fifo-size = <16>;
|
||||
fsl,tx-fifo-size = <16>;
|
||||
clocks = <&clks MPC512x_CLK_PSC9>,
|
||||
<&clks MPC512x_CLK_PSC9_MCLK>;
|
||||
clock-names = "ipg", "mclk";
|
||||
};
|
||||
|
||||
pscfifo@11f00 {
|
||||
compatible = "fsl,mpc5121-psc-fifo";
|
||||
reg = <0x11f00 0x100>;
|
||||
interrupts = <40 0x8>;
|
||||
clocks = <&clks MPC512x_CLK_PSC_FIFO>;
|
||||
clock-names = "ipg";
|
||||
};
|
||||
|
||||
dma@14000 {
|
||||
|
Loading…
Reference in New Issue
Block a user