mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
4295485719
Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709) Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
61 lines
1.8 KiB
Diff
61 lines
1.8 KiB
Diff
From fdec17c9cd5cb9c52872e9669aca53d58c7f1eaf Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
Date: Wed, 8 May 2019 10:08:31 +0100
|
|
Subject: [PATCH 511/703] BCM270X_DT: usb: Refactor DTS and overlays
|
|
|
|
Move the IRQ interrupt declaration in the usb node before the FIQ
|
|
declaration, so that the dwc2 driver will find it. Name the
|
|
interrupts appropriately so that the dwc_otg driver can still find
|
|
them. Then remove the interrupt rewriting from the overlays.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|
---
|
|
arch/arm/boot/dts/bcm270x.dtsi | 6 ++++--
|
|
arch/arm/boot/dts/overlays/dwc-otg-overlay.dts | 6 ------
|
|
arch/arm/boot/dts/overlays/dwc2-overlay.dts | 2 --
|
|
3 files changed, 4 insertions(+), 10 deletions(-)
|
|
|
|
--- a/arch/arm/boot/dts/bcm270x.dtsi
|
|
+++ b/arch/arm/boot/dts/bcm270x.dtsi
|
|
@@ -131,8 +131,10 @@
|
|
compatible = "brcm,bcm2708-usb";
|
|
reg = <0x7e980000 0x10000>,
|
|
<0x7e006000 0x1000>;
|
|
- interrupts = <2 0>,
|
|
- <1 9>;
|
|
+ interrupt-names = "usb",
|
|
+ "soft";
|
|
+ interrupts = <1 9>,
|
|
+ <2 0>;
|
|
};
|
|
|
|
v3d@7ec00000 { /* vd3 */
|
|
--- a/arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
|
|
+++ b/arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
|
|
@@ -6,14 +6,8 @@
|
|
|
|
fragment@0 {
|
|
target = <&usb>;
|
|
- #address-cells = <1>;
|
|
- #size-cells = <1>;
|
|
__overlay__ {
|
|
compatible = "brcm,bcm2708-usb";
|
|
- reg = <0x7e980000 0x10000>,
|
|
- <0x7e006000 0x1000>;
|
|
- interrupts = <2 0>,
|
|
- <1 9>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
--- a/arch/arm/boot/dts/overlays/dwc2-overlay.dts
|
|
+++ b/arch/arm/boot/dts/overlays/dwc2-overlay.dts
|
|
@@ -10,8 +10,6 @@
|
|
#size-cells = <1>;
|
|
dwc2_usb: __overlay__ {
|
|
compatible = "brcm,bcm2835-usb";
|
|
- reg = <0x7e980000 0x10000>;
|
|
- interrupts = <1 9>;
|
|
dr_mode = "otg";
|
|
g-np-tx-fifo-size = <32>;
|
|
g-rx-fifo-size = <256>;
|