OpenWrt Forum Archive

Topic: 16MB FLASH(W25Q128) on zbt-wa05(mt7620n),led not working.

The content of this topic has been archived on 10 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I mod zbt-wa05 with a 16MB FLASH(W25Q128) instead of original 8mb w25q64.  In the sdk,I changed target/linux/ramips/dts/ZBT-wa05.dts as below.
http://s6.sinaimg.cn/large/005HbPEYgy6MO88VQQRd5&690

http://s6.sinaimg.cn/large/005HbPEYgy6M … d5&690

In target/linux/ramips/image/Makefile,I changed Default8M to Default16M
http://i.imgur.com/Ez06QtX.png
I thought it was done for the mod.But the leds are not working except wan&lan.Any expert can help me fix it?

(Last edited by axishero on 8 Apr 2015, 15:53)

/dts-v1/;

/include/ "mt7620n.dtsi"

/ {
    compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
    model = "Zbtlink ZBT-WA05";

    chosen {
        bootargs = "console=ttyS0,115200";
    };

    palmbus@10000000 {
        gpio1: gpio@638 {
            status = "okay";
        };

        gpio2: gpio@660 {
            status = "okay";
        };

        gpio3: gpio@688 {
            status = "okay";
        };

        spi@b00 {
            status = "okay";

            en25q64@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "w25q64";
                reg = <0 0>;
                linux,modalias = "m25p80", "w25q128";
                spi-max-frequency = <10000000>;

                partition@0 {
                    label = "u-boot";
                    reg = <0x0 0x30000>;
                    read-only;
                };

                partition@30000 {
                    label = "u-boot-env";
                    reg = <0x30000 0x10000>;
                    read-only;
                };

                factory: partition@40000 {
                    label = "factory";
                    reg = <0x40000 0x10000>;
                    read-only;
                };

                partition@50000 {
                    label = "firmware";
                    reg = <0x50000 0xfb0000>;
                };
            };
        };
    };

    ehci@101c0000 {
        status = "okay";
    };

    ohci@101c1000 {
        status = "okay";
    };

    ethernet@10100000 {
        mtd-mac-address = <&factory 0x4>;
        ralink,port-map = "wllll";
    };

    wmac@10180000 {
        ralink,mtd-eeprom = <&factory 0>;
    };

    pinctrl {
        state_default: pinctrl0 {
            default {
                ralink,group = "i2c", "spi refclk", "wled";
                ralink,function = "gpio";
            };
        };
    };

    gpio-leds {
        compatible = "gpio-leds";
        power {
            label = "zbtlink:blue:power";
            gpios = <&gpio1 14 1>;
        };
        usb {
            label = "zbtlink:blue:usb";
            gpios = <&gpio1 15 0>;
        };
        air {
            label = "zbtlink:blue:air";
            gpios = <&gpio3 0 1>;
        };
    };

    gpio-keys-polled {
        compatible = "gpio-keys-polled";
        #address-cells = <1>;
        #size-cells = <0>;
        poll-interval = <20>;
        reset {
            label = "reset";
            gpios = <&gpio0 1 1>;
            linux,code = <0x198>;
        };
    };
};

Hello
I have the ZBT-WR8305RT from the same company, try this dts file and see if your leds come up. You might have to edit your flash type.

Naitachal wrote:

/dts-v1/;

/include/ "mt7620n.dtsi"

/ {
    compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
    model = "Zbtlink ZBT-WA05";

    chosen {
        bootargs = "console=ttyS0,115200";
    };

    palmbus@10000000 {
        gpio1: gpio@638 {
            status = "okay";
        };

        gpio2: gpio@660 {
            status = "okay";
        };

        gpio3: gpio@688 {
            status = "okay";
        };

        spi@b00 {
            status = "okay";

            en25q64@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "w25q64";
                reg = <0 0>;
                linux,modalias = "m25p80", "w25q128";
                spi-max-frequency = <10000000>;

                partition@0 {
                    label = "u-boot";
                    reg = <0x0 0x30000>;
                    read-only;
                };

                partition@30000 {
                    label = "u-boot-env";
                    reg = <0x30000 0x10000>;
                    read-only;
                };

                factory: partition@40000 {
                    label = "factory";
                    reg = <0x40000 0x10000>;
                    read-only;
                };

                partition@50000 {
                    label = "firmware";
                    reg = <0x50000 0xfb0000>;
                };
            };
        };
    };

    ehci@101c0000 {
        status = "okay";
    };

    ohci@101c1000 {
        status = "okay";
    };

    ethernet@10100000 {
        mtd-mac-address = <&factory 0x4>;
        ralink,port-map = "wllll";
    };

    wmac@10180000 {
        ralink,mtd-eeprom = <&factory 0>;
    };

    pinctrl {
        state_default: pinctrl0 {
            default {
                ralink,group = "i2c", "spi refclk", "wled";
                ralink,function = "gpio";
            };
        };
    };

    gpio-leds {
        compatible = "gpio-leds";
        power {
            label = "zbtlink:blue:power";
            gpios = <&gpio1 14 1>;
        };
        usb {
            label = "zbtlink:blue:usb";
            gpios = <&gpio1 15 0>;
        };
        air {
            label = "zbtlink:blue:air";
            gpios = <&gpio3 0 1>;
        };
    };

    gpio-keys-polled {
        compatible = "gpio-keys-polled";
        #address-cells = <1>;
        #size-cells = <0>;
        poll-interval = <20>;
        reset {
            label = "reset";
            gpios = <&gpio0 1 1>;
            linux,code = <0x198>;
        };
    };
};

Hello
I have the ZBT-WR8305RT from the same company, try this dts file and see if your leds come up. You might have to edit your flash type.

Is this dts given you by the stuff of this company?

I got a complete sdk from this company, so this is direct from it. the only thing I'm missing is the bootloader since mine is made for their market I'm unable to read the file recovery screen.

The discussion might have continued from here.