summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/AIR3GII.dts
Commit message (Expand)AuthorAgeFilesLines
* ramips: fix size-cells on spi nodesÁlvaro Fernández Rojas2016-05-181-1/+1
* ramips: DTS reworkStanislav Galabov2016-05-121-63/+61
* ramips: Change all '/include/' clauses to '#include' so preprocessing canStanislav Galabov2016-05-101-1/+1
* ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 to...Felix Fietkau2015-12-181-1/+1
* ralink: fixup devicetree files to work with new ethernet driverJohn Crispin2015-12-171-1/+1
* ramips: use consistent naming scheme for LEDsJohn Crispin2015-08-171-2/+2
* ramips: fix indentation and other mistakes in .dts{, i} filesJohn Crispin2015-08-171-0/+4
* ramips: soc wmac eeprom cleanupJohn Crispin2014-07-171-0/+4
* ralink: set the mac addr via the dts fileJohn Crispin2013-11-251-0/+4
* ralink: add pinctrl driverJohn Crispin2013-09-171-13/+7
* ramips: fix indenting of spi partitions inside dts filesJohn Crispin2013-07-291-19/+19
* move memory detect node to dtsi filesJohn Crispin2013-04-091-4/+0
* remove bootargs from dtsJohn Crispin2013-04-091-4/+0
* add ofpart info to the devicetreesJohn Crispin2013-04-091-0/+23
* ramips: remove top-level {address,size}-cells properties from .dts filesGabor Juhos2013-04-071-2/+0
* fix typo pinmmux -> pinmuxJohn Crispin2013-04-061-1/+1
* add the dts files that describe the boards in futureJohn Crispin2013-04-031-0/+79
#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 "rt5350.dtsi"

/ {
	compatible = "MPRA2", "ralink,rt5350-soc";
	model = "HAME MPR-A2";

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

		system {
			label = "mpr-a2:blue:system";
			gpios = <&gpio0 20 1>;
		};

		power {
			label = "mpr-a2:red:power";
			gpios = <&gpio0 17 1>;
		};
	};

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

		wps {
			label = "reset";
			gpios = <&gpio0 0 1>;
			linux,code = <0x198>;
		};
	};

	gpio_export {
		compatible = "gpio-export";
		#size-cells = <0>;

		usb {
			gpio-export,name = "usb";
			gpio-export,output = <1>;
			gpios = <&gpio0 7 0>;
		};

		root_hub {
			gpio-export,name = "root_hub";
			gpio-export,output = <1>;
			gpios = <&gpio0 12 0>;
		};
	};
};

&spi0 {
	status = "okay";

	m25p80@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "jedec,spi-nor";
		reg = <0>;
		linux,modalias = "m25p80", "s25fl064k";
		spi-max-frequency = <10000000>;

		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 0x7b0000>;
		};
	};
};

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

&ethernet {
	mtd-mac-address = <&factory 0x4>;
};

&esw {
	mediatek,portmap = <0x1>;
	mediatek,portdisable = <0x3e>;
};

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

&ehci {
	status = "okay";
};

&ohci {
	status = "okay";
};