* [PATCH 0/2] net: dsa: b53: BCM11360 support @ 2017-04-24 21:50 Eric Anholt 2017-04-24 21:50 ` [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360 Eric Anholt 2017-04-24 21:50 ` [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT Eric Anholt 0 siblings, 2 replies; 21+ messages in thread From: Eric Anholt @ 2017-04-24 21:50 UTC (permalink / raw) To: linux-arm-kernel This little patch series follows on from Florian's fixes that he just sent, and enables the ethernet on the 911360_EP board. Without Florian's fixes, the controller comes up and forwarding happens between eth1 and eth2, but the CPU's eth0 packets don't get forwarded. Eric Anholt (2): net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. Documentation/devicetree/bindings/net/dsa/b53.txt | 3 ++ arch/arm/boot/dts/bcm-cygnus.dtsi | 60 +++++++++++++++++++++++ arch/arm/boot/dts/bcm911360_entphn.dts | 8 +++ drivers/net/dsa/b53/b53_srab.c | 2 + 4 files changed, 73 insertions(+) -- 2.11.0 ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 21:50 [PATCH 0/2] net: dsa: b53: BCM11360 support Eric Anholt @ 2017-04-24 21:50 ` Eric Anholt 2017-04-24 21:51 ` Florian Fainelli ` (3 more replies) 2017-04-24 21:50 ` [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT Eric Anholt 1 sibling, 4 replies; 21+ messages in thread From: Eric Anholt @ 2017-04-24 21:50 UTC (permalink / raw) To: linux-arm-kernel Cygnus is a small family of SoCs, of which we currently have devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the same as 58xx, just requiring a tiny bit of setup that was previously missing. Signed-off-by: Eric Anholt <eric@anholt.net> --- Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ drivers/net/dsa/b53/b53_srab.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt index d6c6e41648d4..49c93d3c0839 100644 --- a/Documentation/devicetree/bindings/net/dsa/b53.txt +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt @@ -29,6 +29,9 @@ Required properties: "brcm,bcm58625-srab" "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string + For the BCM11360 SoC, must be: + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string + For the BCM63xx/33xx SoCs with an integrated switch, must be one of: "brcm,bcm3384-switch" "brcm,bcm6328-switch" diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c index 8a62b6a69703..c37ffd1b6833 100644 --- a/drivers/net/dsa/b53/b53_srab.c +++ b/drivers/net/dsa/b53/b53_srab.c @@ -364,6 +364,7 @@ static const struct of_device_id b53_srab_of_match[] = { { .compatible = "brcm,bcm53018-srab" }, { .compatible = "brcm,bcm53019-srab" }, { .compatible = "brcm,bcm5301x-srab" }, + { .compatible = "brcm,bcm11360-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm58522-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm58525-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm58535-srab", .data = (void *)BCM58XX_DEVICE_ID }, @@ -371,6 +372,7 @@ static const struct of_device_id b53_srab_of_match[] = { { .compatible = "brcm,bcm58623-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm58625-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm88312-srab", .data = (void *)BCM58XX_DEVICE_ID }, + { .compatible = "brcm,cygnus-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,nsp-srab", .data = (void *)BCM58XX_DEVICE_ID }, { /* sentinel */ }, }; -- 2.11.0 ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 21:50 ` [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360 Eric Anholt @ 2017-04-24 21:51 ` Florian Fainelli 2017-04-24 22:50 ` Scott Branden ` (2 subsequent siblings) 3 siblings, 0 replies; 21+ messages in thread From: Florian Fainelli @ 2017-04-24 21:51 UTC (permalink / raw) To: linux-arm-kernel On 04/24/2017 02:50 PM, Eric Anholt wrote: > Cygnus is a small family of SoCs, of which we currently have > devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the > same as 58xx, just requiring a tiny bit of setup that was previously > missing. > > Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> -- Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 21:50 ` [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360 Eric Anholt 2017-04-24 21:51 ` Florian Fainelli @ 2017-04-24 22:50 ` Scott Branden 2017-04-24 23:54 ` Eric Anholt 2017-04-24 23:03 ` Arun Parameswaran 2017-04-25 9:35 ` Sergei Shtylyov 3 siblings, 1 reply; 21+ messages in thread From: Scott Branden @ 2017-04-24 22:50 UTC (permalink / raw) To: linux-arm-kernel Minor comment in line On 17-04-24 02:50 PM, Eric Anholt wrote: > Cygnus is a small family of SoCs, of which we currently have > devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the > same as 58xx, just requiring a tiny bit of setup that was previously > missing. > > Signed-off-by: Eric Anholt <eric@anholt.net> > --- > Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ > drivers/net/dsa/b53/b53_srab.c | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt > index d6c6e41648d4..49c93d3c0839 100644 > --- a/Documentation/devicetree/bindings/net/dsa/b53.txt > +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt > @@ -29,6 +29,9 @@ Required properties: > "brcm,bcm58625-srab" > "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string > > + For the BCM11360 SoC, must be: > + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string > + place in alphabetical order in the doc? > For the BCM63xx/33xx SoCs with an integrated switch, must be one of: > "brcm,bcm3384-switch" > "brcm,bcm6328-switch" > diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c > index 8a62b6a69703..c37ffd1b6833 100644 > --- a/drivers/net/dsa/b53/b53_srab.c > +++ b/drivers/net/dsa/b53/b53_srab.c > @@ -364,6 +364,7 @@ static const struct of_device_id b53_srab_of_match[] = { > { .compatible = "brcm,bcm53018-srab" }, > { .compatible = "brcm,bcm53019-srab" }, > { .compatible = "brcm,bcm5301x-srab" }, > + { .compatible = "brcm,bcm11360-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm58522-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm58525-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm58535-srab", .data = (void *)BCM58XX_DEVICE_ID }, > @@ -371,6 +372,7 @@ static const struct of_device_id b53_srab_of_match[] = { > { .compatible = "brcm,bcm58623-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm58625-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm88312-srab", .data = (void *)BCM58XX_DEVICE_ID }, > + { .compatible = "brcm,cygnus-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,nsp-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { /* sentinel */ }, > }; > ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 22:50 ` Scott Branden @ 2017-04-24 23:54 ` Eric Anholt 2017-04-24 23:57 ` Scott Branden 0 siblings, 1 reply; 21+ messages in thread From: Eric Anholt @ 2017-04-24 23:54 UTC (permalink / raw) To: linux-arm-kernel Scott Branden <scott.branden@broadcom.com> writes: > Minor comment in line > > On 17-04-24 02:50 PM, Eric Anholt wrote: >> Cygnus is a small family of SoCs, of which we currently have >> devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the >> same as 58xx, just requiring a tiny bit of setup that was previously >> missing. >> >> Signed-off-by: Eric Anholt <eric@anholt.net> >> --- >> Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ >> drivers/net/dsa/b53/b53_srab.c | 2 ++ >> 2 files changed, 5 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt >> index d6c6e41648d4..49c93d3c0839 100644 >> --- a/Documentation/devicetree/bindings/net/dsa/b53.txt >> +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt >> @@ -29,6 +29,9 @@ Required properties: >> "brcm,bcm58625-srab" >> "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string >> >> + For the BCM11360 SoC, must be: >> + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string >> + > place in alphabetical order in the doc? Moved it above BCM5310x now. I hope that's what you meant. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 832 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170424/ec506094/attachment.sig> ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 23:54 ` Eric Anholt @ 2017-04-24 23:57 ` Scott Branden 0 siblings, 0 replies; 21+ messages in thread From: Scott Branden @ 2017-04-24 23:57 UTC (permalink / raw) To: linux-arm-kernel On 17-04-24 04:54 PM, Eric Anholt wrote: > Scott Branden <scott.branden@broadcom.com> writes: > >> Minor comment in line >> >> On 17-04-24 02:50 PM, Eric Anholt wrote: >>> Cygnus is a small family of SoCs, of which we currently have >>> devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the >>> same as 58xx, just requiring a tiny bit of setup that was previously >>> missing. >>> >>> Signed-off-by: Eric Anholt <eric@anholt.net> >>> --- >>> Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ >>> drivers/net/dsa/b53/b53_srab.c | 2 ++ >>> 2 files changed, 5 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt >>> index d6c6e41648d4..49c93d3c0839 100644 >>> --- a/Documentation/devicetree/bindings/net/dsa/b53.txt >>> +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt >>> @@ -29,6 +29,9 @@ Required properties: >>> "brcm,bcm58625-srab" >>> "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string >>> >>> + For the BCM11360 SoC, must be: >>> + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string >>> + >> place in alphabetical order in the doc? > > Moved it above BCM5310x now. I hope that's what you meant. > Yes, sorry for not being more clear. ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 21:50 ` [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360 Eric Anholt 2017-04-24 21:51 ` Florian Fainelli 2017-04-24 22:50 ` Scott Branden @ 2017-04-24 23:03 ` Arun Parameswaran 2017-04-24 23:07 ` Florian Fainelli 2017-04-25 9:35 ` Sergei Shtylyov 3 siblings, 1 reply; 21+ messages in thread From: Arun Parameswaran @ 2017-04-24 23:03 UTC (permalink / raw) To: linux-arm-kernel Hi Eric A comment on the Device ID. On 17-04-24 02:50 PM, Eric Anholt wrote: > Cygnus is a small family of SoCs, of which we currently have > devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the > same as 58xx, just requiring a tiny bit of setup that was previously > missing. > > Signed-off-by: Eric Anholt <eric@anholt.net> > --- > Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ > drivers/net/dsa/b53/b53_srab.c | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt > index d6c6e41648d4..49c93d3c0839 100644 > --- a/Documentation/devicetree/bindings/net/dsa/b53.txt > +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt > @@ -29,6 +29,9 @@ Required properties: > "brcm,bcm58625-srab" > "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string > > + For the BCM11360 SoC, must be: > + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string > + > For the BCM63xx/33xx SoCs with an integrated switch, must be one of: > "brcm,bcm3384-switch" > "brcm,bcm6328-switch" > diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c > index 8a62b6a69703..c37ffd1b6833 100644 > --- a/drivers/net/dsa/b53/b53_srab.c > +++ b/drivers/net/dsa/b53/b53_srab.c > @@ -364,6 +364,7 @@ static const struct of_device_id b53_srab_of_match[] = { > { .compatible = "brcm,bcm53018-srab" }, > { .compatible = "brcm,bcm53019-srab" }, > { .compatible = "brcm,bcm5301x-srab" }, > + { .compatible = "brcm,bcm11360-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm58522-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm58525-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm58535-srab", .data = (void *)BCM58XX_DEVICE_ID }, > @@ -371,6 +372,7 @@ static const struct of_device_id b53_srab_of_match[] = { > { .compatible = "brcm,bcm58623-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm58625-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { .compatible = "brcm,bcm88312-srab", .data = (void *)BCM58XX_DEVICE_ID }, > + { .compatible = "brcm,cygnus-srab", .data = (void *)BCM58XX_DEVICE_ID }, The device ID should be 0xd300. This is the actual value read from the switch regs. This also requires an entry in the 'b53_switch_chips' structure in b53_common.c. > { .compatible = "brcm,nsp-srab", .data = (void *)BCM58XX_DEVICE_ID }, > { /* sentinel */ }, > }; Other wise this patch set looks good. I was testing a similar change (except for the above, which doesn't affect the functionality) to get the switch working and it works. Thanks Arun ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 23:03 ` Arun Parameswaran @ 2017-04-24 23:07 ` Florian Fainelli 2017-04-24 23:15 ` Arun Parameswaran 0 siblings, 1 reply; 21+ messages in thread From: Florian Fainelli @ 2017-04-24 23:07 UTC (permalink / raw) To: linux-arm-kernel On 04/24/2017 04:03 PM, Arun Parameswaran wrote: > Hi Eric > > A comment on the Device ID. > > > On 17-04-24 02:50 PM, Eric Anholt wrote: >> Cygnus is a small family of SoCs, of which we currently have >> devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the >> same as 58xx, just requiring a tiny bit of setup that was previously >> missing. >> >> Signed-off-by: Eric Anholt <eric@anholt.net> >> --- >> Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ >> drivers/net/dsa/b53/b53_srab.c | 2 ++ >> 2 files changed, 5 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt >> index d6c6e41648d4..49c93d3c0839 100644 >> --- a/Documentation/devicetree/bindings/net/dsa/b53.txt >> +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt >> @@ -29,6 +29,9 @@ Required properties: >> "brcm,bcm58625-srab" >> "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string >> >> + For the BCM11360 SoC, must be: >> + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string >> + >> For the BCM63xx/33xx SoCs with an integrated switch, must be one of: >> "brcm,bcm3384-switch" >> "brcm,bcm6328-switch" >> diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c >> index 8a62b6a69703..c37ffd1b6833 100644 >> --- a/drivers/net/dsa/b53/b53_srab.c >> +++ b/drivers/net/dsa/b53/b53_srab.c >> @@ -364,6 +364,7 @@ static const struct of_device_id b53_srab_of_match[] = { >> { .compatible = "brcm,bcm53018-srab" }, >> { .compatible = "brcm,bcm53019-srab" }, >> { .compatible = "brcm,bcm5301x-srab" }, >> + { .compatible = "brcm,bcm11360-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> { .compatible = "brcm,bcm58522-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> { .compatible = "brcm,bcm58525-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> { .compatible = "brcm,bcm58535-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> @@ -371,6 +372,7 @@ static const struct of_device_id b53_srab_of_match[] = { >> { .compatible = "brcm,bcm58623-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> { .compatible = "brcm,bcm58625-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> { .compatible = "brcm,bcm88312-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> + { .compatible = "brcm,cygnus-srab", .data = (void *)BCM58XX_DEVICE_ID }, > The device ID should be 0xd300. This is the actual value read from the switch regs. > This also requires an entry in the 'b53_switch_chips' structure in b53_common.c. These are not real ID numbers, these are values that indicate the generation of the switch being embedded into the SoC. Within b53_common.c we don't have to differentiate a Starfighter 2 embedded in BCM11360, NSP, or 7445 or 7278, which is why using 58XX_DEVICE_ID should be good enough. >> { .compatible = "brcm,nsp-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> { /* sentinel */ }, >> }; > Other wise this patch set looks good. > > I was testing a similar change (except for the above, which doesn't > affect the functionality) to get the switch working and it works. > > Thanks > Arun > -- Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 23:07 ` Florian Fainelli @ 2017-04-24 23:15 ` Arun Parameswaran 2017-04-24 23:17 ` Florian Fainelli 0 siblings, 1 reply; 21+ messages in thread From: Arun Parameswaran @ 2017-04-24 23:15 UTC (permalink / raw) To: linux-arm-kernel On 17-04-24 04:07 PM, Florian Fainelli wrote: > On 04/24/2017 04:03 PM, Arun Parameswaran wrote: >> Hi Eric >> >> A comment on the Device ID. >> >> >> On 17-04-24 02:50 PM, Eric Anholt wrote: >>> Cygnus is a small family of SoCs, of which we currently have >>> devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the >>> same as 58xx, just requiring a tiny bit of setup that was previously >>> missing. >>> >>> Signed-off-by: Eric Anholt <eric@anholt.net> >>> --- >>> Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ >>> drivers/net/dsa/b53/b53_srab.c | 2 ++ >>> 2 files changed, 5 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt >>> index d6c6e41648d4..49c93d3c0839 100644 >>> --- a/Documentation/devicetree/bindings/net/dsa/b53.txt >>> +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt >>> @@ -29,6 +29,9 @@ Required properties: >>> "brcm,bcm58625-srab" >>> "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string >>> >>> + For the BCM11360 SoC, must be: >>> + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string >>> + >>> For the BCM63xx/33xx SoCs with an integrated switch, must be one of: >>> "brcm,bcm3384-switch" >>> "brcm,bcm6328-switch" >>> diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c >>> index 8a62b6a69703..c37ffd1b6833 100644 >>> --- a/drivers/net/dsa/b53/b53_srab.c >>> +++ b/drivers/net/dsa/b53/b53_srab.c >>> @@ -364,6 +364,7 @@ static const struct of_device_id b53_srab_of_match[] = { >>> { .compatible = "brcm,bcm53018-srab" }, >>> { .compatible = "brcm,bcm53019-srab" }, >>> { .compatible = "brcm,bcm5301x-srab" }, >>> + { .compatible = "brcm,bcm11360-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> { .compatible = "brcm,bcm58522-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> { .compatible = "brcm,bcm58525-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> { .compatible = "brcm,bcm58535-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> @@ -371,6 +372,7 @@ static const struct of_device_id b53_srab_of_match[] = { >>> { .compatible = "brcm,bcm58623-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> { .compatible = "brcm,bcm58625-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> { .compatible = "brcm,bcm88312-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> + { .compatible = "brcm,cygnus-srab", .data = (void *)BCM58XX_DEVICE_ID }, >> The device ID should be 0xd300. This is the actual value read from the switch regs. >> This also requires an entry in the 'b53_switch_chips' structure in b53_common.c. > These are not real ID numbers, these are values that indicate the > generation of the switch being embedded into the SoC. Within > b53_common.c we don't have to differentiate a Starfighter 2 embedded in > BCM11360, NSP, or 7445 or 7278, which is why using 58XX_DEVICE_ID should > be good enough. Ok. Thanks. I was under the impression, that these id's could be used in the b53_switch_detect() API to auto detect the switch. In that API, the switch ID is read from the Management page register. >>> { .compatible = "brcm,nsp-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> { /* sentinel */ }, >>> }; >> Other wise this patch set looks good. >> >> I was testing a similar change (except for the above, which doesn't >> affect the functionality) to get the switch working and it works. >> >> Thanks >> Arun >> > ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 23:15 ` Arun Parameswaran @ 2017-04-24 23:17 ` Florian Fainelli 0 siblings, 0 replies; 21+ messages in thread From: Florian Fainelli @ 2017-04-24 23:17 UTC (permalink / raw) To: linux-arm-kernel On 04/24/2017 04:15 PM, Arun Parameswaran wrote: > > > On 17-04-24 04:07 PM, Florian Fainelli wrote: >> On 04/24/2017 04:03 PM, Arun Parameswaran wrote: >>> Hi Eric >>> >>> A comment on the Device ID. >>> >>> >>> On 17-04-24 02:50 PM, Eric Anholt wrote: >>>> Cygnus is a small family of SoCs, of which we currently have >>>> devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the >>>> same as 58xx, just requiring a tiny bit of setup that was previously >>>> missing. >>>> >>>> Signed-off-by: Eric Anholt <eric@anholt.net> >>>> --- >>>> Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ >>>> drivers/net/dsa/b53/b53_srab.c | 2 ++ >>>> 2 files changed, 5 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt >>>> index d6c6e41648d4..49c93d3c0839 100644 >>>> --- a/Documentation/devicetree/bindings/net/dsa/b53.txt >>>> +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt >>>> @@ -29,6 +29,9 @@ Required properties: >>>> "brcm,bcm58625-srab" >>>> "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string >>>> >>>> + For the BCM11360 SoC, must be: >>>> + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string >>>> + >>>> For the BCM63xx/33xx SoCs with an integrated switch, must be one of: >>>> "brcm,bcm3384-switch" >>>> "brcm,bcm6328-switch" >>>> diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c >>>> index 8a62b6a69703..c37ffd1b6833 100644 >>>> --- a/drivers/net/dsa/b53/b53_srab.c >>>> +++ b/drivers/net/dsa/b53/b53_srab.c >>>> @@ -364,6 +364,7 @@ static const struct of_device_id b53_srab_of_match[] = { >>>> { .compatible = "brcm,bcm53018-srab" }, >>>> { .compatible = "brcm,bcm53019-srab" }, >>>> { .compatible = "brcm,bcm5301x-srab" }, >>>> + { .compatible = "brcm,bcm11360-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>>> { .compatible = "brcm,bcm58522-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>>> { .compatible = "brcm,bcm58525-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>>> { .compatible = "brcm,bcm58535-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>>> @@ -371,6 +372,7 @@ static const struct of_device_id b53_srab_of_match[] = { >>>> { .compatible = "brcm,bcm58623-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>>> { .compatible = "brcm,bcm58625-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>>> { .compatible = "brcm,bcm88312-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>>> + { .compatible = "brcm,cygnus-srab", .data = (void *)BCM58XX_DEVICE_ID }, >>> The device ID should be 0xd300. This is the actual value read from the switch regs. >>> This also requires an entry in the 'b53_switch_chips' structure in b53_common.c. >> These are not real ID numbers, these are values that indicate the >> generation of the switch being embedded into the SoC. Within >> b53_common.c we don't have to differentiate a Starfighter 2 embedded in >> BCM11360, NSP, or 7445 or 7278, which is why using 58XX_DEVICE_ID should >> be good enough. > Ok. Thanks. > > I was under the impression, that these id's could be used in the b53_switch_detect() > API to auto detect the switch. In that API, the switch ID is read from the > Management page register. For external switches that is the case, but for internal/integrated switches, the ID is not always representative of the switch. This is why the choice of a chip-type ID was used here while adding support for NSP to the b53 driver. -- Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-04-24 21:50 ` [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360 Eric Anholt ` (2 preceding siblings ...) 2017-04-24 23:03 ` Arun Parameswaran @ 2017-04-25 9:35 ` Sergei Shtylyov 3 siblings, 0 replies; 21+ messages in thread From: Sergei Shtylyov @ 2017-04-25 9:35 UTC (permalink / raw) To: linux-arm-kernel Hello! On 4/25/2017 12:50 AM, Eric Anholt wrote: > Cygnus is a small family of SoCs, of which we currently have > devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the > same as 58xx, just requiring a tiny bit of setup that was previously > missing. > > Signed-off-by: Eric Anholt <eric@anholt.net> > --- > Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ > drivers/net/dsa/b53/b53_srab.c | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt > index d6c6e41648d4..49c93d3c0839 100644 > --- a/Documentation/devicetree/bindings/net/dsa/b53.txt > +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt > @@ -29,6 +29,9 @@ Required properties: > "brcm,bcm58625-srab" > "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string > > + For the BCM11360 SoC, must be: > + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string Missing closing quote here and above? [...] MBR, Sergei ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-24 21:50 [PATCH 0/2] net: dsa: b53: BCM11360 support Eric Anholt 2017-04-24 21:50 ` [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360 Eric Anholt @ 2017-04-24 21:50 ` Eric Anholt 2017-04-24 21:54 ` Florian Fainelli ` (3 more replies) 1 sibling, 4 replies; 21+ messages in thread From: Eric Anholt @ 2017-04-24 21:50 UTC (permalink / raw) To: linux-arm-kernel Cygnus has a single amac controller connected to the B53 switch with 2 PHYs. On the BCM911360_EP platform, those two PHYs are connected to the external ethernet jacks. Signed-off-by: Eric Anholt <eric@anholt.net> --- arch/arm/boot/dts/bcm-cygnus.dtsi | 60 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/bcm911360_entphn.dts | 8 +++++ 2 files changed, 68 insertions(+) diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi index 009f1346b817..318899df9972 100644 --- a/arch/arm/boot/dts/bcm-cygnus.dtsi +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi @@ -142,6 +142,56 @@ interrupts = <0>; }; + mdio: mdio at 18002000 { + compatible = "brcm,iproc-mdio"; + reg = <0x18002000 0x8>; + #size-cells = <1>; + #address-cells = <0>; + + gphy0: eth-gphy at 0 { + reg = <0>; + max-speed = <1000>; + }; + + gphy1: eth-gphy at 1 { + reg = <1>; + max-speed = <1000>; + }; + }; + + dsa: dsa at 18007000 { + compatible = "brcm,bcm11360-srab", "brcm,cygnus-srab"; + reg = <0x18007000 0x1000>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port0 at 0 { + reg = <0>; + phy-handle = <&gphy0>; + phy-mode = "rgmii"; + }; + + port1 at 1 { + reg = <1>; + phy-handle = <&gphy1>; + phy-mode = "rgmii"; + }; + + port8 at 8 { + reg = <8>; + label = "cpu"; + ethernet = <ð0>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; + i2c0: i2c at 18008000 { compatible = "brcm,cygnus-iproc-i2c", "brcm,iproc-i2c"; reg = <0x18008000 0x100>; @@ -295,6 +345,16 @@ status = "disabled"; }; + eth0: enet at 18042000 { + compatible = "brcm,amac"; + reg = <0x18042000 0x1000>, + <0x18110000 0x1000>; + reg-names = "amac_base", "idm_base"; + interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; + max-speed = <1000>; + status = "disabled"; + }; + nand: nand at 18046000 { compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; reg = <0x18046000 0x600>, <0xf8105408 0x600>, diff --git a/arch/arm/boot/dts/bcm911360_entphn.dts b/arch/arm/boot/dts/bcm911360_entphn.dts index 8b3800f46288..2a1f54ab3574 100644 --- a/arch/arm/boot/dts/bcm911360_entphn.dts +++ b/arch/arm/boot/dts/bcm911360_entphn.dts @@ -57,6 +57,14 @@ }; }; +&dsa { + status = "okay"; +}; + +ð0 { + status = "okay"; +}; + &uart3 { status = "okay"; }; -- 2.11.0 ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-24 21:50 ` [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT Eric Anholt @ 2017-04-24 21:54 ` Florian Fainelli 2017-04-25 0:02 ` Eric Anholt 2017-04-24 22:08 ` Andrew Lunn ` (2 subsequent siblings) 3 siblings, 1 reply; 21+ messages in thread From: Florian Fainelli @ 2017-04-24 21:54 UTC (permalink / raw) To: linux-arm-kernel On 04/24/2017 02:50 PM, Eric Anholt wrote: > Cygnus has a single amac controller connected to the B53 switch with 2 > PHYs. On the BCM911360_EP platform, those two PHYs are connected to > the external ethernet jacks. > > Signed-off-by: Eric Anholt <eric@anholt.net> This looks fine, just a few nits on the label names: > --- > arch/arm/boot/dts/bcm-cygnus.dtsi | 60 ++++++++++++++++++++++++++++++++++ > arch/arm/boot/dts/bcm911360_entphn.dts | 8 +++++ > 2 files changed, 68 insertions(+) > > diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi > index 009f1346b817..318899df9972 100644 > --- a/arch/arm/boot/dts/bcm-cygnus.dtsi > +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi > @@ -142,6 +142,56 @@ > interrupts = <0>; > }; > > + mdio: mdio at 18002000 { > + compatible = "brcm,iproc-mdio"; > + reg = <0x18002000 0x8>; > + #size-cells = <1>; > + #address-cells = <0>; > + > + gphy0: eth-gphy at 0 { > + reg = <0>; > + max-speed = <1000>; > + }; > + > + gphy1: eth-gphy at 1 { > + reg = <1>; > + max-speed = <1000>; > + }; > + }; > + > + dsa: dsa at 18007000 { This would be better named switch: switch at 18007000 > + compatible = "brcm,bcm11360-srab", "brcm,cygnus-srab"; > + reg = <0x18007000 0x1000>; > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port0 at 0 { You can probably just put port at 0 > + reg = <0>; > + phy-handle = <&gphy0>; > + phy-mode = "rgmii"; > + }; > + > + port1 at 1 { And so on > + reg = <1>; > + phy-handle = <&gphy1>; > + phy-mode = "rgmii"; > + }; > + > + port8 at 8 { And so forth > + reg = <8>; > + label = "cpu"; > + ethernet = <ð0>; > + fixed-link { > + speed = <1000>; > + full-duplex; > + }; > + }; > + }; > + }; > + > i2c0: i2c at 18008000 { > compatible = "brcm,cygnus-iproc-i2c", "brcm,iproc-i2c"; > reg = <0x18008000 0x100>; > @@ -295,6 +345,16 @@ > status = "disabled"; > }; > > + eth0: enet at 18042000 { > + compatible = "brcm,amac"; > + reg = <0x18042000 0x1000>, > + <0x18110000 0x1000>; > + reg-names = "amac_base", "idm_base"; > + interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; > + max-speed = <1000>; > + status = "disabled"; > + }; > + > nand: nand at 18046000 { > compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; > reg = <0x18046000 0x600>, <0xf8105408 0x600>, > diff --git a/arch/arm/boot/dts/bcm911360_entphn.dts b/arch/arm/boot/dts/bcm911360_entphn.dts > index 8b3800f46288..2a1f54ab3574 100644 > --- a/arch/arm/boot/dts/bcm911360_entphn.dts > +++ b/arch/arm/boot/dts/bcm911360_entphn.dts > @@ -57,6 +57,14 @@ > }; > }; > > +&dsa { > + status = "okay"; > +}; And that would be &switch here then. With that fixed: Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> > + > +ð0 { > + status = "okay"; > +}; > + > &uart3 { > status = "okay"; > }; > -- Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-24 21:54 ` Florian Fainelli @ 2017-04-25 0:02 ` Eric Anholt 0 siblings, 0 replies; 21+ messages in thread From: Eric Anholt @ 2017-04-25 0:02 UTC (permalink / raw) To: linux-arm-kernel Florian Fainelli <f.fainelli@gmail.com> writes: > On 04/24/2017 02:50 PM, Eric Anholt wrote: >> Cygnus has a single amac controller connected to the B53 switch with 2 >> PHYs. On the BCM911360_EP platform, those two PHYs are connected to >> the external ethernet jacks. >> >> Signed-off-by: Eric Anholt <eric@anholt.net> > > This looks fine, just a few nits on the label names: Thanks. I've applied all of these (and Andrew's and Scott's suggestions), and I'll send out a new version once the DT maintainers have had a chance to look. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 832 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170424/897c79ae/attachment.sig> ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-24 21:50 ` [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT Eric Anholt 2017-04-24 21:54 ` Florian Fainelli @ 2017-04-24 22:08 ` Andrew Lunn 2017-04-25 0:00 ` Eric Anholt 2017-04-25 9:40 ` Sergei Shtylyov 2017-04-25 9:41 ` Sergei Shtylyov 3 siblings, 1 reply; 21+ messages in thread From: Andrew Lunn @ 2017-04-24 22:08 UTC (permalink / raw) To: linux-arm-kernel > + mdio: mdio at 18002000 { > + compatible = "brcm,iproc-mdio"; > + reg = <0x18002000 0x8>; > + #size-cells = <1>; > + #address-cells = <0>; > + > + gphy0: eth-gphy at 0 { > + reg = <0>; > + max-speed = <1000>; > + }; > + > + gphy1: eth-gphy at 1 { > + reg = <1>; > + max-speed = <1000>; > + }; > + }; Hi Eric Do these max-speed properties do anything useful? Is the PHY capable of > 1Gbps? Thanks Andrew ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-24 22:08 ` Andrew Lunn @ 2017-04-25 0:00 ` Eric Anholt 0 siblings, 0 replies; 21+ messages in thread From: Eric Anholt @ 2017-04-25 0:00 UTC (permalink / raw) To: linux-arm-kernel Andrew Lunn <andrew@lunn.ch> writes: >> + mdio: mdio at 18002000 { >> + compatible = "brcm,iproc-mdio"; >> + reg = <0x18002000 0x8>; >> + #size-cells = <1>; >> + #address-cells = <0>; >> + >> + gphy0: eth-gphy at 0 { >> + reg = <0>; >> + max-speed = <1000>; >> + }; >> + >> + gphy1: eth-gphy at 1 { >> + reg = <1>; >> + max-speed = <1000>; >> + }; >> + }; > > Hi Eric > > Do these max-speed properties do anything useful? Is the PHY capable > of > 1Gbps? Not sure where I had those copy-and-pasted from, but they don't seem necessary. Dropped. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 832 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170424/ee121fb9/attachment.sig> ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-24 21:50 ` [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT Eric Anholt 2017-04-24 21:54 ` Florian Fainelli 2017-04-24 22:08 ` Andrew Lunn @ 2017-04-25 9:40 ` Sergei Shtylyov 2017-04-25 15:15 ` Jon Mason 2017-04-25 9:41 ` Sergei Shtylyov 3 siblings, 1 reply; 21+ messages in thread From: Sergei Shtylyov @ 2017-04-25 9:40 UTC (permalink / raw) To: linux-arm-kernel Hello. On 4/25/2017 12:50 AM, Eric Anholt wrote: > Cygnus has a single amac controller connected to the B53 switch with 2 > PHYs. On the BCM911360_EP platform, those two PHYs are connected to > the external ethernet jacks. My spell checker trips on "amac" and "ethernet" -- perhaps they need capitalization? > Signed-off-by: Eric Anholt <eric@anholt.net> > --- > arch/arm/boot/dts/bcm-cygnus.dtsi | 60 ++++++++++++++++++++++++++++++++++ > arch/arm/boot/dts/bcm911360_entphn.dts | 8 +++++ > 2 files changed, 68 insertions(+) > > diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi > index 009f1346b817..318899df9972 100644 > --- a/arch/arm/boot/dts/bcm-cygnus.dtsi > +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi > @@ -142,6 +142,56 @@ > interrupts = <0>; > }; > > + mdio: mdio at 18002000 { > + compatible = "brcm,iproc-mdio"; > + reg = <0x18002000 0x8>; > + #size-cells = <1>; > + #address-cells = <0>; > + > + gphy0: eth-gphy at 0 { The node anmes must be generic, the DT spec has standardized "ethernet-phy" name for this case. > + reg = <0>; > + max-speed = <1000>; > + }; > + > + gphy1: eth-gphy at 1 { > + reg = <1>; > + max-speed = <1000>; > + }; > + }; [...] > @@ -295,6 +345,16 @@ > status = "disabled"; > }; > > + eth0: enet at 18042000 { > + compatible = "brcm,amac"; > + reg = <0x18042000 0x1000>, > + <0x18110000 0x1000>; > + reg-names = "amac_base", "idm_base"; I don't think "_base" suffixes are necessary here. [...] MBR, Sergei ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-25 9:40 ` Sergei Shtylyov @ 2017-04-25 15:15 ` Jon Mason 2017-04-25 15:23 ` Sergei Shtylyov 0 siblings, 1 reply; 21+ messages in thread From: Jon Mason @ 2017-04-25 15:15 UTC (permalink / raw) To: linux-arm-kernel On Tue, Apr 25, 2017 at 5:40 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Hello. > > On 4/25/2017 12:50 AM, Eric Anholt wrote: > >> Cygnus has a single amac controller connected to the B53 switch with 2 >> PHYs. On the BCM911360_EP platform, those two PHYs are connected to >> the external ethernet jacks. > > > My spell checker trips on "amac" and "ethernet" -- perhaps they need > capitalization? > >> Signed-off-by: Eric Anholt <eric@anholt.net> >> --- >> arch/arm/boot/dts/bcm-cygnus.dtsi | 60 >> ++++++++++++++++++++++++++++++++++ >> arch/arm/boot/dts/bcm911360_entphn.dts | 8 +++++ >> 2 files changed, 68 insertions(+) >> >> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi >> b/arch/arm/boot/dts/bcm-cygnus.dtsi >> index 009f1346b817..318899df9972 100644 >> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi >> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi >> @@ -142,6 +142,56 @@ >> interrupts = <0>; >> }; >> >> + mdio: mdio at 18002000 { >> + compatible = "brcm,iproc-mdio"; >> + reg = <0x18002000 0x8>; >> + #size-cells = <1>; >> + #address-cells = <0>; >> + >> + gphy0: eth-gphy at 0 { > > > The node anmes must be generic, the DT spec has standardized > "ethernet-phy" name for this case. > >> + reg = <0>; >> + max-speed = <1000>; >> + }; >> + >> + gphy1: eth-gphy at 1 { >> + reg = <1>; >> + max-speed = <1000>; >> + }; >> + }; > > [...] >> >> @@ -295,6 +345,16 @@ >> status = "disabled"; >> }; >> >> + eth0: enet at 18042000 { >> + compatible = "brcm,amac"; >> + reg = <0x18042000 0x1000>, >> + <0x18110000 0x1000>; >> + reg-names = "amac_base", "idm_base"; > > > I don't think "_base" suffixes are necessary here. 100% necessary, per the driver. See drivers/net/ethernet/broadcom/bgmac-platform.c > > [...] > > MBR, Sergei > ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-25 15:15 ` Jon Mason @ 2017-04-25 15:23 ` Sergei Shtylyov 2017-04-25 15:43 ` Jon Mason 0 siblings, 1 reply; 21+ messages in thread From: Sergei Shtylyov @ 2017-04-25 15:23 UTC (permalink / raw) To: linux-arm-kernel Hello! On 04/25/2017 06:15 PM, Jon Mason wrote: >>> Cygnus has a single amac controller connected to the B53 switch with 2 >>> PHYs. On the BCM911360_EP platform, those two PHYs are connected to >>> the external ethernet jacks. [...] >>> Signed-off-by: Eric Anholt <eric@anholt.net> >>> --- >>> arch/arm/boot/dts/bcm-cygnus.dtsi | 60 >>> ++++++++++++++++++++++++++++++++++ >>> arch/arm/boot/dts/bcm911360_entphn.dts | 8 +++++ >>> 2 files changed, 68 insertions(+) >>> >>> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi >>> b/arch/arm/boot/dts/bcm-cygnus.dtsi >>> index 009f1346b817..318899df9972 100644 >>> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi >>> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi [...] >>> @@ -295,6 +345,16 @@ >>> status = "disabled"; >>> }; >>> >>> + eth0: enet at 18042000 { >>> + compatible = "brcm,amac"; >>> + reg = <0x18042000 0x1000>, >>> + <0x18110000 0x1000>; >>> + reg-names = "amac_base", "idm_base"; >> >> >> I don't think "_base" suffixes are necessary here. > > 100% necessary, per the driver. See > drivers/net/ethernet/broadcom/bgmac-platform.c I'd recommend to fix the driver/bindings then... MBR, Sergei ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-25 15:23 ` Sergei Shtylyov @ 2017-04-25 15:43 ` Jon Mason 0 siblings, 0 replies; 21+ messages in thread From: Jon Mason @ 2017-04-25 15:43 UTC (permalink / raw) To: linux-arm-kernel On Tue, Apr 25, 2017 at 11:23 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Hello! > > On 04/25/2017 06:15 PM, Jon Mason wrote: > >>>> Cygnus has a single amac controller connected to the B53 switch with 2 >>>> PHYs. On the BCM911360_EP platform, those two PHYs are connected to >>>> the external ethernet jacks. > > > [...] > >>>> Signed-off-by: Eric Anholt <eric@anholt.net> >>>> --- >>>> arch/arm/boot/dts/bcm-cygnus.dtsi | 60 >>>> ++++++++++++++++++++++++++++++++++ >>>> arch/arm/boot/dts/bcm911360_entphn.dts | 8 +++++ >>>> 2 files changed, 68 insertions(+) >>>> >>>> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi >>>> b/arch/arm/boot/dts/bcm-cygnus.dtsi >>>> index 009f1346b817..318899df9972 100644 >>>> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi >>>> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi > > [...] >>>> >>>> @@ -295,6 +345,16 @@ >>>> status = "disabled"; >>>> }; >>>> >>>> + eth0: enet at 18042000 { >>>> + compatible = "brcm,amac"; >>>> + reg = <0x18042000 0x1000>, >>>> + <0x18110000 0x1000>; >>>> + reg-names = "amac_base", "idm_base"; >>> >>> >>> >>> I don't think "_base" suffixes are necessary here. >> >> >> 100% necessary, per the driver. See >> drivers/net/ethernet/broadcom/bgmac-platform.c > > > I'd recommend to fix the driver/bindings then... They're already in use in other device trees. So, we'd need to support backward compatibility on them, thus removing any real benefit to changing them. > > MBR, Sergei > ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT. 2017-04-24 21:50 ` [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT Eric Anholt ` (2 preceding siblings ...) 2017-04-25 9:40 ` Sergei Shtylyov @ 2017-04-25 9:41 ` Sergei Shtylyov 3 siblings, 0 replies; 21+ messages in thread From: Sergei Shtylyov @ 2017-04-25 9:41 UTC (permalink / raw) To: linux-arm-kernel On 4/25/2017 12:50 AM, Eric Anholt wrote: > Cygnus has a single amac controller connected to the B53 switch with 2 > PHYs. On the BCM911360_EP platform, those two PHYs are connected to > the external ethernet jacks. > > Signed-off-by: Eric Anholt <eric@anholt.net> > --- > arch/arm/boot/dts/bcm-cygnus.dtsi | 60 ++++++++++++++++++++++++++++++++++ > arch/arm/boot/dts/bcm911360_entphn.dts | 8 +++++ > 2 files changed, 68 insertions(+) > > diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi > index 009f1346b817..318899df9972 100644 > --- a/arch/arm/boot/dts/bcm-cygnus.dtsi > +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi [...] > @@ -295,6 +345,16 @@ > status = "disabled"; > }; > > + eth0: enet at 18042000 { Oh, and this one should be named "ethernet", according to the DT spec. > + compatible = "brcm,amac"; > + reg = <0x18042000 0x1000>, > + <0x18110000 0x1000>; > + reg-names = "amac_base", "idm_base"; > + interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; > + max-speed = <1000>; > + status = "disabled"; > + }; > + > nand: nand at 18046000 { > compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; > reg = <0x18046000 0x600>, <0xf8105408 0x600>, [...] MBR, Sergei ^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2017-04-25 15:43 UTC | newest] Thread overview: 21+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-04-24 21:50 [PATCH 0/2] net: dsa: b53: BCM11360 support Eric Anholt 2017-04-24 21:50 ` [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360 Eric Anholt 2017-04-24 21:51 ` Florian Fainelli 2017-04-24 22:50 ` Scott Branden 2017-04-24 23:54 ` Eric Anholt 2017-04-24 23:57 ` Scott Branden 2017-04-24 23:03 ` Arun Parameswaran 2017-04-24 23:07 ` Florian Fainelli 2017-04-24 23:15 ` Arun Parameswaran 2017-04-24 23:17 ` Florian Fainelli 2017-04-25 9:35 ` Sergei Shtylyov 2017-04-24 21:50 ` [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT Eric Anholt 2017-04-24 21:54 ` Florian Fainelli 2017-04-25 0:02 ` Eric Anholt 2017-04-24 22:08 ` Andrew Lunn 2017-04-25 0:00 ` Eric Anholt 2017-04-25 9:40 ` Sergei Shtylyov 2017-04-25 15:15 ` Jon Mason 2017-04-25 15:23 ` Sergei Shtylyov 2017-04-25 15:43 ` Jon Mason 2017-04-25 9:41 ` Sergei Shtylyov
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).