New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ath79: add support for D-link DAP-1720 A1 #13984
Conversation
If #13930 is merged before this, I'll update the makefile to create also |
EDIT: I got an |
@neheb maybe you know why my DTS makes
|
No idea. Might be a problem with ath79 dtsi files. Not sure. |
}; | ||
|
||
partition@ff0000 { | ||
label = "art"; // vendor calls it `radiocfg` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you use the names the vendor used for the partitions OpenWrt does not directly access?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
art
, uboot
, etc seemed more common. It seems to only matter within the DTS.
Should I change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok fine with me.
What does the |
PCB silkscreen text. |
33e2728
to
aa247f0
Compare
@Rayne if that OF warning still appears,
is needed before partitions under flash. |
Thanks @neheb. Is this needed both within P.S. you pinged Rayne; I'm raenye :) |
Just the former. Apparently that warning gets triggered when the parent is missing those. |
@neheb I see I have this warning on my *For some reason I don't get this warning on Xiaomi Redmi AX6S |
Feel free to do so. Although @mpratt14 changes it to a debug warning instead of an error. Given that it’s not upstream, makes sense to fix it. |
yeah, "bad cell count" from lack of defining address-cells and size-cells in the partitions is in the entirety of openwrt, in all subtargets the reason is, partitions and their sub nodes are only just recently having address translation because of the addition of of_platform_populate() being used in mtdcore, and that was done to make the nvmem driver capable of using the partitions nodes as nvmem providers (which are usually standalone devices) basically, the kernel is parsing the data in the nodes as if they were real physical devices in the SOC with a bus address range and registers and so on, but they aren't, the nodes are literally just info for the virtual flash space. the error is meant to tell the developer why the device isn't working in the case of the dts being written wrong, but it doesn't mean anything for nodes not representing a real device. |
I prefer less warnings :) |
same here, that's why I was hoping my PR with a commit that silences it gets accepted before it's 1 year old zzzzzz maybe I should put that in a separate PR by itself... |
D-Link DAP-1720 rev A1 is a mains-powered AC1750 Wi-Fi range extender, manufactured by Alpha Networks [8WAPAC28.1A1G]. (in square brackets: PCB silkscreen markings) Specifications: * CPU (Qualcomm Atheros QCA9563-AL3A [U5]): 775 MHz single core MIPS 74Kc; * RAM (Winbond W9751G6KB-25J [U3]): 64 MiB DDR2; * ROM (Winbond W25Q128FV [U16]): 16 MiB SPI NOR flash; * Ethernet (AR8033-AL1A PHY [U1], no switch): 1 GbE RJ45 port (no PHY LEDs); * Wi-Fi * 2.4 GHz (Qualcomm Atheros QCA9563-AL3A [U5]): 3x3 802.11n; * 5 GHz (Qualcomm Atheros QCA9880-BR4A [U9]): 3x3 802.11ac Wave 1; * 3 foldable dual-band antennas (U.fl) [P1],[P2],[P3]; * GPIO LEDs: * RSSI low (red/green) [D2]; * RSSI medium (green) [D3]; * RSSI high (green) [D4]; * status (red/green) [D5]; * GPIO buttons: * WPS [SW1], co-located with status LED; * reset [SW4], accessible via hole in the side; * Serial/UART: Tx-Gnd-3v3-Rx [JP1], Tx is the square pin, 1.25mm pitch; 125000-8-n-1 in U-boot, 115200-8-n-1 in kernel; * Misc: * 12V VCC [JP2], fed from internal 12V/1A AC to DC converter; * on/off slide switch [SW2] (disconnects VCC mechanically); * unpopulated footprints for a Wi-Fi LED [D1]; * unpopulated footprints for a 4-pin 3-position slide switch (SW3); MAC addresses: * Label = LAN; * 2.4 GHz WiFi = LAN; * 5 GHz WiFi = LAN+2; Installation: * `factory.bin` can be used to install OpenWrt from OEM firmware via the standard upgrade webpage at http://192.168.0.50/UpdateFirmware.html * `recovery.bin` can be used to install OpenWrt (or revert to OEM firmware) from D-Link Web Recovery. To enter web recovery, keep reset button pressed and then power on the device. Reset button can be released when the red status LED is bright; it will then blink slowly. Set static IP to 192.168.0.10, navigate to http://192.168.0.50 and upload 'recovery.bin'. Note that in web recovery mode the device ignores ping and DHCP requests. Note: 802.11s is not supported by the default `ath10k` driver and firmware, but is supported by the non-CT driver and firmware variants. The `-smallbuffers` driver variant is recommended due to RAM size. Co-developed-by: Anthony Sepa <protectivedad@gmail.com> Signed-off-by: Rani Hod <rani.hod@gmail.com>
@raenye here's the kicker. it fixes a runtime warning but introduces a compile time warning(currently suppressed) saying that it's unnecessary. Confusingly, ath79 throws the runtime warning but mt7621 does not. It's some very strange dts interaction. |
what's the compile time warning say? |
It’s the bad cell count one. |
D-Link DAP-1720 rev A1 is a mains-powered AC1750 Wi-Fi range extender, manufactured by Alpha Networks [8WAPAC28.1A1G].
(in square brackets: PCB silkscreen markings)
Specifications:
775 MHz single core MIPS 74Kc;
64 MiB DDR2;
16 MiB SPI NOR flash;
1 GbE RJ45 port (no PHY LEDs);
3x3 802.11n;
3x3 802.11ac Wave 1;
125000-8-n-1 in U-boot, 115200-8-n-1 in kernel;
MAC addresses:
Installation:
factory.bin
can be used to install OpenWrt from OEM firmware via the standard upgrade webpage at http://192.168.0.50/UpdateFirmware.htmlrecovery.bin
can be used to install OpenWrt (or revert to OEM firmware) from D-Link Web Recovery. To enter web recovery, keep reset button pressed and then power on the device. Reset button can be released when the red status LED is bright; it will then blink slowly. Set static IP to 192.168.0.10, navigate to http://192.168.0.50 and upload 'recovery.bin'. Note that in web recovery mode the device ignores ping and DHCP requests.Note: 802.11s is not supported by the default
ath10k
driver and firmware, but is supported by the non-CT driver and firmware variants. The-smallbuffers
driver variant is recommended due to RAM size.Co-developed-by: @protectivedad