Commit 12b2982a authored by Dinh Nguyen's avatar Dinh Nguyen

ARM: dts: arria10: update NAND clocking

The NAND IP needs 3 clocks(nand_x_clk, nand_clk, and nand_ecc_clk). This
patch adds a nand_clk, which is derived from the nand_x_clk, but has a
fixed divider of 4, and the nand_ecc_clk, which is derived from the
nand_x_clk.

Update the NAND node to use the additional clocks.
Signed-off-by: default avatarDinh Nguyen <dinguyen@kernel.org>
---
v2: add nand_ecc_clk and update commit message
parent 9a8e3cfd
...@@ -377,13 +377,28 @@ qspi_clk: qspi_clk { ...@@ -377,13 +377,28 @@ qspi_clk: qspi_clk {
clk-gate = <0xC8 11>; clk-gate = <0xC8 11>;
}; };
nand_clk: nand_clk { nand_x_clk: nand_x_clk {
#clock-cells = <0>; #clock-cells = <0>;
compatible = "altr,socfpga-a10-gate-clk"; compatible = "altr,socfpga-a10-gate-clk";
clocks = <&l4_mp_clk>; clocks = <&l4_mp_clk>;
clk-gate = <0xC8 10>; clk-gate = <0xC8 10>;
}; };
nand_ecc_clk: nand_ecc_clk {
#clock-cells = <0>;
compatible = "altr,socfpga-a10-gate-clk";
clocks = <&nand_x_clk>;
clk-gate = <0xC8 10>;
};
nand_clk: nand_clk {
#clock-cells = <0>;
compatible = "altr,socfpga-a10-gate-clk";
clocks = <&nand_x_clk>;
fixed-divider = <4>;
clk-gate = <0xC8 10>;
};
spi_m_clk: spi_m_clk { spi_m_clk: spi_m_clk {
#clock-cells = <0>; #clock-cells = <0>;
compatible = "altr,socfpga-a10-gate-clk"; compatible = "altr,socfpga-a10-gate-clk";
...@@ -650,7 +665,8 @@ nand: nand@ffb90000 { ...@@ -650,7 +665,8 @@ nand: nand@ffb90000 {
reg-names = "nand_data", "denali_reg"; reg-names = "nand_data", "denali_reg";
interrupts = <0 99 4>; interrupts = <0 99 4>;
dma-mask = <0xffffffff>; dma-mask = <0xffffffff>;
clocks = <&nand_clk>; clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>;
clock-names = "nand", "nand_x", "ecc";
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment