Re: [PATCH v2 5/8] MIPS: Loongson64: dts: ls7a-pch: Add miscellaneous clock node
From: Yao Zi
Date: Thu Nov 19 2026 - 07:20:48 EST
On Fri, Nov 13, 2026 at 06:51:12PM +0800, Rong Zhang wrote:
> The Loongson-7A has an internal clock source for miscellaneous
> peripherals. The clock source is nonconfigurable and has a fixed 50MHz
> clock frequency.
>
> Add a 50MHz fixed-clock node with label "pch_misc_clk" to represent it.
>
> Signed-off-by: Rong Zhang <rongrong@xxxxxxxxxxxxxxxxx>
> ---
> arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
> index 9f0a183bd348..2ef1ad10a8ec 100644
> --- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
> +++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
> @@ -1,6 +1,12 @@
> // SPDX-License-Identifier: GPL-2.0
>
> / {
> + pch_misc_clk: clock-50000000 {
> + #clock-cells = <0>;
> + compatible = "fixed-clock";
> + clock-frequency = <50000000>;
"compatible" property usually comes before other properties other than
"device_type", see dts-coding-style.rst.
With this fixed,
Reviewed-by: Yao Zi <me@xxxxxxxx>
> + };
> +
> pch: bus@10000000 {
> compatible = "simple-bus";
> #address-cells = <2>;
>
> --
> 2.55.0
--
Thanks,
Yao Zi
Meow-mrrp-mrow, I'm a cat.