找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1918|回复: 1

RG100A最新trunk版Dts文件

[复制链接]
悬赏10恩山币未解决
本帖最后由 dnnn 于 2015-8-3 07:54 编辑

自己解决了,顺便分享了
  1. /dts-v1/;

  2. #include "bcm6358.dtsi"

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

  4. / {
  5.         model = "Alcatel RG100A";
  6.         compatible = "alcatel,rg100a", "brcm,bcm6358";

  7.         gpio-keys-polled {
  8.                 compatible = "gpio-keys-polled";
  9.                 #address-cells = <1>;
  10.                 #size-cells = <0>;
  11.                 poll-interval = <20>;
  12.                 debounce-interval = <60>;

  13.                 reset {
  14.                         label = "reset";
  15.                         gpios = <&gpio1 4 1>;
  16.                         linux,code = <KEY_RESTART>;
  17.                 };
  18.                 wifi {
  19.                         label = "wifi";
  20.                         gpios = <&gpio1 2 1>;
  21.                         linux,code = <BTN_0>;
  22.                 };
  23.                 wps {
  24.                         label = "wps";
  25.                         gpios = <&gpio1 5 1>;
  26.                         linux,code = <KEY_WPS_BUTTON>;
  27.                 };
  28.         };

  29.         gpio-leds {
  30.                 compatible = "gpio-leds";

  31.                 stop_green {
  32.                         label = "96358VW2:green:stop";
  33.                         gpios = <&gpio0 4 1>;
  34.                 };
  35.                 power_green {
  36.                         label = "96358VW2:green:power";
  37.                         gpios = <&gpio0 5 1>;
  38.                         default-state = "on";
  39.                 };
  40.                 adsl_green {
  41.                         label = "96358VW2:green:adsl";
  42.                         gpios = <&gpio0 22 1>;
  43.                 };
  44.                 ppp_fail_green {
  45.                         label = "96358VW2:green:ppp-fail";
  46.                         gpios = <&gpio0 8 0>;
  47.                 };
  48.                 wps_green {
  49.                         label = "96358VW2:green:wps";
  50.                         gpios = <&gpio0 24 1>;
  51.                 };
  52.                 usb_green {
  53.                         label = "96358VW2:green:usb";
  54.                         gpios = <&gpio0 0 1>;
  55.                 };
  56.         };
  57. };

  58. &pflash {
  59.         status = "ok";

  60.         linux,part-probe = "bcm63xxpart";

  61.         cfe@0 {
  62.                 label = "CFE";
  63.                 reg = <0x000000 0x020000>;
  64.                 read-only;
  65.         };

  66.         linux@20000 {
  67.                 label = "linux";
  68.                 reg = <0x020000 0xfc0000>;
  69.         };

  70.         nvram@fe0000 {
  71.                 label = "nvram";
  72.                 reg = <0xfe0000 0x020000>;
  73.         };
  74. };
复制代码





我的恩山、我的无线 The best wifi forum is right here.
dts的缩进貌似要用tab,不能用空格,你试试,其他的就不懂了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-5 05:28

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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