Verbatim PowerBay 2TB (DTS)

Published on 2022-04-18 and last edited on 2022-04-23.

From the NAS Verbatim PowerBay 2TB

⚓ kirkwood-verbatim-powerbay.dts

/dts-v1/;

#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"

/ {
	model = "Verbatim PowerBay";
	compatible = "marvell,kirkwood-88f6281", "marvell,kirkwood";

	memory { /* 256 MB */
		device_type = "memory";
		reg = <0x00000000 0x20000000>;
	};

	mbus {
		pcie-controller {
			status = "okay";

			/* Connected to Intel WG82574L Gigabit controller */
			pcie@1,0 {
				/* Port 0, Lane 0 */
				status = "okay";
			};
		};
	};



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

		button@1 {
			label = "Power button";
			linux,code = <116>;
			gpios = <&gpio1 2 1>;
		};
		button@2 {
			label = "USB unmount button";
			linux,code = <161>;
			gpios = <&gpio1 15 1>;
		};
		button@3 {
			label = "Reset button";
			linux,code = <0x198>;
			gpios = <&gpio1 16 1>;
		};
	};

	ocp@f1000000 {


	};

	/* Fan: SUNON KD 1208PTB3 80mm 12V 1.0W ???rpm */
	gpio_fan {
		compatible = "gpio-fan";
		pinctrl-0 = <&pmx_fan_high_speed &pmx_fan_low_speed>;
		pinctrl-names = "default";
		gpios = <&gpio1 14 1
			 &gpio1 13 1>;
		gpio-fan,speed-map = <0    0
				      3000 1
				      6000 2>;
	};
};

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

	pmx_power_back_on: pmx-power-back-on {
		marvell,pins = "mpp37";
		marvell,function = "gpio";
	};

	pmx_power_sata0: pmx-power-sata0 {
		marvell,pins = "mpp39";
		marvell,function = "gpio";
	};
	pmx_power_sata1: pmx-power-sata1 {
		marvell,pins = "mpp40";
		marvell,function = "gpio";
	};
	pmx_power_sata2: pmx-power-sata2 {
		marvell,pins = "mpp41";
		marvell,function = "gpio";
	};
	pmx_power_sata3: pmx-power-sata3 {
		marvell,pins = "mpp42";
		marvell,function = "gpio";
	};

	pmx_fan_tacho: pmx-fan-tacho {
		marvell,pins = "mpp44";
		marvell,function = "gpio";
	};
	pmx_fan_high_speed: pmx-fan-high-speed {
		marvell,pins = "mpp45";
		marvell,function = "gpio";
	};
	pmx_fan_low_speed: pmx-fan-low-speed {
		marvell,pins = "mpp46";
		marvell,function = "gpio";
	};
};

&sata { /* Connected to Marvell 88SM4140 SATA port multiplier */
	status = "okay";
	nr-ports = <4>;
};

&uart0 {
    clock-frequency = <200000000>;
    status = "ok";
};

&nand {
    status = "okay";
};


&i2c0 {
        pinctrl-0 = <&pmx_twsi0>;
        pinctrl-names = "default";
        status = "okay";
        lm75: lm75@49 {
                compatible = "national,lm75";
                reg = <0x49>;
        };
};


&mdio {
	status = "okay";

	ethphy0: ethernet-phy@8 {
		device_type = "ethernet-phy";
		compatible = "marvell,88e1116r";
		reg = <8>;
	};
};

&eth0 { // Labeled as "EXT"
	status = "okay";
	ethernet0-port@0 {
		phy-handle = <&ethphy0>;
	};
};