Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1593508 > unrolled thread

[PATCH v3 0/2] ARM: dts: BCM5301X: TWD WD and i2c Support

Started byJon Mason <jon.mason@broadcom.com>
First post2017-03-06 17:30 +0100
Last post2017-03-06 17:30 +0100
Articles 3 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v3 0/2] ARM: dts: BCM5301X: TWD WD and i2c Support Jon Mason <jon.mason@broadcom.com> - 2017-03-06 17:30 +0100
    [PATCH v3 1/2] ARM: dts: bcm5301x: Add TWD WD Support to DT Jon Mason <jon.mason@broadcom.com> - 2017-03-06 17:30 +0100
    [PATCH v3 2/2] ARM: dts: bcm5301x: Add I2C support to the DT Jon Mason <jon.mason@broadcom.com> - 2017-03-06 17:30 +0100

#1593508 — [PATCH v3 0/2] ARM: dts: BCM5301X: TWD WD and i2c Support

FromJon Mason <jon.mason@broadcom.com>
Date2017-03-06 17:30 +0100
Subject[PATCH v3 0/2] ARM: dts: BCM5301X: TWD WD and i2c Support
Message-ID<ti3Gh-2jy-3@gated-at.bofh.it>
Changes in v3:
* Dropped the "Correct GIC_PPI interrupt flags" patch from the series,
  as it was already accepted
* Disabled the i2c bus by default, to follow current convention (per
  Florian)

Changes in v2:
* Rafal discovered an issue with the GIC_PPI flags being incorrect.
  Since there was a dependency on that DT entry in this series, I added
  a patch to correct the issue and reworked the TWD patch with the
  changes.


These seemed to have been lost sometime last year.  See
https://lkml.org/lkml/2016/5/11/953

I am dropping the syscon reboot from the series, as I believe that was
the sticking point, and resending the TWD and i2c patches.


Jon Mason (2):
  ARM: dts: bcm5301x: Add TWD WD Support to DT
  ARM: dts: bcm5301x: Add I2C support to the DT

 arch/arm/boot/dts/bcm5301x.dtsi | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

-- 
2.7.4

[toc] | [next] | [standalone]


#1593509 — [PATCH v3 1/2] ARM: dts: bcm5301x: Add TWD WD Support to DT

FromJon Mason <jon.mason@broadcom.com>
Date2017-03-06 17:30 +0100
Subject[PATCH v3 1/2] ARM: dts: bcm5301x: Add TWD WD Support to DT
Message-ID<ti3Gh-2jy-1@gated-at.bofh.it>
In reply to#1593508
From: Jon Mason <jonmason@broadcom.com>

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 1e5a97b..a9aa7be 100644
--- a/arch/arm/boot/dts/bcm5301x.dtsi
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
@@ -70,10 +70,19 @@
 			clocks = <&periph_clk>;
 		};
 
-		local-timer@20600 {
+		timer@20600 {
 			compatible = "arm,cortex-a9-twd-timer";
-			reg = <0x20600 0x100>;
-			interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
+			reg = <0x20600 0x20>;
+			interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
+						  IRQ_TYPE_EDGE_RISING)>;
+			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_EDGE_RISING)>;
 			clocks = <&periph_clk>;
 		};
 
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1593513 — [PATCH v3 2/2] ARM: dts: bcm5301x: Add I2C support to the DT

FromJon Mason <jon.mason@broadcom.com>
Date2017-03-06 17:30 +0100
Subject[PATCH v3 2/2] ARM: dts: bcm5301x: Add I2C support to the DT
Message-ID<ti3Gi-2jy-19@gated-at.bofh.it>
In reply to#1593508
From: Jon Mason <jonmason@broadcom.com>

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@broadcom.com>
---
 arch/arm/boot/dts/bcm5301x.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
index a9aa7be..89b3c7f5 100644
--- a/arch/arm/boot/dts/bcm5301x.dtsi
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
@@ -324,6 +324,16 @@
 		};
 	};
 
+	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>;
+		status = "disabled";
+	};
+
 	lcpll0: lcpll0@1800c100 {
 		#clock-cells = <1>;
 		compatible = "brcm,nsp-lcpll0";
-- 
2.7.4

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web