<?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>topic Re: fxos8700 driver probe error on IMX8MP board in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1673176#M207906</link>
    <description>&lt;P&gt;I compiled the driver as a module rather than into the kernel, and then loaded the driver manually, it seems works.&lt;/P&gt;&lt;P&gt;insmod fxos8700.ko&lt;BR /&gt;input: fxos8700 as /devices/platform/soc@0/30800000.bus/30a50000.i2c/i2c-3/3-001e/input/input1&lt;BR /&gt;fxos8700 device driver probe successfully&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, Is there a sample program to read data from the&amp;nbsp;fxos8700 devide?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 03:21:35 GMT</pubDate>
    <dc:creator>WEI_LIU</dc:creator>
    <dc:date>2023-06-21T03:21:35Z</dc:date>
    <item>
      <title>fxos8700 driver probe error on IMX8MP board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1672468#M207840</link>
      <description>&lt;P&gt;I connected an FXOS8700CQR1 chip to the I2C bus of IMX8MP, but there was an error when the kernel loaded the driver。&lt;/P&gt;&lt;P&gt;The error message is as follows:&lt;/P&gt;&lt;P&gt;[ 2.326218] fxos8700 3-001e: read chip ID 0x1 is not equal to 0xc7 or 0xc4&lt;BR /&gt;[ 2.333122] fxos8700: probe of 3-001e failed with error -22&lt;/P&gt;&lt;P&gt;My devicetree setup like this:&lt;/P&gt;&lt;DIV&gt;&amp;amp;i2c4{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; clock-frequency = &amp;lt;100000&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; pinctrl-names = "default";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c4&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; status = "okay";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; fxos8700@1e {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = "fsl,fxos8700";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x1e&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interrupt-open-drain;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have configured the driver in the kernel:&lt;/DIV&gt;&lt;DIV&gt;Device Drivers ---&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Misc devices ---&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;lt;*&amp;gt; Freescale FXOS8700 M+G combo sensor&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The driver located at: kernel/drivers/misc/fxos8700.c&lt;/DIV&gt;&lt;DIV&gt;My kernel version is:5.4.70_2.3.0&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Jun 2023 07:26:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1672468#M207840</guid>
      <dc:creator>WEI_LIU</dc:creator>
      <dc:date>2023-06-20T07:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: fxos8700 driver probe error on IMX8MP board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1672721#M207872</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219148"&gt;@WEI_LIU&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;This error seems to be due to not properly reading Chip ID or incorrect Chip ID in&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/imx_5.4.70_2.3.0/drivers/misc/fxos8700.c#L851" target="_self"&gt;fxos8700_probe&lt;/A&gt;().&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please share the schematic of the&amp;nbsp;&lt;SPAN&gt;fxos8700 connection &amp;amp; pinctrl node (dts) for further debugging.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please try to read CHIP ID using the i2c tools utility?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;// i2cget -f -y &amp;lt;i2c_bus&amp;gt; &amp;lt;device_address&amp;gt; &amp;lt;device_register&amp;gt;&lt;BR /&gt;# i2cget -f -y 3 0x&lt;SPAN&gt;1e 0x0d&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 12:21:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1672721#M207872</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-20T12:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: fxos8700 driver probe error on IMX8MP board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1673109#M207902</link>
      <description>&lt;P&gt;The result read by the &lt;SPAN&gt;&amp;nbsp;i2c tools&lt;/SPAN&gt; is:&amp;nbsp;0xc7&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="0.png" style="width: 200px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228636i0C4E22E6D39A94A9/image-size/small?v=v2&amp;amp;px=200" role="button" title="0.png" alt="0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is my&amp;nbsp;hardware design:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228637i18AECEDBEE310195/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228638i3A257967A7148950/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fxos8700 connected to the i2c4 node of the IMX8MP,&amp;nbsp; no other pin connections.&lt;/P&gt;&lt;P&gt;And&amp;nbsp;this is my dts configuration:&lt;/P&gt;&lt;DIV&gt;&amp;amp;i2c4{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; clock-frequency = &amp;lt;100000&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; pinctrl-names = "default";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c4&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; status = "okay";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; fxos8700@1e {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = "fsl,fxos8700";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x1e&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interrupt-open-drain;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl_i2c4: i2c4grp {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; fsl,pins = &amp;lt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MX8MP_IOMUXC_I2C4_SCL__I2C4_SCL 0x400001c3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MX8MP_IOMUXC_I2C4_SDA__I2C4_SDA 0x400001c3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jun 2023 01:44:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1673109#M207902</guid>
      <dc:creator>WEI_LIU</dc:creator>
      <dc:date>2023-06-21T01:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: fxos8700 driver probe error on IMX8MP board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1673176#M207906</link>
      <description>&lt;P&gt;I compiled the driver as a module rather than into the kernel, and then loaded the driver manually, it seems works.&lt;/P&gt;&lt;P&gt;insmod fxos8700.ko&lt;BR /&gt;input: fxos8700 as /devices/platform/soc@0/30800000.bus/30a50000.i2c/i2c-3/3-001e/input/input1&lt;BR /&gt;fxos8700 device driver probe successfully&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, Is there a sample program to read data from the&amp;nbsp;fxos8700 devide?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 03:21:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1673176#M207906</guid>
      <dc:creator>WEI_LIU</dc:creator>
      <dc:date>2023-06-21T03:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: fxos8700 driver probe error on IMX8MP board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1673303#M207918</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219148"&gt;@WEI_LIU&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;userspace application is not available.&lt;/P&gt;
&lt;P&gt;However, One can use the ioctl call or poll input channels in the userspace application to read sensor data.&lt;BR /&gt;Please refer to below links :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://trac.gateworks.com/wiki/accelerometer" target="_self"&gt;http://trac.gateworks.com/wiki/accelerometer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://wiki.openmoko.org/wiki/Accelerometer_data_retrieval" target="_self"&gt;https://wiki.openmoko.org/wiki/Accelerometer_data_retrieval&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;sysfs entries for the&amp;nbsp;&lt;SPAN&gt;fxos8700 driver are also available.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 06:36:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/fxos8700-driver-probe-error-on-IMX8MP-board/m-p/1673303#M207918</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-21T06:36:20Z</dc:date>
    </item>
  </channel>
</rss>

