<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>I2C sensor with additional CS/power pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102019/i2c-sensor-with-additional-cs-power-pins</link><description>Hello, I am trying to use LPS22HB sensor on a custom NRF52832 board. The sensor shall be supported by Zephyr/NRF Connect (in I2C mode) - but the driver continously reports False via device_is_ready(). 
 The sensor is dual-mode and supports SPI as well</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jul 2023 12:23:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102019/i2c-sensor-with-additional-cs-power-pins" /><item><title>RE: I2C sensor with additional CS/power pins</title><link>https://devzone.nordicsemi.com/thread/437866?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 12:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7816777b-a176-421b-8672-efdb3f241c02</guid><dc:creator>Paskin</dc:creator><description>&lt;p&gt;Ok,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Managed to achieve the desired result using gpio-hogs.&lt;/p&gt;
&lt;p&gt;Got a suggestion - throw a warning when, for example, gpio_hogs are defined in DT - but CONFIG_GPIO_HOGS is not set. Otherwise it can take ages to figure what is going wrong...&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C sensor with additional CS/power pins</title><link>https://devzone.nordicsemi.com/thread/437470?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 12:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a24baf3a-684d-4a6a-9e42-7998ffd5f861</guid><dc:creator>Paskin</dc:creator><description>&lt;p&gt;Unfortunately - I do not have an analyzer.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;SDA is P0.29,&amp;nbsp;SCL is P0.02. &lt;br /&gt;CS (which has to be &amp;quot;1&amp;quot; for I2C) - wired to P0.03 without any external pull. SA0 - wired to P0.28 the same way.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My question relates to a &amp;quot;by the book&amp;quot; scenario - before dealing with potential issues, what is the correct way to set CS and SA0 to the expected state before Zephyr Lps22hb driver will try to access the device as a part of its initialisation?&lt;/p&gt;
&lt;p&gt;From the power perspective - the sensor&amp;nbsp;is hardwired to a Vcc/Gnd.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C sensor with additional CS/power pins</title><link>https://devzone.nordicsemi.com/thread/437433?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 10:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b61faaaf-0b14-4020-a01a-f26291b0c1e1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What GPIOs are you using from the nRF52832 to connect to the LPS22hB sensor? And are you certain that the sensor is powered at all? Do you have a logic analyzer or similar to see if there&amp;#39;s any activity at all between the nRF52 and the LPS22HB?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>