@@ -70,6 +70,14 @@
#clock-cells = <1>;
ranges;
+ cp_clk: cp_clk {
+ compatible = "fixed-factor-clock";
+ clocks = <&extal_clk>;
+ #clock-cells = <0>;
+ clock-div = <2>;
+ clock-mult = <1>;
+ };
+
s3d4_clk: s3d4 {
compatible = "fixed-factor-clock";
clocks = <&cpg_clocks R8A7795_CLK_PLL1>;
@@ -114,6 +122,25 @@
R8A7795_CLK_EHCI2>;
clock-output-names = "hsusb", "ehci0", "ehci1", "ehci2";
};
+
+ mstp9_clks: mstp9_clks@e6150994 {
+ compatible = "renesas,r8a7795-mstp-clocks",
+ "renesas,cpg-mstp-clocks";
+ reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
+ clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>,
+ <&cp_clk>, <&cp_clk>, <&cp_clk>,
+ <&cp_clk>, <&cp_clk>;
+ #clock-cells = <1>;
+ clock-indices = <
+ R8A7795_CLK_GPIO7 R8A7795_CLK_GPIO6
+ R8A7795_CLK_GPIO5 R8A7795_CLK_GPIO4
+ R8A7795_CLK_GPIO3 R8A7795_CLK_GPIO2
+ R8A7795_CLK_GPIO1 R8A7795_CLK_GPIO0
+ >;
+ clock-output-names =
+ "gpio7", "gpio6", "gpio5", "gpio4",
+ "gpio3", "gpio2", "gpio1", "gpio0";
+ };
};
};
@@ -37,6 +37,14 @@
/* MSTP8 */
/* MSTP9 */
+#define R8A7795_CLK_GPIO0 12
+#define R8A7795_CLK_GPIO1 11
+#define R8A7795_CLK_GPIO2 10
+#define R8A7795_CLK_GPIO3 9
+#define R8A7795_CLK_GPIO4 8
+#define R8A7795_CLK_GPIO5 7
+#define R8A7795_CLK_GPIO6 6
+#define R8A7795_CLK_GPIO7 5
/* MSTP10 */