aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ergodone
Commit message (Expand)AuthorAgeFilesLines
* Migrate ACTION_LAYER_TAP_TOGGLEs to TT()fauxpark2019-02-182-10/+2
* Migrate fn_actions for default keymaps (#4935)fauxpark2019-02-141-5/+1
* Fix Command feature: use get_mods() instead of keyboard_report->mods (#4955)Konstantin Đorđević2019-01-271-2/+2
* Keymap: Add ErgoDone keymap with QWERTY and COLEMAK Mod-DH (#3884)Erovia2018-09-304-0/+313
* Make `PREVENT_STUCK_MODIFIERS` the default (#3107)Joe Wasson2018-09-171-2/+0
* Keymap: Custom L0 layout for ergodone (#3591)Erick Ozaki2018-08-092-0/+236
* Fix hyperlinks in ErgoDone readme.md (#3323)Brendan Wrafter2018-07-051-2/+2
* Configurator layout repair for Ergodone, Ergodox Infinity and ErgoTravel (#3173)noroadsleft2018-06-131-36/+39
* Add 80 key layout to Ergodone, as it appears to support it (#2984)Drashna Jaelre2018-05-202-12/+116
* Fix Ergodox EZ Info.json files (#2979)Drashna Jaelre2018-05-201-6/+47
* Add pretty layout to all ergodox clones (#2686)Drashna Jaelre2018-04-212-0/+37
* Rename ONEHAND_ENABLE to SWAP_HANDS_ENABLE for consistencyJoe Wasson2018-03-161-2/+2
* Update ergodone.cnoisebomb442018-01-121-0/+2
* Personal layout planck,ergodone,xd75 (#2140)Koen Klinkers2017-12-142-0/+244
* Do some cleanup for the APIskullY2017-11-021-1/+1
* ErgoDone: VID/PID/NKRO (#1872)marcostrauss2017-10-211-3/+9
* Make arguments redo, subproject elimination (#1784)Jack Humbert2017-10-141-1/+1
* ErgoDone keyboard: Improved structure of readme and augmented it with importa...marcostrauss2017-10-101-14/+20
* remove all makefiles from keyboard directoriesJack Humbert2017-09-271-3/+0
* Further updated ergodone readme.md (#1714)Harshit Goel2017-09-141-1/+2
* updated read.md fileGoel2017-09-131-1/+1
* make ergodone's led work wellToshiki Yagi2017-08-262-12/+98
* Creates a layouts/ folder for keymaps shared between keyboards (#1609)Jack Humbert2017-08-2313-0/+1359
ht .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 "mt7620a.dtsi"

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

/ {
	compatible = "phicomm,psg1208", "ralink,mt7620a-soc";
	model = "Phicomm PSG1208";

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

	leds {
		compatible = "gpio-leds";

		led_wps: wps {
			label = "psg1208:white:wps";
			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
		};

		wlan {
			label = "psg1208:white:wlan2g";
			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
		};
	};

	keys {
		compatible = "gpio-keys";

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

&gpio1 {
	status = "okay";
};

&gpio3 {
	status = "okay";
};

&spi0 {
	status = "okay";

	flash@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <10000000>;

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

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

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

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

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

&state_default {
	gpio {
		groups = "i2c", "spi refclk", "wled";
		function = "gpio";
	};
};

&ethernet {
	pinctrl-names = "default";
	pinctrl-0 = <&ephy_pins>;

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

	mediatek,portmap = "llllw";
};

&pcie {
	status = "okay";
};

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

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