mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-30 14:34:51 +08:00
ARM: dts: r8a7794: add CAN clocks to device tree
Add CAN nodes to r8a7794 device tree. Based on work by Sergei Shtylyov for the r8a7791 SoC. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
This commit is contained in:
parent
28e941de3d
commit
e980f9418f
@ -843,6 +843,22 @@
|
|||||||
clock-frequency = <0>;
|
clock-frequency = <0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* External USB clock - can be overridden by the board */
|
||||||
|
usb_extal_clk: usb_extal {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <48000000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* External CAN clock */
|
||||||
|
can_clk: can {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
/* This value must be overridden by the board. */
|
||||||
|
clock-frequency = <0>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
/* External SCIF clock */
|
/* External SCIF clock */
|
||||||
scif_clk: scif {
|
scif_clk: scif {
|
||||||
compatible = "fixed-clock";
|
compatible = "fixed-clock";
|
||||||
@ -857,10 +873,11 @@
|
|||||||
compatible = "renesas,r8a7794-cpg-clocks",
|
compatible = "renesas,r8a7794-cpg-clocks",
|
||||||
"renesas,rcar-gen2-cpg-clocks";
|
"renesas,rcar-gen2-cpg-clocks";
|
||||||
reg = <0 0xe6150000 0 0x1000>;
|
reg = <0 0xe6150000 0 0x1000>;
|
||||||
clocks = <&extal_clk>;
|
clocks = <&extal_clk &usb_extal_clk>;
|
||||||
#clock-cells = <1>;
|
#clock-cells = <1>;
|
||||||
clock-output-names = "main", "pll0", "pll1", "pll3",
|
clock-output-names = "main", "pll0", "pll1", "pll3",
|
||||||
"lb", "qspi", "sdh", "sd0", "z";
|
"lb", "qspi", "sdh", "sd0", "z",
|
||||||
|
"rcan";
|
||||||
#power-domain-cells = <0>;
|
#power-domain-cells = <0>;
|
||||||
};
|
};
|
||||||
/* Variable factor clocks */
|
/* Variable factor clocks */
|
||||||
@ -1115,20 +1132,22 @@
|
|||||||
compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
|
compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
|
||||||
reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
|
reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
|
||||||
clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
|
clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
|
||||||
<&cp_clk>, <&cp_clk>, <&cp_clk>,
|
<&cp_clk>, <&cp_clk>, <&cp_clk>, <&p_clk>,
|
||||||
<&cpg_clocks R8A7794_CLK_QSPI>, <&hp_clk>, <&hp_clk>,
|
<&p_clk>, <&cpg_clocks R8A7794_CLK_QSPI>,
|
||||||
<&hp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>;
|
<&hp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>,
|
||||||
|
<&hp_clk>, <&hp_clk>;
|
||||||
#clock-cells = <1>;
|
#clock-cells = <1>;
|
||||||
clock-indices = <R8A7794_CLK_GPIO6 R8A7794_CLK_GPIO5
|
clock-indices = <R8A7794_CLK_GPIO6 R8A7794_CLK_GPIO5
|
||||||
R8A7794_CLK_GPIO4 R8A7794_CLK_GPIO3
|
R8A7794_CLK_GPIO4 R8A7794_CLK_GPIO3
|
||||||
R8A7794_CLK_GPIO2 R8A7794_CLK_GPIO1
|
R8A7794_CLK_GPIO2 R8A7794_CLK_GPIO1
|
||||||
R8A7794_CLK_GPIO0 R8A7794_CLK_QSPI_MOD
|
R8A7794_CLK_GPIO0 R8A7794_CLK_RCAN1
|
||||||
|
R8A7794_CLK_RCAN0 R8A7794_CLK_QSPI_MOD
|
||||||
R8A7794_CLK_I2C5 R8A7794_CLK_I2C4
|
R8A7794_CLK_I2C5 R8A7794_CLK_I2C4
|
||||||
R8A7794_CLK_I2C3 R8A7794_CLK_I2C2
|
R8A7794_CLK_I2C3 R8A7794_CLK_I2C2
|
||||||
R8A7794_CLK_I2C1 R8A7794_CLK_I2C0>;
|
R8A7794_CLK_I2C1 R8A7794_CLK_I2C0>;
|
||||||
clock-output-names =
|
clock-output-names =
|
||||||
"gpio6", "gpio5", "gpio4", "gpio3", "gpio2",
|
"gpio6", "gpio5", "gpio4", "gpio3", "gpio2",
|
||||||
"gpio1", "gpio0", "qspi_mod",
|
"gpio1", "gpio0", "rcan1", "rcan0", "qspi_mod",
|
||||||
"i2c5", "i2c4", "i2c3", "i2c2", "i2c1", "i2c0";
|
"i2c5", "i2c4", "i2c3", "i2c2", "i2c1", "i2c0";
|
||||||
};
|
};
|
||||||
mstp11_clks: mstp11_clks@e615099c {
|
mstp11_clks: mstp11_clks@e615099c {
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#define R8A7794_CLK_SDH 6
|
#define R8A7794_CLK_SDH 6
|
||||||
#define R8A7794_CLK_SD0 7
|
#define R8A7794_CLK_SD0 7
|
||||||
#define R8A7794_CLK_Z 8
|
#define R8A7794_CLK_Z 8
|
||||||
|
#define R8A7794_CLK_RCAN 9
|
||||||
|
|
||||||
/* MSTP0 */
|
/* MSTP0 */
|
||||||
#define R8A7794_CLK_MSIOF0 0
|
#define R8A7794_CLK_MSIOF0 0
|
||||||
@ -95,6 +96,8 @@
|
|||||||
#define R8A7794_CLK_GPIO2 10
|
#define R8A7794_CLK_GPIO2 10
|
||||||
#define R8A7794_CLK_GPIO1 11
|
#define R8A7794_CLK_GPIO1 11
|
||||||
#define R8A7794_CLK_GPIO0 12
|
#define R8A7794_CLK_GPIO0 12
|
||||||
|
#define R8A7794_CLK_RCAN1 15
|
||||||
|
#define R8A7794_CLK_RCAN0 16
|
||||||
#define R8A7794_CLK_QSPI_MOD 17
|
#define R8A7794_CLK_QSPI_MOD 17
|
||||||
#define R8A7794_CLK_I2C5 25
|
#define R8A7794_CLK_I2C5 25
|
||||||
#define R8A7794_CLK_I2C4 27
|
#define R8A7794_CLK_I2C4 27
|
||||||
|
Loading…
Reference in New Issue
Block a user