Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4aff38a3 authored by Michael Walle's avatar Michael Walle Committed by Andrew Lunn
Browse files

ARM: kirkwood: Add LS-XHL and LS-CHLv2 support



Add support for Buffalo Linkstation LS-XHL and LS-CHLv2 using the device
tree where possible.

Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
parent 5136b2aa
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
/dts-v1/;

/include/ "kirkwood-lsxl.dtsi"

/ {
	model = "Buffalo Linkstation LS-CHLv2";
	compatible = "buffalo,lschlv2", "buffalo,lsxl", "mrvl,kirkwood-88f6281", "mrvl,kirkwood";

	memory {
		device_type = "memory";
		reg = <0x00000000 0x4000000>;
	};

	ocp@f1000000 {
		serial@12000 {
			clock-frequency = <166666667>;
			status = "okay";
		};
	};
};
+20 −0
Original line number Diff line number Diff line
/dts-v1/;

/include/ "kirkwood-lsxl.dtsi"

/ {
	model = "Buffalo Linkstation LS-XHL";
	compatible = "buffalo,lsxhl", "buffalo,lsxl", "mrvl,kirkwood-88f6281", "mrvl,kirkwood";

	memory {
		device_type = "memory";
		reg = <0x00000000 0x10000000>;
	};

	ocp@f1000000 {
		serial@12000 {
			clock-frequency = <200000000>;
			status = "okay";
		};
	};
};
+95 −0
Original line number Diff line number Diff line
/include/ "kirkwood.dtsi"

/ {
	chosen {
		bootargs = "console=ttyS0,115200n8 earlyprintk";
	};

	ocp@f1000000 {
		sata@80000 {
			status = "okay";
			nr-ports = <1>;
		};

		spi@10600 {
			status = "okay";

			m25p40@0 {
				#address-cells = <1>;
				#size-cells = <1>;
				compatible = "m25p40";
				reg = <0>;
				spi-max-frequency = <25000000>;
				mode = <0>;

				partition@0 {
					reg = <0x0 0x60000>;
					label = "uboot";
					read-only;
				};

				partition@60000 {
					reg = <0x60000 0x10000>;
					label = "dtb";
					read-only;
				};

				partition@70000 {
					reg = <0x70000 0x10000>;
					label = "uboot_env";
				};
			};
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
		button@1 {
			label = "Function Button";
			linux,code = <132>;
			gpios = <&gpio1 9 1>;
		};
		button@2 {
			label = "Power-on Switch";
			linux,code = <116>;
			gpios = <&gpio1 10 1>;
		};
		button@3 {
			label = "Power-auto Switch";
			linux,code = <142>;
			gpios = <&gpio1 11 1>;
		};
	};

	gpio_leds {
		compatible = "gpio-leds";

		led@1 {
			label = "lschlv2:blue:func";
			gpios = <&gpio1 4 1>;
		};

		led@2 {
			label = "lschlv2:red:alarm";
			gpios = <&gpio1 5 1>;
		};

		led@3 {
			label = "lschlv2:amber:info";
			gpios = <&gpio1 6 1>;
		};

		led@4 {
			label = "lschlv2:blue:power";
			gpios = <&gpio1 7 1>;
			linux,default-trigger = "default-on";
		};

		led@5 {
			label = "lschlv2:red:func";
			gpios = <&gpio1 16 1>;
		};
	};
};
+8 −0
Original line number Diff line number Diff line
@@ -101,6 +101,14 @@ config MACH_GOFLEXNET_DT
	  Say 'Y' here if you want your kernel to support the
	  Seagate GoFlex Net (Flattened Device Tree).

config MACH_LSXL_DT
	bool "Buffalo Linkstation LS-XHL, LS-CHLv2 (Flattened Device Tree)"
	select ARCH_KIRKWOOD_DT
	help
	  Say 'Y' here if you want your kernel to support the
	  Buffalo Linkstation LS-XHL & LS-CHLv2 devices, using
	  Flattened Device Tree.

config MACH_TS219
	bool "QNAP TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and TS-219P+ Turbo NAS"
	help
+1 −0
Original line number Diff line number Diff line
@@ -27,3 +27,4 @@ obj-$(CONFIG_MACH_DLINK_KIRKWOOD_DT) += board-dnskw.o
obj-$(CONFIG_MACH_IB62X0_DT)		+= board-ib62x0.o
obj-$(CONFIG_MACH_TS219_DT)		+= board-ts219.o tsx1x-common.o
obj-$(CONFIG_MACH_GOFLEXNET_DT)		+= board-goflexnet.o
obj-$(CONFIG_MACH_LSXL_DT)		+= board-lsxl.o
Loading