devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero
@ 2016-02-04  7:39 Lubomir Rintel
       [not found] ` <1454571546-25481-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Lubomir Rintel @ 2016-02-04  7:39 UTC (permalink / raw)
  To: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, Eric Anholt, Stephen Warren,
	Lubomir Rintel

Notable difference from the other Raspberry Pi boards is the lack of PWR LED.

Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
---
 arch/arm/boot/dts/Makefile             |  3 ++-
 arch/arm/boot/dts/bcm2835-rpi-zero.dts | 24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/bcm2835-rpi-zero.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index d000814..5d38b88 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -64,7 +64,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
 	bcm2835-rpi-b-rev2.dtb \
 	bcm2835-rpi-b-plus.dtb \
 	bcm2835-rpi-a-plus.dtb \
-	bcm2836-rpi-2-b.dtb
+	bcm2836-rpi-2-b.dtb \
+	bcm2835-rpi-zero.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-zero.dts b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
new file mode 100644
index 0000000..f9afc1a
--- /dev/null
+++ b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
@@ -0,0 +1,24 @@
+/dts-v1/;
+#include "bcm2835.dtsi"
+#include "bcm2835-rpi.dtsi"
+
+/ {
+	compatible = "raspberrypi,model-zero", "brcm,bcm2835";
+	model = "Raspberry Pi Zero";
+
+	leds {
+		act {
+			gpios = <&gpio 47 0>;
+		};
+	};
+};
+
+&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.5.0

--
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 related	[flat|nested] 8+ messages in thread

* Re: [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero
       [not found] ` <1454571546-25481-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
@ 2016-02-04  8:49   ` Noralf Trønnes
  2016-02-07 10:33   ` Stefan Wahren
  2016-07-19 18:30   ` Stefan Wahren
  2 siblings, 0 replies; 8+ messages in thread
From: Noralf Trønnes @ 2016-02-04  8:49 UTC (permalink / raw)
  To: Lubomir Rintel, linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA


Den 04.02.2016 08:39, skrev Lubomir Rintel:
> Notable difference from the other Raspberry Pi boards is the lack of PWR LED.

Another difference is that the ACT led is inverted.
Downstream decided to keep it [1] like that making it double as a power
indicator and an inverted disk indicator.

Noralf.

[1] https://github.com/raspberrypi/linux/pull/1239

> Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
> ---
>   arch/arm/boot/dts/Makefile             |  3 ++-
>   arch/arm/boot/dts/bcm2835-rpi-zero.dts | 24 ++++++++++++++++++++++++
>   2 files changed, 26 insertions(+), 1 deletion(-)
>   create mode 100644 arch/arm/boot/dts/bcm2835-rpi-zero.dts
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index d000814..5d38b88 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -64,7 +64,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
>   	bcm2835-rpi-b-rev2.dtb \
>   	bcm2835-rpi-b-plus.dtb \
>   	bcm2835-rpi-a-plus.dtb \
> -	bcm2836-rpi-2-b.dtb
> +	bcm2836-rpi-2-b.dtb \
> +	bcm2835-rpi-zero.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-zero.dts b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
> new file mode 100644
> index 0000000..f9afc1a
> --- /dev/null
> +++ b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
> @@ -0,0 +1,24 @@
> +/dts-v1/;
> +#include "bcm2835.dtsi"
> +#include "bcm2835-rpi.dtsi"
> +
> +/ {
> +	compatible = "raspberrypi,model-zero", "brcm,bcm2835";
> +	model = "Raspberry Pi Zero";
> +
> +	leds {
> +		act {
> +			gpios = <&gpio 47 0>;
> +		};
> +	};
> +};
> +
> +&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>;
> +	};
> +};

--
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] 8+ messages in thread

* Re: [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero
       [not found] ` <1454571546-25481-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
  2016-02-04  8:49   ` Noralf Trønnes
@ 2016-02-07 10:33   ` Stefan Wahren
       [not found]     ` <841429508.164723.e944b9b3-11a0-4dc4-8c6d-62cb30e79b12.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
  2016-07-19 18:30   ` Stefan Wahren
  2 siblings, 1 reply; 8+ messages in thread
From: Stefan Wahren @ 2016-02-07 10:33 UTC (permalink / raw)
  To: Lubomir Rintel
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

Hi Lubomir,

> Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org> hat am 4. Februar 2016 um 08:39 geschrieben:
>
>
> Notable difference from the other Raspberry Pi boards is the lack of PWR LED.
>
> Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
> ---
> arch/arm/boot/dts/Makefile | 3 ++-
> arch/arm/boot/dts/bcm2835-rpi-zero.dts | 24 ++++++++++++++++++++++++
> 2 files changed, 26 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm/boot/dts/bcm2835-rpi-zero.dts
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index d000814..5d38b88 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -64,7 +64,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
> bcm2835-rpi-b-rev2.dtb \
> bcm2835-rpi-b-plus.dtb \
> bcm2835-rpi-a-plus.dtb \
> - bcm2836-rpi-2-b.dtb
> + bcm2836-rpi-2-b.dtb \
> + bcm2835-rpi-zero.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-zero.dts
> b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
> new file mode 100644
> index 0000000..f9afc1a
> --- /dev/null
> +++ b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
> @@ -0,0 +1,24 @@
> +/dts-v1/;
> +#include "bcm2835.dtsi"
> +#include "bcm2835-rpi.dtsi"
> +
> +/ {
> + compatible = "raspberrypi,model-zero", "brcm,bcm2835";

please add this to

Documentation/devicetree/bindings/arm/bcm/brcm,bcm2835.txt

Thanks
Stefan
--
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] 8+ messages in thread

* Re: [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero
       [not found]     ` <841429508.164723.e944b9b3-11a0-4dc4-8c6d-62cb30e79b12.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
@ 2016-02-18  3:02       ` Eric Anholt
  0 siblings, 0 replies; 8+ messages in thread
From: Eric Anholt @ 2016-02-18  3:02 UTC (permalink / raw)
  To: Stefan Wahren, Lubomir Rintel
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]

Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> writes:

> Hi Lubomir,
>
>> Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org> hat am 4. Februar 2016 um 08:39 geschrieben:
>>
>>
>> Notable difference from the other Raspberry Pi boards is the lack of PWR LED.
>>
>> Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
>> ---
>> arch/arm/boot/dts/Makefile | 3 ++-
>> arch/arm/boot/dts/bcm2835-rpi-zero.dts | 24 ++++++++++++++++++++++++
>> 2 files changed, 26 insertions(+), 1 deletion(-)
>> create mode 100644 arch/arm/boot/dts/bcm2835-rpi-zero.dts
>>
>> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
>> index d000814..5d38b88 100644
>> --- a/arch/arm/boot/dts/Makefile
>> +++ b/arch/arm/boot/dts/Makefile
>> @@ -64,7 +64,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
>> bcm2835-rpi-b-rev2.dtb \
>> bcm2835-rpi-b-plus.dtb \
>> bcm2835-rpi-a-plus.dtb \
>> - bcm2836-rpi-2-b.dtb
>> + bcm2836-rpi-2-b.dtb \
>> + bcm2835-rpi-zero.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-zero.dts
>> b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
>> new file mode 100644
>> index 0000000..f9afc1a
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
>> @@ -0,0 +1,24 @@
>> +/dts-v1/;
>> +#include "bcm2835.dtsi"
>> +#include "bcm2835-rpi.dtsi"
>> +
>> +/ {
>> + compatible = "raspberrypi,model-zero", "brcm,bcm2835";
>
> please add this to
>
> Documentation/devicetree/bindings/arm/bcm/brcm,bcm2835.txt

If we can get this little bit fixed, I'd be happy to pull the patch.
The discussion of the LED behavior seemed like this was a reasonable way
to go.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero
       [not found] ` <1454571546-25481-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
  2016-02-04  8:49   ` Noralf Trønnes
  2016-02-07 10:33   ` Stefan Wahren
@ 2016-07-19 18:30   ` Stefan Wahren
       [not found]     ` <27632472.326220.2e5ba31c-16b8-46a6-a38b-8aa5236ec996.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
  2 siblings, 1 reply; 8+ messages in thread
From: Stefan Wahren @ 2016-07-19 18:30 UTC (permalink / raw)
  To: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Lubomir Rintel
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, noralf-L59+Z2yzLopAfugRpC6u6w

Hi Lubomir,

> Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org> hat am 4. Februar 2016 um 08:39 geschrieben:
> 
> 
> Notable difference from the other Raspberry Pi boards is the lack of PWR LED.
> 
> Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>

do you have any plans to submit a V2 of this patch or should i take over?

Best regards
Stefan

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

* Re: [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero
       [not found]     ` <27632472.326220.2e5ba31c-16b8-46a6-a38b-8aa5236ec996.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
@ 2016-07-20 19:36       ` Eric Anholt
       [not found]         ` <878tww6r0v.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Anholt @ 2016-07-20 19:36 UTC (permalink / raw)
  To: Stefan Wahren, linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Lubomir Rintel
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, noralf-L59+Z2yzLopAfugRpC6u6w

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> writes:

> Hi Lubomir,
>
>> Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org> hat am 4. Februar 2016 um 08:39 geschrieben:
>> 
>> 
>> Notable difference from the other Raspberry Pi boards is the lack of PWR LED.
>> 
>> Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
>
> do you have any plans to submit a V2 of this patch or should i take over?

It's been a while, so I'd love if you picked it up and resubmitted with
the LED changes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero
       [not found]         ` <878tww6r0v.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
@ 2016-07-20 21:12           ` Stefan Wahren
       [not found]             ` <182687649.301236.37df541a-c292-4f81-b3d7-fcea47416b49.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Wahren @ 2016-07-20 21:12 UTC (permalink / raw)
  To: Eric Anholt, linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Lubomir Rintel
  Cc: noralf-L59+Z2yzLopAfugRpC6u6w, devicetree-u79uwXL29TY76Z2rM5mHXA

Hi Eric,

> Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org> hat am 20. Juli 2016 um 21:36 geschrieben:
> 
> 
> Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> writes:
> 
> > Hi Lubomir,
> >
> >> Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org> hat am 4. Februar 2016 um 08:39
> >> geschrieben:
> >> 
> >> 
> >> Notable difference from the other Raspberry Pi boards is the lack of PWR
> >> LED.
> >> 
> >> Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
> >
> > do you have any plans to submit a V2 of this patch or should i take over?
> 
> It's been a while, so I'd love if you picked it up and resubmitted with
> the LED changes.

i also want to take care of those dwc2 warnings, which might need some
additional DT settings:

dwc2 20980000.usb: 256 invalid for host_nperio_tx_fifo_size. Check HW
configuration.
dwc2 20980000.usb: 512 invalid for host_perio_tx_fifo_size. Check HW
configuration.
dwc2 20980000.usb: Specified GNPTXFDEP=1024 > 32

What LED change do you expect?

Lubomir's suggestion is HIGH_ACTIVE which is more userfriendly because of the
missing PWR LED.
Changing to LOW_ACTIVE would be more stringent according to all the other RPis.

Btw the DTS for the RPi Zero has been dropped in downstream.

Regards
Stefan
--
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] 8+ messages in thread

* Re: [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero
       [not found]             ` <182687649.301236.37df541a-c292-4f81-b3d7-fcea47416b49.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
@ 2016-07-20 21:30               ` Eric Anholt
  0 siblings, 0 replies; 8+ messages in thread
From: Eric Anholt @ 2016-07-20 21:30 UTC (permalink / raw)
  To: Stefan Wahren, linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Lubomir Rintel
  Cc: noralf-L59+Z2yzLopAfugRpC6u6w, devicetree-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> writes:

> Hi Eric,
>
>> Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org> hat am 20. Juli 2016 um 21:36 geschrieben:
>> 
>> 
>> Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> writes:
>> 
>> > Hi Lubomir,
>> >
>> >> Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org> hat am 4. Februar 2016 um 08:39
>> >> geschrieben:
>> >> 
>> >> 
>> >> Notable difference from the other Raspberry Pi boards is the lack of PWR
>> >> LED.
>> >> 
>> >> Signed-off-by: Lubomir Rintel <lkundrak-NGH9Lh4a5iE@public.gmane.org>
>> >
>> > do you have any plans to submit a V2 of this patch or should i take over?
>> 
>> It's been a while, so I'd love if you picked it up and resubmitted with
>> the LED changes.
>
> i also want to take care of those dwc2 warnings, which might need some
> additional DT settings:
>
> dwc2 20980000.usb: 256 invalid for host_nperio_tx_fifo_size. Check HW
> configuration.
> dwc2 20980000.usb: 512 invalid for host_perio_tx_fifo_size. Check HW
> configuration.
> dwc2 20980000.usb: Specified GNPTXFDEP=1024 > 32
>
> What LED change do you expect?

Sorry, misremembering the thread. I think it was just the bindings
documentation change that was needed.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

end of thread, other threads:[~2016-07-20 21:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04  7:39 [PATCH] ARM: bcm2835: dt: Add Raspberry Pi Zero Lubomir Rintel
     [not found] ` <1454571546-25481-1-git-send-email-lkundrak-NGH9Lh4a5iE@public.gmane.org>
2016-02-04  8:49   ` Noralf Trønnes
2016-02-07 10:33   ` Stefan Wahren
     [not found]     ` <841429508.164723.e944b9b3-11a0-4dc4-8c6d-62cb30e79b12.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2016-02-18  3:02       ` Eric Anholt
2016-07-19 18:30   ` Stefan Wahren
     [not found]     ` <27632472.326220.2e5ba31c-16b8-46a6-a38b-8aa5236ec996.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2016-07-20 19:36       ` Eric Anholt
     [not found]         ` <878tww6r0v.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2016-07-20 21:12           ` Stefan Wahren
     [not found]             ` <182687649.301236.37df541a-c292-4f81-b3d7-fcea47416b49.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2016-07-20 21:30               ` 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).