* [PATCH v2 0/3] ARM: dts: bcm5301x: Add TWD, I2C, and syscon
@ 2016-05-11 23:19 Jon Mason
2016-05-11 23:19 ` [PATCH v2 1/3] ARM: dts: bcm5301x: Add TWD WD Support to DT Jon Mason
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jon Mason @ 2016-05-11 23:19 UTC (permalink / raw)
To: Florian Fainelli, Arnd Bergmann, Hauke Mehrtens, Rob Herring,
Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala
Cc: linux-arm-kernel, devicetree, linux-kernel
Reviving, correcting, and resending this patch series from December
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-December/395155.html
In v2:
* Corrected TWD DT names, per Sergei Shtylyov
* Modified syscon size, per Arnd Bergmann (or atleast my rough
understanding of what he was trying to say)
Jon Mason (3):
ARM: dts: bcm5301x: Add TWD WD Support to DT
ARM: dts: bcm5301x: Add I2C support to the DT
arm: dts: bcm5301x: Add syscon based reboot in DT
arch/arm/boot/dts/bcm5301x.dtsi | 36 +++++++++++++++++++++++++++++++++---
1 file changed, 33 insertions(+), 3 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/3] ARM: dts: bcm5301x: Add TWD WD Support to DT
2016-05-11 23:19 [PATCH v2 0/3] ARM: dts: bcm5301x: Add TWD, I2C, and syscon Jon Mason
@ 2016-05-11 23:19 ` Jon Mason
[not found] ` <1463008750-13902-1-git-send-email-jonmason-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2016-05-11 23:19 ` [PATCH v2 3/3] arm: dts: bcm5301x: Add syscon based reboot in DT Jon Mason
2 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2016-05-11 23:19 UTC (permalink / raw)
To: Florian Fainelli, Arnd Bergmann, Hauke Mehrtens, Rob Herring,
Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala
Cc: linux-arm-kernel, devicetree, linux-kernel
Add support for the ARM TWD Watchdog to the bcm5301x device tree. The
ARM TWD timer allocated the register space for the WDT, so this patch
necessitated shrinking that. Also, the GIC masks were added for these.
Signed-off-by: Jon Mason <jonmason@broadcom.com>
---
arch/arm/boot/dts/bcm5301x.dtsi | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
index 65a1309..4b9887f 100644
--- a/arch/arm/boot/dts/bcm5301x.dtsi
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
@@ -66,10 +66,19 @@
clocks = <&periph_clk>;
};
- local-timer@20600 {
+ timer@20600 {
compatible = "arm,cortex-a9-twd-timer";
- reg = <0x20600 0x100>;
- interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0x20600 0x20>;
+ interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
+ IRQ_TYPE_LEVEL_HIGH)>;
+ clocks = <&periph_clk>;
+ };
+
+ watchdog@20620 {
+ compatible = "arm,cortex-a9-twd-wdt";
+ reg = <0x20620 0x20>;
+ interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
+ IRQ_TYPE_LEVEL_HIGH)>;
clocks = <&periph_clk>;
};
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/3] ARM: dts: bcm5301x: Add I2C support to the DT
[not found] ` <1463008750-13902-1-git-send-email-jonmason-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
@ 2016-05-11 23:19 ` Jon Mason
0 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2016-05-11 23:19 UTC (permalink / raw)
To: Florian Fainelli, Arnd Bergmann, Hauke Mehrtens, Rob Herring,
Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Add I2C support to the bcm5301x Device Tree. Since no driver changes
are needed to enable this hardware, only the device tree changes are
required to make this functional.
Signed-off-by: Jon Mason <jonmason-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
---
arch/arm/boot/dts/bcm5301x.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
index 4b9887f..ffc4a9b 100644
--- a/arch/arm/boot/dts/bcm5301x.dtsi
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
@@ -218,6 +218,15 @@
};
};
+ i2c0: i2c@18009000 {
+ compatible = "brcm,iproc-i2c";
+ reg = <0x18009000 0x50>;
+ interrupts = <GIC_SPI 121 IRQ_TYPE_NONE>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <100000>;
+ };
+
lcpll0: lcpll0@1800c100 {
#clock-cells = <1>;
compatible = "brcm,nsp-lcpll0";
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 3/3] arm: dts: bcm5301x: Add syscon based reboot in DT
2016-05-11 23:19 [PATCH v2 0/3] ARM: dts: bcm5301x: Add TWD, I2C, and syscon Jon Mason
2016-05-11 23:19 ` [PATCH v2 1/3] ARM: dts: bcm5301x: Add TWD WD Support to DT Jon Mason
[not found] ` <1463008750-13902-1-git-send-email-jonmason-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
@ 2016-05-11 23:19 ` Jon Mason
2 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2016-05-11 23:19 UTC (permalink / raw)
To: Florian Fainelli, Arnd Bergmann, Hauke Mehrtens, Rob Herring,
Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala
Cc: linux-arm-kernel, devicetree, linux-kernel
Add the ability to reboot via a reset of the processor. This is
achieved via a write of 0x39 to the CRU Reset Register. Unfortunately,
this only resets the core and not the other IP blocks. So if possible,
other methods should be used on the individual boards.
Signed-off-by: Jon Mason <jonmason@broadcom.com>
---
arch/arm/boot/dts/bcm5301x.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
index ffc4a9b..d4e1672 100644
--- a/arch/arm/boot/dts/bcm5301x.dtsi
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
@@ -246,6 +246,18 @@
"sata2";
};
+ cru: cru@1800c184 {
+ compatible = "syscon";
+ reg = <0x1800c184 0x4>;
+ };
+
+ reboot@1800c184 {
+ compatible ="syscon-reboot";
+ regmap = <&cru>;
+ offset = <0>;
+ mask = <0x39>;
+ };
+
nand: nand@18028000 {
compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-11 23:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-11 23:19 [PATCH v2 0/3] ARM: dts: bcm5301x: Add TWD, I2C, and syscon Jon Mason
2016-05-11 23:19 ` [PATCH v2 1/3] ARM: dts: bcm5301x: Add TWD WD Support to DT Jon Mason
[not found] ` <1463008750-13902-1-git-send-email-jonmason-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2016-05-11 23:19 ` [PATCH v2 2/3] ARM: dts: bcm5301x: Add I2C support to the DT Jon Mason
2016-05-11 23:19 ` [PATCH v2 3/3] arm: dts: bcm5301x: Add syscon based reboot in DT Jon Mason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).