]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: bcm2835: dt: Add Raspberry Pi Model A
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 25 Jan 2016 20:40:06 +0000 (21:40 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 3 Feb 2016 02:01:26 +0000 (18:01 -0800)
This one is essentially the same as revision 2 B board (with the I2S on
P5 header).

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
[anholt: Rebased on bcm2835.dtsi -> bcm283x.dtsi change]
Signed-off-by: Eric Anholt <eric@anholt.net>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/bcm2835-rpi-a.dts [new file with mode: 0644]

index a4a6d70e8b26ceaf2d9dc7b3af37e4e4bb32eba1..d00081447c32426514beeb71371d0ef28a6748d8 100644 (file)
@@ -60,6 +60,7 @@ dtb-$(CONFIG_ARCH_AXXIA) += \
        axm5516-amarillo.dtb
 dtb-$(CONFIG_ARCH_BCM2835) += \
        bcm2835-rpi-b.dtb \
+       bcm2835-rpi-a.dtb \
        bcm2835-rpi-b-rev2.dtb \
        bcm2835-rpi-b-plus.dtb \
        bcm2835-rpi-a-plus.dtb \
diff --git a/arch/arm/boot/dts/bcm2835-rpi-a.dts b/arch/arm/boot/dts/bcm2835-rpi-a.dts
new file mode 100644 (file)
index 0000000..ddbbbbd
--- /dev/null
@@ -0,0 +1,24 @@
+/dts-v1/;
+#include "bcm2835.dtsi"
+#include "bcm2835-rpi.dtsi"
+
+/ {
+       compatible = "raspberrypi,model-a", "brcm,bcm2835";
+       model = "Raspberry Pi Model A";
+
+       leds {
+               act {
+                       gpios = <&gpio 16 1>;
+               };
+       };
+};
+
+&gpio {
+       pinctrl-0 = <&gpioout &alt0 &i2s_alt2 &alt3>;
+
+       /* I2S interface */
+       i2s_alt2: i2s_alt2 {
+               brcm,pins = <28 29 30 31>;
+               brcm,function = <BCM2835_FSEL_ALT2>;
+       };
+};