Add support for Hisilicon Hi3521A SoC
Subsystems (6)
v2 cover Add support for Hisilicon Hi3521A SoC
Patched up with suggestions from Rob Herring, resend.
Marty E. Plummer (3):
clk: hisilicon: add CRG driver Hi3521A SoC
arm: hisi: enable Hi3521A SoC
arm: dts: add Hi3521A dts
arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/hi3521a-rs-dm290e.dts | 41 ++++ arch/arm/boot/dts/hi3521a.dtsi | 308 ++++++++++++++++++++++++++++++ arch/arm/mach-hisi/Kconfig | 6 + drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/crg-hi3521a.c | 196 +++++++++++++++++++ include/dt-bindings/clock/hi3521a-clock.h | 23 +++ 8 files changed, 584 insertions(+) create mode 100644 arch/arm/boot/dts/hi3521a-rs-dm290e.dts create mode 100644 arch/arm/boot/dts/hi3521a.dtsi create mode 100644 drivers/clk/hisilicon/crg-hi3521a.c create mode 100644 include/dt-bindings/clock/hi3521a-clock.h
Signature · 1 line
2.14.2
PATCH v2 1/3 clk: hisilicon: add CRG driver Hi3521A SoC
Add CRG driver for Hi3521A SoC. CRG (Clock and Reset Generator) module generates clock and reset signals used by other module blocks on SoC.
---
Changes in v2:
- Switched to SPDX tags and GPL-2.0+
drivers/clk/hisilicon/Kconfig | 7 ++ drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/crg-hi3521a.c | 196 ++++++++++++++++++++++++++++++ include/dt-bindings/clock/hi3521a-clock.h | 23 ++++ 4 files changed, 227 insertions(+) create mode 100644 drivers/clk/hisilicon/crg-hi3521a.c create mode 100644 include/dt-bindings/clock/hi3521a-clock.h
drivers/clk/hisilicon/Kconfig +7 -0
@@ -14,6 +14,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3521A + bool "Hi3521A/Hi3520DV300 Clock Driver" + depends on ARCH_HISI || COMPILE_TEST + default ARCH_HISI + help + Build the clock driver for hi3521a/hi3520dv300 + config COMMON_CLK_HI3660 bool "Hi3660 Clock Driver" depends on ARCH_HISI || COMPILE_TEST
drivers/clk/hisilicon/Makefile +1 -0
@@ -9,6 +9,7 @@ obj-$(CONFIG_ARCH_HIP04) += clk-hip04.o obj-$(CONFIG_ARCH_HIX5HD2) += clk-hix5hd2.o obj-$(CONFIG_COMMON_CLK_HI3516CV300) += crg-hi3516cv300.o obj-$(CONFIG_COMMON_CLK_HI3519) += clk-hi3519.o +obj-$(CONFIG_COMMON_CLK_HI3521A)+= crg-hi3521a.o obj-$(CONFIG_COMMON_CLK_HI3660) += clk-hi3660.o obj-$(CONFIG_COMMON_CLK_HI3798CV200) += crg-hi3798cv200.o obj-$(CONFIG_COMMON_CLK_HI6220) += clk-hi6220.o
drivers/clk/hisilicon/crg-hi3521a.c new file +196 -0
196 lines not on this page · raw message
include/dt-bindings/clock/hi3521a-clock.h new file +23 -0
@@ -0,0 +1,23 @@ +/* +* Copyright (C) 2017 Marty E. Plummer <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef __DTS_HI3521A_CLOCK_H +#define __DTS_HI3521A_CLOCK_H + +#define HI3521A_FMC_CLK 1 +#define HI3521A_SPI0_CLK 2 +#define HI3521A_UART0_CLK 3 +#define HI3521A_UART1_CLK 4 +#define HI3521A_UART2_CLK 5 +#define HI3521A_DMA_CLK 6 +#define HI3521A_IR_CLK 7 +#define HI3521A_ETH_PHY_CLK 8 +#define HI3521A_ETH_CLK 9 +#define HI3521A_ETH_MACIF_CLK 10 +#define HI3521A_USB2_BUS_CLK 11 +#define HI3521A_USB2_PORT_CLK 12 + +#endif /* __DTS_HI3521A_CLK_H */
Signature · 1 line
2.14.2
PATCH v2 2/3 arm: hisi: enable Hi3521A SoC
In reply to Marty E. PlummerEnable Hisilicon Hi3521A/Hi3520DCV300 SoC. This SoC series includes hardware mutlimedia codec cores, commonly used in consumer cctv/dvr security systems and ipcameras. The arm core is a Cortex A7.
--- arch/arm/mach-hisi/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/mach-hisi/Kconfig +6 -0
@@ -12,6 +12,12 @@ if ARCH_HISI menu "Hisilicon platform type" +config ARCH_HI3521A + bool "Hisilicon Hi3521A/Hi3520DCV300 family" + depends on ARCH_MULTI_V7 + help + Support for Hisilicon Hi3521A/Hi3520DCV300 SoC family + config ARCH_HI3xxx bool "Hisilicon Hi36xx family" depends on ARCH_MULTI_V7
Signature · 1 line
2.14.2
PATCH v2 3/3 arm: dts: add Hi3521A dts
In reply to Marty E. PlummerAdd hi3521a.dtsi and hi3521a-rs-dm290e.dts for RaySharp CCTV systems, marketed under the name Samsung SDR-B74301N
---
Chages in v2:
- Use SPDX tag and GPL-2.0+
- Add memory addresses to some nodes
- Add arm arch timer
- Add more specific compatible strings to a few nodes.
arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/hi3521a-rs-dm290e.dts | 41 +++++ arch/arm/boot/dts/hi3521a.dtsi | 308 ++++++++++++++++++++++++++++++++ 3 files changed, 351 insertions(+) create mode 100644 arch/arm/boot/dts/hi3521a-rs-dm290e.dts create mode 100644 arch/arm/boot/dts/hi3521a.dtsi
arch/arm/boot/dts/Makefile +2 -0
@@ -189,6 +189,8 @@ dtb-$(CONFIG_ARCH_GEMINI) += \ gemini-sq201.dtb \ gemini-wbd111.dtb \ gemini-wbd222.dtb +dtb-$(CONFIG_ARCH_HI3521A) += \ + hi3521a-rs-dm290e.dtb dtb-$(CONFIG_ARCH_HI3xxx) += \ hi3620-hi4511.dtb dtb-$(CONFIG_ARCH_HIGHBANK) += \
arch/arm/boot/dts/hi3521a-rs-dm290e.dts new file +41 -0
41 lines not on this page · raw message
arch/arm/boot/dts/hi3521a.dtsi new file +308 -0
308 lines not on this page · raw message
Signature · 1 line
2.14.2
Re: [PATCH v2 1/3] clk: hisilicon: add CRG driver Hi3521A SoC
In reply to Marty E. PlummerQuoted 8 lines · Marty E. Plummer
Add CRG driver for Hi3521A SoC. CRG (Clock and Reset Generator) module generates clock and reset signals used by other module blocks on SoC.
Signed-off-by Marty E. Plummer <[email protected]>---
Changes in v2:
- Switched to SPDX tags and GPL-2.0+
Quoted 5 lines
drivers/clk/hisilicon/Kconfig | 7 ++ drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/crg-hi3521a.c | 196 ++++++++++++++++++++++++++++++include/dt-bindings/clock/hi3521a-clock.h | 23 ++++
Re: [PATCH v2 1/3] clk: hisilicon: add CRG driver Hi3521A SoC
Quoted 9 lines · Rob Herring
Quoted 8 lines · Marty E. Plummer
Add CRG driver for Hi3521A SoC. CRG (Clock and Reset Generator) module generates clock and reset signals used by other module blocks on SoC.
Signed-off-by Marty E. Plummer <[email protected]>---
Changes in v2:
- Switched to SPDX tags and GPL-2.0+
Quoted 7 lines
Quoted 5 lines
drivers/clk/hisilicon/Kconfig | 7 ++ drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/crg-hi3521a.c | 196 ++++++++++++++++++++++++++++++include/dt-bindings/clock/hi3521a-clock.h | 23 ++++Acked-by Rob Herring <[email protected]>
Actually nack this for now. I need to change some stuff over to use a different clock for the sp804 timer at 12000000, apparently I'm going to need to use CLK_OF_DECLARE to get the clock in question working that early in boot.