Skip to content

Commit 9476435

Browse files
mkshevetskiybebarino
authored andcommitted
dt-bindings: clock: airoha: Add reset support to EN7523 clock binding
Introduce reset capability to EN7523 device-tree clock binding documentation. Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 3a86608 commit 9476435

2 files changed

Lines changed: 62 additions & 2 deletions

File tree

Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ allOf:
6464
reg:
6565
minItems: 2
6666

67-
'#reset-cells': false
68-
6967
- if:
7068
properties:
7169
compatible:
@@ -85,6 +83,7 @@ examples:
8583
reg = <0x1fa20000 0x400>,
8684
<0x1fb00000 0x1000>;
8785
#clock-cells = <1>;
86+
#reset-cells = <1>;
8887
};
8988
9089
- |
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
/*
3+
* Copyright (C) 2024 iopsys Software Solutions AB.
4+
* Copyright (C) 2025 Genexis AB.
5+
*
6+
* Author: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
7+
*
8+
* based on
9+
* include/dt-bindings/reset/airoha,en7581-reset.h
10+
* by Lorenzo Bianconi <lorenzo@kernel.org>
11+
*/
12+
13+
#ifndef __DT_BINDINGS_RESET_CONTROLLER_AIROHA_EN7523_H_
14+
#define __DT_BINDINGS_RESET_CONTROLLER_AIROHA_EN7523_H_
15+
16+
/* RST_CTRL2 */
17+
#define EN7523_XPON_PHY_RST 0
18+
#define EN7523_XSI_MAC_RST 1
19+
#define EN7523_XSI_PHY_RST 2
20+
#define EN7523_NPU_RST 3
21+
#define EN7523_I2S_RST 4
22+
#define EN7523_TRNG_RST 5
23+
#define EN7523_TRNG_MSTART_RST 6
24+
#define EN7523_DUAL_HSI0_RST 7
25+
#define EN7523_DUAL_HSI1_RST 8
26+
#define EN7523_HSI_RST 9
27+
#define EN7523_DUAL_HSI0_MAC_RST 10
28+
#define EN7523_DUAL_HSI1_MAC_RST 11
29+
#define EN7523_HSI_MAC_RST 12
30+
#define EN7523_WDMA_RST 13
31+
#define EN7523_WOE0_RST 14
32+
#define EN7523_WOE1_RST 15
33+
#define EN7523_HSDMA_RST 16
34+
#define EN7523_I2C2RBUS_RST 17
35+
#define EN7523_TDMA_RST 18
36+
/* RST_CTRL1 */
37+
#define EN7523_PCM1_ZSI_ISI_RST 19
38+
#define EN7523_FE_PDMA_RST 20
39+
#define EN7523_FE_QDMA_RST 21
40+
#define EN7523_PCM_SPIWP_RST 22
41+
#define EN7523_CRYPTO_RST 23
42+
#define EN7523_TIMER_RST 24
43+
#define EN7523_PCM1_RST 25
44+
#define EN7523_UART_RST 26
45+
#define EN7523_GPIO_RST 27
46+
#define EN7523_GDMA_RST 28
47+
#define EN7523_I2C_MASTER_RST 29
48+
#define EN7523_PCM2_ZSI_ISI_RST 30
49+
#define EN7523_SFC_RST 31
50+
#define EN7523_UART2_RST 32
51+
#define EN7523_GDMP_RST 33
52+
#define EN7523_FE_RST 34
53+
#define EN7523_USB_HOST_P0_RST 35
54+
#define EN7523_GSW_RST 36
55+
#define EN7523_SFC2_PCM_RST 37
56+
#define EN7523_PCIE0_RST 38
57+
#define EN7523_PCIE1_RST 39
58+
#define EN7523_PCIE_HB_RST 40
59+
#define EN7523_XPON_MAC_RST 41
60+
61+
#endif /* __DT_BINDINGS_RESET_CONTROLLER_AIROHA_EN7523_H_ */

0 commit comments

Comments
 (0)