Skip to contentSkip to conversation

clk: mediatek: add clock support for MT7629 SoC

PATCH Applied Ryder Lee 3 participants 6 messages Nov 5, 2018 – Nov 30, 2018

Subsystems (3)
lore
Share & tools
lore

Ryder Lee

author
#0 lore raw

PATCH 1/2 clk: mediatek: add clock support for MT7629 SoC

Add all supported clocks exported from every susbystem found on MT7629 SoC.

---
 drivers/clk/mediatek/Kconfig           |  23 ++
 drivers/clk/mediatek/Makefile          |   3 +
 drivers/clk/mediatek/clk-mt7629-eth.c  | 159 ++++++++
 drivers/clk/mediatek/clk-mt7629-hif.c  | 156 +++++++
 drivers/clk/mediatek/clk-mt7629.c      | 723 +++++++++++++++++++++++++++++++++
 include/dt-bindings/clock/mt7629-clk.h | 203 +++++++++
 6 files changed, 1267 insertions(+)
 create mode 100644 drivers/clk/mediatek/clk-mt7629-eth.c
 create mode 100644 drivers/clk/mediatek/clk-mt7629-hif.c
 create mode 100644 drivers/clk/mediatek/clk-mt7629.c
 create mode 100644 include/dt-bindings/clock/mt7629-clk.h
drivers/clk/mediatek/Kconfig +23 -0
index 3dd1dab..53edade 100644
@@ -178,6 +178,29 @@ config COMMON_CLK_MT7622_AUDSYS
 	  This driver supports MediaTek MT7622 AUDSYS clocks providing
 	  to audio consumers such as I2S and TDM.
 
+config COMMON_CLK_MT7629
+	bool "Clock driver for MediaTek MT7629"
+	depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
+	select COMMON_CLK_MEDIATEK
+	default ARCH_MEDIATEK && ARM
+	---help---
+	  This driver supports MediaTek MT7629 basic clocks and clocks
+	  required for various periperals found on MediaTek.
+
+config COMMON_CLK_MT7629_ETHSYS
+	bool "Clock driver for MediaTek MT7629 ETHSYS"
+	depends on COMMON_CLK_MT7629
+	---help---
+	  This driver add support for clocks for Ethernet and SGMII
+	  required on MediaTek MT7629 SoC.
+
+config COMMON_CLK_MT7629_HIFSYS
+	bool "Clock driver for MediaTek MT7629 HIFSYS"
+	depends on COMMON_CLK_MT7629
+	---help---
+	  This driver supports MediaTek MT7629 HIFSYS clocks providing
+	  to PCI-E and USB.
+
 config COMMON_CLK_MT8135
 	bool "Clock driver for MediaTek MT8135"
 	depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
drivers/clk/mediatek/Makefile +3 -0
index 844b55d..ee4410f 100644
@@ -26,5 +26,8 @@ obj-$(CONFIG_COMMON_CLK_MT7622) += clk-mt7622.o
 obj-$(CONFIG_COMMON_CLK_MT7622_ETHSYS) += clk-mt7622-eth.o
 obj-$(CONFIG_COMMON_CLK_MT7622_HIFSYS) += clk-mt7622-hif.o
 obj-$(CONFIG_COMMON_CLK_MT7622_AUDSYS) += clk-mt7622-aud.o
+obj-$(CONFIG_COMMON_CLK_MT7629) += clk-mt7629.o
+obj-$(CONFIG_COMMON_CLK_MT7629_ETHSYS) += clk-mt7629-eth.o
+obj-$(CONFIG_COMMON_CLK_MT7629_HIFSYS) += clk-mt7629-hif.o
 obj-$(CONFIG_COMMON_CLK_MT8135) += clk-mt8135.o
 obj-$(CONFIG_COMMON_CLK_MT8173) += clk-mt8173.o
drivers/clk/mediatek/clk-mt7629-eth.c new file +159 -0

159 lines not on this page · raw message

drivers/clk/mediatek/clk-mt7629-hif.c new file +156 -0

156 lines not on this page · raw message

drivers/clk/mediatek/clk-mt7629.c new file +723 -0

723 lines not on this page · raw message

include/dt-bindings/clock/mt7629-clk.h new file +203 -0

203 lines not on this page · raw message

Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/2 dt-bindings: arm: mediatek: document clk bindings for MT7629

This patch adds the binding documentation for apmixedsys, infracfg, pciesys, pericfg, topckgen, ethsys, sgmiisys and ssusbsys for MT7629.

---
 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt     | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt   | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt    | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt    | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt   | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt   | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt   | 1 +
 8 files changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt +1 -0
index 4e4a3c0..de40754 100644
@@ -11,6 +11,7 @@ Required Properties:
 	- "mediatek,mt6797-apmixedsys"
 	- "mediatek,mt7622-apmixedsys"
 	- "mediatek,mt7623-apmixedsys", "mediatek,mt2701-apmixedsys"
+	- "mediatek,mt7629-apmixedsys"
 	- "mediatek,mt8135-apmixedsys"
 	- "mediatek,mt8173-apmixedsys"
 - #clock-cells: Must be 1
Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt +1 -0
index f17cfe6..6b7e806 100644
@@ -9,6 +9,7 @@ Required Properties:
 	- "mediatek,mt2701-ethsys", "syscon"
 	- "mediatek,mt7622-ethsys", "syscon"
 	- "mediatek,mt7623-ethsys", "mediatek,mt2701-ethsys", "syscon"
+	- "mediatek,mt7629-ethsys", "syscon"
 - #clock-cells: Must be 1
 - #reset-cells: Must be 1
 
Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt +1 -0
index 89f4272..417bd83 100644
@@ -12,6 +12,7 @@ Required Properties:
 	- "mediatek,mt6797-infracfg", "syscon"
 	- "mediatek,mt7622-infracfg", "syscon"
 	- "mediatek,mt7623-infracfg", "mediatek,mt2701-infracfg", "syscon"
+	- "mediatek,mt7629-infracfg", "syscon"
 	- "mediatek,mt8135-infracfg", "syscon"
 	- "mediatek,mt8173-infracfg", "syscon"
 - #clock-cells: Must be 1
Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt +1 -0
index 7fe5dc6..d179a61 100644
@@ -7,6 +7,7 @@ Required Properties:
 
 - compatible: Should be:
 	- "mediatek,mt7622-pciesys", "syscon"
+	- "mediatek,mt7629-pciesys", "syscon"
 - #clock-cells: Must be 1
 - #reset-cells: Must be 1
 
Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt +1 -0
index 6755514..4c7e478 100644
@@ -11,6 +11,7 @@ Required Properties:
 	- "mediatek,mt2712-pericfg", "syscon"
 	- "mediatek,mt7622-pericfg", "syscon"
 	- "mediatek,mt7623-pericfg", "mediatek,mt2701-pericfg", "syscon"
+	- "mediatek,mt7629-pericfg", "syscon"
 	- "mediatek,mt8135-pericfg", "syscon"
 	- "mediatek,mt8173-pericfg", "syscon"
 - #clock-cells: Must be 1
Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt +1 -0
index d113b8e..30cb645 100644
@@ -7,6 +7,7 @@ Required Properties:
 
 - compatible: Should be:
 	- "mediatek,mt7622-sgmiisys", "syscon"
+	- "mediatek,mt7629-sgmiisys", "syscon"
 - #clock-cells: Must be 1
 
 The SGMIISYS controller uses the common clk binding from
Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt +1 -0
index b8184da..7cb02c93 100644
@@ -7,6 +7,7 @@ Required Properties:
 
 - compatible: Should be:
 	- "mediatek,mt7622-ssusbsys", "syscon"
+	- "mediatek,mt7629-ssusbsys", "syscon"
 - #clock-cells: Must be 1
 - #reset-cells: Must be 1
 
Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt +1 -0
index d849465..d160c2b 100644
@@ -11,6 +11,7 @@ Required Properties:
 	- "mediatek,mt6797-topckgen"
 	- "mediatek,mt7622-topckgen"
 	- "mediatek,mt7623-topckgen", "mediatek,mt2701-topckgen"
+	- "mediatek,mt7629-topckgen"
 	- "mediatek,mt8135-topckgen"
 	- "mediatek,mt8173-topckgen"
 - #clock-cells: Must be 1
Signature · 1 line
1.9.1
maintainer
#2 lore raw

PATCH 2/2 dt-bindings: arm: mediatek: document clk bindings for MT7629

Quoted 4 lines · Ryder Lee

This patch adds the binding documentation for apmixedsys, infracfg, pciesys, pericfg, topckgen, ethsys, sgmiisys and ssusbsys for MT7629.

Quoted 11 lines
---
 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt     | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt   | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt    | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt    | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt   | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt   | 1 +
 Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt   | 1 +
 8 files changed, 8 insertions(+)
maintainer Applied
#3 lore raw

Re: [PATCH 2/2] dt-bindings: arm: mediatek: document clk bindings for MT7629

In reply to Ryder Lee

Quoting Ryder Lee (2018-11-05 00:43:56)

Quoted 5 lines

This patch adds the binding documentation for apmixedsys, infracfg, pciesys, pericfg, topckgen, ethsys, sgmiisys and ssusbsys for MT7629.

---

Applied to clk-next

maintainer
#4 lore raw

PATCH 1/2 clk: mediatek: add clock support for MT7629 SoC

In reply to Ryder Lee
Quoted 11 lines · Ryder Lee

Add all supported clocks exported from every susbystem found on MT7629 SoC.

---
 drivers/clk/mediatek/Kconfig           |  23 ++
 drivers/clk/mediatek/Makefile          |   3 +
 drivers/clk/mediatek/clk-mt7629-eth.c  | 159 ++++++++
 drivers/clk/mediatek/clk-mt7629-hif.c  | 156 +++++++
 drivers/clk/mediatek/clk-mt7629.c      | 723 +++++++++++++++++++++++++++++++++
 include/dt-bindings/clock/mt7629-clk.h | 203 +++++++++

In the future, the header goes with the binding patch.

Quoted 5 lines
 6 files changed, 1267 insertions(+)
 create mode 100644 drivers/clk/mediatek/clk-mt7629-eth.c
 create mode 100644 drivers/clk/mediatek/clk-mt7629-hif.c
 create mode 100644 drivers/clk/mediatek/clk-mt7629.c
 create mode 100644 include/dt-bindings/clock/mt7629-clk.h