Mainline Devictree definition for Interrupt on a pin of the 40 PINHeader (#13, GPIOX_4)

KARL23
Posts: 15
Joined: Sun Jun 26, 2016 10:59 pm
languages_spoken: english
ODROIDs: c1, c2,xu4
Has thanked: 0
Been thanked: 0
Contact:

Mainline Devictree definition for Interrupt on a pin of the 40 PINHeader (#13, GPIOX_4)

Unread post by KARL23 » Wed Aug 14, 2019 8:46 pm

I need the pinctrl definition to set GPIOX_4 as Input with Interrupt on rising edge.

The general Template should be according to Documentation/devicetree/bindings/pps/pps-gpio.txt:

Code: Select all

        pps {
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_pps>;

                gpios = <&gpio GPIOX_4 GPIO_ACTIVE_HIGH>;
                assert-rising-edge;

//                echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
//                echo-active-ms = <100>;

                compatible = "pps-gpio";
        };

Question is how to define &pinctrl_pps?

Does any one have an Idea?
Thanks in advance

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests