* [PATCH 1/2 v3] dt-bindings: ARM: add bindings for the D-Link DWL-8610AP
@ 2022-10-19 19:34 ` Linus Walleij
0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2022-10-19 19:34 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki
Cc: bcm-kernel-feedback-list, linux-arm-kernel, Linus Walleij,
devicetree, Rob Herring
The D-Link DWL-8610AP is a pure access point with ethernet in
and wireless (both 2.4GHz and 5GHz) out.
Cc: devicetree@vger.kernel.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
ChangeLog v1->v3:
- Collect Rob's ACK
- Resend with the main DTS patch
---
Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
index 958df32b4899..2657f9b82ecd 100644
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
@@ -97,6 +97,7 @@ properties:
- description: BCM53016 based boards
items:
- enum:
+ - dlink,dwl-8610ap
- meraki,mr32
- const: brcm,bcm53016
- const: brcm,bcm4708
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 1/2 v3] dt-bindings: ARM: add bindings for the D-Link DWL-8610AP
@ 2022-10-19 19:34 ` Linus Walleij
0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2022-10-19 19:34 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki
Cc: bcm-kernel-feedback-list, linux-arm-kernel, Linus Walleij,
devicetree, Rob Herring
The D-Link DWL-8610AP is a pure access point with ethernet in
and wireless (both 2.4GHz and 5GHz) out.
Cc: devicetree@vger.kernel.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
ChangeLog v1->v3:
- Collect Rob's ACK
- Resend with the main DTS patch
---
Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
index 958df32b4899..2657f9b82ecd 100644
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
@@ -97,6 +97,7 @@ properties:
- description: BCM53016 based boards
items:
- enum:
+ - dlink,dwl-8610ap
- meraki,mr32
- const: brcm,bcm53016
- const: brcm,bcm4708
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2 v3] ARM: dts: bcm53016: Add devicetree for D-Link DWL-8610AP
2022-10-19 19:34 ` Linus Walleij
(?)
@ 2022-10-19 19:34 ` Linus Walleij
2022-11-09 18:17 ` Florian Fainelli
-1 siblings, 1 reply; 8+ messages in thread
From: Linus Walleij @ 2022-10-19 19:34 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki
Cc: bcm-kernel-feedback-list, linux-arm-kernel, Linus Walleij
This adds a device tree for the BCM53016-based D-Link DWL-8610AP
access point wireless router.
The TRX-format partitions had to be named "firmware" due to
an OpenWrt patch that only accepts parting such nodes if they
are named "firmware".
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
ChangeLog v2->v3:
- Drop extra words in device description, the make and model is
enough.
- Rename the second (backup) firmware partition to "firmware2"
so as not to confuse OpenWrt scripts.
- Resend with the binding patch.
ChangeLog v1->v2:
- Relicense as dual GPL+MIT
- Parse TRX partitions in the NAND flash instead of just fixed
partitions, use fixed partitions to chunk up the main
parts of the flash then add trx compatibles to those
nodes that have TRX headers.
- Use 5 bit ECC like the device does.
---
arch/arm/boot/dts/Makefile | 1 +
.../boot/dts/bcm53016-dlink-dwl-8610ap.dts | 131 ++++++++++++++++++
2 files changed, 132 insertions(+)
create mode 100644 arch/arm/boot/dts/bcm53016-dlink-dwl-8610ap.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 6aa7dc4db2fc..1cdeb5f88e4e 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -139,6 +139,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
bcm47094-netgear-r8500.dtb \
bcm47094-phicomm-k3.dtb \
bcm53015-meraki-mr26.dtb \
+ bcm53016-dlink-dwl-8610ap.dtb \
bcm53016-meraki-mr32.dtb \
bcm94708.dtb \
bcm94709.dtb \
diff --git a/arch/arm/boot/dts/bcm53016-dlink-dwl-8610ap.dts b/arch/arm/boot/dts/bcm53016-dlink-dwl-8610ap.dts
new file mode 100644
index 000000000000..b44a24448386
--- /dev/null
+++ b/arch/arm/boot/dts/bcm53016-dlink-dwl-8610ap.dts
@@ -0,0 +1,131 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "bcm4709.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ model = "D-Link DWL-8610AP";
+ compatible = "dlink,dwl-8610ap", "brcm,bcm53016", "brcm,bcm4708";
+
+ memory@0 {
+ device_type = "memory";
+ /* 512 MB RAM in 2 x Macronix D9PSH chips */
+ reg = <0x00000000 0x08000000>,
+ <0x88000000 0x08000000>;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ power {
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
+ default-state = "on";
+ };
+
+ diag {
+ /* Actually "diag" unclear what this means */
+ function = LED_FUNCTION_INDICATOR;
+ color = <LED_COLOR_ID_RED>;
+ gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+ default-state = "on";
+ linux,default-trigger = "heartbeat";
+ };
+
+ wlan-2g {
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
+ };
+
+ wlan-5g {
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ gpio_keys {
+ compatible = "gpio-keys";
+
+ button-reset {
+ debounce-interval = <100>;
+ wakeup-source;
+ linux,code = <KEY_RESTART>;
+ label = "reset";
+ /* This GPIO is actually stored in NVRAM, but it's not gonna change */
+ gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ /*
+ * Flash memory at 0x1e000000-0x1fffffff
+ * Macronix 32 64KB blocks; total size 2MB, same that can be
+ * found attached to the spi_nor SPI controller.
+ */
+ nvram@1e080000 {
+ compatible = "brcm,nvram";
+ reg = <0x1e080000 0x00020000>;
+
+ et0macaddr: et0macaddr {
+ };
+
+ et1macaddr: et1macaddr {
+ };
+ };
+};
+
+&gmac0 {
+ nvmem-cells = <&et0macaddr>;
+ nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+ nvmem-cells = <&et1macaddr>;
+ nvmem-cell-names = "mac-address";
+};
+
+&spi_nor {
+ /* Serial SPI NOR Flash MX 25L1606E */
+ status = "okay";
+};
+
+&nandcs {
+ /*
+ * Spansion S34ML01G100TFI00 128 MB NAND Flash memory
+ *
+ * This ECC is a bit unorthodox but it is what the stock firmware
+ * is using, so to be able to mount the original partitions
+ * this is necessary.
+ */
+ nand-ecc-strength = <5>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ /* This is named nflash1.trx in CFE */
+ trx@0 {
+ label = "firmware";
+ reg = <0x00000000 0x02800000>;
+ compatible = "brcm,trx";
+ };
+
+ /* This is named nflash1.trx2 in CFE */
+ trx2@2800000 {
+ label = "firmware2";
+ reg = <0x02800000 0x02800000>;
+ compatible = "brcm,trx";
+ };
+
+ /* This is named nflash1.rwfs in CFE */
+ free@5000000 {
+ label = "free";
+ reg = <0x05000000 0x03000000>;
+ };
+ };
+};
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2 v3] dt-bindings: ARM: add bindings for the D-Link DWL-8610AP
2022-10-19 19:34 ` Linus Walleij
@ 2022-10-31 18:53 ` Linus Walleij
-1 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2022-10-31 18:53 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki
Cc: bcm-kernel-feedback-list, linux-arm-kernel, devicetree, Rob Herring
On Wed, Oct 19, 2022 at 9:36 PM Linus Walleij <linus.walleij@linaro.org> wrote:
> The D-Link DWL-8610AP is a pure access point with ethernet in
> and wireless (both 2.4GHz and 5GHz) out.
>
> Cc: devicetree@vger.kernel.org
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ChangeLog v1->v3:
> - Collect Rob's ACK
> - Resend with the main DTS patch
Are these fine to go in?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2 v3] dt-bindings: ARM: add bindings for the D-Link DWL-8610AP
@ 2022-10-31 18:53 ` Linus Walleij
0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2022-10-31 18:53 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki
Cc: bcm-kernel-feedback-list, linux-arm-kernel, devicetree, Rob Herring
On Wed, Oct 19, 2022 at 9:36 PM Linus Walleij <linus.walleij@linaro.org> wrote:
> The D-Link DWL-8610AP is a pure access point with ethernet in
> and wireless (both 2.4GHz and 5GHz) out.
>
> Cc: devicetree@vger.kernel.org
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ChangeLog v1->v3:
> - Collect Rob's ACK
> - Resend with the main DTS patch
Are these fine to go in?
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2 v3] dt-bindings: ARM: add bindings for the D-Link DWL-8610AP
2022-10-19 19:34 ` Linus Walleij
@ 2022-11-09 18:17 ` Florian Fainelli
-1 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2022-11-09 18:17 UTC (permalink / raw)
To: bcm-kernel-feedback-list, Linus Walleij, Hauke Mehrtens,
Rafał Miłecki
Cc: linux-arm-kernel, devicetree, Rob Herring
On Wed, 19 Oct 2022 21:34:48 +0200, Linus Walleij <linus.walleij@linaro.org> wrote:
> The D-Link DWL-8610AP is a pure access point with ethernet in
> and wireless (both 2.4GHz and 5GHz) out.
>
> Cc: devicetree@vger.kernel.org
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks!
--
Florian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2 v3] dt-bindings: ARM: add bindings for the D-Link DWL-8610AP
@ 2022-11-09 18:17 ` Florian Fainelli
0 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2022-11-09 18:17 UTC (permalink / raw)
To: bcm-kernel-feedback-list, Linus Walleij, Hauke Mehrtens,
Rafał Miłecki
Cc: linux-arm-kernel, devicetree, Rob Herring
On Wed, 19 Oct 2022 21:34:48 +0200, Linus Walleij <linus.walleij@linaro.org> wrote:
> The D-Link DWL-8610AP is a pure access point with ethernet in
> and wireless (both 2.4GHz and 5GHz) out.
>
> Cc: devicetree@vger.kernel.org
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks!
--
Florian
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2 v3] ARM: dts: bcm53016: Add devicetree for D-Link DWL-8610AP
2022-10-19 19:34 ` [PATCH 2/2 v3] ARM: dts: bcm53016: Add devicetree for " Linus Walleij
@ 2022-11-09 18:17 ` Florian Fainelli
0 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2022-11-09 18:17 UTC (permalink / raw)
To: bcm-kernel-feedback-list, Linus Walleij, Hauke Mehrtens,
Rafał Miłecki
Cc: linux-arm-kernel
On Wed, 19 Oct 2022 21:34:49 +0200, Linus Walleij <linus.walleij@linaro.org> wrote:
> This adds a device tree for the BCM53016-based D-Link DWL-8610AP
> access point wireless router.
>
> The TRX-format partitions had to be named "firmware" due to
> an OpenWrt patch that only accepts parting such nodes if they
> are named "firmware".
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks!
--
Florian
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-11-09 18:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 19:34 [PATCH 1/2 v3] dt-bindings: ARM: add bindings for the D-Link DWL-8610AP Linus Walleij
2022-10-19 19:34 ` Linus Walleij
2022-10-19 19:34 ` [PATCH 2/2 v3] ARM: dts: bcm53016: Add devicetree for " Linus Walleij
2022-11-09 18:17 ` Florian Fainelli
2022-10-31 18:53 ` [PATCH 1/2 v3] dt-bindings: ARM: add bindings for the " Linus Walleij
2022-10-31 18:53 ` Linus Walleij
2022-11-09 18:17 ` Florian Fainelli
2022-11-09 18:17 ` Florian Fainelli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.