215 lines
5.6 KiB
Plaintext
215 lines
5.6 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 DB120";
|
|
compatible = "ath79,db120";
|
|
#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>;
|
|
};
|
|
|
|
ehci@1b000000 {
|
|
compatible = "qcom,ag71xx-ehci";
|
|
reg = <0x1b000000 0x20000>;
|
|
interrupts = <3>;
|
|
interrupt-parent = <&vic>;
|
|
};
|
|
|
|
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 0x00630000>;
|
|
};
|
|
partition@kernel {
|
|
label = "kernel";
|
|
reg = <0x00680000 0x00160000>;
|
|
read-only;
|
|
};
|
|
partition@dtb {
|
|
label = "dtb";
|
|
reg = <0x007e0000 0x00010000>;
|
|
read-only;
|
|
};
|
|
partition@art {
|
|
label = "art";
|
|
reg = <0x007f0000 0x00010000>;
|
|
read-only;
|
|
};
|
|
partition@firmware {
|
|
label = "firmware";
|
|
reg = <0x00050000 0x00790000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
pci@10000000 {
|
|
compatible = "qcom,ag71xx-pci";
|
|
reg = <0x10000000 0x04000000>,
|
|
<0x00000000 0x00000000>,
|
|
<0x14000000 0x00001000>,
|
|
<0x180f0000 0x00000100>,
|
|
<0x180c0000 0x00001000>;
|
|
reg-names = "mem_base",
|
|
"io_base",
|
|
"cfg_base",
|
|
"ctrl_base",
|
|
"crp_base";
|
|
interrupts = <46>;
|
|
interrupt-parent = <&vic>;
|
|
};
|
|
|
|
wmac@18100000 {
|
|
compatible = "qcom,ag71xx-wmac";
|
|
reg = <0x18100000 0x20000>;
|
|
interrupts = <47>;
|
|
interrupt-parent = <&vic>;
|
|
};
|
|
|
|
MDIO0: mdio@19000000 {
|
|
compatible = "qcom,ag71xx-mdio";
|
|
reg = <0x19000000 0x200>;
|
|
reg-names = "mdio_base";
|
|
|
|
bi-phy-addr = <0>;
|
|
bi-port0-cfg = <1 2 1 1 1>; /* force_link speed:1G txpause rxpause duplex */
|
|
bi-led-cfg = <0 0xc737c737 0 0x00c30c00 1>; /* led_ctrl0 led_ctrl1 led_ctrl2 led_ctrl3 open_drain*/
|
|
bi-pad0-cfg = <6 0 0 0 1 1 1 2 0 0>; /* mode rxclk_sel txclk_sel pipe_rxclk_sel txclk_delay_en
|
|
rxclk_delay_en txclk_delay_sel rxclk_delay_sel sgmii_txclk_phase_sel sgmii_rxclk_phase_sel */
|
|
};
|
|
|
|
MDIO1: mdio@1a000000 {
|
|
compatible = "qcom,ag71xx-mdio";
|
|
reg = <0x1a000000 0x200>;
|
|
reg-names = "mdio_base";
|
|
};
|
|
|
|
ETH0: ethernet@19000000 { /* s17 */
|
|
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 = <&MDIO0>;
|
|
|
|
eth-cfg = <0x00000041>; /* RGMII_GMAC0 | SW_ONLY_MODE */
|
|
eth-phy-cfg = <6 1 1000 1>; /* phy_if_mode:RGMII phy_mask:1 speed:1G duplex:DUPLEX_FULL */
|
|
eth-pll-data = <0 0 0x06000000>; /* pll_10 pll_100 pll_1000 */
|
|
};
|
|
|
|
ETH1: ethernet@1a000000 { /* s27 */
|
|
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 */
|
|
};
|
|
};
|
|
|
|
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>;
|
|
};
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
pwr-green {
|
|
label = "db120:green:pwr";
|
|
gpios = <&gpios 17 1>;
|
|
linux,default-trigger = "default-on";
|
|
};
|
|
|
|
pwr-red {
|
|
label = "db120:red:pwr";
|
|
gpios = <&gpios 21 1>;
|
|
default-state = "off";
|
|
};
|
|
|
|
wlan2g {
|
|
label = "db120:green:wlan-2g";
|
|
gpios = <&gpios 13 1>;
|
|
default-state = "off";
|
|
};
|
|
|
|
wlan5g {
|
|
label = "db120:green:wlan-5g";
|
|
gpios = <&gpios 4 1>;
|
|
default-state = "off";
|
|
};
|
|
|
|
wps {
|
|
label = "db120:green:wps";
|
|
gpios = <&gpios 15 1>;
|
|
default-state = "off";
|
|
};
|
|
|
|
usb {
|
|
label = "db120:green:usb";
|
|
gpios = <&gpios 11 1>;
|
|
default-state = "off";
|
|
};
|
|
};
|
|
};
|