summaryrefslogtreecommitdiffstats
path: root/package/ixp4xx-microcode
Commit message (Expand)AuthorAgeFilesLines
* switch to a different NPE-C firmwareImre Kaloz2008-07-121-2/+2
* switch to the IXP4xx microcode with crypto supportImre Kaloz2008-07-122-6/+7
* generate and install NPE-A ethernet microcode as wellImre Kaloz2008-04-262-1/+2
* fix ixp4xx-microcode compile on osxFelix Fietkau2008-03-101-1/+1
* change learning settings for NPE-C as wellFelix Fietkau2008-02-041-2/+2
* switch ixp4xx microcode - use one that does not have the "learning" mode, whi...Felix Fietkau2008-02-041-2/+2
* * upgrade ixp4xx to 2.6.23.12 * upgrade to the new ethernet driver (temporary...Imre Kaloz2007-12-283-0/+227
'n98' href='#n98'>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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;

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

#include "ar7100.dtsi"

/ {
	compatible = "buffalo,wzr-hp-ag300h", "qca,ar7161";
	model = "Buffalo WZR-HP-AG300H/WZR-600DHP";

	aliases {
		led-boot = &diag;
		led-failsafe = &diag;
		led-upgrade = &diag;
	};

	chosen {
		bootargs = "console=ttyS0,115200";
	};

	extosc: ref {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-output-names = "ref";
		clock-frequency = <40000000>;
	};

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

		diag: diag {
			label = "buffalo:red:diag";
			gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
		};
	};

	ath9k-leds {
		// those leds are indeed attached to the wifi chips

		compatible = "gpio-leds";
		band2g_a {
			label = "buffalo:amber:band2g";
			gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
		};

		usb {
			label = "buffalo:green:usb";
			gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
			trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
			linux,default-trigger = "usbport";
		};

		band2g_g {
			label = "buffalo:green:band2g";
			gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "phy0tpt";
		};

		band5g_g {
			label = "buffalo:green:band5g";
			gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "phy1tpt";
		};

		router {
			label = "buffalo:green:router";
			gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
		};

		movie_engine {
			label = "buffalo:blue:movie_engine";
			gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
		};

		band5g_a {
			label = "buffalo:amber:band5g";
			gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
		};
	};

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

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

		usb {
			linux,code = <BTN_2>;
			gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};

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

		router_auto {
			linux,code = <BTN_6>;
			gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};

		router_off {
			linux,code = <BTN_5>;
			gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};

		movie_engine {
			linux,code = <BTN_7>;
			gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};
	};

	gpio-export {
		compatible = "gpio-export";

		gpio_usb_power {
			gpio-export,name = "buffalo:power:usb";
			gpio-export,output = <1>;
			gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
		};
	};

	flash {
		compatible = "mtd-concat";

		devices = <&flash0 &flash1>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;
			partition@0 {
				label = "u-boot";
				reg = <0x0000000 0x0040000>;
				read-only;
			};

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

			art: partition@50000 {
				label = "art";
				reg = <0x0050000 0x0010000>;
				read-only;
			};

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

			partition@1ff0000 {
				label = "user_property";
				reg = <0x1ff0000 0x0010000>;
				read-only;
			};
		};
	};
};

&usb_phy {
	status = "okay";
};

&usb1 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	usb_ochi_port: port@1 {
		reg = <1>;
		#trigger-source-cells = <0>;
	};
};

&usb2 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	usb_echi_port: port@1 {
		reg = <1>;
		#trigger-source-cells = <0>;
	};
};

&pcie0 {
	status = "okay";

	ath9k0: wifi@0,11 {
		compatible = "pci168c,0029";
		reg = <0x8800 0 0 0 0>;
		qca,no-eeprom;
		#gpio-cells = <2>;
		gpio-controller;
	};

	ath9k1: wifi@0,12 {
		compatible = "pci168c,0029";
		reg = <0x9000 0 0 0 0>;
		qca,no-eeprom;
		#gpio-cells = <2>;
		gpio-controller;
	};
};

&uart {
	status = "okay";
};

&pll {
	clocks = <&extosc>;
};

&spi {
	status = "okay";
	num-cs = <2>;
	cs-gpios = <0>, <0>;

	flash0: flash@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <104000000>;
		m25p,fast-read;
	};

	flash1: flash@1 {
		compatible = "jedec,spi-nor";
		reg = <1>;
		spi-max-frequency = <104000000>;
		m25p,fast-read;
	};
};

&mdio0 {
	status = "okay";

	phy4: ethernet-phy@4 {
		reg = <4>;
		phy-mode = "rgmii";
	};
};

&eth0 {
	status = "okay";

	mtd-mac-address = <&art 0x120c>;

	fixed-link {
		speed = <1000>;
		full-duplex;
	};
};

&eth1 {
	status = "okay";

	mtd-mac-address = <&art 0x520c>;
	mtd-mac-address-increment = <1>;

	phy-handle = <&phy4>;
};