This regulator is marked regulator-boot-on, but we'll shut it down (IIRC) if we don't reference it in this way. This should hopefully fix SATA on the Cubieboard2, as reported by Ray White.
- rS356600: a10_ahci: grab the target-supply regulator and enable it
This is completely untested.
I've since realized that the cubieboard1 does in-fact have SATA, I just don't have it broken out. Test-booted, and now I get:
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 19 on simplebus0 ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported ahci0: quirks=0x2<NOPMP> ahci0: Caps: NCQ SNTF ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports ahcich0: not probed (disabled) regulator: shutting down ahci-5v... busy
The cubieboard1 also needs this to boot: https://people.freebsd.org/~kevans/cubie-ldo3.diff -> because ldo3 is essential, but I don't know if this is sufficient information to try upstreaming it.