* [PATCH 1/3] ARM: bcm2835: dt: Raspberry Pi Model B had no I2S
@ 2015-10-11 19:37 Lubomir Rintel
[not found] ` <1444592237-12433-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Lubomir Rintel @ 2015-10-11 19:37 UTC (permalink / raw)
To: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA
It's the Model B rev2 that had it. Remove it.
Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
---
arch/arm/boot/dts/bcm2835-rpi-b.dts | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts
index ee89b79..ff6b2d1 100644
--- a/arch/arm/boot/dts/bcm2835-rpi-b.dts
+++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts
@@ -13,11 +13,5 @@
};
&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>;
- };
+ pinctrl-0 = <&gpioout &alt0 &alt3>;
};
--
2.4.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] ARM: bcm2835: dt: Add Raspberry Pi Model B rev2
[not found] ` <1444592237-12433-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
@ 2015-10-11 19:37 ` Lubomir Rintel
2015-10-11 19:37 ` [PATCH 3/3] ARM: bcm2835: dt: Add Raspberry Pi Model A+ Lubomir Rintel
2015-10-15 0:24 ` [PATCH 1/3] ARM: bcm2835: dt: Raspberry Pi Model B had no I2S Eric Anholt
2 siblings, 0 replies; 5+ messages in thread
From: Lubomir Rintel @ 2015-10-11 19:37 UTC (permalink / raw)
To: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA
This one has an extra P5 header (unpopulated) with I2S.
Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
---
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 233159d..23d6493 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -58,6 +58,7 @@ dtb-$(CONFIG_ARCH_AXXIA) += \
axm5516-amarillo.dtb
dtb-$(CONFIG_ARCH_BCM2835) += \
bcm2835-rpi-b.dtb \
+ bcm2835-rpi-b-rev2.dtb \
bcm2835-rpi-b-plus.dtb
dtb-$(CONFIG_ARCH_BCM_5301X) += \
bcm4708-asus-rt-ac56u.dtb \
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
new file mode 100644
index 0000000..eab8b591
--- /dev/null
+++ b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
@@ -0,0 +1,23 @@
+/dts-v1/;
+#include "bcm2835-rpi.dtsi"
+
+/ {
+ compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835";
+ model = "Raspberry Pi Model B rev2";
+
+ 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>;
+ };
+};
--
2.4.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] ARM: bcm2835: dt: Add Raspberry Pi Model A+
[not found] ` <1444592237-12433-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
2015-10-11 19:37 ` [PATCH 2/3] ARM: bcm2835: dt: Add Raspberry Pi Model B rev2 Lubomir Rintel
@ 2015-10-11 19:37 ` Lubomir Rintel
[not found] ` <1444592237-12433-3-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
2015-10-15 0:24 ` [PATCH 1/3] ARM: bcm2835: dt: Raspberry Pi Model B had no I2S Eric Anholt
2 siblings, 1 reply; 5+ messages in thread
From: Lubomir Rintel @ 2015-10-11 19:37 UTC (permalink / raw)
To: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA
Essentially the same as B+.
Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
---
arch/arm/boot/dts/Makefile | 3 ++-
arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 30 ++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 23d6493..aaaf299 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -59,7 +59,8 @@ dtb-$(CONFIG_ARCH_AXXIA) += \
dtb-$(CONFIG_ARCH_BCM2835) += \
bcm2835-rpi-b.dtb \
bcm2835-rpi-b-rev2.dtb \
- bcm2835-rpi-b-plus.dtb
+ bcm2835-rpi-b-plus.dtb \
+ bcm2835-rpi-a-plus.dtb
dtb-$(CONFIG_ARCH_BCM_5301X) += \
bcm4708-asus-rt-ac56u.dtb \
bcm4708-asus-rt-ac68u.dtb \
diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
new file mode 100644
index 0000000..b2bff43
--- /dev/null
+++ b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
@@ -0,0 +1,30 @@
+/dts-v1/;
+#include "bcm2835-rpi.dtsi"
+
+/ {
+ compatible = "raspberrypi,model-a-plus", "brcm,bcm2835";
+ model = "Raspberry Pi Model A+";
+
+ leds {
+ act {
+ gpios = <&gpio 47 0>;
+ };
+
+ pwr {
+ label = "PWR";
+ gpios = <&gpio 35 0>;
+ default-state = "keep";
+ linux,default-trigger = "default-on";
+ };
+ };
+};
+
+&gpio {
+ pinctrl-0 = <&gpioout &alt0 &i2s_alt0 &alt3>;
+
+ /* I2S interface */
+ i2s_alt0: i2s_alt0 {
+ brcm,pins = <18 19 20 21>;
+ brcm,function = <BCM2835_FSEL_ALT0>;
+ };
+};
--
2.4.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] ARM: bcm2835: dt: Raspberry Pi Model B had no I2S
[not found] ` <1444592237-12433-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
2015-10-11 19:37 ` [PATCH 2/3] ARM: bcm2835: dt: Add Raspberry Pi Model B rev2 Lubomir Rintel
2015-10-11 19:37 ` [PATCH 3/3] ARM: bcm2835: dt: Add Raspberry Pi Model A+ Lubomir Rintel
@ 2015-10-15 0:24 ` Eric Anholt
2 siblings, 0 replies; 5+ messages in thread
From: Eric Anholt @ 2015-10-15 0:24 UTC (permalink / raw)
To: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: Lee Jones, Stephen Warren, devicetree-u79uwXL29TY76Z2rM5mHXA,
Lubomir Rintel
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org> writes:
> It's the Model B rev2 that had it. Remove it.
>
> Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
I've looked through photos of all the boards and these looked correct,
and Phil Elwell at the foundation has also taken a look at your changes
and also thinks they're correct.
Pulled to bcm2835-dt-next.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] ARM: bcm2835: dt: Add Raspberry Pi Model A+
[not found] ` <1444592237-12433-3-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
@ 2015-10-21 2:20 ` Stephen Warren
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2015-10-21 2:20 UTC (permalink / raw)
To: Lubomir Rintel
Cc: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Eric Anholt,
Lee Jones, devicetree-u79uwXL29TY76Z2rM5mHXA
On 10/11/2015 01:37 PM, Lubomir Rintel wrote:
> Essentially the same as B+.
(It'd be good practice to CC RPi patches to the ARM kernel mailing list too)
> diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
> + leds {
> + act {
> + gpios = <&gpio 47 0>;
> + };
> +
> + pwr {
> + label = "PWR";
> + gpios = <&gpio 35 0>;
> + default-state = "keep";
> + linux,default-trigger = "default-on";
> + };
> + };
Since the A+ and B+ are so similar, I wonder if it makes sense to
sometime create a shared "plus" .dtsi file for the shared parts?
Same for the I2S below.
Perhaps the DTs are so simple that it's a waste of complexity to do that
though.
Out of curiosity, are you planning on creating DT files for all the
possible options:
"bcm2835-rpi-a.dtb",
"bcm2835-rpi-a-plus.dtb",
"bcm2835-rpi-b.dtb",
"bcm2835-rpi-b-i2c0.dtb",
"bcm2835-rpi-b-plus.dtb",
"bcm2835-rpi-b-rev2.dtb",
"bcm2835-rpi-cm.dtb",
"bcm2836-rpi-2-b.dtb",
(list taken from U-Boot's board/raspberrypi/rpi/rpi.c)
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-21 2:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-11 19:37 [PATCH 1/3] ARM: bcm2835: dt: Raspberry Pi Model B had no I2S Lubomir Rintel
[not found] ` <1444592237-12433-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
2015-10-11 19:37 ` [PATCH 2/3] ARM: bcm2835: dt: Add Raspberry Pi Model B rev2 Lubomir Rintel
2015-10-11 19:37 ` [PATCH 3/3] ARM: bcm2835: dt: Add Raspberry Pi Model A+ Lubomir Rintel
[not found] ` <1444592237-12433-3-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
2015-10-21 2:20 ` Stephen Warren
2015-10-15 0:24 ` [PATCH 1/3] ARM: bcm2835: dt: Raspberry Pi Model B had no I2S Eric Anholt
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).