// SPDX-License-Identifier: GPL-2.0
+#include <dt-bindings/clock/mt7628-clk.h>
/ {
#address-cells = <1>;
mask = <0x1>;
};
+ clkctrl: clkctrl@0x2c {
+ reg = <0x2c 0x8>, <0x10 0x4>;
+ reg-names = "syscfg0", "clkcfg";
+ compatible = "mediatek,mt7628-clk";
+ #clock-cells = <1>;
+ u-boot,dm-pre-reloc;
+ };
+
watchdog: watchdog@100 {
compatible = "ralink,mt7628a-wdt", "mediatek,mt7621-wdt";
reg = <0x100 0x30>;
#address-cells = <1>;
#size-cells = <0>;
- clock-frequency = <200000000>;
+ clocks = <&clkctrl CLK_SPI>;
};
uart0: uartlite@c00 {
compatible = "mediatek,hsuart", "ns16550a";
reg = <0xc00 0x100>;
- clock-frequency = <40000000>;
+ clocks = <&clkctrl CLK_UART0>;
resets = <&resetc 12>;
reset-names = "uart0";
compatible = "mediatek,hsuart", "ns16550a";
reg = <0xd00 0x100>;
- clock-frequency = <40000000>;
+ clocks = <&clkctrl CLK_UART1>;
resets = <&resetc 19>;
reset-names = "uart1";
compatible = "mediatek,hsuart", "ns16550a";
reg = <0xe00 0x100>;
- clock-frequency = <40000000>;
+ clocks = <&clkctrl CLK_UART2>;
resets = <&resetc 20>;
reset-names = "uart2";
#phy-cells = <0>;
ralink,sysctl = <&sysc>;
+
resets = <&resetc 22 &resetc 25>;
reset-names = "host", "device";
+
+ clocks = <&clkctrl CLK_UPHY>;
+ clock-names = "cg";
};
ehci@101c0000 {