Skip to content

Commit 35af99f

Browse files
cjdelislebebarino
authored andcommitted
dt-bindings: clock, reset: Add econet EN751221
Add clock and reset bindings for EN751221 as well as a "chip-scu" which is an additional regmap that is used by the clock driver as well as others. This split of the SCU across two register areas is the same as the Airoha AN758x family. Signed-off-by: Caleb James DeLisle <cjd@cjdns.fr> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent c369299 commit 35af99f

5 files changed

Lines changed: 70 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ properties:
3232
- enum:
3333
- airoha,en7523-scu
3434
- airoha,en7581-scu
35+
- econet,en751221-scu
3536

3637
reg:
3738
items:
@@ -67,7 +68,9 @@ allOf:
6768
- if:
6869
properties:
6970
compatible:
70-
const: airoha,en7581-scu
71+
enum:
72+
- airoha,en7581-scu
73+
- econet,en751221-scu
7174
then:
7275
properties:
7376
reg:
@@ -98,3 +101,4 @@ examples:
98101
#reset-cells = <1>;
99102
};
100103
};
104+

Documentation/devicetree/bindings/mfd/syscon.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ select:
6161
- cirrus,ep7209-syscon2
6262
- cirrus,ep7209-syscon3
6363
- cnxt,cx92755-uc
64+
- econet,en751221-chip-scu
6465
- freecom,fsg-cs2-system-controller
6566
- fsl,imx93-aonmix-ns-syscfg
6667
- fsl,imx93-wakeupmix-syscfg
@@ -173,6 +174,7 @@ properties:
173174
- cirrus,ep7209-syscon2
174175
- cirrus,ep7209-syscon3
175176
- cnxt,cx92755-uc
177+
- econet,en751221-chip-scu
176178
- freecom,fsg-cs2-system-controller
177179
- fsl,imx93-aonmix-ns-syscfg
178180
- fsl,imx93-wakeupmix-syscfg

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9096,6 +9096,8 @@ F: arch/mips/boot/dts/econet/
90969096
F: arch/mips/econet/
90979097
F: drivers/clocksource/timer-econet-en751221.c
90989098
F: drivers/irqchip/irq-econet-en751221.c
9099+
F: include/dt-bindings/clock/econet,en751221-scu.h
9100+
F: include/dt-bindings/reset/econet,en751221-scu.h
90999101

91009102
ECRYPT FILE SYSTEM
91019103
M: Tyler Hicks <code@tyhicks.com>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_CLOCK_ECONET_EN751221_SCU_H_
4+
#define _DT_BINDINGS_CLOCK_ECONET_EN751221_SCU_H_
5+
6+
#define EN751221_CLK_PCIE 0
7+
#define EN751221_CLK_SPI 1
8+
#define EN751221_CLK_BUS 2
9+
#define EN751221_CLK_CPU 3
10+
#define EN751221_CLK_GSW 4
11+
12+
#endif /* _DT_BINDINGS_CLOCK_ECONET_EN751221_SCU_H_ */
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef __DT_BINDINGS_RESET_CONTROLLER_ECONET_EN751221_H_
4+
#define __DT_BINDINGS_RESET_CONTROLLER_ECONET_EN751221_H_
5+
6+
#define EN751221_XPON_PHY_RST 0
7+
#define EN751221_PCM1_ZSI_ISI_RST 1
8+
#define EN751221_FE_QDMA1_RST 2
9+
#define EN751221_FE_QDMA2_RST 3
10+
#define EN751221_FE_UNZIP_RST 4
11+
#define EN751221_PCM2_RST 5
12+
#define EN751221_PTM_MAC_RST 6
13+
#define EN751221_CRYPTO_RST 7
14+
#define EN751221_SAR_RST 8
15+
#define EN751221_TIMER_RST 9
16+
#define EN751221_INTC_RST 10
17+
#define EN751221_BONDING_RST 11
18+
#define EN751221_PCM1_RST 12
19+
#define EN751221_UART_RST 13
20+
#define EN751221_GPIO_RST 14
21+
#define EN751221_GDMA_RST 15
22+
#define EN751221_I2C_MASTER_RST 16
23+
#define EN751221_PCM2_ZSI_ISI_RST 17
24+
#define EN751221_SFC_RST 18
25+
#define EN751221_UART2_RST 19
26+
#define EN751221_GDMP_RST 20
27+
#define EN751221_FE_RST 21
28+
#define EN751221_USB_HOST_P0_RST 22
29+
#define EN751221_GSW_RST 23
30+
#define EN751221_SFC2_PCM_RST 24
31+
#define EN751221_PCIE0_RST 25
32+
#define EN751221_PCIE1_RST 26
33+
#define EN751221_CPU_TIMER_RST 27
34+
#define EN751221_PCIE_HB_RST 28
35+
#define EN751221_SIMIF_RST 29
36+
#define EN751221_XPON_MAC_RST 30
37+
#define EN751221_GFAST_RST 31
38+
#define EN751221_CPU_TIMER2_RST 32
39+
#define EN751221_UART3_RST 33
40+
#define EN751221_UART4_RST 34
41+
#define EN751221_UART5_RST 35
42+
#define EN751221_I2C2_RST 36
43+
#define EN751221_XSI_MAC_RST 37
44+
#define EN751221_XSI_PHY_RST 38
45+
#define EN751221_DMT_RST 39
46+
#define EN751221_USB_PHY_P0_RST 40
47+
#define EN751221_USB_PHY_P1_RST 41
48+
49+
#endif /* __DT_BINDINGS_RESET_CONTROLLER_ECONET_EN751221_H_ */

0 commit comments

Comments
 (0)