[meta-ti] GPIO on DTS ?

Riko Ho antonius.riko at gmail.com
Thu Jul 6 18:14:00 PDT 2017


Dear Meta-TI Team Member,

I want to use 4 GPIO pins of my beaglebone black,

Here's my dts code :

==========

  gpio0_pins: gpio0_pins {
                 pinctrl-single,pins = <
                     AM33XX_IOPAD(0x840, PIN_INPUT_PULLUP | MUX_MODE7) 
/* gpmc_a0.gpio1_16 */
                     AM33XX_IOPAD(0x844, PIN_OUTPUT_PULLDOWN | 
MUX_MODE7) /* gpmc_a1.gpio1_17 */
                     AM33XX_IOPAD(0x878, PIN_OUTPUT_PULLDOWN | 
MUX_MODE7) /* gpmc_be1n.gpio1_28 */
                     AM33XX_IOPAD(0x9A4, PIN_OUTPUT_PULLDOWN | 
MUX_MODE7) /* mcasp0_fsr.gpio3_19 */
                 >;
};

// Added GPIO0 node, experiment by Riko Ho 7 July 2017
&gpio0 {
          status = "okay";
          pinctrl-names = "default";
          pinctrl-0 = <&gpio0_pins>;

};


=======

I can see it already, are they correct ?

root at beaglebone:/sys/kernel/debug/pinctrl/44e10800.pinmux# cat 
pinmux-pins | grep "gpio0"
pin 16 (PIN16): 44e07000.gpio (GPIO UNCLAIMED) function gpio0_pins group 
gpio0_pins
pin 17 (PIN17): 44e07000.gpio (GPIO UNCLAIMED) function gpio0_pins group 
gpio0_pins
pin 30 (PIN30): 44e07000.gpio (GPIO UNCLAIMED) function gpio0_pins group 
gpio0_pins
pin 105 (PIN105): 44e07000.gpio (GPIO UNCLAIMED) function gpio0_pins 
group gpio0_pins

==========

I got :

//omap_gpio 44e07000.gpio: could not find pctldev for node 
/ocp/l4_wkup at 44c00000/scm at 210000/pinmux at 800/gpio0_pins, deferring probe,

When the board boots, is it ok ? Or I miss something, please advice, thanks.

-- 
*

/*******/
Sent by Ubuntu LTS 16.04,
Kind regards,
Riko Ho
/*******/

*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-ti/attachments/20170707/c2691195/attachment.html>


More information about the meta-ti mailing list