ARM: dts: add hifsys reset for MediaTek SoCs
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 29 Jul 2019 14:17:47 +0000 (22:17 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 7 Aug 2019 19:31:03 +0000 (15:31 -0400)
This adds missing hifsys reset parts in header files.

Tested-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
arch/arm/dts/mt7623.dtsi
include/dt-bindings/reset/mtk-reset.h

index 448d1d7..64079c6 100644 (file)
                status = "disabled";
        };
 
+       hifsys: syscon@1a000000 {
+               compatible = "mediatek,mt7623-hifsys", "syscon";
+               reg = <0x1a000000 0x1000>;
+               #clock-cells = <1>;
+               #reset-cells = <1>;
+       };
+
        ethsys: syscon@1b000000 {
                compatible = "mediatek,mt7623-ethsys", "syscon";
                reg = <0x1b000000 0x1000>;
index 5f0a74f..78fcdab 100644 (file)
 #define ETHSYS_MCM_RST                 2
 #define ETHSYS_SYS_RST                 0
 
+/* HIFSYS resets */
+#define HIFSYS_PCIE2_RST               26
+#define HIFSYS_PCIE1_RST               25
+#define HIFSYS_PCIE0_RST               24
+#define HIFSYS_UPHY1_RST               22
+#define HIFSYS_UPHY0_RST               21
+#define HIFSYS_UHOST1_RST              4
+#define HIFSYS_UHOST0_RST              3
+
 #endif /* _DT_BINDINGS_MTK_RESET_H_ */