[OpenWrt-Devel] [PATCH v4] ramips: add support for MQmaker WiTi board
Felix Fietkau
nbd at openwrt.org
Thu Dec 3 06:13:21 EST 2015
On 2015-12-03 07:20, Sebastian Careba wrote:
> The board is based on mt7621AT cpu, and has 16mb nor flash, 256mb of ram, 2 sata ports, microsd card slot, 1 USB 3.0 port and at least one 2.4 and one 5 ghz antenna. This is the 4th submission that fixes the naming scheme for Mqmaker WiTi board.
> Patch v1 added initial support for MQmaker WiTi board. The device tree is based on PBR-M1.
> Patch v2 changed the flash chip ID (w25q256 to gd25q128).
> Patch v3 fixed the left-out entry for WiTi in 02_network.
>
> Signed-off-by: Sebastian Careba <nitroshift at yahoo.com>
> ---
> .../patches-3.18/999-add_gd25q128_support.patch | 13 ++
> .../linux/ramips/base-files/etc/board.d/02_network | 1 +
> target/linux/ramips/base-files/etc/diag.sh | 1 +
> target/linux/ramips/base-files/lib/ramips.sh | 3 +
> .../ramips/base-files/lib/upgrade/platform.sh | 1 +
> target/linux/ramips/dts/WITI.dts | 142 +++++++++++++++++++++
> target/linux/ramips/image/Makefile | 7 +-
> target/linux/ramips/mt7621/profiles/mqmaker.mk | 20 +++
> 8 files changed, 187 insertions(+), 1 deletion(-)
> create mode 100644 target/linux/generic/patches-3.18/999-add_gd25q128_support.patch
> create mode 100644 target/linux/ramips/dts/WITI.dts
> create mode 100644 target/linux/ramips/mt7621/profiles/mqmaker.mk
>
> diff --git a/target/linux/generic/patches-3.18/999-add_gd25q128_support.patch b/target/linux/generic/patches-3.18/999-add_gd25q128_support.patch
> new file mode 100644
> index 0000000..e9c380b
> --- /dev/null
> +++ b/target/linux/generic/patches-3.18/999-add_gd25q128_support.patch
> @@ -0,0 +1,13 @@
> Index: linux-3.18.23/drivers/mtd/devices/m25p80.c
> ===================================================================
> --- linux-3.18.23.orig/drivers/mtd/devices/m25p80.c
> +++ linux-3.18.23/drivers/mtd/devices/m25p80.c
> @@ -352,7 +352,7 @@ static const struct spi_device_id m25p_i
> {"en25q64"}, {"en25qh128"}, {"en25qh256"},
> {"f25l32pa"},
> {"mr25h256"}, {"mr25h10"},
> - {"gd25q32"}, {"gd25q64"},
> + {"gd25q32"}, {"gd25q64"}, {"gd25q128"},
> {"160s33b"}, {"320s33b"}, {"640s33b"},
> {"mx25l2005a"}, {"mx25l4005a"}, {"mx25l8005"}, {"mx25l1606e"},
> {"mx25l3205d"}, {"mx25l3255e"}, {"mx25l6405d"}, {"mx25l12805d"},
Please drop this patch (see below).
> --- /dev/null
> +++ b/target/linux/ramips/dts/WITI.dts
> @@ -0,0 +1,142 @@
> +/dts-v1/;
> +
> +/include/ "mt7621.dtsi"
> +
> +/ {
> + compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
> + model = "MQmaker WiTi";
> +
> + memory at 0 {
> + device_type = "memory";
> + reg = <0x0 0x10000000>;
> + };
> +
> + chosen {
> + bootargs = "console=ttyS0,57600";
> + };
> +
> + sdhci at 10130000 {
> + status = "okay";
> + };
> +
> + palmbus at 1E000000 {
> + spi at b00 {
> + status = "okay";
> +
> + m25p80 at 0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "gd25q128";
Please use 'jedec,spi-nor' here, so you don't have to patch in the
device id for this chip.
- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list