aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sparc
Commit message (Expand)AuthorAgeFilesLines
* kernel: update 3.10 to 3.10.36Gabor Juhos2014-04-121-1/+1
* kernel: update 3.10 to 3.10.34Gabor Juhos2014-03-271-1/+1
* kernel: update 3.10 to 3.10.32Gabor Juhos2014-02-231-1/+1
* kernel: update 3.10 to 3.10.28Gabor Juhos2014-01-261-1/+1
* kernel: update 3.10 to 3.10.26Gabor Juhos2014-01-111-1/+1
* kernel: update kernel 3.10 to 3.10.24Hauke Mehrtens2013-12-151-1/+1
* kernel: update 3.10 to 3.10.21Gabor Juhos2013-12-011-1/+1
* mark as broken (toolchain issues), bump kernel versionImre Kaloz2013-11-071-3/+3
* target: don't build jffs2 nor images by defaultJonas Gorski2013-06-051-1/+1
* kernel: update linux 3.6 to 3.6.11Gabor Juhos2012-12-181-1/+1
* kernel: update linux 3.6 to 3.6.10Gabor Juhos2012-12-111-1/+1
* kernel: update linux 3.6 to 3.6.9Gabor Juhos2012-12-081-1/+1
* kernel: update linux 3.6 to 3.6.8Gabor Juhos2012-11-291-1/+1
* kernel: update linux 3.6 to 3.6.7Gabor Juhos2012-11-181-1/+1
* remove broken flagFlorian Fainelli2012-11-161-1/+1
* update to kernel 3.6.6Florian Fainelli2012-11-161-1/+1
* advertise jffs2, squashfs and ext4 featuresFlorian Fainelli2012-11-161-1/+1
* resync kernel configuration with 3.6 kernelFlorian Fainelli2012-11-161-18/+27
* build root filesystems and install them in $(BIN_DIR)Florian Fainelli2012-11-161-0/+9
* linux: add broken flag to targets which are using 2.6.36Gabor Juhos2012-04-291-1/+1
* target: globally disable BSD process accountingJo-Philipp Wich2011-10-251-1/+0
* update to kernel 2.6.36.4Florian Fainelli2011-02-191-1/+1
* bump kernel version, add MAINTAINER entryImre Kaloz2010-12-141-1/+2
* add plemininary ultrasparc supportImre Kaloz2010-12-143-0/+231
*/ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/dts-v1/;

#include "mt7621.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc";
	model = "Buffalo WSR-1166DHP";

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x8000000>;
	};

	chosen {
		bootargs = "console=ttyS0,57600";
	};

	gpio-leds {
		compatible = "gpio-leds";

		internet_g {
			label = "wsr-1166:green:internet";
			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
		};

		router_g {
			label = "wsr-1166:green:router";
			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
		};

		router_o {
			label = "wsr-1166:orange:router";
			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
		};

		internet_o {
			label = "wsr-1166:orange:internet";
			gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
		};

		wifi_o {
			label = "wsr-1166:orange:wifi";
			gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
		};

		power {
			label = "wsr-1166:green:power";
			gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
		};

		diag {
			label = "wsr-1166:orange:diag";
			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
		};

		wifi_g {
			label = "wsr-1166:green:wifi";
			gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
		};
	};

	gpio-keys-polled {
		compatible = "gpio-keys-polled";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <20>;

		power {
			label = "power";
			gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_POWER>;
		};

		reset {
			label = "reset";
			gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
		};

		aoss {
			label = "aoss";
			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_WPS_BUTTON>;
		};

		auto {
			label = "mode";
			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
			linux,code = <BTN_0>;
			linux,input-type = <EV_SW>;
		};

		ap {
			label = "ap";
			gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
			linux,code = <BTN_0>;
			linux,input-type = <EV_SW>;
		};

		router {
			label = "router";
			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
			linux,code = <BTN_0>;
			linux,input-type = <EV_SW>;
		};
	};

	gpio_poweroff {
		compatible = "gpio-poweroff";
		gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
	};
};

&spi0 {
	status = "okay";

	m25p80@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <10000000>;
		m25p,chunked-io = <32>;

		partition@0 {
			label = "u-boot";
			reg = <0x0 0x30000>;
			read-only;
		};

		partition@30000 {
			label = "u-boot-env";
			reg = <0x30000 0x10000>;
			read-only;
		};

		factory: partition@40000 {
			label = "factory";
			reg = <0x40000 0x10000>;
			read-only;
		};

		partition@50000 {
			label = "firmware";
			reg = <0x50000 0xf90000>;
		};

		partition@fe0000 {
			label = "board_data";
			reg = <0xfe0000 0x20000>;
		};
	};
};

&pinctrl {
	state_default: pinctrl0 {
		gpio {
			ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
			ralink,function = "gpio";
		};
	};
};

&pcie {
	status = "okay";

	pcie0 {
		mt76@0,0 {
			reg = <0x0000 0 0 0 0>;
			device_type = "pci";
			mediatek,mtd-eeprom = <&factory 0x8000>;
			ieee80211-freq-limit = <5000000 6000000>;
		};
	};

	pcie1 {
		mt76@1,0 {
			reg = <0x0000 0 0 0 0>;
			device_type = "pci";
			mediatek,mtd-eeprom = <&factory 0x0000>;
		};
	};
};

&xhci {
	status = "disabled";
};