forked from Openwrt/openwrt
CREALITY BOX WB01 is small footprint router based on MediaTek MT7688, is a device intended to interface Creality brand 3D printers to a cloud service. Specifications: - SoC: MediaTek MT7688AN @ 580MHz - RAM: DDR2 128M (Winbond W971GG6SB-25) - Flash: BoyaMicro BY25Q128AS (16 MiB, SPI NOR) handled by BoHong bh25q128as driver - WiFi: 2.4GHz 1T1R internal panel antenna - Ethernet: 1x LAN (10/100) - USB: 2x USB2.0 port (Genesys Logic GL850G 2 port USB 2.0 hub) - UART: 3.3V, TX, RX, GND / 56700 8N1 / only pads on PCB - microSD SD-XC Class 10 slot - micro USB input (for power only) - reset button - FCC ID: 2AXH6CREALITY-BOX MAC addresses as verified by OEM firmware: vendor OpenWrt source LAN eth0 factory 0x2e 2.4GHz phy0-ap0 factory 0x04 (label) LEDs color vendor OpenWRT configurable red SD card activity - yes green Cloud connectivity status yes blue LAN activity eth0 yes yellow WIFI activity phy0tpt yes Return to OEM & debrick - download "cxsw_update.tar.bz2" from manufacturer site - extract archive to FAT32 USB stick root - put USB stick in USB2 port - press & hold reset button - power on device while holding reset - wait approx 10 sec - release reset button Installation with SD Card - power on device - wait for device to finish starting - copy "openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2" to root of FAT32 SD card - rename openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2 to "cxsw_update.tar.bz2" - put SD card in device - device will install OpenWRT on internal flash Installation via telnet: - extract the "factory.bin" and "install.sh" from newly created openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2 to FAT32 USB stick root - telnet to 10.10.10.254, user: root, password: cxswprin - plug the USB in USB1 port - cd /media/usbdisk/ - sh install.sh - device will write "factory.bin" to internal flash Co-authored-by: George Brooke <figgyc@figgyc.uk> Co-authored-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com> Co-authored-by: shivajiva101 <github.com/shivajiva101> Co-authored-by: Axel Sepulveda <ansepulveda@uc.cl> Signed-off-by: Axel Sepulveda <ansepulveda@uc.cl> Link: https://github.com/openwrt/openwrt/pull/19686 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
165 lines
2.8 KiB
Plaintext
165 lines
2.8 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "mt7628an.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
/ {
|
|
compatible = "creality,wb-01", "mediatek,mt7628an-soc";
|
|
model = "Creality WB-01";
|
|
|
|
aliases {
|
|
led-boot = &led_status;
|
|
led-failsafe = &led_status;
|
|
led-upgrade = &led_status;
|
|
led-running = &led_status;
|
|
label-mac-device = &wmac;
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_wlan2 {
|
|
function = LED_FUNCTION_WLAN_2GHZ;
|
|
color = <LED_COLOR_ID_YELLOW>;
|
|
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
|
|
led_lan {
|
|
function = LED_FUNCTION_LAN;
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_status: status {
|
|
function = LED_FUNCTION_STATUS;
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_sd {
|
|
function = LED_FUNCTION_SD;
|
|
color = <LED_COLOR_ID_RED>;
|
|
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
|
|
flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <10000000>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "u-boot";
|
|
reg = <0x0 0x30000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@30000 {
|
|
label = "u-boot-env";
|
|
reg = <0x30000 0x10000>;
|
|
read-only;
|
|
};
|
|
|
|
factory: partition@40000 {
|
|
compatible = "nvmem-cells";
|
|
label = "factory";
|
|
reg = <0x40000 0x10000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
read-only;
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
macaddr_factory_4: macaddr@4 {
|
|
reg = <0x04 0x6>;
|
|
};
|
|
|
|
macaddr_factory_28: macaddr@28 {
|
|
reg = <0x28 0x6>;
|
|
};
|
|
};
|
|
};
|
|
|
|
partition@50000 {
|
|
compatible = "denx,uimage";
|
|
label = "firmware";
|
|
reg = <0x50000 0xfb0000>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&esw {
|
|
mediatek,portmap = <0x3f>;
|
|
mediatek,portdisable = <0x3e>;
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "wdt", "p3led_an", "p1led_an", "p0led_an", "wled_an";
|
|
function = "gpio";
|
|
};
|
|
};
|
|
|
|
&wmac {
|
|
status = "okay";
|
|
|
|
nvmem-cells = <&macaddr_factory_4>;
|
|
nvmem-cell-names = "macaddr";
|
|
};
|
|
|
|
ðernet {
|
|
nvmem-cells = <&macaddr_factory_28>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
&pinctrl {
|
|
ephy-digital;
|
|
|
|
sdxc_iot_mode: sdxc_iot_mode {
|
|
esd {
|
|
groups = "esd";
|
|
function = "iot";
|
|
};
|
|
|
|
sdxc {
|
|
groups = "sdmode";
|
|
function = "sdxc";
|
|
};
|
|
};
|
|
};
|
|
|
|
&sdhci {
|
|
status = "okay";
|
|
pinctrl-0 = <&sdxc_iot_mode>;
|
|
pinctrl-1 = <&sdxc_iot_mode>;
|
|
mediatek,cd-low;
|
|
};
|
|
|