bcm4708-buffalo-wzr-1750dhp.dts revision 279377
1279377Simp/*
2279377Simp * Broadcom BCM470X / BCM5301X ARM platform code.
3279377Simp * DTS for Buffalo WZR-1750DHP
4279377Simp *
5279377Simp * Copyright (C) 2014 Rafa�� Mi��ecki <zajec5@gmail.com>
6279377Simp *
7279377Simp * Licensed under the GNU/GPL. See COPYING for details.
8279377Simp */
9279377Simp
10279377Simp/dts-v1/;
11279377Simp
12279377Simp#include "bcm4708.dtsi"
13279377Simp
14279377Simp/ {
15279377Simp	compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";
16279377Simp	model = "Buffalo WZR-1750DHP (BCM4708)";
17279377Simp
18279377Simp	chosen {
19279377Simp		bootargs = "console=ttyS0,115200";
20279377Simp	};
21279377Simp
22279377Simp	memory {
23279377Simp		reg = <0x00000000 0x08000000>;
24279377Simp	};
25279377Simp
26279377Simp	spi {
27279377Simp		compatible = "spi-gpio";
28279377Simp		num-chipselects = <1>;
29279377Simp		gpio-sck = <&chipcommon 7 0>;
30279377Simp		gpio-mosi = <&chipcommon 4 0>;
31279377Simp		cs-gpios = <&chipcommon 6 0>;
32279377Simp		#address-cells = <1>;
33279377Simp		#size-cells = <0>;
34279377Simp
35279377Simp		hc595: gpio_spi@0 {
36279377Simp			compatible = "fairchild,74hc595";
37279377Simp			reg = <0>;
38279377Simp			registers-number = <1>;
39279377Simp			spi-max-frequency = <100000>;
40279377Simp
41279377Simp			gpio-controller;
42279377Simp			#gpio-cells = <2>;
43279377Simp
44279377Simp		};
45279377Simp	};
46279377Simp
47279377Simp	leds {
48279377Simp		compatible = "gpio-leds";
49279377Simp
50279377Simp		power0 {
51279377Simp			label = "bcm53xx:red:power";
52279377Simp			gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
53279377Simp			linux,default-trigger = "default-off";
54279377Simp		};
55279377Simp
56279377Simp		power1 {
57279377Simp			label = "bcm53xx:white:power";
58279377Simp			gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
59279377Simp			linux,default-trigger = "default-on";
60279377Simp		};
61279377Simp
62279377Simp		router0 {
63279377Simp			label = "bcm53xx:blue:router";
64279377Simp			gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
65279377Simp			linux,default-trigger = "default-on";
66279377Simp		};
67279377Simp
68279377Simp		router1 {
69279377Simp			label = "bcm53xx:amber:router";
70279377Simp			gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
71279377Simp			linux,default-trigger = "default-off";
72279377Simp		};
73279377Simp
74279377Simp		wan {
75279377Simp			label = "bcm53xx:blue:wan";
76279377Simp			gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
77279377Simp			linux,default-trigger = "default-on";
78279377Simp		};
79279377Simp
80279377Simp		wireless0 {
81279377Simp			label = "bcm53xx:blue:wireless";
82279377Simp			gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
83279377Simp			linux,default-trigger = "default-off";
84279377Simp		};
85279377Simp
86279377Simp		wireless1 {
87279377Simp			label = "bcm53xx:amber:wireless";
88279377Simp			gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
89279377Simp			linux,default-trigger = "default-off";
90279377Simp		};
91279377Simp	};
92279377Simp
93279377Simp	gpio-keys {
94279377Simp		compatible = "gpio-keys";
95279377Simp		#address-cells = <1>;
96279377Simp		#size-cells = <0>;
97279377Simp
98279377Simp		restart {
99279377Simp			label = "Reset";
100279377Simp			linux,code = <KEY_RESTART>;
101279377Simp			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
102279377Simp		};
103279377Simp
104279377Simp		aoss {
105279377Simp			label = "AOSS";
106279377Simp			linux,code = <KEY_WPS_BUTTON>;
107279377Simp			gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
108279377Simp		};
109279377Simp
110279377Simp		/* Commit mode set by switch? */
111279377Simp		mode {
112279377Simp			label = "Mode";
113279377Simp			linux,code = <KEY_SETUP>;
114279377Simp			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
115279377Simp		};
116279377Simp
117279377Simp		/* Switch: AP mode */
118279377Simp		sw_ap {
119279377Simp			label = "AP";
120279377Simp			linux,code = <BTN_0>;
121279377Simp			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
122279377Simp		};
123279377Simp
124279377Simp		eject {
125279377Simp			label = "USB eject";
126279377Simp			linux,code = <KEY_EJECTCD>;
127279377Simp			gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
128279377Simp		};
129279377Simp	};
130279377Simp};
131