08:25 | jnettlet[m]> | vpeter: it should be no problem. You would need to setup your relays as regulator devices in your device-tree and then set them as the target-supply for the sata-port |
09:08 | vpeter> | jnettlet[m]: Thanks. Will try to do something. |
09:14 | jnettlet[m]> | vpeter: let me know if you want any pointers |
09:21 | vpeter> | Need to read first to understand a little. Then I would just unmount and turn regulator off? How much is different than having relay on gpio? |
09:24 | vpeter> | btw: trying to do something like this https://befinitiv.wordpress.com/2014/02/02/hacking-per-port-power-switching-to-an-usb-hub-2/ |
10:18 | vpeter> | jnettlet[m]: something like this? |
10:18 | vpeter> | https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/armada-388-gp.dts#L314-L330 |
10:18 | vpeter> | https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/armada-388-gp.dts#L170-L173 |
10:18 | vpeter> | and I need to define sata pins too. Probably on mpp19 because of "ata2: SATA link up 3.0 Gbps". |
11:25 | jnettlet[m]> | vpeter: you would want to use something similar to reg_sata0: pwr-sata0 where the gpio is defined that controls it. |
11:26 | vpeter> | So only one node? |
11:32 | jnettlet[m]> | if you are controlling both devices, then you can use 1 node for each, or share a node. |
11:32 | jnettlet[m]> | depends how everything gets wired up |
11:32 | jnettlet[m]> | basically the device-tree should match your hardware 1 for 1 |
11:54 | vpeter> | Will do something and see how it goes. |
11:54 | vpeter> | Thanks for pointers. |
12:06 | vpeter> | jnettlet[m]: Which LEDE for clearfog is most up to date? I would try it again to see if my pcie card is visible. |
12:14 | jnettlet[m]> | vpeter: use our lede or mainline. Both should work reasonably well. |
12:16 | vpeter> | Will check again. Still don't understand why my wifi card is not recognized anymore and need to rescan pci bus. But this trick doesn't work with current lede version. On forum was one uer who had same problem. |
12:17 | jnettlet[m]> | vpeter: which card? |
12:21 | vpeter> | COMPEX WLE900VX. But this other user had something different. |
12:23 | vpeter> | In lede from almost 2 years back it works fine. Could be some hardware damage (card or clearfog) after lightning which broke wan port. |
14:02 | jnettlet[m]> | vpeter: oh right I remember. Yeah that is odd since I have one of those in my CF Pro router and it has no such issues. |