Skip to contentSkip to conversation

reset: hisilicon: document hisi-hi6220 reset controllers bindings

PATCH RESEND Superseded Chen Feng 2 participants 8 messages Oct 30, 2015 – Nov 19, 2015

Subsystems (3)

v6 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Chen Feng

author
#0 lore raw

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
new file mode 100644
index 0000000..c74898d
@@ -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
author
#1 lore raw

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
index 0615f50..df37212 100644
@@ -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
index 85d5904..99e18c8 100644
@@ -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
new file mode 100644
index 0000000..26bf95a
@@ -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
new file mode 100644
index 0000000..c932f86
@@ -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
maintainer
#2 lore raw

Re: [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.

[...]

drivers/reset/hisilicon/Kconfig line 5

Quoted 11 lines
drivers/reset/hisilicon/Kconfig new file +5 -0
new file mode 100644
index 0000000..26bf95a
@@ -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
new file mode 100644
index 0000000..c932f86
@@ -0,0 +1 @@
+obj-$(CONFIG_COMMON_RESET_HI6220) += hi6220_reset.o

... obj-$(CONFIG_ARCH_HISI) += hi6220_reset.o

here?

regards
Philipp

author
#3 lore raw

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.

[...]

drivers/reset/hisilicon/Kconfig line 5

Quoted 11 lines
drivers/reset/hisilicon/Kconfig new file +5 -0
new file mode 100644
index 0000000..26bf95a
@@ -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
new file mode 100644
index 0000000..c932f86
@@ -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

.

author
#4 lore raw

PATCH RESEND v6 3/3 arm64: dts: Add reset dts config for Hisilicon Hi6220 SoC

In reply to Chen Feng

Add 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
index 3f03380..e45dbb1 100644
@@ -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
maintainer
#5 lore raw
In reply to Chen Feng

Am Freitag, den 30.10.2015, 11:19 +0800 schrieb Chen Feng:

Quoted 34 lines

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 +18 -0
new file mode 100644
index 0000000..c74898d
@@ -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

maintainer
#6 lore raw
In reply to Chen Feng

Am Freitag, den 30.10.2015, 11:19 +0800 schrieb Chen Feng:

Quoted 34 lines

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 +18 -0
new file mode 100644
index 0000000..c74898d
@@ -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

author
#7 lore raw
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.

---
 .../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 +22 -0
new file mode 100644
index 0000000..c74898d
@@ -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

.