diff options
author | Du Huanpeng <u74147@gmail.com> | 2020-11-08 22:01:38 +0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-11-13 13:39:38 +0100 |
commit | ea7b076f6ef721094aac8ad1fef535f35ac21f11 (patch) | |
tree | 237aa98f5bf7689536f0d6129adcc4b578de7d92 /arch/mips/dts | |
parent | b93dfbbac6769c2f129777d4cbfaa0f466297a77 (diff) | |
download | barebox-ea7b076f6ef721094aac8ad1fef535f35ac21f11.tar.gz barebox-ea7b076f6ef721094aac8ad1fef535f35ac21f11.tar.xz |
clk: ls1b200: add clk driver for loongson 1b
add "pll" and "oscillator" node to devicetree.
Signed-off-by: Du Huanpeng <u74147@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/dts')
-rw-r--r-- | arch/mips/dts/loongson-ls1b.dts | 6 | ||||
-rw-r--r-- | arch/mips/dts/ls1b.dtsi | 17 |
2 files changed, 19 insertions, 4 deletions
diff --git a/arch/mips/dts/loongson-ls1b.dts b/arch/mips/dts/loongson-ls1b.dts index 6b53311982..89cce5636b 100644 --- a/arch/mips/dts/loongson-ls1b.dts +++ b/arch/mips/dts/loongson-ls1b.dts @@ -6,6 +6,12 @@ model = "Loongson Tech LS1B Demo Board"; compatible = "loongson,ls1b"; + oscillator: oscillator { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <33000000>; + }; + memory@0 { device_type = "memory"; reg = <0x00000000 0x4000000>; diff --git a/arch/mips/dts/ls1b.dtsi b/arch/mips/dts/ls1b.dtsi index cb85814af4..3b57093c9b 100644 --- a/arch/mips/dts/ls1b.dtsi +++ b/arch/mips/dts/ls1b.dtsi @@ -1,3 +1,5 @@ +#include <dt-bindings/clock/ls1b-clk.h> + / { #address-cells = <1>; #size-cells = <1>; @@ -13,7 +15,7 @@ compatible = "ns16550a"; reg = <0x1fe40000 0x8>; reg-shift = <0>; - clock-frequency = <83000000>; + clocks = <&pll LS1B_CLK_APB_DIV>; status = "disabled"; }; @@ -21,7 +23,7 @@ compatible = "ns16550a"; reg = <0x1fe44000 0x8>; reg-shift = <0>; - clock-frequency = <83000000>; + clocks = <&pll LS1B_CLK_APB_DIV>; status = "disabled"; }; @@ -29,7 +31,7 @@ compatible = "ns16550a"; reg = <0x1fe48000 0x8>; reg-shift = <0>; - clock-frequency = <83000000>; + clocks = <&pll LS1B_CLK_APB_DIV>; status = "disabled"; }; @@ -37,8 +39,15 @@ compatible = "ns16550a"; reg = <0x1fe4c000 0x8>; reg-shift = <0>; - clock-frequency = <83000000>; + clocks = <&pll LS1B_CLK_APB_DIV>; status = "disabled"; }; + + pll: pll@1fe78030 { + compatible = "loongson,ls1b-pll"; + #clock-cells = <1>; + reg = <0x1fe78030 0x8>; + clocks = <&oscillator>; + }; }; }; |