175 lines
4.8 KiB
Plaintext
175 lines
4.8 KiB
Plaintext
/*
|
|
* Copyright (c) 2013 The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
* by the Free Software Foundation.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
model = "Qualcomm Atheros REH132";
|
|
compatible = "ath79,reh132";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
interrupt-parent = <&vic>;
|
|
|
|
gpios: ath79-gpio {
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
|
|
ahb {
|
|
compatible = "simple-bus";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
|
|
vic: intc {
|
|
compatible = "interrupt-controller";
|
|
interrupt-controller;
|
|
#interrupt-cells = <1>;
|
|
};
|
|
|
|
spi@1f000000 {
|
|
compatible = "qcom,ag71xx-spi"; /* master */
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
reg = <0x1f000000 0x01000000>;
|
|
|
|
flash: m25p80@0 {
|
|
compatible = "st,m25p80"; /* modalias */
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
spi-max-frequency = <25000000>; /* max_speed_hz */
|
|
reg = <0>; /* chip_select */
|
|
spi-controller-data = <1 0 0>; /* is_flash cs_type cs_line */
|
|
|
|
partition@u-boot {
|
|
label = "u-boot";
|
|
reg = <0x00000000 0x00040000>;
|
|
read-only;
|
|
};
|
|
partition@u-boot-env {
|
|
label = "u-boot-env";
|
|
reg = <0x00040000 0x00010000>;
|
|
read-only;
|
|
};
|
|
partition@rootfs {
|
|
label = "rootfs";
|
|
reg = <0x00050000 0x00620000>;
|
|
};
|
|
partition@kernel {
|
|
label = "kernel";
|
|
reg = <0x00670000 0x00160000>;
|
|
read-only;
|
|
};
|
|
partition@pib {
|
|
label = "pib";
|
|
reg = <0x007d0000 0x00010000>;
|
|
};
|
|
partition@dtb {
|
|
label = "dtb";
|
|
reg = <0x007e0000 0x00010000>;
|
|
read-only;
|
|
};
|
|
partition@art {
|
|
label = "art";
|
|
reg = <0x007f0000 0x00010000>;
|
|
read-only;
|
|
};
|
|
partition@firmware {
|
|
label = "firmware";
|
|
reg = <0x00050000 0x00780000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
wmac@18100000 {
|
|
compatible = "qcom,ag71xx-wmac";
|
|
reg = <0x18100000 0x20000>;
|
|
interrupts = <47>;
|
|
interrupt-parent = <&vic>;
|
|
};
|
|
|
|
MDIO1: mdio@1a000000 {
|
|
compatible = "qcom,ag71xx-mdio";
|
|
reg = <0x1a000000 0x200>;
|
|
reg-names = "mdio_base";
|
|
};
|
|
|
|
ETH0: ethernet@19000000 {
|
|
compatible = "qcom,ag71xx-eth";
|
|
reg = <0x19000000 0x200>,
|
|
<0x18070000 0x14>;
|
|
reg-names = "mac_base",
|
|
"cfg_base";
|
|
interrupts = <4>;
|
|
interrupt-names = "mac_irq";
|
|
interrupt-parent = <&vic>;
|
|
mdio-handle = <&MDIO1>;
|
|
|
|
eth-cfg = <0x00003000>; /* RMII_GMAC0_MASTER | SW_ACC_MSB_FIRST */
|
|
eth-phy-cfg = <1 0 100 1>; /* phy_if_mode:MII phy_mask:0 speed:100M duplex:DUPLEX_FULL */
|
|
eth-fifo-cfg = <0x0010ffff 0x03ff0155 0x01f00140>; /* fifo_cfg1 fifo_cfg2 fifo_cfg3 */
|
|
};
|
|
|
|
ETH1: ethernet@1a000000 {
|
|
compatible = "qcom,ag71xx-eth";
|
|
reg = <0x1a000000 0x200>;
|
|
reg-names = "mac_base";
|
|
interrupts = <5>;
|
|
interrupt-names = "mac_irq";
|
|
interrupt-parent = <&vic>;
|
|
mdio-handle = <&MDIO1>;
|
|
|
|
eth-phy-cfg = <2 0 1000 1>; /* phy_if_mode:GMII phy_mask:0 speed:1G duplex:DUPLEX_FULL */
|
|
eth-fifo-cfg = <0x0010ffff 0x03ff0155 0x01f00140>; /* fifo_cfg1 fifo_cfg2 fifo_cfg3 */
|
|
eth-sw-cfg = <1 0x10>; /* phy4_mii_en phy_poll_mask */
|
|
};
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
wps {
|
|
label = "wps";
|
|
gpios = <&gpios 16 1>;
|
|
linux,code = <529>; /* KEY_WPS_BUTTON */
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
restart {
|
|
label = "restart";
|
|
gpios = <&gpios 15 1>;
|
|
linux,code = <408>; /* KEY_RESTART */
|
|
debounce-interval = <60>;
|
|
};
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
wps { /* reused by pwr-green */
|
|
label = "reh132:green:wps";
|
|
gpios = <&gpios 17 1>;
|
|
linux,default-trigger = "default-on";
|
|
};
|
|
|
|
pwr-red {
|
|
label = "reh132:red:pwr";
|
|
gpios = <&gpios 21 1>;
|
|
default-state = "off";
|
|
};
|
|
|
|
wlan5g {
|
|
label = "reh132:green:wlan-5g";
|
|
gpios = <&gpios 13 1>;
|
|
linux,default-trigger = "timer";
|
|
};
|
|
};
|
|
};
|