Device tree GPIO

  • Hi Gordon ,

    This will depend on the way in which the GPIO needs to be configured.


    How should the GPIO be used?

    Is it a control signal for a driver?

    Should the GPIO be configured initially?


    Do you have a section of the devicetree that you would like to adapt?

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Code
    1. &iomuxc1 {
    2. pinctrl-names = "default";
    3. pinctrl-0 = <&pinctrl_hog>;
    4. pinctrl_hog: hoggrp {
    5. fsl,pins = <
    6. MX8ULP_PAD_PTF26__PTF26 0x3
    7. MX8ULP_PAD_PTD17__PTD17 0x3
    8. >;
    9. };

    should work with the changes.


    Note that only the pinmux is configured here.


    Your program should now be able to read the input values and set the output values.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Code
    1. &gpiof {
    2. gpio-line-names = \
    3. "PIN1","PIN2","","PIN4","",
    4. "PIN6","","","","",
    5. "","","","","",
    6. "","","","","",
    7. "","","","","",
    8. "","","","","",
    9. "","";
    10. };

    The following entry can be used to assign names per line

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.