Skip to content

Commit afd36e9

Browse files
dangowrtbebarino
authored andcommitted
dt-bindings: clock: mediatek: add clock controllers of MT7988
Add various clock controllers found in the MT7988 SoC to existing bindings (if applicable) and add files for the new ethwarp, mcusys and xfi-pll clock controllers not previously present in any SoC. Signed-off-by: Daniel Golle <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/07e76a544ce4392bcb88e34d5480e99bb7994618.1702849494.git.daniel@makrotopia.org Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 5cfa3be commit afd36e9

File tree

7 files changed

+161
-9
lines changed

7 files changed

+161
-9
lines changed

Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ properties:
3030
- mediatek,mt7629-infracfg
3131
- mediatek,mt7981-infracfg
3232
- mediatek,mt7986-infracfg
33+
- mediatek,mt7988-infracfg
3334
- mediatek,mt8135-infracfg
3435
- mediatek,mt8167-infracfg
3536
- mediatek,mt8173-infracfg

Documentation/devicetree/bindings/clock/mediatek,apmixedsys.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ properties:
2222
- mediatek,mt7622-apmixedsys
2323
- mediatek,mt7981-apmixedsys
2424
- mediatek,mt7986-apmixedsys
25+
- mediatek,mt7988-apmixedsys
2526
- mediatek,mt8135-apmixedsys
2627
- mediatek,mt8173-apmixedsys
2728
- mediatek,mt8516-apmixedsys

Documentation/devicetree/bindings/clock/mediatek,ethsys.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ properties:
2222
- mediatek,mt7629-ethsys
2323
- mediatek,mt7981-ethsys
2424
- mediatek,mt7986-ethsys
25+
- mediatek,mt7988-ethsys
2526
- const: syscon
2627
- items:
2728
- const: mediatek,mt7623-ethsys
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/mediatek,mt7988-ethwarp.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek MT7988 ethwarp Controller
8+
9+
maintainers:
10+
- Daniel Golle <[email protected]>
11+
12+
description:
13+
The Mediatek MT7988 ethwarp controller provides clocks and resets for the
14+
Ethernet related subsystems found the MT7988 SoC.
15+
The clock values can be found in <dt-bindings/clock/mt*-clk.h>.
16+
17+
properties:
18+
compatible:
19+
items:
20+
- const: mediatek,mt7988-ethwarp
21+
22+
reg:
23+
maxItems: 1
24+
25+
'#clock-cells':
26+
const: 1
27+
28+
'#reset-cells':
29+
const: 1
30+
31+
required:
32+
- compatible
33+
- reg
34+
- '#clock-cells'
35+
- '#reset-cells'
36+
37+
additionalProperties: false
38+
39+
examples:
40+
- |
41+
#include <dt-bindings/reset/ti-syscon.h>
42+
soc {
43+
#address-cells = <2>;
44+
#size-cells = <2>;
45+
46+
clock-controller@15031000 {
47+
compatible = "mediatek,mt7988-ethwarp";
48+
reg = <0 0x15031000 0 0x1000>;
49+
#clock-cells = <1>;
50+
#reset-cells = <1>;
51+
};
52+
};
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/mediatek,mt7988-xfi-pll.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek MT7988 XFI PLL Clock Controller
8+
9+
maintainers:
10+
- Daniel Golle <[email protected]>
11+
12+
description:
13+
The MediaTek XFI PLL controller provides the 156.25MHz clock for the
14+
Ethernet SerDes PHY from the 40MHz top_xtal clock.
15+
16+
properties:
17+
compatible:
18+
const: mediatek,mt7988-xfi-pll
19+
20+
reg:
21+
maxItems: 1
22+
23+
resets:
24+
maxItems: 1
25+
26+
'#clock-cells':
27+
const: 1
28+
29+
required:
30+
- compatible
31+
- reg
32+
- resets
33+
- '#clock-cells'
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
soc {
40+
#address-cells = <2>;
41+
#size-cells = <2>;
42+
clock-controller@11f40000 {
43+
compatible = "mediatek,mt7988-xfi-pll";
44+
reg = <0 0x11f40000 0 0x1000>;
45+
resets = <&watchdog 16>;
46+
#clock-cells = <1>;
47+
};
48+
};

Documentation/devicetree/bindings/clock/mediatek,topckgen.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ properties:
3737
- mediatek,mt7629-topckgen
3838
- mediatek,mt7981-topckgen
3939
- mediatek,mt7986-topckgen
40+
- mediatek,mt7988-mcusys
41+
- mediatek,mt7988-topckgen
4042
- mediatek,mt8167-topckgen
4143
- mediatek,mt8183-topckgen
4244
- const: syscon

Documentation/devicetree/bindings/net/pcs/mediatek,sgmiisys.yaml

Lines changed: 56 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,22 @@ description:
1515

1616
properties:
1717
compatible:
18-
items:
19-
- enum:
20-
- mediatek,mt7622-sgmiisys
21-
- mediatek,mt7629-sgmiisys
22-
- mediatek,mt7981-sgmiisys_0
23-
- mediatek,mt7981-sgmiisys_1
24-
- mediatek,mt7986-sgmiisys_0
25-
- mediatek,mt7986-sgmiisys_1
26-
- const: syscon
18+
oneOf:
19+
- items:
20+
- enum:
21+
- mediatek,mt7622-sgmiisys
22+
- mediatek,mt7629-sgmiisys
23+
- mediatek,mt7981-sgmiisys_0
24+
- mediatek,mt7981-sgmiisys_1
25+
- mediatek,mt7986-sgmiisys_0
26+
- mediatek,mt7986-sgmiisys_1
27+
- const: syscon
28+
- items:
29+
- enum:
30+
- mediatek,mt7988-sgmiisys0
31+
- mediatek,mt7988-sgmiisys1
32+
- const: simple-mfd
33+
- const: syscon
2734

2835
reg:
2936
maxItems: 1
@@ -35,11 +42,51 @@ properties:
3542
description: Invert polarity of the SGMII data lanes
3643
type: boolean
3744

45+
pcs:
46+
type: object
47+
description: MediaTek LynxI HSGMII PCS
48+
properties:
49+
compatible:
50+
const: mediatek,mt7988-sgmii
51+
52+
clocks:
53+
maxItems: 3
54+
55+
clock-names:
56+
items:
57+
- const: sgmii_sel
58+
- const: sgmii_tx
59+
- const: sgmii_rx
60+
61+
required:
62+
- compatible
63+
- clocks
64+
- clock-names
65+
66+
additionalProperties: false
67+
3868
required:
3969
- compatible
4070
- reg
4171
- '#clock-cells'
4272

73+
allOf:
74+
- if:
75+
properties:
76+
compatible:
77+
contains:
78+
enum:
79+
- mediatek,mt7988-sgmiisys0
80+
- mediatek,mt7988-sgmiisys1
81+
82+
then:
83+
required:
84+
- pcs
85+
86+
else:
87+
properties:
88+
pcs: false
89+
4390
additionalProperties: false
4491

4592
examples:

0 commit comments

Comments
 (0)