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"
13295436Sandrew#include "bcm5301x-nand-cs0-bch8.dtsi"
14279377Simp
15279377Simp/ {
16279377Simp	compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";
17279377Simp	model = "Buffalo WZR-1750DHP (BCM4708)";
18279377Simp
19279377Simp	chosen {
20279377Simp		bootargs = "console=ttyS0,115200";
21279377Simp	};
22279377Simp
23279377Simp	memory {
24279377Simp		reg = <0x00000000 0x08000000>;
25279377Simp	};
26279377Simp
27279377Simp	spi {
28279377Simp		compatible = "spi-gpio";
29279377Simp		num-chipselects = <1>;
30279377Simp		gpio-sck = <&chipcommon 7 0>;
31279377Simp		gpio-mosi = <&chipcommon 4 0>;
32279377Simp		cs-gpios = <&chipcommon 6 0>;
33279377Simp		#address-cells = <1>;
34279377Simp		#size-cells = <0>;
35279377Simp
36279377Simp		hc595: gpio_spi@0 {
37279377Simp			compatible = "fairchild,74hc595";
38279377Simp			reg = <0>;
39279377Simp			registers-number = <1>;
40279377Simp			spi-max-frequency = <100000>;
41279377Simp
42279377Simp			gpio-controller;
43279377Simp			#gpio-cells = <2>;
44279377Simp
45279377Simp		};
46279377Simp	};
47279377Simp
48279377Simp	leds {
49279377Simp		compatible = "gpio-leds";
50279377Simp
51295436Sandrew		usb {
52295436Sandrew			label = "bcm53xx:blue:usb";
53295436Sandrew			gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
54295436Sandrew			linux,default-trigger = "default-off";
55295436Sandrew		};
56295436Sandrew
57279377Simp		power0 {
58279377Simp			label = "bcm53xx:red:power";
59279377Simp			gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
60279377Simp			linux,default-trigger = "default-off";
61279377Simp		};
62279377Simp
63279377Simp		power1 {
64279377Simp			label = "bcm53xx:white:power";
65279377Simp			gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
66279377Simp			linux,default-trigger = "default-on";
67279377Simp		};
68279377Simp
69279377Simp		router0 {
70279377Simp			label = "bcm53xx:blue:router";
71279377Simp			gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
72279377Simp			linux,default-trigger = "default-on";
73279377Simp		};
74279377Simp
75279377Simp		router1 {
76279377Simp			label = "bcm53xx:amber:router";
77279377Simp			gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
78279377Simp			linux,default-trigger = "default-off";
79279377Simp		};
80279377Simp
81279377Simp		wan {
82279377Simp			label = "bcm53xx:blue:wan";
83279377Simp			gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
84279377Simp			linux,default-trigger = "default-on";
85279377Simp		};
86279377Simp
87279377Simp		wireless0 {
88279377Simp			label = "bcm53xx:blue:wireless";
89279377Simp			gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
90279377Simp			linux,default-trigger = "default-off";
91279377Simp		};
92279377Simp
93279377Simp		wireless1 {
94279377Simp			label = "bcm53xx:amber:wireless";
95279377Simp			gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
96279377Simp			linux,default-trigger = "default-off";
97279377Simp		};
98279377Simp	};
99279377Simp
100279377Simp	gpio-keys {
101279377Simp		compatible = "gpio-keys";
102279377Simp		#address-cells = <1>;
103279377Simp		#size-cells = <0>;
104279377Simp
105279377Simp		restart {
106279377Simp			label = "Reset";
107279377Simp			linux,code = <KEY_RESTART>;
108279377Simp			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
109279377Simp		};
110279377Simp
111279377Simp		aoss {
112279377Simp			label = "AOSS";
113279377Simp			linux,code = <KEY_WPS_BUTTON>;
114279377Simp			gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
115279377Simp		};
116279377Simp
117279377Simp		/* Commit mode set by switch? */
118279377Simp		mode {
119279377Simp			label = "Mode";
120279377Simp			linux,code = <KEY_SETUP>;
121279377Simp			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
122279377Simp		};
123279377Simp
124279377Simp		/* Switch: AP mode */
125279377Simp		sw_ap {
126279377Simp			label = "AP";
127279377Simp			linux,code = <BTN_0>;
128279377Simp			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
129279377Simp		};
130279377Simp
131279377Simp		eject {
132279377Simp			label = "USB eject";
133279377Simp			linux,code = <KEY_EJECTCD>;
134279377Simp			gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
135279377Simp		};
136279377Simp	};
137279377Simp};
138295436Sandrew
139295436Sandrew&uart0 {
140295436Sandrew	status = "okay";
141295436Sandrew};
142