找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5189|回复: 6

发一个斐讯K2的DTS,在K1基础上改的

[复制链接]
本帖最后由 wukaisky 于 2016-8-22 19:38 编辑

乱写的,希望大神能指点一下,谢谢

  1. /dts-v1/;

  2. /include/ "mt7620a.dtsi"

  3. / {
  4.         compatible = "PSG1218", "ralink,mt7620a-soc";
  5.         model = "Phicomm PSG1218";

  6.         palmbus@10000000 {
  7.                 gpio0: gpio@600 {
  8.                         status = "okay";
  9.                 };

  10.                 spi@b00 {
  11.                         status = "okay";

  12.                         m25p80@0 {
  13.                                 #address-cells = <1>;
  14.                                 #size-cells = <1>;
  15.                                 compatible = "gd25q64";
  16.                                 reg = <0 0>;
  17.                                 linux,modalias = "m25p80", "gd25q64";
  18.                                 spi-max-frequency = <10000000>;

  19.                                 partition@0 {
  20.                                         label = "u-boot";
  21.                                         reg = <0x0 0x30000>;
  22.                                 };

  23.                                 partition@30000 {
  24.                                         label = "u-boot-env";
  25.                                         reg = <0x30000 0x10000>;
  26.                                         read-only;
  27.                                 };

  28.                                 factory: partition@40000 {
  29.                                         label = "factory";
  30.                                         reg = <0x40000 0x10000>;
  31.                                         read-only;
  32.                                 };

  33.                                 partition@50000 {
  34.                                         label = "firmware";
  35.                                         reg = <0x50000 0x7b0000>;
  36.                                 };
  37.                         };
  38.                 };
  39.         };

  40.         ethernet@10100000 {
  41.                 pinctrl-names = "default";
  42.                 pinctrl-0 = <&ephy_pins>;
  43.                 mtd-mac-address = <&factory 0x28>;
  44.                 ralink,port-map = "llllw";
  45.         };

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

  49.         pcie@10140000 {
  50.                 status = "okay";

  51.                 pcie-bridge {
  52.                         mt76@0,0 {
  53.                                 reg = <0x0000 0 0 0 0>;
  54.                                 device_type = "pci";
  55.                                 mediatek,mtd-eeprom = <&factory 0x8000>;
  56.                                 mediatek,2ghz = <0>;
  57.                         };
  58.                 };
  59.         };

  60.         pinctrl {
  61.                 state_default: pinctrl0 {
  62.                         gpio {
  63.                                 ralink,group = "i2c", "uartf";
  64.                                 ralink,function = "gpio";
  65.                         };

  66.                         pa {
  67.                                 ralink,group = "pa";
  68.                                 ralink,function = "pa";
  69.                         };
  70.                 };
  71.         };

  72.         gpio-leds {
  73.                 compatible = "gpio-leds";

  74.                 red {
  75.                         label = "phicomm:red:status";
  76.                         gpios = <&gpio0 8 0>;
  77.                 };

  78.                 blue {
  79.                         label = "phicomm:blue:status";
  80.                         gpios = <&gpio0 10 1>;
  81.                 };

  82.                 yellow {
  83.                         label = "phicomm:yellow:status";
  84.                         gpios = <&gpio0 11 1>;
  85.                 };
  86.         };

  87.         gpio-keys-polled {
  88.                 compatible = "gpio-keys-polled";
  89.                 #address-cells = <1>;
  90.                 #size-cells = <0>;
  91.                 poll-interval = <20>;

  92.                 reset {
  93.                         label = "reset";
  94.                         gpios = <&gpio0 1 1>;
  95.                         linux,code = <0x198>;
  96.                 };
  97.         };
  98. };
复制代码
我的恩山、我的无线 The best wifi forum is right here.
这个是什么作用 小白 不懂啊 呵呵
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看到 pa 了 希望有用,造福坛友.
K2 没有gpio 指示灯的吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看到加入pa的驱动定义了  应该会信号更好   貌似没有加入LED的gpio定义?

点评

那个灯是死的,控制不了的。  详情 回复 发表于 2016-3-28 15:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
laoma348 发表于 2016-3-28 13:35
看到加入pa的驱动定义了  应该会信号更好   貌似没有加入LED的gpio定义?

那个灯是死的,控制不了的。

点评

经过一轮乱设置LED,可以亮,只是设置好奇怪 改变 颜色和默认状态 的组合,可以显示 红色、黄色、蓝色、紫色(红+蓝)、橙色(红+黄)  详情 回复 发表于 2016-7-7 07:52
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
这是啥玩意啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

wukaisky 发表于 2016-3-28 15:43
那个灯是死的,控制不了的。

经过一轮乱设置LED,可以亮,只是设置好奇怪

改变 颜色和默认状态 的组合,可以显示 红色、黄色、蓝色、紫色(红+蓝)、橙色(红+黄)
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-4-30 01:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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