|
楼主 |
发表于 2016-1-13 10:08
|
显示全部楼层
本帖最后由 wukaisky 于 2016-9-9 20:43 编辑
斐讯PSG1208
Reset: GPIO 1
wifi 2.4G: GPIO 72
wifi 5G: GPIO 24
wps: GPIO 39
贴一下DTS文件:
- /dts-v1/;
- /include/ "mt7620a.dtsi"
- / {
- compatible = "PSG1208", "ralink,mt7620a-soc";
- model = "Phicomm PSG1208";
- palmbus@10000000 {
- gpio0: gpio@600 {
- status = "okay";
- };
- gpio1: gpio@638 {
- status = "okay";
- };
- gpio3: gpio@688 {
- status = "okay";
- };
- spi@b00 {
- status = "okay";
- m25p80@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "w25q64";
- reg = <0 0>;
- linux,modalias = "m25p80", "w25q64";
- spi-max-frequency = <10000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- };
- 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 0x7b0000>;
- };
- };
- };
- };
- ethernet@10100000 {
- pinctrl-names = "default";
- pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x28>;
- ralink,port-map = "llllw";
- };
- wmac@10180000 {
- ralink,mtd-eeprom = <&factory 0>;
- };
- pcie@10140000 {
- status = "okay";
- pcie-bridge {
- mt76@0,0 {
- reg = <0x0000 0 0 0 0>;
- device_type = "pci";
- mediatek,mtd-eeprom = <&factory 0x8000>;
- mediatek,2ghz = <0>;
- };
- };
- };
- pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "spi refclk", "wled";
- ralink,function = "gpio";
- };
- };
- };
- gpio-leds {
- compatible = "gpio-leds";
- wps {
- label = "phicomm:white:wps";
- gpios = <&gpio1 15 1>;
- };
- wlan {
- label = "phicomm:white:wlan2g";
- 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>;
- };
- };
- };
复制代码
- /dts-v1/;
- /include/ "mt7620a.dtsi"
- / {
- compatible = "PSG1218", "ralink,mt7620a-soc";
- model = "Phicomm PSG1218";
- palmbus@10000000 {
- gpio0: gpio@600 {
- status = "okay";
- };
- spi@b00 {
- status = "okay";
- m25p80@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "gd25q64";
- reg = <0 0>;
- linux,modalias = "m25p80", "gd25q64";
- spi-max-frequency = <10000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- };
- 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 0x7b0000>;
- };
- };
- };
- };
- ethernet@10100000 {
- pinctrl-names = "default";
- pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x28>;
- ralink,port-map = "llllw";
- };
- wmac@10180000 {
- ralink,mtd-eeprom = <&factory 0>;
- };
- pcie@10140000 {
- status = "okay";
- pcie-bridge {
- mt76@0,0 {
- reg = <0x0000 0 0 0 0>;
- device_type = "pci";
- mediatek,mtd-eeprom = <&factory 0x8000>;
- mediatek,2ghz = <0>;
- };
- };
- };
- pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uartf";
- ralink,function = "gpio";
- };
- pa {
- ralink,group = "pa";
- ralink,function = "pa";
- };
- };
- };
- gpio-leds {
- compatible = "gpio-leds";
- red {
- label = "phicomm:red:status";
- gpios = <&gpio0 8 0>;
- };
- blue {
- label = "phicomm:blue:status";
- gpios = <&gpio0 10 1>;
- };
- yellow {
- label = "phicomm:yellow:status";
- gpios = <&gpio0 11 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>;
- };
- };
- };
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|