aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/CS-QR10.dts
Commit message (Expand)AuthorAgeFilesLines
* ramips: mt7620: disable PCIe if nothing is attachedMathias Kresin2018-12-031-4/+0
* ramips: specify "firmware" partition formatINAGAKI Hiroshi2018-11-291-0/+1
* ramips: add support for indicating the boot state using multiple ledsMathias Kresin2018-10-071-1/+4
* ramips: move partitions into partition table nodeAlex Maclean2018-08-041-23/+27
* ramips: fix dtc warningsMathias Kresin2018-08-041-2/+0
* ramips: Use dts alias based status ledChuanhong Guo2018-07-161-1/+5
* ramips: update device tree source filesL. D. Pinney2017-08-031-4/+5
* ramips: remove Planex CS-QR10 sound device tree nodeMathias Kresin2017-02-031-11/+0
* ramips: cleanup SPI flash device tree properties usageMathias Kresin2017-02-021-1/+0
* treewide: dts: use keycode defines from input dt-bindingMathias Kresin2016-11-131-2/+4
* ramips: fix size-cells on spi nodesÁlvaro Fernández Rojas2016-05-181-1/+1
* ramips: convert mt7620 to new image building codeJohn Crispin2016-05-121-4/+4
* ramips: DTS reworkStanislav Galabov2016-05-121-116/+114
* ramips: Change all '/include/' clauses to '#include' so preprocessing canStanislav Galabov2016-05-101-1/+1
* ramips: add support for Planex CS-QR10John Crispin2016-04-261-0/+163
d } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .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 "rt2880.dtsi"

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

/ {
	#address-cells = <1>;
	#size-cells = <1>;
	compatible = "asus,rt-n15", "ralink,rt2880-soc";
	model = "Asus RT-N15";

	aliases {
		led-boot = &led_power;
		led-failsafe = &led_power;
		led-running = &led_power;
		led-upgrade = &led_power;
	};

	cfi@1f000000 {
		compatible = "cfi-flash";
		reg = <0x1f000000 0x800000>;
		bank-width = <2>;
		device-width = <2>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

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

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

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

			partition@50000 {
				compatible = "denx,uimage";
				label = "firmware";
				reg = <0x50000 0x3b0000>;
			};
		};
	};

	rtl8366s {
		compatible = "realtek,rtl8366s";
		gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
		gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
	};

	gpio-keys-polled {
		compatible = "gpio-keys-polled";
		poll-interval = <100>;

		wps {
			label = "wps";
			gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
			linux,code = <KEY_WPS_BUTTON>;
		};

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

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

		led_power: power {
			label = "rt-n15:blue:power";
			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
		};
	};
};

&gpio0 {
	status = "okay";
};

&pinctrl {
	state_default: pinctrl0 {
		gpio {
			ralink,group = "i2c", "uartlite", "mdio";
			ralink,function = "gpio";
		};
	};
};

&ethernet {
	status = "okay";
	mtd-mac-address = <&factory 0x4>;

	port@0 {
		mediatek,fixed-link = <1000 1 1 1>;
	};

	mdio-bus {
		status = "okay";

		phy0: ethernet-phy@0 {
			phy-mode = "mii";
			reg = <0>;
		};
	};
};

&wmac {
	ralink,mtd-eeprom = <&factory 0>;
};