Backport upstream patch that adds node for thermal driver. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Link: https://github.com/openwrt/openwrt/pull/22646 Signed-off-by: Robert Marko <robimarko@gmail.com>
54 lines
2.1 KiB
Diff
54 lines
2.1 KiB
Diff
From 0c74ae06ed6b6c9627712a74ecee4e61bbd4092d Mon Sep 17 00:00:00 2001
|
|
From: developer <developer@mediatek.com>
|
|
Date: Mon, 19 Jan 2026 21:42:29 +0800
|
|
Subject: [PATCH] arm64: dts: mediatek: fix mt7981 spim clock
|
|
|
|
1) Add spi0/1/2 clock parent setting
|
|
2) Fix spi1 clock_sel to CLK_TOP_SPIM_MST_SEL
|
|
|
|
Link: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/836034ca0baad57e4c287a62ccc5677c60be0e18
|
|
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
|
|
---
|
|
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 14 +++++++++++++-
|
|
1 file changed, 13 insertions(+), 1 deletion(-)
|
|
|
|
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
|
|
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
|
|
@@ -223,6 +223,10 @@
|
|
<&topckgen CLK_TOP_SPI_SEL>,
|
|
<&infracfg CLK_INFRA_SPI2_CK>,
|
|
<&infracfg CLK_INFRA_SPI2_HCK_CK>;
|
|
+ assigned-clocks = <&topckgen CLK_TOP_SPI_SEL>,
|
|
+ <&infracfg CLK_INFRA_SPI2_SEL>;
|
|
+ assigned-clock-parents = <&topckgen CLK_TOP_CB_M_D2>,
|
|
+ <&topckgen CLK_TOP_SPI_SEL>;
|
|
clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
@@ -237,6 +241,10 @@
|
|
<&topckgen CLK_TOP_SPI_SEL>,
|
|
<&infracfg CLK_INFRA_SPI0_CK>,
|
|
<&infracfg CLK_INFRA_SPI0_HCK_CK>;
|
|
+ assigned-clocks = <&topckgen CLK_TOP_SPI_SEL>,
|
|
+ <&infracfg CLK_INFRA_SPI0_SEL>;
|
|
+ assigned-clock-parents = <&topckgen CLK_TOP_CB_M_D2>,
|
|
+ <&topckgen CLK_TOP_SPI_SEL>;
|
|
clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
@@ -248,9 +256,13 @@
|
|
reg = <0 0x1100b000 0 0x1000>;
|
|
interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&topckgen CLK_TOP_CB_M_D2>,
|
|
- <&topckgen CLK_TOP_SPI_SEL>,
|
|
+ <&topckgen CLK_TOP_SPIM_MST_SEL>,
|
|
<&infracfg CLK_INFRA_SPI1_CK>,
|
|
<&infracfg CLK_INFRA_SPI1_HCK_CK>;
|
|
+ assigned-clocks = <&topckgen CLK_TOP_SPIM_MST_SEL>,
|
|
+ <&infracfg CLK_INFRA_SPI1_SEL>;
|
|
+ assigned-clock-parents = <&topckgen CLK_TOP_CB_M_D2>,
|
|
+ <&topckgen CLK_TOP_SPIM_MST_SEL>;
|
|
clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|