aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Warren <swarren@wwwdotorg.org>2013-02-19 23:39:58 -0500
committerStephen Warren <swarren@wwwdotorg.org>2013-03-11 23:38:58 -0400
commit6ce5f02ef7edd33ebdac27953b52c489a6005e6d (patch)
tree2c7b6b244a5ef0fd21001ae529c295ee292a3bd7
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff)
ARM: bcm2835: add SPI device to DT
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>
-rw-r--r--arch/arm/boot/dts/bcm2835.dtsi17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index 4bf2a8774aa7..3eb60f7aa1fe 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -64,6 +64,16 @@
64 #interrupt-cells = <2>; 64 #interrupt-cells = <2>;
65 }; 65 };
66 66
67 spi: spi@20204000 {
68 compatible = "brcm,bcm2835-spi";
69 reg = <0x7e204000 0x1000>;
70 interrupts = <2 22>;
71 clocks = <&clk_spi>;
72 #address-cells = <1>;
73 #size-cells = <0>;
74 status = "disabled";
75 };
76
67 i2c0: i2c@20205000 { 77 i2c0: i2c@20205000 {
68 compatible = "brcm,bcm2835-i2c"; 78 compatible = "brcm,bcm2835-i2c";
69 reg = <0x7e205000 0x1000>; 79 reg = <0x7e205000 0x1000>;
@@ -107,5 +117,12 @@
107 #clock-cells = <0>; 117 #clock-cells = <0>;
108 clock-frequency = <150000000>; 118 clock-frequency = <150000000>;
109 }; 119 };
120
121 clk_spi: spi {
122 compatible = "fixed-clock";
123 reg = <2>;
124 #clock-cells = <0>;
125 clock-frequency = <250000000>;
126 };
110 }; 127 };
111}; 128};