oxnas: enable sata on Pogoplug V3/Pro
authorSungbo Eo <mans0n@gorani.run>
Tue, 17 Mar 2020 08:34:27 +0000 (17:34 +0900)
committerSungbo Eo <mans0n@gorani.run>
Tue, 17 Mar 2020 08:36:34 +0000 (17:36 +0900)
Pogoplug V3/Pro has an interanl SATA port. To use it, DTS sata node should be
enabled, and kmod-ata-oxnas-sata package needs to be installed.

Fixes: FS#2542
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
target/linux/oxnas/files/arch/arm/boot/dts/ox820-cloudengines-pogoplugpro.dts
target/linux/oxnas/image/ox820.mk
target/linux/oxnas/patches-5.4/500-oxnas-sata.patch

index d6e239173b17e0ff095e0831311c82508f7a4902..04cf4e31f92b1cbdda2b8b098608fb1b5a2b5e2c 100644 (file)
        pinctrl-0 = <&pinctrl_etha_mdio>;
 };
 
+&sata {
+       status = "okay";
+};
+
 &pcie_phy {
        status = "okay";
 };
index 0bc8797da8e692a5827cf61e64caa8b444c6beba..7a41e1641bc9415aa34d5960f4b2ec56b8bb0585 100644 (file)
@@ -50,8 +50,8 @@ define Device/cloudengines_pogoplugpro
   DEVICE_VENDOR := Cloud Engines
   DEVICE_MODEL := PogoPlug Pro (with mPCIe)
   SUPPORTED_DEVICES += pogoplug-pro
-  DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb-ledtrig-usbport kmod-rt2800-pci \
-       wpad-basic
+  DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb-ledtrig-usbport \
+       kmod-ata-oxnas-sata kmod-rt2800-pci wpad-basic
 endef
 TARGET_DEVICES += cloudengines_pogoplugpro
 
@@ -59,7 +59,8 @@ define Device/cloudengines_pogoplug-series-3
   DEVICE_VENDOR := Cloud Engines
   DEVICE_MODEL := PogoPlug Series V3 (without mPCIe)
   SUPPORTED_DEVICES += cloudengines,pogoplugv3 pogoplug-v3
-  DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb-ledtrig-usbport
+  DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb-ledtrig-usbport \
+       kmod-ata-oxnas-sata
 endef
 TARGET_DEVICES += cloudengines_pogoplug-series-3
 
index ba0d0d79b469f77fc6ab7db9a316a96681f2079b..dda82e7bebfdfbc521c9c28b9af20b73da2b863d 100644 (file)
 +
        };
  };
+--- a/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
++++ b/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
+@@ -111,3 +111,7 @@
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_etha_mdio>;
+ };
++
++&sata {
++      status = "okay";
++};