openwrt_archive/target/linux/ar71xx/aph131.dts

181 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 APH131";
compatible = "ath79,aph131";
#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>;
};
MDIO0: mdio@19000000 {
compatible = "qcom,ag71xx-mdio";
reg = <0x19000000 0x200>;
reg-names = "mdio_base";
};
MDIO1: mdio@1a000000 {
compatible = "qcom,ag71xx-mdio";
reg = <0x1a000000 0x200>;
reg-names = "mdio_base";
bi-phy-addr = <5>;
};
ETH0: ethernet@19000000 { /* PLC */
compatible = "qcom,ag71xx-eth";
reg = <0x19000000 0x200>,
<0x18070000 0x40>;
reg-names = "mac_base",
"cfg_base";
interrupts = <4>;
interrupt-names = "mac_irq";
interrupt-parent = <&vic>;
mdio-handle = <&MDIO0>;
eth-cfg = <0x00000012>; /* MII_GE0_SLAVE | MII_GMAC0 */
eth-phy-cfg = <1 0 100 1>; /* phy_if_mode:MII phy_mask:0 speed:100M duplex:DUPLEX_FULL */
};
ETH1: ethernet@1a000000 { /* G PHY */
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 = <3 0x20 1000 1>; /* phy_if_mode:SGMII phy_mask:bit(5) speed:1G duplex:DUPLEX_FULL */
eth-pll-data = <0 0 0x06000000>; /* pll_10 pll_100 pll_1000 */
};
};
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
wps {
label = "wps";
gpios = <&gpios 21 1>;
linux,code = <529>; /* KEY_WPS_BUTTON */
debounce-interval = <60>;
};
restart {
label = "restart";
gpios = <&gpios 17 1>;
linux,code = <408>; /* KEY_RESTART */
debounce-interval = <60>;
};
};
gpio-leds {
compatible = "gpio-leds";
wps { /* reused by pwr-green */
label = "aph131:green:wps";
gpios = <&gpios 16 1>;
linux,default-trigger = "default-on";
};
pwr-red {
label = "aph131:red:pwr";
gpios = <&gpios 15 1>;
default-state = "off";
};
wlan5g {
label = "aph131:green:wlan-5g";
gpios = <&gpios 12 1>;
default-state = "off";
};
};
};