[PATCH 03/14] arm64: dts: imx8: add conn scu clocks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add conn scu clocks

Cc: Rob Herring <robh+dt@xxxxxxxxxx>
Cc: Mark Rutland <mark.rutland@xxxxxxx>
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: Shawn Guo <shawnguo@xxxxxxxxxx>
Cc: Sascha Hauer <kernel@xxxxxxxxxxxxxx>
Cc: Fabio Estevam <fabio.estevam@xxxxxxx>
Signed-off-by: Dong Aisheng <aisheng.dong@xxxxxxx>
---
 arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 122 ++++++++++++++++++++++++
 1 file changed, 122 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
index ac5131d..0765cb2 100644
--- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
@@ -4,12 +4,134 @@
  *	Dong Aisheng <aisheng.dong@xxxxxxx>
  */
 
+#include <dt-bindings/firmware/imx/rsrc.h>
+
 conn_subsys: bus@5b000000 {
 	compatible = "simple-bus";
 	#address-cells = <1>;
 	#size-cells = <1>;
 	ranges = <0x5b000000 0x0 0x5b000000 0x1000000>;
 
+	/* SCU clocks */
+	conn_axi_clk: clock-conn-axi {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <333333333>;
+		clock-output-names = "conn_axi_clk";
+	};
+
+	conn_ahb_clk: clock-conn-ahb {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <166666666>;
+		clock-output-names = "conn_ahb_clk";
+	};
+
+	conn_ipg_clk: clock-conn-ipg {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <83333333>;
+		clock-output-names = "conn_ipg_clk";
+	};
+
+	enet0_clk: clock-enet0 {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_ENET_0>;
+		clk-type = <IMX_SC_PM_CLK_PER>;
+		clock-output-names = "enet0_clk";
+	};
+
+	enet0_bypass_clk: clock-enet0-bypass {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_ENET_0>;
+		clk-type = <IMX_SC_PM_CLK_BYPASS>;
+		clock-output-names = "enet0_bypass_clk";
+	};
+
+	enet0_rgmii_clk: clock-enet0-rgmii {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_ENET_0>;
+		clk-type = <IMX_SC_PM_CLK_MISC0>;
+		clock-output-names = "enet0_rgmii_clk";
+	};
+
+	enet1_clk: clock-enet1 {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_ENET_1>;
+		clk-type = <IMX_SC_PM_CLK_PER>;
+		clock-output-names = "enet1_clk";
+	};
+
+	enet1_bypass_clk: clock-enet1-bypass {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_ENET_1>;
+		clk-type = <IMX_SC_PM_CLK_BYPASS>;
+		clock-output-names = "enet1_bypass_clk";
+	};
+
+	enet1_rgmii_clk: clock-enet1-rgmii {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_ENET_1>;
+		clk-type = <IMX_SC_PM_CLK_MISC0>;
+		clock-output-names = "enet1_rgmii_clk";
+	};
+
+	gpmi_bch_clk: clock-gpmi-bch {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_NAND>;
+		clk-type = <IMX_SC_PM_CLK_PER>;
+		clock-output-names = "gpmi_bch_clk";
+	};
+
+	gpmi_bch_io_clk: clock-gpmi-bch-io {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_NAND>;
+		clk-type = <IMX_SC_PM_CLK_MST_BUS>;
+		clock-output-names = "gpmi_bch_io_clk";
+	};
+
+	sdhc0_clk: clock-sdhc0 {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_SDHC_0>;
+		clk-type = <IMX_SC_PM_CLK_PER>;
+		clock-output-names = "sdhc0_clk";
+	};
+
+	sdhc1_clk: clock-sdhc1 {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_SDHC_1>;
+		clk-type = <IMX_SC_PM_CLK_PER>;
+		clock-output-names = "sdhc1_clk";
+	};
+
+	sdhc2_clk: clock-sdhc2 {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_SDHC_2>;
+		clk-type = <IMX_SC_PM_CLK_PER>;
+		clock-output-names = "sdhc2_clk";
+	};
+
+	usb3_aclk: clock-usb3-aclk {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_USB_2>;
+		clk-type = <IMX_SC_PM_CLK_PER>;
+		clock-output-names = "usb3_aclk";
+	};
+
+	usb3_bus_aclk: clock-usb3-bus {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_USB_2>;
+		clk-type = <IMX_SC_PM_CLK_MST_BUS>;
+		clock-output-names = "usb3_bus_aclk";
+	};
+
+	usb3_lpm_aclk: clock-usb3-lpm {
+		#clock-cells = <0>;
+		rsrc-id = <IMX_SC_R_USB_2>;
+		clk-type = <IMX_SC_PM_CLK_MISC>;
+		clock-output-names = "usb3_lpm_aclk";
+	};
+
 	conn_lpcg: clock-controller@5b200000 {
 		reg = <0x5b200000 0xb0000>;
 		#clock-cells = <1>;
-- 
2.7.4





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux