ARM: BCM5301X: Fix LAN LED labels for Luxul XWR-3100
PATCH 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 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.
--- 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>; + + ohci: ohci at 21000 { + #usb-cells = <0>; + + compatible = "generic-ohci"; + reg = <0x00022000 0x1000>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + }; + + ehci: ehci at 22000 { + #usb-cells = <0>; + + compatible = "generic-ehci"; + reg = <0x00021000 0x1000>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb2_phy>; + }; }; 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
PATCH 3/5 ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000
In reply to Rafał MiłeckiThere is one GPIO controlling power for both USB ports.
--- 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 4/5 ARM: BCM5301X: Specify all RAM by including extra block
In reply to Rafał MiłeckiFrom: Rafa? Mi?ecki <[email protected]>
So far we were specifying only the first block which is always limited up to 128 MiB. There are many devices with 256 MiB and few with 512 MiB.
--- 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-netgear-r8500.dts | 3 ++- 15 files changed, 30 insertions(+), 15 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-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 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
Re: [PATCH 2/5] ARM: BCM5301X: Specify USB controllers in DT
In reply to Rafał MiłeckiQuoted 18 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]>--- arch/arm/boot/dts/bcm5301x.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)arch/arm/boot/dts/bcm5301x.dtsi +0
-0@@ -248,8 +248,26 @@ #address-cells = <1>; #size-cells = <1>;
arch/arm/boot/dts/bcm5301x.dtsi line 259
Quoted 10 lines
arch/arm/boot/dts/bcm5301x.dtsi +8
-1+ ranges; - phys = <&usb2_phy>; + interrupt-parent = <&gic>; + + ohci: ohci at 21000 { + #usb-cells = <0>; + + compatible = "generic-ohci"; + reg = <0x00022000 0x1000>;
Your label ohci at 21000 does not match the 'reg' at 0x22000.
arch/arm/boot/dts/bcm5301x.dtsi line 267
Quoted 8 lines
arch/arm/boot/dts/bcm5301x.dtsi +8
-0+ interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + }; + + ehci: ehci at 22000 { + #usb-cells = <0>; + + compatible = "generic-ehci"; + reg = <0x00021000 0x1000>;
Looks like you got the label of ohci and ehci reversed?
Quoted 27 lines
arch/arm/boot/dts/bcm5301x.dtsi +16
-0+ interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb2_phy>; + }; }; 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 {
Re: [PATCH 2/5] ARM: BCM5301X: Specify USB controllers in DT
Quoted 32 lines · Ray Jui
Quoted 18 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]>--- arch/arm/boot/dts/bcm5301x.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)arch/arm/boot/dts/bcm5301x.dtsi +0
-0@@ -248,8 +248,26 @@ #address-cells = <1>; #size-cells = <1>;arch/arm/boot/dts/bcm5301x.dtsi line 259
Quoted 10 lines
arch/arm/boot/dts/bcm5301x.dtsi +8
-1+ ranges; - phys = <&usb2_phy>; + interrupt-parent = <&gic>; + + ohci: ohci at 21000 { + #usb-cells = <0>; + + compatible = "generic-ohci"; + reg = <0x00022000 0x1000>;Your label ohci at 21000 does not match the 'reg' at
0x22000.
Quoted 10 lines
arch/arm/boot/dts/bcm5301x.dtsi line 267
Quoted 8 lines
arch/arm/boot/dts/bcm5301x.dtsi +8
-0+ interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + }; + + ehci: ehci at 22000 { + #usb-cells = <0>; + + compatible = "generic-ehci"; + reg = <0x00021000 0x1000>;Looks like you got the label of ohci and ehci reversed?
Nice catch, thanks! I'll fix it in V2 (just let me wait a day to see if there will be other comments).
Signature · 1 line
Rafa?
Re: [PATCH 2/5] ARM: BCM5301X: Specify USB controllers in DT
Quoted 44 lines · Rafa? Mi?ecki
Quoted 32 lines · Ray Jui
Quoted 18 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]>--- arch/arm/boot/dts/bcm5301x.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)arch/arm/boot/dts/bcm5301x.dtsi +0
-0@@ -248,8 +248,26 @@ #address-cells = <1>; #size-cells = <1>;arch/arm/boot/dts/bcm5301x.dtsi line 259
Quoted 10 lines
arch/arm/boot/dts/bcm5301x.dtsi +8
-1+ ranges; - phys = <&usb2_phy>; + interrupt-parent = <&gic>; + + ohci: ohci at 21000 { + #usb-cells = <0>; + + compatible = "generic-ohci"; + reg = <0x00022000 0x1000>;Your label ohci at 21000 does not match the 'reg' at
0x22000.Quoted 10 lines
arch/arm/boot/dts/bcm5301x.dtsi line 267
Quoted 8 lines
arch/arm/boot/dts/bcm5301x.dtsi +8
-0+ interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + }; + + ehci: ehci at 22000 { + #usb-cells = <0>; + + compatible = "generic-ehci"; + reg = <0x00021000 0x1000>;Looks like you got the label of ohci and ehci reversed?
Quoted 3 lines
Nice catch, thanks! I'll fix it in V2 (just let me wait a day to see if there will be other comments).
In V2, please remember to put the nodes in ascending order based on the base address of the registers, i.e., ehci at 21000, and then followed by ohci at 22000.
Thanks,
Ray
Re: [PATCH 3/5] ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000
In reply to Rafał MiłeckiQuoted 4 lines · Rafa? Mi?ecki
There is one GPIO controlling power for both USB ports.
Signed-off-by Rafa? Mi?ecki <[email protected]>Signed-off-by Rafa? Mi?ecki <[email protected]>
Was the double Signed-off-by intentional?
Quoted 23 lines
--- 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
Re: [PATCH 4/5] ARM: BCM5301X: Specify all RAM by including extra block
In reply to Rafał MiłeckiQuoted 4 lines · Rafa? Mi?ecki
From: Rafa? Mi?ecki <[email protected]>
So far we were specifying only the first block which is always limited up to 128 MiB. There are many devices with 256 MiB and few with 512 MiB.
Assuming that NS is like NSP (and I'm pretty sure it is), there are 2 ways to access the first 128M of RAM, a proxy starting at address 0 and the real address. I think you are splitting RAM by accessing it both ways, when you really should just be accessing it at the real address.
Thanks,
Jon
Quoted 233 lines
Signed-off-by Rafa? Mi?ecki <[email protected]>--- 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-netgear-r8500.dts | 3 ++- 15 files changed, 30 insertions(+), 15 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-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 4/5] ARM: BCM5301X: Specify all RAM by including extra block
Quoted 11 lines · Jon Mason
Quoted 4 lines · Rafa? Mi?ecki
From: Rafa? Mi?ecki <[email protected]>
So far we were specifying only the first block which is always limited up to 128 MiB. There are many devices with 256 MiB and few with 512 MiB.
Assuming that NS is like NSP (and I'm pretty sure it is), there are 2 ways to access the first 128M of RAM, a proxy starting at address 0 and the real address. I think you are splitting RAM by accessing it both ways, when you really should just be accessing it at the real address.
I need some more help, please.
This patch (quite well tested) confirms that 0x88000000 can be used to access RAM at offset 128 MiB. If this is a real address and whole space is contiguous, it means the base real address should be 0x80000000. So using 0x0 and 0x80000000 should allow accessing beginning of the RAM. I took a device that was working just fine with:
reg = <0x00000000 0x08000000>;
and I replaced it with:
reg = <0x80000000 0x08000000>;
but it broke things, kernel didn't boot with the last message being:
[ 0.000000] Memory policy: Data cache writealloc
I can see that bcm958525er.dts, bcm958525xmc.dts, bcm958623hr.dts, bcm958625k.dts bcm988312hr.dts are using 0x60000000 as base address. It seems to be different from Northstar but I tried following entry anyway:
reg = <0x60000000 0x08000000>;
and I got kernel hang just like in the previous try.
Did I miss something? Or does Northstar seem to be actually different than NSP?
Re: [PATCH 4/5] ARM: BCM5301X: Specify all RAM by including extra block
Quoted 26 lines · Rafa? Mi?ecki
Quoted 11 lines · Jon Mason
Quoted 4 lines · Rafa? Mi?ecki
From: Rafa? Mi?ecki <[email protected]>
So far we were specifying only the first block which is always limited up to 128 MiB. There are many devices with 256 MiB and few with 512 MiB.
Assuming that NS is like NSP (and I'm pretty sure it is), there are 2 ways to access the first 128M of RAM, a proxy starting at address 0 and the real address. I think you are splitting RAM by accessing it both ways, when you really should just be accessing it at the real address.
I need some more help, please.
This patch (quite well tested) confirms that
0x88000000can be used to access RAM at offset 128 MiB. If this is a real address and whole space is contiguous, it means the base real address should be0x80000000. So using0x0and0x80000000should allow accessing beginning of the RAM. I took a device that was working just fine with:
reg = <0x000000000x08000000>;
and I replaced it with:
reg = <0x800000000x08000000>;
but it broke things, kernel didn't boot with the last message being:[ 0.000000] Memory policy: Data cache writealloc
Quoted 8 lines
I can see that
bcm958525er.dts,bcm958525xmc.dts,bcm958623hr.dts,bcm958625k.dtsbcm988312hr.dtsare using0x60000000as base address. It seems to be different from Northstar but I tried following entry anyway:
reg = <0x600000000x08000000>;
and I got kernel hang just like in the previous try.Did I miss something? Or does Northstar seem to be actually different than NSP?
Per the BCM5301X Preliminary Programmer's Register Reference guide (page 394), under the second titled "System Address Mapping". There is a table listing the System Address Mapping. The parts that are of interest in this converstation are (and forgive my approxmiation, but I cannot cut'n'paste from it):
Address Range Size Description
---------------------------------------------------
0x0000_0000-0x07FF_FFFF 128 MB DDR2/3 SDRAM Memory Region* 0x8000_0000-0xBFFF_FFFF 1 G DDR2/3 SDRAM Large Region
* The DDR2/3 SDRAM Memory Region (128MB) is a subset of the DDR2/3 SDRAM Large Region (1GB). Additionally, 0x0000_0000-0x07FF_FFFF is aliased to 0x8000_0000-0x87FF_FFFF
However, since you say it isn't working for you, then there must be some other missing peice. I'll retract my comment for now, and hopefully we can double back and get it working in the future.
Thanks,
Jon