Skip to content

Commit b3bc229

Browse files
chintingkuoWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: aspeed,ast2400-wdt: Add support for AST2700
Add support for the AST2700 SoC in the ASPEED watchdog device tree bindings. This includes: - Adding "aspeed,ast2700-wdt" to the compatible string list. - Extending the "aspeed,reset-mask" property description for AST2700. - Defining AST2700-specific reset mask bits in aspeed-wdt.h, covering RESET1 to RESET5. Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 1cafd2a commit b3bc229

2 files changed

Lines changed: 144 additions & 2 deletions

File tree

Documentation/devicetree/bindings/watchdog/aspeed,ast2400-wdt.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ properties:
1515
- aspeed,ast2400-wdt
1616
- aspeed,ast2500-wdt
1717
- aspeed,ast2600-wdt
18+
- aspeed,ast2700-wdt
1819

1920
reg:
2021
maxItems: 1
@@ -87,13 +88,15 @@ properties:
8788
aspeed,reset-mask:
8889
$ref: /schemas/types.yaml#/definitions/uint32-array
8990
minItems: 1
90-
maxItems: 2
91+
maxItems: 5
9192
description: >
9293
A bitmask indicating which peripherals will be reset if the watchdog
9394
timer expires. On AST2500 SoCs this should be a single word defined using
9495
the AST2500_WDT_RESET_* macros; on AST2600 SoCs this should be a two-word
9596
array with the first word defined using the AST2600_WDT_RESET1_* macros,
96-
and the second word defined using the AST2600_WDT_RESET2_* macros.
97+
and the second word defined using the AST2600_WDT_RESET2_* macros; on
98+
AST2700 SoCs, this should be five-word array from AST2700_WDT_RESET1_*
99+
macros to AST2700_WDT_RESET5_* macros.
97100
98101
required:
99102
- compatible
@@ -114,6 +117,7 @@ allOf:
114117
enum:
115118
- aspeed,ast2500-wdt
116119
- aspeed,ast2600-wdt
120+
- aspeed,ast2700-wdt
117121
- if:
118122
required:
119123
- aspeed,ext-active-high

include/dt-bindings/watchdog/aspeed-wdt.h

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,142 @@
8989

9090
#define AST2600_WDT_RESET2_DEFAULT 0x03fffff1
9191

92+
#define AST2700_WDT_RESET1_CPU (1 << 0)
93+
#define AST2700_WDT_RESET1_DRAM (1 << 1)
94+
#define AST2700_WDT_RESET1_SLI0 (1 << 2)
95+
#define AST2700_WDT_RESET1_EHCI (1 << 3)
96+
#define AST2700_WDT_RESET1_HACE (1 << 4)
97+
#define AST2700_WDT_RESET1_SOC_MISC0 (1 << 5)
98+
#define AST2700_WDT_RESET1_VIDEO (1 << 6)
99+
#define AST2700_WDT_RESET1_2D_GRAPHIC (1 << 7)
100+
#define AST2700_WDT_RESET1_RAVS0 (1 << 8)
101+
#define AST2700_WDT_RESET1_RAVS1 (1 << 9)
102+
#define AST2700_WDT_RESET1_GPIO0 (1 << 10)
103+
#define AST2700_WDT_RESET1_SSP (1 << 11)
104+
#define AST2700_WDT_RESET1_TSP (1 << 12)
105+
#define AST2700_WDT_RESET1_CRT (1 << 13)
106+
#define AST2700_WDT_RESET1_USB20_HOST (1 << 14)
107+
#define AST2700_WDT_RESET1_USB11_HOST (1 << 15)
108+
#define AST2700_WDT_RESET1_UFS (1 << 16)
109+
#define AST2700_WDT_RESET1_EMMC (1 << 17)
110+
#define AST2700_WDT_RESET1_AHB_TO_PCIE1 (1 << 18)
111+
#define AST2700_WDT_RESET1_XDMA0 (1 << 22)
112+
#define AST2700_WDT_RESET1_MCTP1 (1 << 23)
113+
#define AST2700_WDT_RESET1_MCTP0 (1 << 24)
114+
#define AST2700_WDT_RESET1_JTAG0 (1 << 25)
115+
#define AST2700_WDT_RESET1_ECC (1 << 26)
116+
#define AST2700_WDT_RESET1_XDMA1 (1 << 27)
117+
#define AST2700_WDT_RESET1_DP (1 << 28)
118+
#define AST2700_WDT_RESET1_DP_MCU (1 << 29)
119+
#define AST2700_WDT_RESET1_AHB_TO_PCIE0 (1 << 31)
120+
121+
#define AST2700_WDT_RESET1_DEFAULT 0x8207ff71
122+
123+
#define AST2700_WDT_RESET2_USB3_A_HOST (1 << 0)
124+
#define AST2700_WDT_RESET2_USB3_A_VHUB3 (1 << 1)
125+
#define AST2700_WDT_RESET2_USB3_A_VHUB2 (1 << 2)
126+
#define AST2700_WDT_RESET2_USB3_B_HOST (1 << 3)
127+
#define AST2700_WDT_RESET2_USB3_B_VHUB3 (1 << 4)
128+
#define AST2700_WDT_RESET2_USB3_B_VHUB2 (1 << 5)
129+
#define AST2700_WDT_RESET2_SM3 (1 << 6)
130+
#define AST2700_WDT_RESET2_SM4 (1 << 7)
131+
#define AST2700_WDT_RESET2_SHA3 (1 << 8)
132+
#define AST2700_WDT_RESET2_RSA (1 << 9)
133+
134+
#define AST2700_WDT_RESET2_DEFAULT 0x000003f6
135+
136+
#define AST2700_WDT_RESET3_LPC0 (1 << 0)
137+
#define AST2700_WDT_RESET3_LPC1 (1 << 1)
138+
#define AST2700_WDT_RESET3_MDIO (1 << 2)
139+
#define AST2700_WDT_RESET3_PECI (1 << 3)
140+
#define AST2700_WDT_RESET3_PWM (1 << 4)
141+
#define AST2700_WDT_RESET3_MAC0 (1 << 5)
142+
#define AST2700_WDT_RESET3_MAC1 (1 << 6)
143+
#define AST2700_WDT_RESET3_MAC2 (1 << 7)
144+
#define AST2700_WDT_RESET3_ADC (1 << 8)
145+
#define AST2700_WDT_RESET3_SDC (1 << 9)
146+
#define AST2700_WDT_RESET3_ESPI0 (1 << 10)
147+
#define AST2700_WDT_RESET3_ESPI1 (1 << 11)
148+
#define AST2700_WDT_RESET3_JTAG1 (1 << 12)
149+
#define AST2700_WDT_RESET3_SPI0 (1 << 13)
150+
#define AST2700_WDT_RESET3_SPI1 (1 << 14)
151+
#define AST2700_WDT_RESET3_SPI2 (1 << 15)
152+
#define AST2700_WDT_RESET3_I3C0 (1 << 16)
153+
#define AST2700_WDT_RESET3_I3C1 (1 << 17)
154+
#define AST2700_WDT_RESET3_I3C2 (1 << 18)
155+
#define AST2700_WDT_RESET3_I3C3 (1 << 19)
156+
#define AST2700_WDT_RESET3_I3C4 (1 << 20)
157+
#define AST2700_WDT_RESET3_I3C5 (1 << 21)
158+
#define AST2700_WDT_RESET3_I3C6 (1 << 22)
159+
#define AST2700_WDT_RESET3_I3C7 (1 << 23)
160+
#define AST2700_WDT_RESET3_I3C8 (1 << 24)
161+
#define AST2700_WDT_RESET3_I3C9 (1 << 25)
162+
#define AST2700_WDT_RESET3_I3C10 (1 << 26)
163+
#define AST2700_WDT_RESET3_I3C11 (1 << 27)
164+
#define AST2700_WDT_RESET3_I3C12 (1 << 28)
165+
#define AST2700_WDT_RESET3_I3C13 (1 << 29)
166+
#define AST2700_WDT_RESET3_I3C14 (1 << 30)
167+
#define AST2700_WDT_RESET3_I3C15 (1 << 31)
168+
169+
#define AST2700_WDT_RESET3_DEFAULT 0x000093ec
170+
171+
#define AST2700_WDT_RESET4_FMC (1 << 0)
172+
#define AST2700_WDT_RESET4_SOC_MISC1 (1 << 1)
173+
#define AST2700_WDT_RESET4_AHB (1 << 2)
174+
#define AST2700_WDT_RESET4_SLI1 (1 << 3)
175+
#define AST2700_WDT_RESET4_UART0 (1 << 4)
176+
#define AST2700_WDT_RESET4_UART1 (1 << 5)
177+
#define AST2700_WDT_RESET4_UART2 (1 << 6)
178+
#define AST2700_WDT_RESET4_UART3 (1 << 7)
179+
#define AST2700_WDT_RESET4_I2C_MONITOR (1 << 8)
180+
#define AST2700_WDT_RESET4_HOST_TO_SPI1 (1 << 9)
181+
#define AST2700_WDT_RESET4_HOST_TO_SPI2 (1 << 10)
182+
#define AST2700_WDT_RESET4_GPIO1 (1 << 11)
183+
#define AST2700_WDT_RESET4_FSI (1 << 12)
184+
#define AST2700_WDT_RESET4_CANBUS (1 << 13)
185+
#define AST2700_WDT_RESET4_MCTP (1 << 14)
186+
#define AST2700_WDT_RESET4_XDMA (1 << 15)
187+
#define AST2700_WDT_RESET4_UART5 (1 << 16)
188+
#define AST2700_WDT_RESET4_UART6 (1 << 17)
189+
#define AST2700_WDT_RESET4_UART7 (1 << 18)
190+
#define AST2700_WDT_RESET4_UART8 (1 << 19)
191+
#define AST2700_WDT_RESET4_BOOT_MCU (1 << 20)
192+
#define AST2700_WDT_RESET4_IO_MCU (1 << 21)
193+
#define AST2700_WDT_RESET4_LTPI0 (1 << 22)
194+
#define AST2700_WDT_RESET4_VGA_LINK (1 << 23)
195+
#define AST2700_WDT_RESET4_LTPI1 (1 << 24)
196+
#define AST2700_WDT_RESET4_LTPI_PHY (1 << 25)
197+
#define AST2700_WDT_RESET4_ACE (1 << 26)
198+
#define AST2700_WDT_RESET4_LTPI_GPIO0 (1 << 28)
199+
#define AST2700_WDT_RESET4_LTPI_GPIO1 (1 << 29)
200+
#define AST2700_WDT_RESET4_AHB_TO_PCIE1 (1 << 30)
201+
#define AST2700_WDT_RESET4_I3C_DMA (1 << 31)
202+
203+
#define AST2700_WDT_RESET4_DEFAULT 0x40303803
204+
205+
#define AST2700_WDT_RESET5_I2C_GLOBAL (1 << 0)
206+
#define AST2700_WDT_RESET5_I2C0 (1 << 1)
207+
#define AST2700_WDT_RESET5_I2C1 (1 << 2)
208+
#define AST2700_WDT_RESET5_I2C2 (1 << 3)
209+
#define AST2700_WDT_RESET5_I2C3 (1 << 4)
210+
#define AST2700_WDT_RESET5_I2C4 (1 << 5)
211+
#define AST2700_WDT_RESET5_I2C5 (1 << 6)
212+
#define AST2700_WDT_RESET5_I2C6 (1 << 7)
213+
#define AST2700_WDT_RESET5_I2C7 (1 << 8)
214+
#define AST2700_WDT_RESET5_I2C8 (1 << 9)
215+
#define AST2700_WDT_RESET5_I2C9 (1 << 10)
216+
#define AST2700_WDT_RESET5_I2C10 (1 << 11)
217+
#define AST2700_WDT_RESET5_I2C11 (1 << 12)
218+
#define AST2700_WDT_RESET5_I2C12 (1 << 13)
219+
#define AST2700_WDT_RESET5_I2C13 (1 << 14)
220+
#define AST2700_WDT_RESET5_I2C14 (1 << 15)
221+
#define AST2700_WDT_RESET5_I2C15 (1 << 16)
222+
#define AST2700_WDT_RESET5_UHCI (1 << 17)
223+
#define AST2700_WDT_RESET5_USB2_C_UART (1 << 18)
224+
#define AST2700_WDT_RESET5_USB2_C (1 << 19)
225+
#define AST2700_WDT_RESET5_USB2_D_UART (1 << 20)
226+
#define AST2700_WDT_RESET5_USB2_D (1 << 21)
227+
228+
#define AST2700_WDT_RESET5_DEFAULT 0x00320000
229+
92230
#endif

0 commit comments

Comments
 (0)