If you don’t have your own driver, then you should use gpio-of-helper driver
which I believe should do what you want. I haven’t used it, but I believe that
is the general idea. I always use my own driver.
&am33xx_pinmux {
gpio_pins: gpio_pins { // The GPIO pins
pinctrl-single,pins = <
0x070 0x07 // P9_11 MODE7 GPIO output pull‐down
0x074 0x27 // P9_13 MODE7 GPIO input pull‐down
>;
};
&ocp {
helper {
compatible = "gpio-of-helper";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&gpio_pins>;
};
Regards,
John
> On Jul 15, 2016, at 9:11 AM, Paulo Sherring <[email protected]> wrote:
>
> Thanks, John! Would mind elucidate a little more, with a sample DTS of how do
> I achieve this? Or a link to somewhere that shows how to do it?
>
>
> Em sexta-feira, 15 de julho de 2016 13:08:52 UTC-3, john3909 escreveu:
> Think of DTS as a simple database which does nothing unless you specify a
> driver that then uses the definitions in the dtbo to configure the I/O.
>
> Regards,
> John
>
>
>
>
>> On Jul 15, 2016, at 7:51 AM, Paulo Sherring <[email protected]
>> <javascript:>> wrote:
>>
>> Hi all. I am developing a control system which uses GPIO to perform IO
>> operations and control peripherals.
>> So, right now, I have a DTS file which initializes all GPIOs that I am going
>> to use, mostly outputs. It compiles and loads normally. Here it is:
>> http://pastebin.com/HTB0v8dH <http://pastebin.com/HTB0v8dH>
>> I previously thought that it would initialize the GPIO_OE registers, since
>> it is being configured as output, but apparently it does not.
>> So, I was wondering how could I create a DTS file that would initialize both
>> GPIO_OE register and set the initial value for it.
>> Any thoughts on that?
>> Thanks in advance!
>> Paulo Sherring.
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> <http://beagleboard.org/discuss>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beagleboard/56681858-5d87-465f-97ce-5a729a4806ae%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/beagleboard/56681858-5d87-465f-97ce-5a729a4806ae%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> <http://beagleboard.org/discuss>
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/9d0efd54-5143-4b23-8f76-0d928b593f56%40googlegroups.com
>
> <https://groups.google.com/d/msgid/beagleboard/9d0efd54-5143-4b23-8f76-0d928b593f56%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/E80D87F2-E6FF-4DCD-A06F-FE8FA1D6F7C8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.