• Sergei Miroshnichenko's avatar
    RM#1313 fdt: stm32: switch: Add run-time gpio-based status switching of DT nodes. · 74ebeb68
    Sergei Miroshnichenko authored
    Add a new driver named "switch" for run-time selection of wanted devices in DT based on gpios:
    
        configuration_switch: configuration_switch {
            compatible = "emcraft,configuration-switch";
            pinctrl-names = "default";
            pinctrl-0 = <&pinctrl_switch>;
        };
    
    ...
        pinctrl_switch: switch {
            st,pins {
                /* e5 = 4*16 + 5 = 69 */
                status_pullup = <&gpioe 5 IN
                    PULL_UP PUSH_PULL LOW_SPEED>;
            };
        };
    
    ...
    
    &usb_fs {
        ...
        configuration-switch-gpios = <&gpioe 5 GPIO_ACTIVE_LOW>;
    };
    74ebeb68
Name
Last commit
Last update
..
Makefile Loading commit data...
_ashldi3.S Loading commit data...
_ashrdi3.S Loading commit data...
_divsi3.S Loading commit data...
_lshrdi3.S Loading commit data...
_modsi3.S Loading commit data...
_udivsi3.S Loading commit data...
_umodsi3.S Loading commit data...
board.c Loading commit data...
bootm.c Loading commit data...
cache-cp15.c Loading commit data...
cache.c Loading commit data...
config.mk Loading commit data...
div0.c Loading commit data...
eabi_compat.c Loading commit data...
interrupts.c Loading commit data...
reset.c Loading commit data...