xref: /freebsd-src/sys/contrib/device-tree/src/arm/broadcom/bcm4708-buffalo-wzr-1750dhp.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Broadcom BCM470X / BCM5301X ARM platform code.
4*f126890aSEmmanuel Vadot * DTS for Buffalo WZR-1750DHP
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
7*f126890aSEmmanuel Vadot */
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/dts-v1/;
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot#include "bcm4708.dtsi"
12*f126890aSEmmanuel Vadot#include "bcm5301x-nand-cs0-bch8.dtsi"
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot/ {
15*f126890aSEmmanuel Vadot	compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";
16*f126890aSEmmanuel Vadot	model = "Buffalo WZR-1750DHP (BCM4708)";
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	chosen {
19*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200 earlycon";
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	memory@0 {
23*f126890aSEmmanuel Vadot		device_type = "memory";
24*f126890aSEmmanuel Vadot		reg = <0x00000000 0x08000000>,
25*f126890aSEmmanuel Vadot		      <0x88000000 0x18000000>;
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot	spi {
29*f126890aSEmmanuel Vadot		compatible = "spi-gpio";
30*f126890aSEmmanuel Vadot		num-chipselects = <1>;
31*f126890aSEmmanuel Vadot		sck-gpios = <&chipcommon 7 0>;
32*f126890aSEmmanuel Vadot		mosi-gpios = <&chipcommon 4 0>;
33*f126890aSEmmanuel Vadot		cs-gpios = <&chipcommon 6 0>;
34*f126890aSEmmanuel Vadot		#address-cells = <1>;
35*f126890aSEmmanuel Vadot		#size-cells = <0>;
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot		hc595: gpio_spi@0 {
38*f126890aSEmmanuel Vadot			compatible = "fairchild,74hc595";
39*f126890aSEmmanuel Vadot			reg = <0>;
40*f126890aSEmmanuel Vadot			registers-number = <1>;
41*f126890aSEmmanuel Vadot			spi-max-frequency = <100000>;
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot			gpio-controller;
44*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot		};
47*f126890aSEmmanuel Vadot	};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot	leds {
50*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot		led-usb {
53*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:usb";
54*f126890aSEmmanuel Vadot			gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
55*f126890aSEmmanuel Vadot			trigger-sources = <&ohci_port1>, <&ehci_port1>,
56*f126890aSEmmanuel Vadot					  <&xhci_port1>, <&ohci_port2>,
57*f126890aSEmmanuel Vadot					  <&ehci_port2>;
58*f126890aSEmmanuel Vadot			linux,default-trigger = "usbport";
59*f126890aSEmmanuel Vadot		};
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot		led-power0 {
62*f126890aSEmmanuel Vadot			label = "bcm53xx:red:power";
63*f126890aSEmmanuel Vadot			gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
64*f126890aSEmmanuel Vadot		};
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot		led-power1 {
67*f126890aSEmmanuel Vadot			label = "bcm53xx:white:power";
68*f126890aSEmmanuel Vadot			gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
69*f126890aSEmmanuel Vadot			linux,default-trigger = "default-on";
70*f126890aSEmmanuel Vadot		};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot		led-router0 {
73*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:router";
74*f126890aSEmmanuel Vadot			gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
75*f126890aSEmmanuel Vadot			linux,default-trigger = "default-on";
76*f126890aSEmmanuel Vadot		};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot		led-router1 {
79*f126890aSEmmanuel Vadot			label = "bcm53xx:amber:router";
80*f126890aSEmmanuel Vadot			gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
81*f126890aSEmmanuel Vadot		};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot		led-wan {
84*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:wan";
85*f126890aSEmmanuel Vadot			gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
86*f126890aSEmmanuel Vadot			linux,default-trigger = "default-on";
87*f126890aSEmmanuel Vadot		};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot		led-wireless0 {
90*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:wireless";
91*f126890aSEmmanuel Vadot			gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
92*f126890aSEmmanuel Vadot		};
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot		led-wireless1 {
95*f126890aSEmmanuel Vadot			label = "bcm53xx:amber:wireless";
96*f126890aSEmmanuel Vadot			gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
97*f126890aSEmmanuel Vadot		};
98*f126890aSEmmanuel Vadot	};
99*f126890aSEmmanuel Vadot
100*f126890aSEmmanuel Vadot	gpio-keys {
101*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot		button-restart {
104*f126890aSEmmanuel Vadot			label = "Reset";
105*f126890aSEmmanuel Vadot			linux,code = <KEY_RESTART>;
106*f126890aSEmmanuel Vadot			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
107*f126890aSEmmanuel Vadot		};
108*f126890aSEmmanuel Vadot
109*f126890aSEmmanuel Vadot		button-aoss {
110*f126890aSEmmanuel Vadot			label = "AOSS";
111*f126890aSEmmanuel Vadot			linux,code = <KEY_WPS_BUTTON>;
112*f126890aSEmmanuel Vadot			gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
113*f126890aSEmmanuel Vadot		};
114*f126890aSEmmanuel Vadot
115*f126890aSEmmanuel Vadot		/* Commit mode set by switch? */
116*f126890aSEmmanuel Vadot		button-mode {
117*f126890aSEmmanuel Vadot			label = "Mode";
118*f126890aSEmmanuel Vadot			linux,code = <KEY_SETUP>;
119*f126890aSEmmanuel Vadot			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
120*f126890aSEmmanuel Vadot		};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot		/* Switch: AP mode */
123*f126890aSEmmanuel Vadot		button-sw-ap {
124*f126890aSEmmanuel Vadot			label = "AP";
125*f126890aSEmmanuel Vadot			linux,code = <BTN_0>;
126*f126890aSEmmanuel Vadot			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
127*f126890aSEmmanuel Vadot		};
128*f126890aSEmmanuel Vadot
129*f126890aSEmmanuel Vadot		button-eject {
130*f126890aSEmmanuel Vadot			label = "USB eject";
131*f126890aSEmmanuel Vadot			linux,code = <KEY_EJECTCD>;
132*f126890aSEmmanuel Vadot			gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
133*f126890aSEmmanuel Vadot		};
134*f126890aSEmmanuel Vadot	};
135*f126890aSEmmanuel Vadot};
136*f126890aSEmmanuel Vadot
137*f126890aSEmmanuel Vadot&usb2 {
138*f126890aSEmmanuel Vadot	vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
139*f126890aSEmmanuel Vadot};
140*f126890aSEmmanuel Vadot
141*f126890aSEmmanuel Vadot&usb3 {
142*f126890aSEmmanuel Vadot	vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
143*f126890aSEmmanuel Vadot};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot&spi_nor {
146*f126890aSEmmanuel Vadot	status = "okay";
147*f126890aSEmmanuel Vadot};
148*f126890aSEmmanuel Vadot
149*f126890aSEmmanuel Vadot&usb3_phy {
150*f126890aSEmmanuel Vadot	status = "okay";
151*f126890aSEmmanuel Vadot};
152