linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] BCM2835: Add I2S driver to device tree
@ 2014-07-09  8:50 Mark Brown
  2014-09-17  1:53 ` Stephen Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2014-07-09  8:50 UTC (permalink / raw)
  To: linux-arm-kernel

From: Mark Brown <broonie@linaro.org>

[Tweaked slightly to disable by default -- broonie]

Signed-off-by: Florian Meier <florian.meier@koalo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
---
 arch/arm/boot/dts/bcm2835-rpi-b.dts |  8 +++++++-
 arch/arm/boot/dts/bcm2835.dtsi      | 11 +++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts
index 2a3b1c1..58a0d60 100644
--- a/arch/arm/boot/dts/bcm2835-rpi-b.dts
+++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts
@@ -23,7 +23,7 @@
 
 &gpio {
 	pinctrl-names = "default";
-	pinctrl-0 = <&gpioout &alt0 &alt3>;
+	pinctrl-0 = <&gpioout &alt0 &alt2 &alt3>;
 
 	gpioout: gpioout {
 		brcm,pins = <6>;
@@ -39,6 +39,12 @@
 		brcm,pins = <48 49 50 51 52 53>;
 		brcm,function = <7>; /* alt3 */
 	};
+
+	/* I2S interface */
+	alt2: alt2 {
+		brcm,pins = <28 29 30 31>;
+		brcm,function = <6>; /* alt2 */
+	};
 };
 
 &i2c0 {
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index b8473c4..a0aff1f 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -99,6 +99,7 @@
 			dmas = <&dma 2>,
 			       <&dma 3>;
 			dma-names = "tx", "rx";
+			status = "disabled";
 		};
 
 		spi: spi at 7e204000 {
@@ -148,6 +149,16 @@
 		arm-pmu {
 			compatible = "arm,arm1176-pmu";
 		};
+
+		bcm2835_i2s: i2s at 7e203000 {
+			compatible = "brcm,bcm2835-i2s";
+			reg = <0x7e203000 0x20>,
+			      <0x7e101098 0x02>;
+
+			dmas = <&dma 2>,
+			       <&dma 3>;
+			dma-names = "tx", "rx";
+		};
 	};
 
 	clocks {
-- 
2.0.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] BCM2835: Add I2S driver to device tree
  2014-07-09  8:50 [PATCH] BCM2835: Add I2S driver to device tree Mark Brown
@ 2014-09-17  1:53 ` Stephen Warren
  2014-09-17 16:44   ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2014-09-17  1:53 UTC (permalink / raw)
  To: linux-arm-kernel

On 07/09/2014 02:50 AM, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
> 
> [Tweaked slightly to disable by default -- broonie]
> 
> Signed-off-by: Florian Meier <florian.meier@koalo.de>
> Signed-off-by: Mark Brown <broonie@linaro.org>

I've belatedly forwarded this to arm-soc for application, except:

> diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi

> +		bcm2835_i2s: i2s at 7e203000 {
> +			compatible = "brcm,bcm2835-i2s";
> +			reg = <0x7e203000 0x20>,
> +			      <0x7e101098 0x02>;
> +
> +			dmas = <&dma 2>,
> +			       <&dma 3>;
> +			dma-names = "tx", "rx";
> +		};

This node is already there (and even edited in this patch), so I dropped
that hunk.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] BCM2835: Add I2S driver to device tree
  2014-09-17  1:53 ` Stephen Warren
@ 2014-09-17 16:44   ` Mark Brown
  2014-09-17 17:23     ` Stephen Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2014-09-17 16:44 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Sep 16, 2014 at 07:53:09PM -0600, Stephen Warren wrote:
> On 07/09/2014 02:50 AM, Mark Brown wrote:
> > From: Mark Brown <broonie@linaro.org>

> > +		bcm2835_i2s: i2s at 7e203000 {
> > +			compatible = "brcm,bcm2835-i2s";
> > +			reg = <0x7e203000 0x20>,
> > +			      <0x7e101098 0x02>;
> > +
> > +			dmas = <&dma 2>,
> > +			       <&dma 3>;
> > +			dma-names = "tx", "rx";
> > +		};

> This node is already there (and even edited in this patch), so I dropped
> that hunk.

Right, not sure what went on with applying it upstream originally but it
looks like git rebase didn't figure out what was going on well - the
bcm2835_i2s is needed so we can reference the node.  I'll probably get
round to resending an incremental patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140917/f718a915/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] BCM2835: Add I2S driver to device tree
  2014-09-17 16:44   ` Mark Brown
@ 2014-09-17 17:23     ` Stephen Warren
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2014-09-17 17:23 UTC (permalink / raw)
  To: linux-arm-kernel

On 09/17/2014 10:44 AM, Mark Brown wrote:
> On Tue, Sep 16, 2014 at 07:53:09PM -0600, Stephen Warren wrote:
>> On 07/09/2014 02:50 AM, Mark Brown wrote:
>>> From: Mark Brown <broonie@linaro.org>
>
>>> +		bcm2835_i2s: i2s at 7e203000 {
>>> +			compatible = "brcm,bcm2835-i2s";
>>> +			reg = <0x7e203000 0x20>,
>>> +			      <0x7e101098 0x02>;
>>> +
>>> +			dmas = <&dma 2>,
>>> +			       <&dma 3>;
>>> +			dma-names = "tx", "rx";
>>> +		};
>
>> This node is already there (and even edited in this patch), so I dropped
>> that hunk.
>
> Right, not sure what went on with applying it upstream originally but it
> looks like git rebase didn't figure out what was going on well - the
> bcm2835_i2s is needed so we can reference the node.  I'll probably get
> round to resending an incremental patch.

Oh right, I guess I did drop the addition of that label when I dropped 
that node.

The board DT could doesn't necessarily require a label though; it could 
just repeat the node name:

/ {
     i2s at 7e203000 {
         ... extra properties

Still, it looks like we typically use labels to reference nodes in 
bcm2835-*.dts, so adding the label would indeed be a good idea.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-17 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-09  8:50 [PATCH] BCM2835: Add I2S driver to device tree Mark Brown
2014-09-17  1:53 ` Stephen Warren
2014-09-17 16:44   ` Mark Brown
2014-09-17 17:23     ` Stephen Warren

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).