* [PATCH 1/2] ARM: bcm2835: add SPI device to DT
@ 2013-03-06 2:50 Stephen Warren
2013-03-06 2:50 ` [PATCH 2/2] ARM: bcm2835: defconfig update Stephen Warren
2013-03-12 3:47 ` [PATCH 1/2] ARM: bcm2835: add SPI device to DT Stephen Warren
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Warren @ 2013-03-06 2:50 UTC (permalink / raw)
To: linux-arm-kernel
The BCM2835 has a single instance of the "SPI0"-type SPI master
controller. Instantiate it in the SoC .dtsi file, Don't enable it in
the Raspberry Pi board .dts file, since we have no idea what is actually
connected, and hence no idea what to set the bus clock rate to.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
---
arch/arm/boot/dts/bcm2835.dtsi | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index 7e0481e..1b88cea 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -64,6 +64,16 @@
#interrupt-cells = <2>;
};
+ spi: spi at 20204000 {
+ compatible = "brcm,bcm2835-spi";
+ reg = <0x7e204000 0x1000>;
+ interrupts = <2 22>;
+ clocks = <&clk_spi>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
i2c0: i2c at 20205000 {
compatible = "brcm,bcm2835-i2c";
reg = <0x7e205000 0x1000>;
@@ -107,5 +117,12 @@
#clock-cells = <0>;
clock-frequency = <250000000>;
};
+
+ clk_spi: spi {
+ compatible = "fixed-clock";
+ reg = <2>;
+ #clock-cells = <0>;
+ clock-frequency = <250000000>;
+ };
};
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: bcm2835: defconfig update
2013-03-06 2:50 [PATCH 1/2] ARM: bcm2835: add SPI device to DT Stephen Warren
@ 2013-03-06 2:50 ` Stephen Warren
2013-03-12 3:47 ` Stephen Warren
2013-03-12 3:47 ` [PATCH 1/2] ARM: bcm2835: add SPI device to DT Stephen Warren
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2013-03-06 2:50 UTC (permalink / raw)
To: linux-arm-kernel
Enable the new SPI controller driver.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
---
arch/arm/configs/bcm2835_defconfig | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig
index af472e4..297921d 100644
--- a/arch/arm/configs/bcm2835_defconfig
+++ b/arch/arm/configs/bcm2835_defconfig
@@ -63,6 +63,8 @@ CONFIG_TTY_PRINTK=y
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_BCM2835=y
+CONFIG_SPI=y
+CONFIG_SPI_BCM2835=y
CONFIG_GPIO_SYSFS=y
# CONFIG_HWMON is not set
# CONFIG_USB_SUPPORT is not set
@@ -108,9 +110,5 @@ CONFIG_TEST_KSTRTOX=y
CONFIG_STRICT_DEVMEM=y
CONFIG_DEBUG_LL=y
CONFIG_EARLY_PRINTK=y
-# CONFIG_XZ_DEC_X86 is not set
-# CONFIG_XZ_DEC_POWERPC is not set
-# CONFIG_XZ_DEC_IA64 is not set
# CONFIG_XZ_DEC_ARM is not set
# CONFIG_XZ_DEC_ARMTHUMB is not set
-# CONFIG_XZ_DEC_SPARC is not set
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: bcm2835: defconfig update
2013-03-06 2:50 ` [PATCH 2/2] ARM: bcm2835: defconfig update Stephen Warren
@ 2013-03-12 3:47 ` Stephen Warren
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2013-03-12 3:47 UTC (permalink / raw)
To: linux-arm-kernel
On 03/05/2013 07:50 PM, Stephen Warren wrote:
> Enable the new SPI controller driver.
I have applied this to bcm2835's for-3.10/defconfig branch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: bcm2835: add SPI device to DT
2013-03-06 2:50 [PATCH 1/2] ARM: bcm2835: add SPI device to DT Stephen Warren
2013-03-06 2:50 ` [PATCH 2/2] ARM: bcm2835: defconfig update Stephen Warren
@ 2013-03-12 3:47 ` Stephen Warren
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2013-03-12 3:47 UTC (permalink / raw)
To: linux-arm-kernel
On 03/05/2013 07:50 PM, Stephen Warren wrote:
> The BCM2835 has a single instance of the "SPI0"-type SPI master
> controller. Instantiate it in the SoC .dtsi file, Don't enable it in
> the Raspberry Pi board .dts file, since we have no idea what is actually
> connected, and hence no idea what to set the bus clock rate to.
I have applied this to bcm2835's for-3.10/dt branch.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-12 3:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-06 2:50 [PATCH 1/2] ARM: bcm2835: add SPI device to DT Stephen Warren
2013-03-06 2:50 ` [PATCH 2/2] ARM: bcm2835: defconfig update Stephen Warren
2013-03-12 3:47 ` Stephen Warren
2013-03-12 3:47 ` [PATCH 1/2] ARM: bcm2835: add SPI device to DT 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).