• 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
api Loading commit data...
board Loading commit data...
common Loading commit data...
cpu Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib_arm Loading commit data...
lib_avr32 Loading commit data...
lib_blackfin Loading commit data...
lib_generic Loading commit data...
lib_i386 Loading commit data...
lib_m68k Loading commit data...
lib_microblaze Loading commit data...
lib_mips Loading commit data...
lib_nios Loading commit data...
lib_nios2 Loading commit data...
lib_ppc Loading commit data...
lib_sh Loading commit data...
lib_sparc Loading commit data...
libfdt Loading commit data...
nand_spl Loading commit data...
net Loading commit data...
onenand_ipl Loading commit data...
post Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
CHANGELOG Loading commit data...
CHANGELOG-before-U-Boot-1.1.5 Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
MAINTAINERS Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
README.u-boot Loading commit data...
config.mk Loading commit data...
mkconfig Loading commit data...
rules.mk Loading commit data...