Skip to content

Commit

Permalink
dts: st: enable RCC driver in stm32mp251
Browse files Browse the repository at this point in the history
Add the RCC node to support clock on stm32mp25 platform.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
Gabriel-Fernandz authored and jforissier committed Jun 27, 2024
1 parent b032334 commit 2a569a9
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions core/arch/arm/dts/stm32mp251.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
* Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
*/

#include <dt-bindings/clock/st,stm32mp25-rcc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/st,stm32mp25-rcc.h>

/ {
#address-cells = <2>;
Expand Down Expand Up @@ -75,12 +77,10 @@
clock-frequency = <0>;
};

clocks {
clk_rcbsec: clk-rcbsec {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <64000000>;
};
clk_rcbsec: clk-rcbsec {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <64000000>;
};
};

Expand Down Expand Up @@ -130,6 +130,31 @@
};
};

rcc: rcc@44200000 {
compatible = "st,stm32mp25-rcc", "syscon";
reg = <0x44200000 0x10000>;
interrupts = <GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH>;

#clock-cells = <1>;
#reset-cells = <1>;
clocks = <&clk_hse>, <&clk_hsi>, <&clk_lse>,
<&clk_lsi>, <&clk_msi>, <&clk_i2sin>;
clock-names = "clk-hse", "clk-hsi", "clk-lse",
"clk-lsi", "clk-msi", "clk-i2sin";

hsi_calibration: hsi-calibration {
compatible = "st,hsi-cal";
st,cal_hsi_dev = <31>;
st,cal_hsi_ref = <1953>;
status = "disabled";
};

msi_calibration: msi-calibration {
compatible = "st,msi-cal";
status = "disabled";
};
};

pinctrl: pinctrl@44240000 {
#address-cells = <1>;
#size-cells = <1>;
Expand All @@ -143,6 +168,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x0 0x400>;
clocks = <&rcc CK_BUS_GPIOA>;
st,bank-name = "GPIOA";
status = "disabled";
};
Expand All @@ -153,6 +179,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x10000 0x400>;
clocks = <&rcc CK_BUS_GPIOB>;
st,bank-name = "GPIOB";
status = "disabled";
};
Expand All @@ -163,6 +190,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x20000 0x400>;
clocks = <&rcc CK_BUS_GPIOC>;
st,bank-name = "GPIOC";
status = "disabled";
};
Expand All @@ -173,6 +201,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x30000 0x400>;
clocks = <&rcc CK_BUS_GPIOD>;
st,bank-name = "GPIOD";
status = "disabled";
};
Expand All @@ -183,6 +212,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x40000 0x400>;
clocks = <&rcc CK_BUS_GPIOE>;
st,bank-name = "GPIOE";
status = "disabled";
};
Expand All @@ -193,6 +223,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x50000 0x400>;
clocks = <&rcc CK_BUS_GPIOF>;
st,bank-name = "GPIOF";
status = "disabled";
};
Expand All @@ -203,6 +234,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x60000 0x400>;
clocks = <&rcc CK_BUS_GPIOG>;
st,bank-name = "GPIOG";
status = "disabled";
};
Expand All @@ -213,6 +245,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x70000 0x400>;
clocks = <&rcc CK_BUS_GPIOH>;
st,bank-name = "GPIOH";
status = "disabled";
};
Expand All @@ -223,6 +256,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x80000 0x400>;
clocks = <&rcc CK_BUS_GPIOI>;
st,bank-name = "GPIOI";
status = "disabled";
};
Expand All @@ -233,6 +267,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x90000 0x400>;
clocks = <&rcc CK_BUS_GPIOJ>;
st,bank-name = "GPIOJ";
status = "disabled";
};
Expand All @@ -243,6 +278,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0xa0000 0x400>;
clocks = <&rcc CK_BUS_GPIOK>;
st,bank-name = "GPIOK";
status = "disabled";
};
Expand All @@ -261,6 +297,7 @@
interrupt-controller;
#interrupt-cells = <2>;
reg = <0 0x400>;
clocks = <&rcc CK_BUS_GPIOZ>;
st,bank-name = "GPIOZ";
st,bank-ioport = <11>;
status = "disabled";
Expand Down

0 comments on commit 2a569a9

Please sign in to comment.