Skip to contentSkip to conversation

power: reset: BCM63xx reboot support

PATCH In review Florian Fainelli 3 participants 6 messages Mar 25, 2015 – Apr 30, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover power: reset: BCM63xx reboot support

Hi all,

This patch series adds support for the BCM6328-style software reset hardware block commonly found on Broadcom BCM63xx DSL SoCs.

Thanks!

Florian Fainelli (3):
Documentation: bindings: add BCM6328-style soft reset binding
power: reset: add Broadcom BCM63xx software reset driver
ARM: dts: BCM63xx: add soft-reset node

 .../devicetree/bindings/arm/bcm/bcm63138.txt       | 16 +++++
 arch/arm/boot/dts/bcm63138.dtsi                    |  5 ++
 drivers/power/reset/Kconfig                        |  7 ++
 drivers/power/reset/Makefile                       |  1 +
 drivers/power/reset/bcm63xx-reboot.c               | 80 ++++++++++++++++++++++
 5 files changed, 109 insertions(+)
 create mode 100644 drivers/power/reset/bcm63xx-reboot.c
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/3 Documentation: bindings: add BCM6328-style soft reset binding

Add a binding document for the BCM6328-style software reset block found in MIPS and ARM based Broadcom BCM63xx DSL SoCs.

---
 Documentation/devicetree/bindings/arm/bcm/bcm63138.txt | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
Documentation/devicetree/bindings/arm/bcm/bcm63138.txt +16 -0
index bd49987a8812..bddf76d8dda4 100644
@@ -7,3 +7,19 @@ following properties:
 Required root node property:
 
 compatible: should be "brcm,bcm63138"
+
+
+reboot node
+-----------
+
+Required properties
+
+- compatible: sould be "brcm,bcm6328-soft-reset"
+- reg: should be the base register addresse and length
+
+Example:
+
+reboot at b0 {
+	compatible = "brcm,bcm6328-soft-reset";
+	reg = <0xb0 0x4>;
+};
Signature · 1 line
2.1.0
#2 lore raw

PATCH 2/3 power: reset: add Broadcom BCM63xx software reset driver

In reply to Florian Fainelli

Add a sofware reset driver for the Broadcom BCM63xx DSL SoCs, starting with 6328 all the way through newer chips such as 63138.

---
 drivers/power/reset/Kconfig          |  7 ++++
 drivers/power/reset/Makefile         |  1 +
 drivers/power/reset/bcm63xx-reboot.c | 80 ++++++++++++++++++++++++++++++++++++
 3 files changed, 88 insertions(+)
 create mode 100644 drivers/power/reset/bcm63xx-reboot.c
drivers/power/reset/Kconfig +7 -0
index 27f6646731b0..c20c76870f42 100644
@@ -38,6 +38,13 @@ config POWER_RESET_AXXIA
 
 	  Say Y if you have an Axxia family SoC.
 
+config POWER_RESET_BCM63XX
+	bool "Broadcom BCM63xx reset driver"
+	depends on ARM || MIPS || COMPILE_TEST
+	default ARCH_BCM_63XX
+	help
+	  This driver provides restart support for the Broadcom DSL SoCs.
+
 config POWER_RESET_BRCMSTB
 	bool "Broadcom STB reset driver"
 	depends on ARM || MIPS || COMPILE_TEST
drivers/power/reset/Makefile +1 -0
index 11de15bae52e..7d28eaff4cd1 100644
@@ -2,6 +2,7 @@ obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
 obj-$(CONFIG_POWER_RESET_AT91_POWEROFF) += at91-poweroff.o
 obj-$(CONFIG_POWER_RESET_AT91_RESET) += at91-reset.o
 obj-$(CONFIG_POWER_RESET_AXXIA) += axxia-reset.o
+obj-$(CONFIG_POWER_RESET_BCM63XX) += bcm63xx-reboot.o
 obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o
 obj-$(CONFIG_POWER_RESET_GPIO) += gpio-poweroff.o
 obj-$(CONFIG_POWER_RESET_GPIO_RESTART) += gpio-restart.o
drivers/power/reset/bcm63xx-reboot.c new file +80 -0

80 lines not on this page · raw message

Signature · 1 line
2.1.0
#3 lore raw

PATCH 3/3 ARM: dts: BCM63xx: add soft-reset node

In reply to Florian Fainelli

Add the software reset Device Tree node allowing us to software reset a BCM63138 device using bcm6328-soft-reset.

---
 arch/arm/boot/dts/bcm63138.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/bcm63138.dtsi +5 -0
index f46329c8ad75..cfd7f67fed02 100644
@@ -114,6 +114,11 @@
 		#size-cells = <1>;
 		ranges = <0 0xfffe8000 0x8100>;
 
+		reset: soft-reset at b4 {
+			compatible = "brcm,bcm6328-soft-reset";
+			reg = <0xb4 0x4>;
+		};
+
 		serial0: serial at 600 {
 			compatible = "brcm,bcm6345-uart";
 			reg = <0x600 0x1b>;
Signature · 1 line
2.1.0
#4 lore raw
In reply to Florian Fainelli
Quoted 4 lines · Florian Fainelli

Hi all,

This patch series adds support for the BCM6328-style software reset hardware block commonly found on Broadcom BCM63xx DSL SoCs.

Looks like we can utilize the generic syscon reboot driver instead of open-coding one, let's do that instead.

Quoted 16 lines

Thanks!

Florian Fainelli (3):
Documentation: bindings: add BCM6328-style soft reset binding
power: reset: add Broadcom BCM63xx software reset driver
ARM: dts: BCM63xx: add soft-reset node

 .../devicetree/bindings/arm/bcm/bcm63138.txt       | 16 +++++
 arch/arm/boot/dts/bcm63138.dtsi                    |  5 ++
 drivers/power/reset/Kconfig                        |  7 ++
 drivers/power/reset/Makefile                       |  1 +
 drivers/power/reset/bcm63xx-reboot.c               | 80 ++++++++++++++++++++++
 5 files changed, 109 insertions(+)
 create mode 100644 drivers/power/reset/bcm63xx-reboot.c
Signature · 1 line
Florian
#5 lore raw

Hi,

Quoted 8 lines · Florian Fainelli
Quoted 4 lines · Florian Fainelli

Hi all,

This patch series adds support for the BCM6328-style software reset hardware block commonly found on Broadcom BCM63xx DSL SoCs.

Looks like we can utilize the generic syscon reboot driver instead of open-coding one, let's do that instead.

Thanks, that's preferred.

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150430/9bfc27ed/attachment.sig>