So I've now got this in the device tree ....
/sys/firmware/devicetree/base/ad9364-refclk-gpio-gate@0/enable-gpios
... how can I read and write the value of the above enable-gpio ?
So I've now got this in the device tree ....
/sys/firmware/devicetree/base/ad9364-refclk-gpio-gate@0/enable-gpios
... how can I read and write the value of the above enable-gpio ?
Please see here:
In this case the gpio-gate-clock driver owns the GPIO and nothing else can control it.
If you don't like that - remove the gate and use other techniques to control the GPIO from user space.
-Michael
Thank you Michael,
I might just do as you suggest and remove the GPIO control from the DTB and control the clock switching from user space. However, it would be nice to know how I can ask the gpio-gate-clock driver to do the switching for me.
Is there as an attribute in sysfs that I could write into ... just as I can do for controlling attributes of ad9361-phy.
I've found the line { .compatible = "gpio-gate-clock" }, in linux\drivers\clk\clk-gpio.c ...
Kind regards
DrFlute