• 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
..
asm-arm Loading commit data...
asm-avr32 Loading commit data...
asm-blackfin Loading commit data...
asm-generic Loading commit data...
asm-i386 Loading commit data...
asm-m68k Loading commit data...
asm-microblaze Loading commit data...
asm-mips Loading commit data...
asm-nios Loading commit data...
asm-nios2 Loading commit data...
asm-ppc Loading commit data...
asm-sh Loading commit data...
asm-sparc Loading commit data...
bedbug Loading commit data...
configs Loading commit data...
cramfs Loading commit data...
galileo Loading commit data...
jffs2 Loading commit data...
linux Loading commit data...
lzma Loading commit data...
mtd Loading commit data...
pcmcia Loading commit data...
u-boot Loading commit data...
usb Loading commit data...
.gitignore Loading commit data...
405_dimm.h Loading commit data...
405_mal.h Loading commit data...
4xx_i2c.h Loading commit data...
74xx_7xx.h Loading commit data...
ACEX1K.h Loading commit data...
MCD_dma.h Loading commit data...
MCD_progCheck.h Loading commit data...
MCD_tasksInit.h Loading commit data...
SA-1100.h Loading commit data...
_exports.h Loading commit data...
addr_map.h Loading commit data...
ahci.h Loading commit data...
ali512x.h Loading commit data...
altera.h Loading commit data...
amba_clcd.h Loading commit data...
ambapp.h Loading commit data...
api_public.h Loading commit data...
arm925t.h Loading commit data...
armcoremodule.h Loading commit data...
at45.h Loading commit data...
at91rm9200_i2c.h Loading commit data...
at91rm9200_net.h Loading commit data...
ata.h Loading commit data...
atmel_lcdc.h Loading commit data...
bcd.h Loading commit data...
bcm5221.h Loading commit data...
bmp_layout.h Loading commit data...
bus_vcxk.h Loading commit data...
bzlib.h Loading commit data...
circbuf.h Loading commit data...
clps7111.h Loading commit data...
command.h Loading commit data...
common.h Loading commit data...
commproc.h Loading commit data...
compiler.h Loading commit data...
config_cmd_all.h Loading commit data...
config_cmd_default.h Loading commit data...
config_defaults.h Loading commit data...
crc.h Loading commit data...
da9030.h Loading commit data...
dataflash.h Loading commit data...
ddr_spd.h Loading commit data...
div64.h Loading commit data...
dm9000.h Loading commit data...
dm9161.h Loading commit data...
dp83848.h Loading commit data...
ds1722.h Loading commit data...
ds4510.h Loading commit data...
dtt.h Loading commit data...
e500.h Loading commit data...
elf.h Loading commit data...
environment.h Loading commit data...
exports.h Loading commit data...
ext2fs.h Loading commit data...
fat.h Loading commit data...
fdc.h Loading commit data...
fdt.h Loading commit data...
fdt_support.h Loading commit data...
fis.h Loading commit data...
flash.h Loading commit data...
fpga.h Loading commit data...
fsl_esdhc.h Loading commit data...
fsl_nfc.h Loading commit data...
hush.h Loading commit data...
hwconfig.h Loading commit data...
i2c.h Loading commit data...
i8042.h Loading commit data...
ide.h Loading commit data...
ili932x.h Loading commit data...
image.h Loading commit data...
iomux.h Loading commit data...
ioports.h Loading commit data...
keyboard.h Loading commit data...
kgdb.h Loading commit data...
ks8721.h Loading commit data...
lcd.h Loading commit data...
lcdvideo.h Loading commit data...
lh7a400.h Loading commit data...
lh7a404.h Loading commit data...
lh7a40x.h Loading commit data...
libata.h Loading commit data...
libfdt.h Loading commit data...
libfdt_env.h Loading commit data...
linux_logo.h Loading commit data...
lmb.h Loading commit data...
logbuff.h Loading commit data...
lpd7a400_cpld.h Loading commit data...
lxt971a.h Loading commit data...
lynxkdi.h Loading commit data...
malloc.h Loading commit data...
mb862xx.h Loading commit data...
mg_disk.h Loading commit data...
mii_phy.h Loading commit data...
miiphy.h Loading commit data...
mk48t59.h Loading commit data...
mmc.h Loading commit data...
mpc106.h Loading commit data...
mpc5xx.h Loading commit data...
mpc5xxx.h Loading commit data...
mpc5xxx_sdma.h Loading commit data...
mpc8220.h Loading commit data...
mpc824x.h Loading commit data...
mpc8260.h Loading commit data...
mpc8260_irq.h Loading commit data...
mpc83xx.h Loading commit data...
mpc85xx.h Loading commit data...
mpc86xx.h Loading commit data...
mpc8xx.h Loading commit data...
mpc8xx_irq.h Loading commit data...
nand.h Loading commit data...
net.h Loading commit data...
netdev.h Loading commit data...
nios-io.h Loading commit data...
nios.h Loading commit data...
nios2-epcs.h Loading commit data...
nios2-io.h Loading commit data...
nios2-yanu.h Loading commit data...
nios2.h Loading commit data...
nomadik.h Loading commit data...
ns16550.h Loading commit data...
ns7520_eth.h Loading commit data...
ns87308.h Loading commit data...
ns9750_bbus.h Loading commit data...
ns9750_eth.h Loading commit data...
ns9750_mem.h Loading commit data...
ns9750_ser.h Loading commit data...
ns9750_sys.h Loading commit data...
onenand_uboot.h Loading commit data...
part.h Loading commit data...
pc_keyb.h Loading commit data...
pca953x.h Loading commit data...
pca9564.h Loading commit data...
pci.h Loading commit data...
pci_ids.h Loading commit data...
pcmcia.h Loading commit data...
post.h Loading commit data...
ppc405.h Loading commit data...
ppc440.h Loading commit data...
ppc4xx.h Loading commit data...
ppc4xx_enet.h Loading commit data...
ppc_asm.tmpl Loading commit data...
ppc_defs.h Loading commit data...
ps2mult.h Loading commit data...
radeon.h Loading commit data...
reiserfs.h Loading commit data...
rtc.h Loading commit data...
s6e63d6.h Loading commit data...
s_record.h Loading commit data...
sata.h Loading commit data...
scsi.h Loading commit data...
sed13806.h Loading commit data...
sed156x.h Loading commit data...
serial.h Loading commit data...
sha1.h Loading commit data...
sha256.h Loading commit data...
sja1000.h Loading commit data...
sm501.h Loading commit data...
smiLynxEM.h Loading commit data...
spartan2.h Loading commit data...
spartan3.h Loading commit data...
spd.h Loading commit data...
spd_sdram.h Loading commit data...
spi.h Loading commit data...
spi_flash.h Loading commit data...
spifi.h Loading commit data...
status_led.h Loading commit data...
stdio_dev.h Loading commit data...
stm32f4_lcdfb.h Loading commit data...
stratixII.h Loading commit data...
sym53c8xx.h Loading commit data...
systemace.h Loading commit data...
timestamp.h Loading commit data...
tsec.h Loading commit data...
tsi108.h Loading commit data...
tsi148.h Loading commit data...
twl4030.h Loading commit data...
tws.h Loading commit data...
ubi_uboot.h Loading commit data...
universe.h Loading commit data...
usb.h Loading commit data...
usb_cdc_acm.h Loading commit data...
usb_defs.h Loading commit data...
usbdescriptors.h Loading commit data...
usbdevice.h Loading commit data...
version.h Loading commit data...
vfd_logo.h Loading commit data...
video.h Loading commit data...
video_ad7176.h Loading commit data...
video_ad7177.h Loading commit data...
video_ad7179.h Loading commit data...
video_easylogo.h Loading commit data...
video_fb.h Loading commit data...
video_font.h Loading commit data...
video_logo.h Loading commit data...
virtex2.h Loading commit data...
vsc7385.h Loading commit data...
vxworks.h Loading commit data...
w83c553f.h Loading commit data...
watchdog.h Loading commit data...
xilinx.h Loading commit data...
xyzModem.h Loading commit data...