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

Commit ecee1e47 authored by Simon Guinot's avatar Simon Guinot Committed by Jason Cooper
Browse files

ARM: kirkwood: DT board setup for Network Space v2 and parents



This patch adds DT board setup for LaCie Network Space v2 and parents,
based on the Marvell Kirkwood 6281 SoC. This includes Network Space v2
(Max) and Internet Space v2.

Signed-off-by: default avatarSimon Guinot <simon.guinot@sequanux.org>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 72052fcc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -36,9 +36,12 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-dns320.dtb \
	kirkwood-ib62x0.dtb \
	kirkwood-iconnect.dtb \
	kirkwood-iomega_ix2_200.dtb \
	kirkwood-is2.dtb \
	kirkwood-km_kirkwood.dtb \
	kirkwood-lschlv2.dtb \
	kirkwood-lsxhl.dtb \
	kirkwood-ns2.dtb \
	kirkwood-ns2max.dtb \
	kirkwood-ts219-6281.dtb \
	kirkwood-ts219-6282.dtb
dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \
+30 −0
Original line number Diff line number Diff line
/dts-v1/;

/include/ "kirkwood-ns2-common.dtsi"

/ {
	model = "LaCie Internet Space v2";
	compatible = "lacie,inetspace_v2", "marvell,kirkwood-88f6281", "marvell,kirkwood";

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

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

	ns2-leds {
		compatible = "lacie,ns2-leds";

		blue-sata {
			label = "ns2:blue:sata";
			slow-gpio = <&gpio0 29 0>;
			cmd-gpio = <&gpio0 30 0>;
		};
	};
};
+63 −0
Original line number Diff line number Diff line
/include/ "kirkwood.dtsi"

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

	ocp@f1000000 {
		serial@12000 {
			clock-frequency = <166666667>;
			status = "okay";
		};

		spi@10600 {
			status = "okay";

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

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

		i2c@11000 {
			status = "okay";

			eeprom@50 {
				compatible = "at,24c04";
				pagesize = <16>;
				reg = <0x50>;
			};
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;

		button@1 {
			label = "Power push button";
			linux,code = <116>;
			gpios = <&gpio1 0 0>;
		};
	};

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

		red-fail {
			label = "ns2:red:fail";
			gpios = <&gpio0 12 0>;
		};
	};
};
+30 −0
Original line number Diff line number Diff line
/dts-v1/;

/include/ "kirkwood-ns2-common.dtsi"

/ {
	model = "LaCie Network Space v2";
	compatible = "lacie,netspace_v2", "marvell,kirkwood-88f6281", "marvell,kirkwood";

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

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

	ns2-leds {
		compatible = "lacie,ns2-leds";

		blue-sata {
			label = "ns2:blue:sata";
			slow-gpio = <&gpio0 29 0>;
			cmd-gpio = <&gpio0 30 0>;
		};
	};
};
+49 −0
Original line number Diff line number Diff line
/dts-v1/;

/include/ "kirkwood-ns2-common.dtsi"

/ {
	model = "LaCie Network Space Max v2";
	compatible = "lacie,netspace_max_v2", "marvell,kirkwood-88f6281", "marvell,kirkwood";

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

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

	gpio_fan {
		compatible = "gpio-fan";
		gpios = <&gpio0 22 1
			 &gpio0  7 1
			 &gpio1  1 1
			 &gpio0 23 1>;
		gpio-fan,speed-map =
			<   0  0
			 1500 15
			 1700 14
			 1800 13
			 2100 12
			 3100 11
			 3300 10
			 4300  9
			 5500  8>;
		alarm-gpios = <&gpio0 25 1>;
	};

	ns2-leds {
		compatible = "lacie,ns2-leds";

		blue-sata {
			label = "ns2:blue:sata";
			slow-gpio = <&gpio0 29 0>;
			cmd-gpio = <&gpio0 30 0>;
		};
	};
};
Loading