<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: Control PFUZE3001 driver from userspace</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Control-PFUZE3001-driver-from-userspace/m-p/1276728#M174039</link>
    <description>&lt;P&gt;Yes, tried that but it says device/resource is busy as it is used by pfuze driver.&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 03:55:37 GMT</pubDate>
    <dc:creator>saumil</dc:creator>
    <dc:date>2021-05-14T03:55:37Z</dc:date>
    <item>
      <title>Control PFUZE3001 driver from userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Control-PFUZE3001-driver-from-userspace/m-p/1276152#M173978</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have custom board based on i.Mx6ULL.&lt;/P&gt;&lt;P&gt;I want to control VLDO1 output line of PMIC(PF3001) but I came to know that the driver PFUZE3001 sysfs files are only read only and we can not control it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From community search I found &lt;A href="https://community.nxp.com/t5/i-MX-Processors/How-to-interact-with-PFUZE3000-driver-from-user-space-level/m-p/631107" target="_self"&gt;this solution&lt;/A&gt;&amp;nbsp;by &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/157598"&gt;@pastrana&lt;/a&gt;&amp;nbsp;which uses userspace-consumer driver which exposes sysfs control from userspace.&lt;/P&gt;&lt;P&gt;I have followed mentioned steps but I haven't succeeded.&lt;/P&gt;&lt;P&gt;- added &lt;A href="https://lkml.org/lkml/2014/7/30/357" target="_self"&gt;patch&lt;/A&gt; which is mentioned in&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;drivers/regulator/userspace-consumer.c&lt;/PRE&gt;&lt;P&gt;- enabled&amp;nbsp;&lt;SPAN&gt;CONFIG_REGULATOR_USERSPACE_CONSUMER in defconfig&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- added changes in dts file which is attached&lt;/P&gt;&lt;P&gt;Following are the files from sysfs after enabling all this&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#ls -lh&amp;nbsp;/sys/firmware/devicetree/base/soc/aips-bus@2100000/i2c@21a0000/pfuze3001@08/userspace-consumer&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;total 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-r--r--r-- 1 root root 0 May 12 15:24 #regulator-boot-on&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-r--r--r-- 1 root root 23 May 12 15:24 compatible&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-r--r--r-- 1 root root 19 May 12 15:24 name&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-r--r--r-- 1 root root 15 May 12 15:24 regulator-name&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-r--r--r-- 1 root root 6 May 12 15:24 regulator-supplies&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-r--r--r-- 1 root root 4 May 12 15:24 vldo1-supply&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;~# ls -lh /sys/class/regulator/regulator.9/&lt;BR /&gt;total 0&lt;BR /&gt;lrwxrwxrwx 1 root root 0 May 12 15:52 device -&amp;gt; ../../../0-0008&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 max_microvolts&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 microvolts&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 min_microvolts&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 name&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 num_users&lt;BR /&gt;lrwxrwxrwx 1 root root 0 May 12 15:52 of_node -&amp;gt; ../../../../../../../../../firmware/devicetree/base/soc/aips-bus@2100000/i2c@21a0000/pfuze3001@08/regulators/vldo1&lt;BR /&gt;drwxr-xr-x 2 root root 0 May 12 15:23 power&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 state&lt;BR /&gt;lrwxrwxrwx 1 root root 0 Sep 6 2020 subsystem -&amp;gt; ../../../../../../../../../class/regulator&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 suspend_disk_state&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 suspend_mem_state&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 suspend_standby_state&lt;BR /&gt;-r--r--r-- 1 root root 4.0K May 12 15:52 type&lt;BR /&gt;-rw-r--r-- 1 root root 4.0K Sep 6 2020 uevent&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# ls -lh /sys/devices/soc0/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0008/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;total 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;lrwxrwxrwx 1 root root 0 May 12 15:50 driver -&amp;gt; ../../../../../../../bus/i2c/drivers/pfuze100-regulator&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-r--r--r-- 1 root root 4.0K May 12 15:50 modalias&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-r--r--r-- 1 root root 4.0K May 12 15:50 name&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;lrwxrwxrwx 1 root root 0 May 12 15:50 of_node -&amp;gt; ../../../../../../../firmware/devicetree/base/soc/aips-bus@2100000/i2c@21a0000/pfuze3001@08&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;drwxr-xr-x 2 root root 0 May 12 15:23 power&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;drwxr-xr-x 12 root root 0 Sep 6 2020 regulator&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;lrwxrwxrwx 1 root root 0 Sep 6 2020 subsystem -&amp;gt; ../../../../../../../bus/i2c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-r--r-- 1 root root 4.0K Sep 6 2020 uevent&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#ls -lh /sys/bus/platform/drivers/reg-userspace-consumer&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;total 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--w------- 1 root root 4.0K May 12 15:45 bind&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--w------- 1 root root 4.0K Sep 6 2020 uevent&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--w------- 1 root root 4.0K May 12 15:45 unbind&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have attached kernel logs, I couldn't find any useful information from it.&lt;/P&gt;&lt;P&gt;Please suggest what is missing here.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 04:38:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Control-PFUZE3001-driver-from-userspace/m-p/1276152#M173978</guid>
      <dc:creator>saumil</dc:creator>
      <dc:date>2021-05-13T04:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Control PFUZE3001 driver from userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Control-PFUZE3001-driver-from-userspace/m-p/1276639#M174032</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try to use i2ctool to read/set ？&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 00:26:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Control-PFUZE3001-driver-from-userspace/m-p/1276639#M174032</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-05-14T00:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Control PFUZE3001 driver from userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Control-PFUZE3001-driver-from-userspace/m-p/1276728#M174039</link>
      <description>&lt;P&gt;Yes, tried that but it says device/resource is busy as it is used by pfuze driver.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 03:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Control-PFUZE3001-driver-from-userspace/m-p/1276728#M174039</guid>
      <dc:creator>saumil</dc:creator>
      <dc:date>2021-05-14T03:55:37Z</dc:date>
    </item>
  </channel>
</rss>

