找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 311|回复: 0

mt7621_zte_e8820s在immortalwrt有问题?有大神看一下?

[复制链接]
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "mt7621.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
        compatible = "zte,e8820s", "mediatek,mt7621-soc";
        model = "ZTE E8820S";

        aliases {
                led-boot = &led_sys;
                led-failsafe = &led_sys;
                led-running = &led_power;
                led-upgrade = &led_power;
                label-mac-device = &gmac0;
        };

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

        leds {
                compatible = "gpio-leds";

                led_power: power {
                        label = "white:power";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };

                led_sys: sys {
                        label = "white:sys";
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };

                wlan2g {
                        label = "white:wlan2g";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };

                wlan5g {
                        label = "white:wlan5g";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
        };

        keys {
                compatible = "gpio-keys";

                reset {
                        label = "reset";
                        gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };

                wps {
                        label = "wps";
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };

                wifi {
                        label = "wifi";
                        gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
        };

        ubi-concat {
                compatible = "mtd-concat";
                devices = <&ubipart0 &ubipart1>;

                partitions {
                        compatible = "fixed-partitions";
                        #address-cells = <1>;
                        #size-cells = <1>;

                        ubi@0 {
                                label = "ubi";
                                reg = <0x0 0x79c0000>;
                        };
                };
        };
};

&nand {
        status = "okay";

        partitions {
                compatible = "fixed-partitions";
                #address-cells = <1>;
                #size-cells = <1>;

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

                partition@80000 {
                        label = "debug";
                        reg = <0x80000 0x80000>;
                        read-only;
                };

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

                partition@140000 {
                        label = "kernel";
                        reg = <0x140000 0x400000>;
                };

                ubipart0: partition@540000 {
                        label = "ubipart0";
                        reg = <0x540000 0x1c80000>;
                };

                partition@21c0000 {
                        label = "bdinfo";
                        reg = <0x21c0000 0x80000>;
                        read-only;
                };

                ubipart1: partition@2240000 {
                        label = "ubipart1";
                        reg = <0x2240000 0x5d40000>;
                };
        };
};

&pcie {
        status = "okay";
};

&pcie0 {
        wifi@0,0 {
                compatible = "pci14c3,7603";
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&factory 0x0000>;
                ieee80211-freq-limit = <2400000 2500000>;
        };
};

&pcie1 {
        wifi@0,0 {
                compatible = "pci14c3,7662";
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&factory 0x8000>;
                ieee80211-freq-limit = <5000000 6000000>;
        };
};

&gmac0 {
        mtd-mac-address = <&factory 0xe006>;
};

&switch0 {
        /* must delete compatible property */
        /delete-property/ compatible;
};

&hnat {
        mtketh-wan = "eth1";
        mtketh-ppd = "eth0";
        mtketh-lan = "eth0";
        ext-devices = "wlan0","wlan1","rax0","ra0", "rai0","apclii0","apclix0", "apcli0";
        mtketh-max-gmac = <2>;
        status = "okay";
};

&gsw {
        mediatek,mdio = <&mdio>;
        mediatek,portmap = "llllw";
        mediatek,mcm;
        mt7530,direct-phy-access;

        resets = <&rstctrl 2>;
        reset-names = "mcm";

        port5: port@5 {
                compatible = "mediatek,mt753x-port";
                reg = <5>;
                phy-mode = "rgmii";
                fixed-link {
                        speed = <1000>;
                        full-duplex;
                };
        };

        port6: port@6 {
                compatible = "mediatek,mt753x-port";
                reg = <6>;
                phy-mode = "rgmii";
                fixed-link {
                        speed = <1000>;
                        full-duplex;
                };
        };

        mdio-bus {
                #address-cells = <1>;
                #size-cells = <0>;
        };
};

&state_default {
        gpio {
                groups = "jtag", "uart2", "uart3", "wdt";
                function = "gpio";
        };
};

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-21 15:10

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表