From: lee@kernel.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: bcm2835: Add the necessary firmware driver information to the DT
Date: Tue, 28 Apr 2015 10:33:37 +0100 [thread overview]
Message-ID: <20150428093337.GJ11956@x1> (raw)
In-Reply-To: <1430176449-12322-4-git-send-email-eric@anholt.net>
On Mon, 27 Apr 2015, Eric Anholt wrote:
> This gets the USB power domain turned on so that DWC2 can probe, even
> if the bootloader didn't turn it on for us (which is the case if you
> use the RPi firmware without chainloading U-Boot).
>
> Signed-off-by: Eric Anholt <eric@anholt.net>
> ---
> arch/arm/boot/dts/bcm2835-rpi.dtsi | 13 +++++++++++++
> arch/arm/boot/dts/bcm2835.dtsi | 2 +-
> 2 files changed, 14 insertions(+), 1 deletion(-)
Acked-by: Lee Jones <lee@kernel.org>
> diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
> index 46780bb..fa9afd1 100644
> --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
> +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
> @@ -1,3 +1,4 @@
> +#include <dt-bindings/arm/raspberrypi-firmware-power.h>
> #include "bcm2835.dtsi"
>
> / {
> @@ -14,6 +15,14 @@
> linux,default-trigger = "heartbeat";
> };
> };
> +
> + soc {
> + firmware: firmware {
> + compatible = "raspberrypi,firmware";
> + mboxes = <&mailbox 0>;
> + #power-domain-cells = <1>;
> + };
> + };
> };
>
> &gpio {
> @@ -49,3 +58,7 @@
> status = "okay";
> bus-width = <4>;
> };
> +
> +&usb {
> + power-domains = <&firmware POWER_DOMAIN_USB>;
> +};
> diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
> index 664aa25..5734650 100644
> --- a/arch/arm/boot/dts/bcm2835.dtsi
> +++ b/arch/arm/boot/dts/bcm2835.dtsi
> @@ -148,7 +148,7 @@
> status = "disabled";
> };
>
> - usb at 7e980000 {
> + usb: usb at 7e980000 {
> compatible = "brcm,bcm2835-usb";
> reg = <0x7e980000 0x10000>;
> interrupts = <1 9>;
next prev parent reply other threads:[~2015-04-28 9:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 23:14 [PATCH 0/3] Raspberry Pi firmware driver Eric Anholt
2015-04-27 23:14 ` [PATCH 1/3] dt/bindings: Add binding for the " Eric Anholt
2015-04-28 9:34 ` Lee Jones
2015-04-29 1:42 ` Stephen Warren
2015-04-27 23:14 ` [PATCH 2/3] ARM: bcm2835: Add " Eric Anholt
2015-04-28 7:56 ` Arnd Bergmann
2015-04-28 20:07 ` Eric Anholt
2015-04-28 9:27 ` Lee Jones
2015-04-28 9:28 ` Lee Jones
2015-04-29 1:58 ` Stephen Warren
2015-04-29 2:14 ` Jassi Brar
2015-04-29 2:56 ` Jassi Brar
2015-04-29 17:51 ` Eric Anholt
2015-04-29 23:47 ` Stephen Warren
2015-05-12 17:46 ` Eric Anholt
2015-05-12 22:08 ` Stephen Warren
2015-05-13 0:38 ` Eric Anholt
2015-05-13 18:28 ` Stephen Warren
2015-04-27 23:14 ` [PATCH 3/3] ARM: bcm2835: Add the necessary firmware driver information to the DT Eric Anholt
2015-04-28 9:33 ` Lee Jones [this message]
2015-04-29 1:44 ` Stephen Warren
2015-04-29 16:29 ` Eric Anholt
2015-04-29 23:43 ` Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150428093337.GJ11956@x1 \
--to=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox