21802ce3ab
All ap-dk01 boards have different spi chips, thus no point in keeping it in dtsi. Signed-off-by: Roman Yeryomin <roman@advem.lv>
135 lines
2.7 KiB
Text
135 lines
2.7 KiB
Text
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*
|
|
*/
|
|
|
|
#include "qcom-ipq4019-ap.dk01.1.dtsi"
|
|
#include "qcom-ipq4019-bus.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
model = "ZyXEL NBG6617";
|
|
compatible = "zyxel,nbg6617", "qcom,ipq4019";
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x80000000 0x10000000>;
|
|
};
|
|
|
|
aliases {
|
|
led-boot = &power;
|
|
led-failsafe = &power;
|
|
led-running = &power;
|
|
led-upgrade = &power;
|
|
};
|
|
|
|
reserved-memory {
|
|
#address-cells = <0x1>;
|
|
#size-cells = <0x1>;
|
|
ranges;
|
|
|
|
rsvd1@87000000 {
|
|
reg = <0x87000000 0x0500000>;
|
|
no-map;
|
|
};
|
|
|
|
wifi_dump@87500000 {
|
|
reg = <0x87500000 0x600000>;
|
|
no-map;
|
|
};
|
|
|
|
rsvd2@87B00000 {
|
|
reg = <0x87b00000 0x500000>;
|
|
no-map;
|
|
};
|
|
};
|
|
|
|
soc {
|
|
pinctrl@1000000 {
|
|
led_pinmux {
|
|
mux {
|
|
pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
|
|
drive-strength = <0x8>;
|
|
bias-pull-up;
|
|
output-high;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
|
|
wlan {
|
|
label = "wlan";
|
|
gpios = <&tlmm 0x2 GPIO_ACTIVE_HIGH>;
|
|
linux,code = <KEY_RFKILL>;
|
|
};
|
|
|
|
wps {
|
|
label = "wps";
|
|
gpios = <&tlmm 0x3f GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
};
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&tlmm 0x4 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
power: power {
|
|
label = "nbg6617:green:power";
|
|
gpios = <&tlmm 0x3 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
wps {
|
|
label = "nbg6617:green:wps";
|
|
gpios = <&tlmm 0x1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
wlan2G {
|
|
label = "nbg6617:green:wlan2G";
|
|
gpios = <&tlmm 0x3a GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
wlan5G {
|
|
label = "nbg6617:green:wlan5G";
|
|
gpios = <&tlmm 0x5 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi_0 { /* BLSP1 QUP1 */
|
|
n25q128a11@0 {
|
|
status = "okay";
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition0@0 {
|
|
label = "all";
|
|
reg = <0x00000000 0x08000000>;
|
|
read-only; /* for now */
|
|
};
|
|
};
|
|
};
|
|
};
|