Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: BCM5301X: Add DT for Meraki MR26

Meraki MR26 is an EOL wireless access point featuring a
PoE ethernet port and two dual-band 3x3 MIMO 802.11n
radios and 1x1 dual-band WIFI dedicated to scanning.

Thank you Amir for the unit and PSU.

Hardware info:
SOC : Broadcom BCM53015A1KFEBG (dual-core Cortex-A9 CPU at 800 MHz)
RAM : SK Hynix Inc. H5TQ1G63EFR, 1 GBit DDR3 SDRAM = 128 MiB
NAND : Spansion S34ML01G100TF100, 1 GBit SLC NAND Flash = 128 MiB
ETH : 1 GBit Ethernet Port - PoE (TPS23754 PoE Interface)
WIFI0 : Broadcom BCM43431KMLG, BCM43431 802.11 abgn (3x3:3)
WIFI1 : Broadcom BCM43431KMLG, BCM43431 802.11 abgn (3x3:3)
WIFI2 : Broadcom BCM43428 "Air Marshal" 802.11 abgn (1x1:1)
BUTTON: One reset key behind a small hole next to the Ethernet Port
LEDS : One amber (fault), one white (indicator) LED, separate RGB-LED
MISC : Atmel AT24C64 8KiB EEPROM i2c
: Ti INA219 26V, 12-bit, i2c output current/voltage/power monitor

SERIAL:
WARNING: The serial port needs a TTL/RS-232 3V3 level converter!
The Serial setting is 115200-8-N-1. The board has a populated
right angle 1x4 0.1" pinheader.
The pinout is: VCC (next to J3, has the pin 1 indicator), RX, TX, GND.

Odd stuff:

- uboot does not support lzma compression, but gzip'd uImage/DTB work.
- uboot claims to support FIT, but fails to pass the DTB to the kernel.
Appending the dtb after the kernel image works.
- RGB-controller is supported through an external userspace program.
- The ubi partition contains a "board-config" volume. It stores the
MAC Address (0x66 in binary) and Serial No. (0x7c alpha-numerical).
- SoC's temperature sensor always reports that it is on fire.
This causes the system to immediately shutdown! Looking at reported
"418 degree Celsius" suggests that this sensor is not working.

WIFI:
b43 is able to initialize all three WIFIs @ 802.11bg.
| b43-phy0: Broadcom 43431 WLAN found (core revision 29)
| bcma-pci-bridge 0000:01:00.0: bus1: Switched to core: 0x812
| b43-phy0: Found PHY: Analog 9, Type 7 (HT), Revision 1
| b43-phy0: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1
| b43-phy0 warning: 5 GHz band is unsupported on this PHY
| b43-phy1: Broadcom 43431 WLAN found (core revision 29)
| bcma-pci-bridge 0001:01:00.0: bus2: Switched to core: 0x812
| b43-phy1: Found PHY: Analog 9, Type 7 (HT), Revision 1
| b43-phy1: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1
| b43-phy1 warning: 5 GHz band is unsupported on this PHY
| b43-phy2: Broadcom 43228 WLAN found (core revision 30)
| bcma-pci-bridge 0002:01:00.0: bus3: Switched to core: 0x812
| b43-phy2: Found PHY: Analog 9, Type 4 (N), Revision 16
| b43-phy2: Found Radio: Manuf 0x17F, ID 0x2057, Revision 9, Version 1
| Broadcom 43xx driver loaded [ Features: NL ]

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

authored by

Christian Lamparter and committed by
Florian Fainelli
935327a7 2f6a83dd

+167
+1
arch/arm/boot/dts/Makefile
··· 135 135 bcm47094-luxul-xwr-3150-v1.dtb \ 136 136 bcm47094-netgear-r8500.dtb \ 137 137 bcm47094-phicomm-k3.dtb \ 138 + bcm53015-meraki-mr26.dtb \ 138 139 bcm53016-meraki-mr32.dtb \ 139 140 bcm94708.dtb \ 140 141 bcm94709.dtb \
+166
arch/arm/boot/dts/bcm53015-meraki-mr26.dts
··· 1 + // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 + /* 3 + * Broadcom BCM470X / BCM5301X ARM platform code. 4 + * DTS for Meraki MR26 / Codename: Venom 5 + * 6 + * Copyright (C) 2022 Christian Lamparter <chunkeey@gmail.com> 7 + */ 8 + 9 + /dts-v1/; 10 + 11 + #include "bcm4708.dtsi" 12 + #include "bcm5301x-nand-cs0-bch8.dtsi" 13 + #include <dt-bindings/leds/common.h> 14 + 15 + / { 16 + compatible = "meraki,mr26", "brcm,bcm53015", "brcm,bcm4708"; 17 + model = "Meraki MR26"; 18 + 19 + memory@0 { 20 + reg = <0x00000000 0x08000000>; 21 + device_type = "memory"; 22 + }; 23 + 24 + leds { 25 + compatible = "gpio-leds"; 26 + 27 + led-0 { 28 + function = LED_FUNCTION_FAULT; 29 + color = <LED_COLOR_ID_AMBER>; 30 + gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>; 31 + panic-indicator; 32 + }; 33 + led-1 { 34 + function = LED_FUNCTION_INDICATOR; 35 + color = <LED_COLOR_ID_WHITE>; 36 + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; 37 + }; 38 + }; 39 + 40 + keys { 41 + compatible = "gpio-keys"; 42 + #address-cells = <1>; 43 + #size-cells = <0>; 44 + 45 + key-restart { 46 + label = "Reset"; 47 + linux,code = <KEY_RESTART>; 48 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 49 + }; 50 + }; 51 + }; 52 + 53 + &uart0 { 54 + clock-frequency = <50000000>; 55 + /delete-property/ clocks; 56 + }; 57 + 58 + &uart1 { 59 + status = "disabled"; 60 + }; 61 + 62 + &gmac0 { 63 + status = "okay"; 64 + }; 65 + 66 + &gmac1 { 67 + status = "disabled"; 68 + }; 69 + &gmac2 { 70 + status = "disabled"; 71 + }; 72 + &gmac3 { 73 + status = "disabled"; 74 + }; 75 + 76 + &nandcs { 77 + nand-ecc-algo = "hw"; 78 + 79 + partitions { 80 + compatible = "fixed-partitions"; 81 + #address-cells = <0x1>; 82 + #size-cells = <0x1>; 83 + 84 + partition@0 { 85 + label = "u-boot"; 86 + reg = <0x0 0x200000>; 87 + read-only; 88 + }; 89 + 90 + partition@200000 { 91 + label = "u-boot-env"; 92 + reg = <0x200000 0x200000>; 93 + /* empty */ 94 + }; 95 + 96 + partition@400000 { 97 + label = "u-boot-backup"; 98 + reg = <0x400000 0x200000>; 99 + /* empty */ 100 + }; 101 + 102 + partition@600000 { 103 + label = "u-boot-env-backup"; 104 + reg = <0x600000 0x200000>; 105 + /* empty */ 106 + }; 107 + 108 + partition@800000 { 109 + label = "ubi"; 110 + reg = <0x800000 0x7780000>; 111 + }; 112 + }; 113 + }; 114 + 115 + &srab { 116 + status = "okay"; 117 + 118 + ports { 119 + port@0 { 120 + reg = <0>; 121 + label = "poe"; 122 + }; 123 + 124 + port@5 { 125 + reg = <5>; 126 + label = "cpu"; 127 + ethernet = <&gmac0>; 128 + 129 + fixed-link { 130 + speed = <1000>; 131 + duplex-full; 132 + }; 133 + }; 134 + }; 135 + }; 136 + 137 + &i2c0 { 138 + status = "okay"; 139 + 140 + pinctrl-names = "default"; 141 + pinctrl-0 = <&pinmux_i2c>; 142 + 143 + clock-frequency = <100000>; 144 + 145 + ina219@40 { 146 + compatible = "ti,ina219"; /* PoE power */ 147 + reg = <0x40>; 148 + shunt-resistor = <60000>; /* = 60 mOhms */ 149 + }; 150 + 151 + eeprom@56 { 152 + compatible = "atmel,24c64"; 153 + reg = <0x56>; 154 + pagesize = <32>; 155 + read-only; 156 + #address-cells = <1>; 157 + #size-cells = <1>; 158 + 159 + /* it's empty */ 160 + }; 161 + }; 162 + 163 + &thermal { 164 + status = "disabled"; 165 + /* does not work, reads 418 degree Celsius */ 166 + };