reset: hisilicon: document hisi-hi6220 reset controllers bindings
PATCH RESEND v6 1/3 reset: hisilicon: document hisi-hi6220 reset controllers bindings
Add DT bindings documentation for hi6220 SoC reset controller.
--- .../bindings/reset/hisilicon,hi6220-reset.txt | 34 +++++++++++ include/dt-bindings/reset/hisi,hi6220-resets.h | 67 ++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt create mode 100644 include/dt-bindings/reset/hisi,hi6220-resets.h
Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt new file +34 -0
@@ -0,0 +1,34 @@ +Hisilicon System Reset Controller +====================================== + +Please also refer to reset.txt in this directory for common reset +controller binding usage. + +The reset controller registers are part of the system-ctl block on +hi6220 SoC. + +Required properties: +- compatible: may be "hisilicon,hi6220-sysctrl" +- reg: should be register base and length as documented in the + datasheet +- #reset-cells: 1, see below + +Example: +sys_ctrl: sys_ctrl@f7030000 { + compatible = "hisilicon,hi6220-sysctrl", "syscon"; + reg = <0x0 0xf7030000 0x0 0x2000>; + #clock-cells = <1>; + #reset-cells = <1>; +}; + +Specifying reset lines connected to IP modules +============================================== +example: + + uart1: uart1@..... { + ... + resets = <&sys_ctrl PERIPH_RSTEN3_UART1>; + ... + }; + +The index could be found in <dt-bindings/reset/hisi,hi6220-resets.h>.
include/dt-bindings/reset/hisi,hi6220-resets.h new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH RESEND v6 2/3 reset: hi6220: Reset driver for hisilicon hi6220 SoC
Add reset driver for hi6220-hikey board,this driver supply deassert of IP on hi6220 SoC.
--- drivers/reset/Kconfig | 1 + drivers/reset/Makefile | 1 + drivers/reset/hisilicon/Kconfig | 5 ++ drivers/reset/hisilicon/Makefile | 1 + drivers/reset/hisilicon/hi6220_reset.c | 108 +++++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 drivers/reset/hisilicon/Kconfig create mode 100644 drivers/reset/hisilicon/Makefile create mode 100644 drivers/reset/hisilicon/hi6220_reset.c
drivers/reset/Kconfig +1 -0
@@ -13,3 +13,4 @@ menuconfig RESET_CONTROLLER If unsure, say no. source "drivers/reset/sti/Kconfig" +source "drivers/reset/hisilicon/Kconfig"
drivers/reset/Makefile +1 -0
@@ -4,5 +4,6 @@ obj-$(CONFIG_ARCH_SOCFPGA) += reset-socfpga.o obj-$(CONFIG_ARCH_BERLIN) += reset-berlin.o obj-$(CONFIG_ARCH_SUNXI) += reset-sunxi.o obj-$(CONFIG_ARCH_STI) += sti/ +obj-$(CONFIG_ARCH_HISI) += hisilicon/ obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o obj-$(CONFIG_ATH79) += reset-ath79.o
drivers/reset/hisilicon/Kconfig new file +5 -0
@@ -0,0 +1,5 @@ +config COMMON_RESET_HI6220 + tristate "Hi6220 Reset Driver" + depends on (ARCH_HISI && RESET_CONTROLLER) + help + Build the Hisilicon Hi6220 reset driver.
drivers/reset/hisilicon/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-$(CONFIG_COMMON_RESET_HI6220) += hi6220_reset.o
drivers/reset/hisilicon/hi6220_reset.c new file +108 -0
108 lines not on this page · raw message
Signature · 1 line
1.9.1
Philipp Zabel
maintainerRe: [PATCH V6 RESEND 2/3] reset: hi6220: Reset driver for hisilicon hi6220 SoC
Am Freitag, den 30.10.2015, 11:19 +0800 schrieb Chen Feng:
Quoted 4 lines
Add reset driver for hi6220-hikey board,this driver supply deassert of IP on hi6220 SoC.
Signed-off-by Chen Feng <[email protected]>
[...]
drivers/reset/hisilicon/Kconfig line 5
Quoted 11 lines
drivers/reset/hisilicon/Kconfig new file +5
-0@@ -0,0 +1,5 @@ +config COMMON_RESET_HI6220 + tristate "Hi6220 Reset Driver" + depends on (ARCH_HISI && RESET_CONTROLLER) + help + Build the Hisilicon Hi6220 reset driver.
Why is this configurable? Can't you just drop the Kconfig and use ...
drivers/reset/hisilicon/Makefile line 1
Quoted 7 lines
drivers/reset/hisilicon/Makefile new file +1
-0@@ -0,0 +1 @@ +obj-$(CONFIG_COMMON_RESET_HI6220) += hi6220_reset.o
... obj-$(CONFIG_ARCH_HISI) += hi6220_reset.o
here?
regards
Philipp
Re: [PATCH V6 RESEND 2/3] reset: hi6220: Reset driver for hisilicon hi6220 SoC
Zabel,
Quoted 30 lines · Philipp Zabel
Am Freitag, den 30.10.2015, 11:19 +0800 schrieb Chen Feng:
Quoted 4 lines
Add reset driver for hi6220-hikey board,this driver supply deassert of IP on hi6220 SoC.
Signed-off-by Chen Feng <[email protected]>[...]
drivers/reset/hisilicon/Kconfig line 5
Quoted 11 lines
drivers/reset/hisilicon/Kconfig new file +5
-0@@ -0,0 +1,5 @@ +config COMMON_RESET_HI6220 + tristate "Hi6220 Reset Driver" + depends on (ARCH_HISI && RESET_CONTROLLER) + help + Build the Hisilicon Hi6220 reset driver.Why is this configurable? Can't you just drop the
Kconfigand use ...drivers/reset/hisilicon/Makefile line 1
Quoted 7 lines
drivers/reset/hisilicon/Makefile new file +1
-0@@ -0,0 +1 @@ +obj-$(CONFIG_COMMON_RESET_HI6220) += hi6220_reset.o... obj-$(CONFIG_ARCH_HISI) += hi6220_reset.o
Quoted 2 lines
here?
Currently, the support SoC is hi6220 which is one of Kirin solution.
I can't use obj-$(CONFIG_ARCH_HISI) += hi6220_reset.o here.
Because,the hisilicon chip sets also have server chip(eg:D02,D03) and other solution.
The reset controller may be different.
Quoted 7 lines
regards
Philipp.
PATCH RESEND v6 3/3 arm64: dts: Add reset dts config for Hisilicon Hi6220 SoC
In reply to Chen FengAdd reset controller for hi6220 hikey-board.
--- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/hisilicon/hi6220.dtsi +1 -0
@@ -146,6 +146,7 @@ compatible = "hisilicon,hi6220-sysctrl", "syscon"; reg = <0x0 0xf7030000 0x0 0x2000>; #clock-cells = <1>; + #reset-cells = <1>; }; media_ctrl: media_ctrl@f4410000 {
Signature · 1 line
1.9.1
Philipp Zabel
maintainerAm Freitag, den 30.10.2015, 11:19 +0800 schrieb Chen Feng:
Quoted 34 lines
Add DT bindings documentation for hi6220 SoC reset controller.
Signed-off-by Chen Feng <[email protected]>--- .../bindings/reset/hisilicon,hi6220-reset.txt | 34 +++++++++++ include/dt-bindings/reset/hisi,hi6220-resets.h | 67 ++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt create mode 100644 include/dt-bindings/reset/hisi,hi6220-resets.hDocumentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt new file +18
-0@@ -0,0 +1,34 @@ +Hisilicon System Reset Controller +====================================== + +Please also refer to reset.txt in this directory for common reset +controller binding usage. + +The reset controller registers are part of the system-ctl block on +hi6220 SoC. + +Required properties: +- compatible: may be "hisilicon,hi6220-sysctrl" +- reg: should be register base and length as documented in the + datasheet +- #reset-cells: 1, see below + +Example: +sys_ctrl: sys_ctrl@f7030000 { + compatible = "hisilicon,hi6220-sysctrl", "syscon";
Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt line 28
Quoted 10 lines
Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt new file +10
-0+ reg = <0x0 0xf7030000 0x0 0x2000>; + #clock-cells = <1>; + #reset-cells = <1>; +}; + +Specifying reset lines connected to IP modules +============================================== +example: + + uart1: uart1@..... {
uart1: serial@...
regards
Philipp
Philipp Zabel
maintainerAm Freitag, den 30.10.2015, 11:19 +0800 schrieb Chen Feng:
Quoted 34 lines
Add DT bindings documentation for hi6220 SoC reset controller.
Signed-off-by Chen Feng <[email protected]>--- .../bindings/reset/hisilicon,hi6220-reset.txt | 34 +++++++++++ include/dt-bindings/reset/hisi,hi6220-resets.h | 67 ++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt create mode 100644 include/dt-bindings/reset/hisi,hi6220-resets.hDocumentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt new file +18
-0@@ -0,0 +1,34 @@ +Hisilicon System Reset Controller +====================================== + +Please also refer to reset.txt in this directory for common reset +controller binding usage. + +The reset controller registers are part of the system-ctl block on +hi6220 SoC. + +Required properties: +- compatible: may be "hisilicon,hi6220-sysctrl" +- reg: should be register base and length as documented in the + datasheet +- #reset-cells: 1, see below + +Example: +sys_ctrl: sys_ctrl@f7030000 { + compatible = "hisilicon,hi6220-sysctrl", "syscon";
Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt line 28
Quoted 10 lines
Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt new file +10
-0+ reg = <0x0 0xf7030000 0x0 0x2000>; + #clock-cells = <1>; + #reset-cells = <1>; +}; + +Specifying reset lines connected to IP modules +============================================== +example: + + uart1: uart1@..... {
uart1: serial@...
regards
Philipp
Quoted 39 lines · Philipp Zabel
Am Freitag, den 30.10.2015, 11:19 +0800 schrieb Chen Feng:
Quoted 38 lines
Add DT bindings documentation for hi6220 SoC reset controller.
Signed-off-by Chen Feng <[email protected]>--- .../bindings/reset/hisilicon,hi6220-reset.txt | 34 +++++++++++ include/dt-bindings/reset/hisi,hi6220-resets.h | 67 ++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt create mode 100644 include/dt-bindings/reset/hisi,hi6220-resets.hDocumentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt new file +22
-0@@ -0,0 +1,34 @@ +Hisilicon System Reset Controller +====================================== + +Please also refer to reset.txt in this directory for common reset +controller binding usage. + +The reset controller registers are part of the system-ctl block on +hi6220 SoC. + +Required properties: +- compatible: may be "hisilicon,hi6220-sysctrl" +- reg: should be register base and length as documented in the + datasheet +- #reset-cells: 1, see below + +Example: +sys_ctrl: sys_ctrl@f7030000 { + compatible = "hisilicon,hi6220-sysctrl", "syscon"; + reg = <0x0 0xf7030000 0x0 0x2000>; + #clock-cells = <1>; + #reset-cells = <1>; +};
Quoted 9 lines
Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt line 28
Quoted 6 lines
Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt new file +6
-0+ +Specifying reset lines connected to IP modules +============================================== +example: + + uart1: uart1@..... {uart1: serial@...
Thanks,
I will change this soon.
Quoted 7 lines
regards
Philipp.