aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-sunxi/patches/100-sun6i-alternate-on-UART2.patch
Commit message (Expand)AuthorAgeFilesLines
* uboot-sunxi: update to version 2017.07Hauke Mehrtens2017-09-181-2/+2
* uboot-sunxi: fix default config for OLIMEX A13 SOM (FS#239)Jo-Philipp Wich2016-11-021-6/+1
* package: uboot-sunxi: various changes - bump to 2016.03 - add bugfixes relate...Zoltan Herpai2016-03-291-0/+21
d='n66' href='#n66'>66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "qca956x.dtsi"

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

/ {
	model = "ASUS RP-AC66";
	compatible = "asus,rp-ac66", "qca,qca9563";

	aliases {
		led-boot = &led_orange;
		led-failsafe = &led_orange;
		led-running = &led_power;
		led-upgrade = &led_orange;
		label-mac-device = &eth0;
	};

	leds {
		compatible = "gpio-leds";

		led_power: power {
			label = "green:power";
			gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
		};

		led_orange: wps {
			label = "orange:wps";
			gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
		};

		rssilow-wlan0 {
			label = "blue:rssilow-wlan0";
			gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
		};

		rssimedium-wlan0 {
			label = "red:rssimedium-wlan0";
			gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
		};

		rssihigh-wlan0 {
			label = "green:rssihigh-wlan0";
			gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
		};

		rssilow-wlan1 {
			label = "blue:rssilow-wlan1";
			gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
		};

		rssimedium-wlan1 {
			label = "red:rssimedium-wlan1";
			gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
		};

		rssihigh-wlan1 {
			label = "green:rssihigh-wlan1";
			gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
		};
	};

	keys {
		compatible = "gpio-keys";

		wps {
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};

		reset {
			linux,code = <KEY_RESTART>;
			gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};
	};
};

&pcie {
	status = "okay";
};

&spi {
	status = "okay";

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

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

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

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

			art: partition@50000 {
				label = "art";
				reg = <0x050000 0x10000>;
				read-only;

				compatible = "nvmem-cells";
				#address-cells = <1>;
				#size-cells = <1>;

				macaddr_art_1002: macaddr@1002 {
					reg = <0x1002 0x6>;
				};
			};

			partition@60000 {
				compatible = "denx,uimage";
				label = "firmware";
				reg = <0x060000 0xfa0000>;
			};
		};
	};
};

&mdio0 {
	status = "okay";

	phy-mask = <0>;

	phy0: ethernet-phy@3 {
		reg = <0x3>;
		phy-mode = "sgmii";
		qca,mib-poll-interval = <500>;
	};
};

&eth0 {
	status = "okay";

	phy-mode = "sgmii";
	nvmem-cells = <&macaddr_art_1002>;
	nvmem-cell-names = "mac-address";
	phy-handle = <&phy0>;
};

&wmac {
	status = "okay";

	qca,no-eeprom;
};