<?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>How to declare a single GPIO-Pin which is not an LED in boards dts file?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92813/how-to-declare-a-single-gpio-pin-which-is-not-an-led-in-boards-dts-file</link><description>We have a few GPIO Outputs we&amp;#39;d like to configure via device tree. However in all the examples found the output GPIOs are compatible=&amp;quot;gpio-leds&amp;quot;. 
 Those pins are necessary to communicate with another Chip so we&amp;#39;d rather not use the gpio-leds interface</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Apr 2023 11:23:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92813/how-to-declare-a-single-gpio-pin-which-is-not-an-led-in-boards-dts-file" /><item><title>RE: How to declare a single GPIO-Pin which is not an LED in boards dts file?</title><link>https://devzone.nordicsemi.com/thread/419238?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 11:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d5528f2-c12f-4736-9536-f5df1570293c</guid><dc:creator>zsn</dc:creator><description>&lt;p&gt;I would create a yaml file call, for example, gpio-outputs.yaml. and copy gpio-leds.yaml context into it and modify&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# Copyright (c) 2018, Linaro Limited
# SPDX-License-Identifier: Apache-2.0

compatible: &amp;quot;gpio-outputs&amp;quot;

child-binding:
    description: GPIO output child node
    properties:
       gpios:
          type: phandle-array
          required: true
       label:
          required: false
          type: string
          description: |
            Human readable string describing the pin. It can be used by an
            application to identify this pin or to retrieve its number/index
            (i.e. child node number) on the parent device.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and you can copy this file either into your project/boards/bindings or zephyr/dts/bindings/gpio. Both will work.&lt;/p&gt;
&lt;p&gt;if you copy into your project it will be valid for only that project, but if you copy into zephyr/dts then you can use it for all your project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to declare a single GPIO-Pin which is not an LED in boards dts file?</title><link>https://devzone.nordicsemi.com/thread/403237?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2023 16:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:194ca1b0-b105-44cf-9aef-de9ca40667d4</guid><dc:creator>longo92</dc:creator><description>&lt;p&gt;I resuming this post in order to know if someone know a method.&amp;nbsp;I get bored seeing that I have to use something led-retaled to control a mosfet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to declare a single GPIO-Pin which is not an LED in boards dts file?</title><link>https://devzone.nordicsemi.com/thread/390964?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 11:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2cc5eb-92f8-47c5-904a-f65d61b45454</guid><dc:creator>xmoex</dc:creator><description>&lt;p&gt;No issue here, controlling the pins works fine. I just wasn&amp;#39;t sure if accessing the Pins via gpio-leds was the &amp;quot;right&amp;quot; way to do it...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to declare a single GPIO-Pin which is not an LED in boards dts file?</title><link>https://devzone.nordicsemi.com/thread/390824?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 14:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8099020c-40a1-4ab5-91b9-6ca8068871b9</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should be able to control a gpio with gpio-leds by using the gpio API.&lt;/p&gt;
&lt;p&gt;Look at how the led is handled in zephyr/samples/basic/button. It is just an output GPIO that happens to be connected to an LED.&lt;/p&gt;
&lt;p&gt;Are you having any issues replicating that with the gpio-leds node you posted?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>