Skip to content

Commit f0911f2

Browse files
Zelong Dongsuperna9999
authored andcommitted
arm64: dts: amlogic: Add A5 Reset Controller
Add the device node and related header file for Amlogic A5 reset controller. Signed-off-by: Zelong Dong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Kelvin Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
1 parent 946b518 commit f0911f2

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2+
/*
3+
* Copyright (c) 2024 Amlogic, Inc. All rights reserved.
4+
*/
5+
6+
#ifndef __DTS_AMLOGIC_A5_RESET_H
7+
#define __DTS_AMLOGIC_A5_RESET_H
8+
9+
/* RESET0 */
10+
/* 0-3 */
11+
#define RESET_USB 4
12+
/* 5-7 */
13+
#define RESET_USBPHY20 8
14+
/* 9 */
15+
#define RESET_USB2DRD 10
16+
/* 11-31 */
17+
18+
/* RESET1 */
19+
#define RESET_AUDIO 32
20+
#define RESET_AUDIO_VAD 33
21+
/* 34 */
22+
#define RESET_DDR_APB 35
23+
#define RESET_DDR 36
24+
/* 37-40 */
25+
#define RESET_DSPA_DEBUG 41
26+
/* 42 */
27+
#define RESET_DSPA 43
28+
/* 44-46 */
29+
#define RESET_NNA 47
30+
#define RESET_ETHERNET 48
31+
/* 49-63 */
32+
33+
/* RESET2 */
34+
#define RESET_ABUS_ARB 64
35+
#define RESET_IRCTRL 65
36+
/* 66 */
37+
#define RESET_TS_PLL 67
38+
/* 68-72 */
39+
#define RESET_SPICC_0 73
40+
#define RESET_SPICC_1 74
41+
#define RESET_RSA 75
42+
43+
/* 76-79 */
44+
#define RESET_MSR_CLK 80
45+
#define RESET_SPIFC 81
46+
#define RESET_SAR_ADC 82
47+
/* 83-90 */
48+
#define RESET_WATCHDOG 91
49+
/* 92-95 */
50+
51+
/* RESET3 */
52+
/* 96-127 */
53+
54+
/* RESET4 */
55+
#define RESET_RTC 128
56+
/* 129-131 */
57+
#define RESET_PWM_AB 132
58+
#define RESET_PWM_CD 133
59+
#define RESET_PWM_EF 134
60+
#define RESET_PWM_GH 135
61+
/* 104-105 */
62+
#define RESET_UART_A 138
63+
#define RESET_UART_B 139
64+
#define RESET_UART_C 140
65+
#define RESET_UART_D 141
66+
#define RESET_UART_E 142
67+
/* 143*/
68+
#define RESET_I2C_S_A 144
69+
#define RESET_I2C_M_A 145
70+
#define RESET_I2C_M_B 146
71+
#define RESET_I2C_M_C 147
72+
#define RESET_I2C_M_D 148
73+
/* 149-151 */
74+
#define RESET_SDEMMC_A 152
75+
/* 153 */
76+
#define RESET_SDEMMC_C 154
77+
/* 155-159*/
78+
79+
/* RESET5 */
80+
/* 160-175 */
81+
#define RESET_BRG_AO_NIC_SYS 176
82+
#define RESET_BRG_AO_NIC_DSPA 177
83+
#define RESET_BRG_AO_NIC_MAIN 178
84+
#define RESET_BRG_AO_NIC_AUDIO 179
85+
/* 180-183 */
86+
#define RESET_BRG_AO_NIC_ALL 184
87+
#define RESET_BRG_NIC_NNA 185
88+
#define RESET_BRG_NIC_SDIO 186
89+
#define RESET_BRG_NIC_EMMC 187
90+
#define RESET_BRG_NIC_DSU 188
91+
#define RESET_BRG_NIC_SYSCLK 189
92+
#define RESET_BRG_NIC_MAIN 190
93+
#define RESET_BRG_NIC_ALL 191
94+
95+
#endif

arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#include "amlogic-a4-common.dtsi"
7+
#include "amlogic-a5-reset.h"
78
#include <dt-bindings/power/amlogic,a5-pwrc.h>
89
/ {
910
cpus {
@@ -50,6 +51,13 @@
5051
};
5152

5253
&apb {
54+
reset: reset-controller@2000 {
55+
compatible = "amlogic,a5-reset",
56+
"amlogic,meson-s4-reset";
57+
reg = <0x0 0x2000 0x0 0x98>;
58+
#reset-cells = <1>;
59+
};
60+
5361
gpio_intc: interrupt-controller@4080 {
5462
compatible = "amlogic,a5-gpio-intc",
5563
"amlogic,meson-gpio-intc";

0 commit comments

Comments
 (0)