aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/ArcherC20i.dts
Commit message (Expand)AuthorAgeFilesLines
* ramips: move partitions into partition table nodeAlex Maclean2018-08-041-31/+35
* ramips: fix dtc warningsMathias Kresin2018-08-041-2/+1
* ramips: fix pci/pcie related dtc warningsMathias Kresin2018-08-041-6/+5
* ramips: update device tree source filesL. D. Pinney2017-08-031-8/+9
* ramips: cleanup SPI flash device tree properties usageMathias Kresin2017-02-021-1/+0
* mt76: update to the latest versionFelix Fietkau2017-02-011-1/+0
* treewide: dts: use keycode defines from input dt-bindingMathias Kresin2016-11-131-2/+4
* ramips: Improve TP-Link Archer C20i supportP.Wassi2016-07-261-5/+41
* ramips: fix size-cells on spi nodesÁlvaro Fernández Rojas2016-05-181-1/+1
* ramips: DTS reworkStanislav Galabov2016-05-121-84/+82
* 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-2/+2
* ramips: fix indentation and other mistakes in .dts{, i} filesJohn Crispin2015-08-171-1/+0
* ramips: mt7620 ArcherC20i USB supportJohn Crispin2015-07-141-0/+8
* ramips: add preliminary Archer C20i supportFelix Fietkau2015-01-091-0/+111
highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* 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 */
#include "rt5350.dtsi"

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

/ {
	compatible = "nixcore,x1", "ralink,rt5350-soc";

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

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

		gpio0 {
			gpio-export,name = "gpio0";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
		};

		gpio1 {
			gpio-export,name = "gpio1";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
		};

		/* GPIOs 1-6 are I2C,SPI */
		/* GPIO 7-14 are uart1 */
		/* GPIOs 15 & 16 are uart2 */
		/* JTAG */

		gpio17 {
			/* JTAG_TDO */
			gpio-export,name = "gpio17";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
		};

		gpio18 {
			/* JTAG_TDI */
			gpio-export,name = "gpio18";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
		};

		gpio19 {
			/* JTAG_TMS */
			gpio-export,name = "gpio19";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
		};

		gpio20 {
			/* JTAG_TCLK */
			gpio-export,name = "gpio20";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
		};

		gpio21 {
			/* JTAG_TRST_N */
			gpio-export,name = "gpio21";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
		};

		/* ETH LEDs */
		/*
		gpio22 {
			gpio-export,name = "gpio22";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
		};

		gpio23 {
			gpio-export,name = "gpio23";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
		};

		gpio24 {
			gpio-export,name = "gpio24";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
		};

		gpio25 {
			gpio-export,name = "gpio25";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
		};

		*/
		gpio26 {
			/* ETH4_LED */
			gpio-export,name = "gpio26";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
		};

		gpio27 {
			/* spi_cs1 */
			gpio-export,name = "gpio27";
			gpio-export,direction_may_change = <1>;
			gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
		};
	};
};

&gpio0 {
	status = "okay";
};

&gpio1 {
	status = "okay";
};

&i2c {
	status = "okay";
};

&uart {
	status = "okay";
	reset-names = "gpio uartf";
};

&pinctrl {
	state_default: pinctrl0 {
		gpio {
			ralink,group = "jtag", "led", "spi_cs1";
			ralink,function = "gpio";
		};
	};
};

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

&esw {
	mediatek,portmap = <0x17>;
};

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

&ehci {
	status = "okay";
};

&ohci {
	status = "okay";
};