<?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>Regulators from GPIO expander</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85245/regulators-from-gpio-expander</link><description>Hi, 
 
 I have some dependency issues in my devicetree definition. 
 I have a first regulator that control the power of a gpio expander connected through I2C. 
 This GPIO expander control other regulators, for other devices. 
 It seems that all regulators</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2022 15:01:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85245/regulators-from-gpio-expander" /><item><title>RE: Regulators from GPIO expander</title><link>https://devzone.nordicsemi.com/thread/355862?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 15:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69211bb0-5d04-4156-82a6-f52f54ec3f33</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Good luck! If you are not able to find your answers there, let me know and I will see what we can do here.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regulators from GPIO expander</title><link>https://devzone.nordicsemi.com/thread/355832?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 13:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1c43cef-78e8-4c92-9749-4e423b32caf7</guid><dc:creator>Neunz</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;for your time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will find my way on the Zephyr Community.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regulators from GPIO expander</title><link>https://devzone.nordicsemi.com/thread/355799?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 11:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eccaf86-0fd7-41f3-a440-e6962076df95</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Thank you for providing this information. Unfortunately, I am not familiar with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/regulators.html#regulators"&gt;Zephyr regulator subsystem&lt;/a&gt;. The closest application I can think of, that uses the regulator subsystem, is the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/zephyr/boards/arm/thingy52_nrf52832/doc/index.html#thingy-52"&gt;Thingy:52&lt;/a&gt;. Have a look at the board files found under&amp;nbsp;&lt;em&gt;zephyr\boards\arm\thingy52_nrf52832\&lt;/em&gt; in the SDK.&amp;nbsp;Board.c configures the power rails at start-up and might be a good starting point for your application.&lt;br /&gt;&lt;br /&gt;You may also get better answers regarding the Devicetree and Zephyr specific system in the &lt;a href="https://discord.com/invite/Ck7jw53nU2"&gt;Zephyr Community support on Discord&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regulators from GPIO expander</title><link>https://devzone.nordicsemi.com/thread/355747?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 09:37:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233d77c2-8787-4789-8bcf-4b0c92577e0d</guid><dc:creator>Neunz</dc:creator><description>&lt;p&gt;I&amp;#39;m on nrf Connect v1.9.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a custom board with a NRF52840.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I use one&amp;nbsp;GPIO for enabling power for the most important peripherals.&lt;/p&gt;
&lt;p&gt;I added a regulator in my device tree, this regulator is&amp;nbsp;enabled&amp;nbsp;by this&amp;nbsp;GPIO.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then I have a PCA9534 GPIO expander on I2C.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to add more regulators managed by the&amp;nbsp;pins from the&amp;nbsp;GPIO expander.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here sample of my device tree and an overlay I use for regulators from GPIO expander :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	
	sw_3v3_en: sw-3v3-ctrl {
		compatible = &amp;quot;regulator-fixed-sync&amp;quot;, &amp;quot;regulator-fixed&amp;quot;;
		label = &amp;quot;sw-3v3-ctrl&amp;quot;;
		regulator-name = &amp;quot;sw-3v3-ctrl&amp;quot;;
		enable-gpios = &amp;lt;&amp;amp;gpio1 12 GPIO_ACTIVE_HIGH&amp;gt;;
		/* Always on in dev config */ 
		regulator-boot-on;
	};

    [...]
    
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {

    en_a_aux: en-a-ctrl {
		compatible = &amp;quot;regulator-fixed&amp;quot;;
		label = &amp;quot;PERIPHERAL-A-REGULATOR&amp;quot;;
		regulator-name = &amp;quot;en-a-ctrl&amp;quot;;
		enable-gpios = &amp;lt;&amp;amp;gpio_expander 0 GPIO_ACTIVE_HIGH&amp;gt;;
        vin-supply = &amp;lt;&amp;amp;sw_3v3_en&amp;gt;;
		// Always on in dev config
		regulator-boot-on;
	};
};

&amp;amp;i2c1 {
    gpio_expander: tca953x@20 {
        status = &amp;quot;okay&amp;quot;;
        compatible = &amp;quot;ti,tca9538&amp;quot;;
        label = &amp;quot;PCA953X&amp;quot;;
        reg = &amp;lt;0x20&amp;gt;;
        gpio-controller;
        ngpios = &amp;lt;8&amp;gt;;
        #gpio-cells = &amp;lt;2&amp;gt;;
        vin-supply = &amp;lt;&amp;amp;sw_3v3_en&amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regulators from GPIO expander</title><link>https://devzone.nordicsemi.com/thread/355712?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 07:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72b3d402-2fe1-4d01-bf91-a672285590f6</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you please provide more information and elaborate more on what you are trying to achieve. What device are you using? What version of nRF Connect SDK are you using?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>