[PATCH v1 49/50] ARM: dts: exynos: add buses support for Exynos5800 Peach Pi

From: Lukasz Luba
Date: Mon Jul 15 2019 - 08:45:32 EST


The patch adds SoC buses support. It also changes connections of the clocks
pinning to the rigth parent. There is also frequency set of the needed
clock to make it working at the right rate.

Signed-off-by: Lukasz Luba <l.luba@xxxxxxxxxxxxxxxxxxx>
---
arch/arm/boot/dts/exynos5800-peach-pi.dts | 172 ++++++++++++++++++++++
1 file changed, 172 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts
index e0f470fe54c8..38edb00c7f1b 100644
--- a/arch/arm/boot/dts/exynos5800-peach-pi.dts
+++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts
@@ -151,6 +151,163 @@
vdd-supply = <&ldo9_reg>;
};

+&bus_wcore {
+ devfreq-events = <&nocp_mem0_0>, <&nocp_mem0_1>,
+ <&nocp_mem1_0>, <&nocp_mem1_1>;
+ vdd-supply = <&buck3_reg>;
+ exynos,saturation-ratio = <100>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK400_WCORE>,
+ <&clock CLK_MOUT_SW_ACLK400_WCORE>,
+ <&clock CLK_DOUT_ACLK400_WCORE>,
+ <&clock CLK_FOUT_DPLL>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_DPLL>,
+ <&clock CLK_DOUT_ACLK400_WCORE>;
+ assigned-clock-rates = <0>, <0>, <400000000>, <1200000000>;
+ status = "okay";
+};
+
+&bus_noc {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK100_NOC>,
+ <&clock CLK_DOUT_ACLK100_NOC>;
+ assigned-clock-parents = <&clock CLK_FF_DOUT_SPLL2>;
+ assigned-clock-rates = <0>, <100000000>;
+ status = "okay";
+};
+
+&bus_fsys_apb {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_PCLK200_FSYS>,
+ <&clock CLK_DOUT_PCLK200_FSYS>,
+ <&clock CLK_FOUT_MPLL>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_MPLL>;
+ assigned-clock-rates = <0>, <200000000>,<600000000>;
+ status = "okay";
+};
+
+&bus_fsys {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK200_FSYS>,
+ <&clock CLK_DOUT_ACLK200_FSYS>,
+ <&clock CLK_FOUT_DPLL>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_DPLL>;
+ assigned-clock-rates = <0>, <240000000>,<1200000000>;
+ status = "okay";
+};
+
+&bus_fsys2 {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK200_FSYS2>,
+ <&clock CLK_DOUT_ACLK200_FSYS2>,
+ <&clock CLK_FOUT_DPLL>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_DPLL>;
+ assigned-clock-rates = <0>, <240000000>,<1200000000>;
+ status = "okay";
+};
+
+&bus_mfc {
+ devfreq = <&bus_wcore>;
+ status = "okay";
+};
+
+&bus_gen {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK266>,
+ <&clock CLK_DOUT_ACLK266>, <&clock CLK_FOUT_MPLL>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_MPLL>;
+ assigned-clock-rates = <0>, <300000000>,<600000000>;
+ status = "okay";
+};
+
+&bus_peri {
+ devfreq = <&bus_wcore>;
+ status = "okay";
+};
+
+&bus_g2d {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK266_G2D>,
+ <&clock CLK_DOUT_ACLK266_G2D>,
+ <&clock CLK_FOUT_MPLL>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_MPLL>;
+ assigned-clock-rates = <0>, <300000000>,<600000000>;
+ status = "okay";
+};
+
+&bus_g2d_acp {
+ devfreq = <&bus_wcore>;
+ status = "okay";
+};
+
+&bus_jpeg {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_DOUT_ACLK300_JPEG>;
+ assigned-clock-rates = <300000000>;
+ status = "okay";
+};
+
+&bus_jpeg_apb {
+ devfreq = <&bus_wcore>;
+ status = "okay";
+};
+
+&bus_disp1_fimd {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_DOUT_ACLK300_DISP1>;
+ assigned-clock-rates = <300000000>;
+ status = "okay";
+};
+
+&bus_disp1 {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_DOUT_ACLK200>,
+ <&clock CLK_DOUT_ACLK400_DISP1>;
+ assigned-clock-rates = <200000000>, <400000000>;
+ status = "okay";
+};
+
+&bus_gscl_scaler {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_DOUT_ACLK300_GSCL>;
+ assigned-clock-rates = <300000000>;
+ status = "okay";
+};
+
+&bus_mscl {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK400_MSCL>,
+ <&clock CLK_MOUT_SW_ACLK400_MSCL>,
+ <&clock CLK_DOUT_ACLK400_MSCL>,
+ <&clock CLK_FOUT_DPLL>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_DPLL>,
+ <&clock CLK_DOUT_ACLK400_MSCL>;
+ assigned-clock-rates = <0>, <0>, <400000000>, <1200000000>;
+ status = "okay";
+};
+
+&bus_isp {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK400_ISP>,
+ <&clock CLK_MOUT_SW_ACLK400_ISP>,
+ <&clock CLK_DOUT_ACLK400_ISP>,
+ <&clock CLK_FOUT_DPLL>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_DPLL>,
+ <&clock CLK_DOUT_ACLK400_ISP>;
+ assigned-clock-rates = <0>, <0>, <400000000>, <1200000000>;
+ status = "okay";
+};
+
+&bus_isp266 {
+ devfreq = <&bus_wcore>;
+ assigned-clocks = <&clock CLK_MOUT_ACLK266_ISP>,
+ <&clock CLK_MOUT_USER_ACLK266_ISP>,
+ <&clock CLK_DOUT_ACLK266_ISP>;
+ assigned-clock-parents = <&clock CLK_MOUT_SCLK_MPLL>,
+ <&clock CLK_MOUT_SW_ACLK266_ISP>;
+ assigned-clock-rates = <0>, <0>,<300000000>;
+ status = "okay";
+};
+
&clock_audss {
assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
assigned-clock-parents = <&clock CLK_MAU_EPLL>;
@@ -736,6 +893,21 @@
bus-width = <4>;
};

+&nocp_mem0_0 {
+ status = "okay";
+};
+
+&nocp_mem0_1 {
+ status = "okay";
+};
+
+&nocp_mem1_0 {
+ status = "okay";
+};
+
+&nocp_mem1_1 {
+ status = "okay";
+};

&pinctrl_0 {
pinctrl-names = "default";
--
2.17.1