ARM: BCM5301X: Fix LAN LED labels for Luxul XWR-3100
PATCH v2 1/5 ARM: BCM5301X: Fix LAN LED labels for Luxul XWR-3100
From: Rafa? Mi?ecki <[email protected]>
They were named incorrectly most likely due to copy & paste mistake.
--- arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts +3 -3
@@ -31,13 +31,13 @@ }; lan3 { - label = "bcm53xx:green:lan1"; + label = "bcm53xx:green:lan3"; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; linux,default-trigger = "default-off"; }; lan4 { - label = "bcm53xx:green:lan0"; + label = "bcm53xx:green:lan4"; gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; linux,default-trigger = "default-off"; };
@@ -49,7 +49,7 @@ }; lan1 { - label = "bcm53xx:green:lan3"; + label = "bcm53xx:green:lan1"; gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; linux,default-trigger = "default-off"; };
Signature · 1 line
2.10.1
PATCH v2 2/5 ARM: BCM5301X: Specify USB controllers in DT
From: Rafa? Mi?ecki <[email protected]>
There are 3 separated controllers, one per USB /standard/. With PHY drivers in place they can be simply supported with generic drivers.
---
V2: Fix node names and reorder ehci with ohci. Thanks Ray!
--- arch/arm/boot/dts/bcm5301x.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)
arch/arm/boot/dts/bcm5301x.dtsi +32 -1
@@ -248,8 +248,26 @@ #address-cells = <1>; #size-cells = <1>; + ranges; - phys = <&usb2_phy>; + interrupt-parent = <&gic>; + + ehci: ehci at 21000 { + #usb-cells = <0>; + + compatible = "generic-ehci"; + reg = <0x00021000 0x1000>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb2_phy>; + }; + + ohci: ohci at 22000 { + #usb-cells = <0>; + + compatible = "generic-ohci"; + reg = <0x00022000 0x1000>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + }; }; usb3: usb3 at 23000 {
@@ -257,6 +275,19 @@ #address-cells = <1>; #size-cells = <1>; + ranges; + + interrupt-parent = <&gic>; + + xhci: xhci at 23000 { + #usb-cells = <0>; + + compatible = "generic-xhci"; + reg = <0x00023000 0x1000>; + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb3_phy>; + phy-names = "usb"; + }; }; spi at 29000 {
Signature · 1 line
2.10.1
Re: [PATCH V2 2/5] ARM: BCM5301X: Specify USB controllers in DT
Quoted 55 lines · Rafa? Mi?ecki
From: Rafa? Mi?ecki <[email protected]>
There are 3 separated controllers, one per USB /standard/. With PHY drivers in place they can be simply supported with generic drivers.
Signed-off-by Rafa? Mi?ecki <[email protected]>---
V2: Fix node names and reorder ehci with ohci. Thanks Ray!--- arch/arm/boot/dts/bcm5301x.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)arch/arm/boot/dts/bcm5301x.dtsi +25
-1@@ -248,8 +248,26 @@ #address-cells = <1>; #size-cells = <1>; + ranges; - phys = <&usb2_phy>; + interrupt-parent = <&gic>; + + ehci: ehci at 21000 { + #usb-cells = <0>; + + compatible = "generic-ehci"; + reg = <0x00021000 0x1000>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb2_phy>; + }; + + ohci: ohci at 22000 { + #usb-cells = <0>; + + compatible = "generic-ohci"; + reg = <0x00022000 0x1000>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + }; }; usb3: usb3 at 23000 {@@ -257,6 +275,19 @@ #address-cells = <1>; #size-cells = <1>; + ranges; + + interrupt-parent = <&gic>; + + xhci: xhci at 23000 { + #usb-cells = <0>;
arch/arm/boot/dts/bcm5301x.dtsi line 293
Quoted 10 lines
arch/arm/boot/dts/bcm5301x.dtsi +7
-0+ + compatible = "generic-xhci"; + reg = <0x00023000 0x1000>; + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb3_phy>; + phy-names = "usb"; + }; }; spi at 29000 {
Looks good to me! Thanks!
PATCH v2 3/5 ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000
In reply to Rafał MiłeckiFrom: Rafa? Mi?ecki <[email protected]>
There is one GPIO controlling power for both USB ports.
---
V2: Avoid double Signed-off-by due to different e-mail address
--- arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/bcm4709-netgear-r7000.dts +8 -0
@@ -100,3 +100,11 @@ }; }; }; + +&usb2 { + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; +}; + +&usb3 { + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; +};
Signature · 1 line
2.10.1
PATCH v2 4/5 ARM: BCM5301X: Specify all RAM by including an extra block
In reply to Rafał MiłeckiFrom: Rafa? Mi?ecki <[email protected]>
The first 128 MiB of RAM can be accessed using an alias at address 0x0.
In theory we could access whole RAM using 0x80000000 - 0xbfffffff range (up to 1 GiB) but it doesn't seem to work on Northstar. For some reason (hardware setup left by the bootloader maybe?) 0x80000000 - 0x87ffffff range can't be used. I reproduced this problem on:
1) Buffalo WZR-600DHP2 (BCM47081)
2) Netgear R6250 (BCM4708)
3) D-Link DIR-885L (BCM47094)
So it seems we're forced to access first 128 MiB using alias at 0x0 and the rest using real base address + 128 MiB offset which is 0x88000000.
---
V2: Updated commit message, thanks Jon!
Included XWR-3100 --- arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts | 3 ++- arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts | 3 ++- arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 3 ++- arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 3 ++- arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 3 ++- arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 3 ++- arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 3 ++- arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 3 ++- arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 3 ++- arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 3 ++- arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 3 ++- arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 3 ++- arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 3 ++- arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 3 ++- arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 3 ++- arch/arm/boot/dts/bcm47094-netgear-r8500.dts | 3 ++- 16 files changed, 32 insertions(+), 16 deletions(-)
arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x18000000>; }; spi {
arch/arm/boot/dts/bcm4708-netgear-r6250.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; spi {
arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; gpio-keys {
arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x18000000>; }; leds {
arch/arm/boot/dts/bcm4709-netgear-r7000.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm4709-netgear-r8000.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts +2 -1
@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; nand: nand at 18028000 {
arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts +2 -1
@@ -18,7 +18,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {
arch/arm/boot/dts/bcm47094-netgear-r8500.dts +2 -1
@@ -18,7 +18,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x18000000>; }; leds {
Signature · 1 line
2.10.1
Re: [PATCH V2 4/5] ARM: BCM5301X: Specify all RAM by including an extra block
Quoted 12 lines · Rafa? Mi?ecki
From: Rafa? Mi?ecki <[email protected]>
The first 128 MiB of RAM can be accessed using an alias at address
0x0.In theory we could access whole RAM using
0x80000000-0xbfffffffrange (up to 1 GiB) but it doesn't seem to work on Northstar. For some reason (hardware setup left by the bootloader maybe?)0x80000000-0x87ffffffrange can't be used. I reproduced this problem on:
1) Buffalo WZR-600DHP2 (BCM47081)
2) Netgear R6250 (BCM4708)
3) D-Link DIR-885L (BCM47094)
Quoted 4 lines
So it seems we're forced to access first 128 MiB using alias at
0x0and the rest using real base address + 128 MiB offset which is0x88000000.Signed-off-by Rafa? Mi?ecki <[email protected]>
Quoted 249 lines
---
V2: Updated commit message, thanks Jon!Included XWR-3100 --- arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts | 3 ++- arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts | 3 ++- arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 3 ++- arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 3 ++- arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 3 ++- arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 3 ++- arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 3 ++- arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 3 ++- arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 3 ++- arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 3 ++- arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 3 ++- arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 3 ++- arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 3 ++- arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 3 ++- arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 3 ++- arch/arm/boot/dts/bcm47094-netgear-r8500.dts | 3 ++- 16 files changed, 32 insertions(+), 16 deletions(-)arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x18000000>; }; spi {arch/arm/boot/dts/bcm4708-netgear-r6250.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; spi {arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; gpio-keys {arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x18000000>; }; leds {arch/arm/boot/dts/bcm4709-netgear-r7000.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm4709-netgear-r8000.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts +2
-1@@ -21,7 +21,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; nand: nand at 18028000 {arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts +2
-1@@ -18,7 +18,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; }; leds {arch/arm/boot/dts/bcm47094-netgear-r8500.dts +2
-1@@ -18,7 +18,8 @@ }; memory { - reg = <0x00000000 0x08000000>; + reg = <0x00000000 0x08000000 + 0x88000000 0x18000000>; }; leds {Signature · 1 line
2.10.1
PATCH v2 5/5 ARM: BCM53573: Specify USB ports of on-SoC controllers
In reply to Rafał MiłeckiFrom: Rafa? Mi?ecki <[email protected]>
Broadcom OHCI and EHCI controllers always have 2 ports each on the root hub. Describe them in DT to allow specifying extra info or referencing port nodes.
--- arch/arm/boot/dts/bcm53573.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
arch/arm/boot/dts/bcm53573.dtsi +22 -0
@@ -124,6 +124,17 @@ reg = <0x4000 0x1000>; interrupt-parent = <&gic>; interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; + + #address-cells = <1>; + #size-cells = <0>; + + ehci_port1: port at 1 { + reg = <1>; + }; + + ehci_port2: port at 2 { + reg = <2>; + }; }; ohci: ohci at d000 {
@@ -133,6 +144,17 @@ reg = <0xd000 0x1000>; interrupt-parent = <&gic>; interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; + + #address-cells = <1>; + #size-cells = <0>; + + ohci_port1: port at 1 { + reg = <1>; + }; + + ohci_port2: port at 2 { + reg = <2>; + }; }; };
Signature · 1 line
2.10.1