};
chosen {
- bootargs = "console=ttyS0,38400";
+ bootargs = "console=ttyS0,115200";
+ };
+
+ lx_clk: lx_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <200000000>;
};
cpuintc: cpuintc {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
- ranges = <0x0 0xb8000000 0x10000>;
+ ranges = <0x0 0x18000000 0x10000>;
intc: rtlintc@3000 {
compatible = "realtek,rtl-intc";
compatible = "ns16550a";
reg = <0x2000 0x100>;
- clock-frequency = <200000000>;
+ clocks = <&lx_clk>;
interrupt-parent = <&intc>;
interrupts = <31>;
compatible = "ns16550a";
reg = <0x2100 0x100>;
- clock-frequency = <200000000>;
+ clocks = <&lx_clk>;
interrupt-parent = <&intc>;
interrupts = <30>;
status = "disabled";
};
+ watchdog0: watchdog@3150 {
+ compatible = "realtek,rtl8380-wdt";
+ reg = <0x3150 0xc>;
+
+ realtek,reset-mode = "soc";
+
+ clocks = <&lx_clk>;
+ timeout-sec = <30>;
+
+ interrupt-parent = <&intc>;
+ interrupt-names = "phase1", "phase2";
+ interrupts = <19>, <18>;
+ };
+
gpio0: gpio-controller@3500 {
compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
reg = <0x3500 0x20>;
+
gpio-controller;
#gpio-cells = <2>;
ngpios = <24>;
+
+ interrupt-controller;
+ #interrupt-cells = <2>;
interrupt-parent = <&intc>;
interrupts = <23>;
};
status = "disabled";
};
- pinmux: pinmux@bb001000 {
+ pinmux: pinmux@1b001000 {
compatible = "pinctrl-single";
- reg = <0xbb001000 0x4>;
+ reg = <0x1b001000 0x4>;
pinctrl-single,bit-per-mux;
pinctrl-single,register-width = <32>;
};
/* LED_GLB_CTRL */
- pinmux_led: pinmux@bb00a000 {
+ pinmux_led: pinmux@1b00a000 {
compatible = "pinctrl-single";
- reg = <0xbb00a000 0x4>;
+ reg = <0x1b00a000 0x4>;
pinctrl-single,bit-per-mux;
pinctrl-single,register-width = <32>;
};
};
- ethernet0: ethernet@bb00a300 {
+ ethernet0: ethernet@1b00a300 {
compatible = "realtek,rtl838x-eth";
- reg = <0xbb00a300 0x100>;
+ reg = <0x1b00a300 0x100>;
interrupt-parent = <&intc>;
interrupts = <24>;
#interrupt-cells = <1>;
};
};
- switch0: switch@bb000000 {
+ switch0: switch@1b000000 {
compatible = "realtek,rtl83xx-switch";
interrupt-parent = <&intc>;