summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-12-10 17:40:14 -0600
committerTom Rini <trini@konsulko.com>2025-12-31 11:50:56 -0600
commitfd104bea0c9596d34d5ff9fb1071936b42c333e0 (patch)
tree60efbea659d1df4f6d2ef91048e93dc7ce5f1212 /drivers/clk
parent8f520c0d5656196ec4912c837cc156a399350c33 (diff)
arm: dts: mediatek: switch mt8365 to OF_UPSTREAM
Change mt8365_evk_defconfig to use CONFIG_OF_UPSTREAM=y and delete the U-Boot copy of the devicetree source files for mt8365. The upstream devicetree is identical to the U-Boot one being removed (other than having more nodes for devices not used by U-Boot and upstream fixed a compatible string in &scpsys, also not affecting U-Boot). There was one minor glitch with upstream missing a few topckgen macro definitions, so those are added to the clock driver directly as a workaround. Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com> Signed-off-by: David Lechner <dlechner@baylibre.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/mediatek/clk-mt8365.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/mediatek/clk-mt8365.c b/drivers/clk/mediatek/clk-mt8365.c
index 61ccd4a210f..53eca73b98d 100644
--- a/drivers/clk/mediatek/clk-mt8365.c
+++ b/drivers/clk/mediatek/clk-mt8365.c
@@ -13,6 +13,10 @@
#include <dt-bindings/clock/mediatek,mt8365-clk.h>
#include "clk-mtk.h"
+/* Missing topckgen clocks definition in dt-bindings */
+#define CLK_TOP_CLK26M 141
+#define CLK_TOP_CLK32K 142
+
/* apmixedsys */
#define MT8365_PLL_FMAX (3800UL * MHZ)
#define MT8365_PLL_FMIN (1500UL * MHZ)