blob: 66dfb53be08a04e7179238ec22817edc024bd954 [file] [log] [blame]
Rafał Miłecki691917f2015-05-13 09:10:53 +02001/*
2 * Broadcom BCM470X / BCM5301X arm platform code.
3 * DTS for SmartRG SR400ac
4 *
5 * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
6 *
7 * Licensed under the GNU/GPL. See COPYING for details.
8 */
9
10/dts-v1/;
11
12#include "bcm4708.dtsi"
13
14/ {
15 compatible = "smartrg,sr400ac", "brcm,bcm4708";
16 model = "SmartRG SR400ac";
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 memory {
23 reg = <0x00000000 0x08000000>;
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 power-white {
30 label = "bcm53xx:white:power";
31 gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
32 linux,default-trigger = "default-on";
33 };
34
35 power-amber {
36 label = "bcm53xx:amber:power";
37 gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
38 linux,default-trigger = "default-off";
39 };
40
41 usb2 {
42 label = "bcm53xx:white:usb2";
43 gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
44 linux,default-trigger = "default-off";
45 };
46
47 usb3-white {
48 label = "bcm53xx:white:usb3";
49 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger = "default-off";
51 };
52
53 usb3-green {
54 label = "bcm53xx:green:usb3";
55 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
56 linux,default-trigger = "default-off";
57 };
58
59 wps {
60 label = "bcm53xx:white:wps";
61 gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
62 linux,default-trigger = "default-off";
63 };
64
65 status-red {
66 label = "bcm53xx:red:status";
67 gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
68 linux,default-trigger = "default-off";
69 };
70
71 status-green {
72 label = "bcm53xx:green:status";
73 gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
74 linux,default-trigger = "default-off";
75 };
76
77 status-blue {
78 label = "bcm53xx:blue:status";
79 gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
80 linux,default-trigger = "default-off";
81 };
82
83 wan-white {
84 label = "bcm53xx:white:wan";
85 gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
86 linux,default-trigger = "default-off";
87 };
88
89 wan-red {
90 label = "bcm53xx:red:wan";
91 gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
92 linux,default-trigger = "default-off";
93 };
94 };
95
96 gpio-keys {
97 compatible = "gpio-keys";
98 #address-cells = <1>;
99 #size-cells = <0>;
100
101 rfkill {
102 label = "WiFi";
103 linux,code = <KEY_RFKILL>;
104 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
105 };
106
107 wps {
108 label = "WPS";
109 linux,code = <KEY_WPS_BUTTON>;
110 gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
111 };
112
113 restart {
114 label = "Reset";
115 linux,code = <KEY_RESTART>;
116 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
117 };
118 };
119};