dt-bindings: arm: bcm: unify version notation of Northstar devices
PATCH 1/2 dt-bindings: arm: bcm: unify version notation of Northstar devices
From: Rafał Miłecki <[email protected]>
Always use a minus/hyphen char to separate model from version. This unifies binding's "compatible" strings.
--- .../devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml +6 -6
@@ -28,10 +28,10 @@ properties: - buffalo,wzr-1750dhp - linksys,ea6300-v1 - linksys,ea6500-v2 - - luxul,xap-1510v1 + - luxul,xap-1510-v1 - luxul,xwc-1000 - - netgear,r6250v1 - - netgear,r6300v2 + - netgear,r6250-v1 + - netgear,r6300-v2 - smartrg,sr400ac - brcm,bcm94708 - const: brcm,bcm4708
@@ -42,8 +42,8 @@ properties: - asus,rt-n18u - buffalo,wzr-600dhp2 - buffalo,wzr-900dhp - - luxul,xap-1410v1 - - luxul,xwr-1200v1 + - luxul,xap-1410-v1 + - luxul,xwr-1200-v1 - tplink,archer-c5-v2 - const: brcm,bcm47081 - const: brcm,bcm4708
@@ -72,7 +72,7 @@ properties: - luxul,xap-1610-v1 - luxul,xbr-4500-v1 - luxul,xwc-2000-v1 - - luxul,xwr-3100v1 + - luxul,xwr-3100-v1 - luxul,xwr-3150-v1 - netgear,r8500 - phicomm,k3
Signature · 1 line
2.35.3
PATCH 2/2 ARM: dts: BCM5301X: Use updated device "compatible" strings
From: Rafał Miłecki <[email protected]>
Northstar binding was updated to use minus/hyphen char between model and version for all devices.
--- arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts | 2 +- arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 2 +- arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 2 +- arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts | 2 +- arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts | 2 +- arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts +1 -1
@@ -8,7 +8,7 @@ #include "bcm4708.dtsi" / { - compatible = "luxul,xap-1510v1", "brcm,bcm4708"; + compatible = "luxul,xap-1510-v1", "brcm,bcm4708"; model = "Luxul XAP-1510 V1"; chosen {
arch/arm/boot/dts/bcm4708-netgear-r6250.dts +1 -1
@@ -13,7 +13,7 @@ #include "bcm5301x-nand-cs0-bch8.dtsi" / { - compatible = "netgear,r6250v1", "brcm,bcm4708"; + compatible = "netgear,r6250-v1", "brcm,bcm4708"; model = "Netgear R6250 V1 (BCM4708)"; chosen {
arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts +1 -1
@@ -12,7 +12,7 @@ #include "bcm5301x-nand-cs0-bch8.dtsi" / { - compatible = "netgear,r6300v2", "brcm,bcm4708"; + compatible = "netgear,r6300-v2", "brcm,bcm4708"; model = "Netgear R6300 V2 (BCM4708)"; chosen {
arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts +1 -1
@@ -8,7 +8,7 @@ #include "bcm47081.dtsi" / { - compatible = "luxul,xap-1410v1", "brcm,bcm47081", "brcm,bcm4708"; + compatible = "luxul,xap-1410-v1", "brcm,bcm47081", "brcm,bcm4708"; model = "Luxul XAP-1410 V1"; chosen {
arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts +1 -1
@@ -9,7 +9,7 @@ #include "bcm5301x-nand-cs0-bch4.dtsi" / { - compatible = "luxul,xwr-1200v1", "brcm,bcm47081", "brcm,bcm4708"; + compatible = "luxul,xwr-1200-v1", "brcm,bcm47081", "brcm,bcm4708"; model = "Luxul XWR-1200 V1"; chosen {
arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts +1 -1
@@ -9,7 +9,7 @@ #include "bcm5301x-nand-cs0-bch4.dtsi" / { - compatible = "luxul,xwr-3100v1", "brcm,bcm47094", "brcm,bcm4708"; + compatible = "luxul,xwr-3100-v1", "brcm,bcm47094", "brcm,bcm4708"; model = "Luxul XWR-3100 V1"; chosen {
Signature · 1 line
2.35.3
Re: [PATCH 2/2] ARM: dts: BCM5301X: Use updated device "compatible" strings
Quoted 6 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Northstar binding was updated to use minus/hyphen char between model and version for all devices.
Signed-off-by Rafał Miłecki <[email protected]>
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Florian Fainelli
AppliedRe: [PATCH 2/2] ARM: dts: BCM5301X: Use updated device "compatible" strings
In reply to Rafał MiłeckiFrom: Florian Fainelli <[email protected]>
Quoted 7 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Northstar binding was updated to use minus/hyphen char between model and version for all devices.
Signed-off-by Rafał Miłecki <[email protected]>---
Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks! --
Florian
Quoted 6 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Always use a minus/hyphen char to separate model from version. This unifies binding's "compatible" strings.
Signed-off-by Rafał Miłecki <[email protected]>
Makes sense,
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 4 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Always use a minus/hyphen char to separate model from version. This unifies binding's "compatible" strings.
Am I just being paranoid in thinking that software may have relied on the former naming scheme?
On the other hand, my OCD really likes the change.
Quoted 47 lines
Signed-off-by Rafał Miłecki <[email protected]>--- .../devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml +6
-6@@ -28,10 +28,10 @@ properties: - buffalo,wzr-1750dhp - linksys,ea6300-v1 - linksys,ea6500-v2 - - luxul,xap-1510v1 + - luxul,xap-1510-v1 - luxul,xwc-1000 - - netgear,r6250v1 - - netgear,r6300v2 + - netgear,r6250-v1 + - netgear,r6300-v2 - smartrg,sr400ac - brcm,bcm94708 - const: brcm,bcm4708@@ -42,8 +42,8 @@ properties: - asus,rt-n18u - buffalo,wzr-600dhp2 - buffalo,wzr-900dhp - - luxul,xap-1410v1 - - luxul,xwr-1200v1 + - luxul,xap-1410-v1 + - luxul,xwr-1200-v1 - tplink,archer-c5-v2 - const: brcm,bcm47081 - const: brcm,bcm4708@@ -72,7 +72,7 @@ properties: - luxul,xap-1610-v1 - luxul,xbr-4500-v1 - luxul,xwc-2000-v1 - - luxul,xwr-3100v1 + - luxul,xwr-3100-v1 - luxul,xwr-3150-v1 - netgear,r8500 - phicomm,k3Signature · 1 line
2.35.3
Quoted 9 lines · Conor Dooley
Quoted 4 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Always use a minus/hyphen char to separate model from version. This unifies binding's "compatible" strings.
Am I just being paranoid in thinking that software may have relied on the former naming scheme?
On the other hand, my OCD really likes the change.
That's a very reasonable concern.
TLDR: The risk of any breakage is extremely low due to Northstar CFE bootloader & projects with Northstar support.
There are very few Northstar devices with bootloader other than CFE. All devices affected by this PATCH use CFE actually.
CFE on Northstar has no support for DTS (DTB).
DTB files are always appended to kernel on all affected devices.
So problem of some DTB stored in bootloader getting out of sync with kernel / user-space is non-existent in this case.
We still should consider a risk of some out-of-tree driver or just user-space checking for those compatible strings. I'm not aware of any project other than OpenWrt providing system images for those devices. There is some basic support in buildroot but it's quite dead. Even in OpenWrt case the only possibly affected device is Netgear R6300 V2. OpenWrt doesn't provide images for any of affected Luxul devices.
So there isn't any known project this change can actually break. If there is one (very unlikely) it can still update its user-space or out of kernel driver while updating DTB.
So while this change may be not the best approach (in general terms) in this case it's very unlikely to break anything.
Quoted 46 lines
Quoted 46 lines
Signed-off-by Rafał Miłecki <[email protected]>--- .../devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml +6
-6@@ -28,10 +28,10 @@ properties: - buffalo,wzr-1750dhp - linksys,ea6300-v1 - linksys,ea6500-v2 - - luxul,xap-1510v1 + - luxul,xap-1510-v1 - luxul,xwc-1000 - - netgear,r6250v1 - - netgear,r6300v2 + - netgear,r6250-v1 + - netgear,r6300-v2 - smartrg,sr400ac - brcm,bcm94708 - const: brcm,bcm4708@@ -42,8 +42,8 @@ properties: - asus,rt-n18u - buffalo,wzr-600dhp2 - buffalo,wzr-900dhp - - luxul,xap-1410v1 - - luxul,xwr-1200v1 + - luxul,xap-1410-v1 + - luxul,xwr-1200-v1 - tplink,archer-c5-v2 - const: brcm,bcm47081 - const: brcm,bcm4708@@ -72,7 +72,7 @@ properties: - luxul,xap-1610-v1 - luxul,xbr-4500-v1 - luxul,xwc-2000-v1 - - luxul,xwr-3100v1 + - luxul,xwr-3100-v1 - luxul,xwr-3150-v1 - netgear,r8500 - phicomm,k3Signature · 1 line
2.35.3
Conor Dooley
Acked-byQuoted 33 lines · Rafał Miłecki
Quoted 9 lines · Conor Dooley
Quoted 4 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Always use a minus/hyphen char to separate model from version. This unifies binding's "compatible" strings.
Am I just being paranoid in thinking that software may have relied on the former naming scheme?
On the other hand, my OCD really likes the change.That's a very reasonable concern.
TLDR: The risk of any breakage is extremely low due to Northstar CFE bootloader & projects with Northstar support.
There are very few Northstar devices with bootloader other than CFE. All devices affected by this PATCH use CFE actually.
CFE on Northstar has no support for DTS (DTB).
DTB files are always appended to kernel on all affected devices.So problem of some DTB stored in bootloader getting out of sync with kernel / user-space is non-existent in this case.
We still should consider a risk of some out-of-tree driver or just user-space checking for those compatible strings. I'm not aware of any project other than OpenWrt providing system images for those devices. There is some basic support in buildroot but it's quite dead. Even in OpenWrt case the only possibly affected device is Netgear R6300 V2. OpenWrt doesn't provide images for any of affected Luxul devices.
Quoted 6 lines
So there isn't any known project this change can actually break. If there is one (very unlikely) it can still update its user-space or out of kernel driver while updating DTB.
So while this change may be not the best approach (in general terms) in this case it's very unlikely to break anything.
Okay. I think this sounds reasonable to do then. Thanks for the explanation :)
Thanks,
Conor.
Quoted 33 lines · Rafał Miłecki
Quoted 9 lines · Conor Dooley
Quoted 4 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Always use a minus/hyphen char to separate model from version. This unifies binding's "compatible" strings.
Am I just being paranoid in thinking that software may have relied on the former naming scheme?
On the other hand, my OCD really likes the change.That's a very reasonable concern.
TLDR: The risk of any breakage is extremely low due to Northstar CFE bootloader & projects with Northstar support.
There are very few Northstar devices with bootloader other than CFE. All devices affected by this PATCH use CFE actually.
CFE on Northstar has no support for DTS (DTB).
DTB files are always appended to kernel on all affected devices.So problem of some DTB stored in bootloader getting out of sync with kernel / user-space is non-existent in this case.
We still should consider a risk of some out-of-tree driver or just user-space checking for those compatible strings. I'm not aware of any project other than OpenWrt providing system images for those devices. There is some basic support in buildroot but it's quite dead. Even in OpenWrt case the only possibly affected device is Netgear R6300 V2. OpenWrt doesn't provide images for any of affected Luxul devices.
Quoted 6 lines
So there isn't any known project this change can actually break. If there is one (very unlikely) it can still update its user-space or out of kernel driver while updating DTB.
So while this change may be not the best approach (in general terms) in this case it's very unlikely to break anything.
You should explain this - reason for ABI break - in commit msg.
Or just keep old compatibles as deprecated.
Best regards,
Krzysztof
Florian Fainelli
AppliedFrom: Florian Fainelli <[email protected]>
Quoted 7 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Always use a minus/hyphen char to separate model from version. This unifies binding's "compatible" strings.
Signed-off-by Rafał Miłecki <[email protected]>---
Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks! --
Florian