build/patch/kernel/archive/starfive-6.1/1035-dt-bindings-reset-Add-StarFive-JH7110-always-on-defi.patch

42 lines
1.5 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Emil Renner Berthing <kernel@esmil.dk>
Date: Sun, 24 Jul 2022 19:39:05 +0200
Subject: dt-bindings: reset: Add StarFive JH7110 always-on definitions
Add resets for the StarFive JH7110 always-on reset controller.
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
---
include/dt-bindings/reset/starfive-jh7110-aon.h | 20 ++++++++++
1 file changed, 20 insertions(+)
diff --git a/include/dt-bindings/reset/starfive-jh7110-aon.h b/include/dt-bindings/reset/starfive-jh7110-aon.h
new file mode 100644
index 000000000000..fec4bb7c6f3b
--- /dev/null
+++ b/include/dt-bindings/reset/starfive-jh7110-aon.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0 OR MIT */
+/*
+ * Copyright (C) 2021 Emil Renner Berthing <kernel@esmil.dk>
+ */
+
+#ifndef __DT_BINDINGS_RESET_STARFIVE_JH7110_AON_H__
+#define __DT_BINDINGS_RESET_STARFIVE_JH7110_AON_H__
+
+#define JH7110_AONRST_GMAC0_AXI 0 /* rstn_u0_u0_dw_gmac5_axi64_rstn_axi */
+#define JH7110_AONRST_GMAC0_AHB 1 /* rstn_u0_u0_dw_gmac5_axi64_rstn_ahb */
+#define JH7110_AONRST_AON_IOMUX 2 /* rstn_u0_aon_iomux_presetn */
+#define JH7110_AONRST_PMU_APB 3 /* rstn_u0_pmu_rstn_apb */
+#define JH7110_AONRST_PMU_WKUP 4 /* rstn_u0_pmu_rstn_wkup */
+#define JH7110_AONRST_RTC_APB 5 /* rstn_u0_rtc_hms_rstn_apb */
+#define JH7110_AONRST_RTC_CAL 6 /* rstn_u0_rtc_hms_rstn_cal */
+#define JH7110_AONRST_RTC_32K 7 /* rstn_u0_u7mc_sft7110_rst_core2 */
+
+#define JH7110_AONRST_END 8
+
+#endif /* __DT_BINDINGS_RESET_STARFIVE_JH7110_SYS_H__ */
--
Armbian