/linux/drivers/pinctrl/ |
H A D | pinctrl-lpc18xx.c | 18 #include <linux/pinctrl/pinconf-generic.h> 24 #include "pinctrl-utils.h" 68 TYPE_ND, /* Normal-drive */ 69 TYPE_HD, /* High-drive */ 70 TYPE_HS, /* High-speed */ 146 [FUNC_GPIO] = "gpio", 164 [FUNC_SGPIO] = "sgpio", 240 LPC_P(0,0, GPIO, SSP1, ENET, SGPIO, R, R, I2S0_TX_WS,I2S1, 0, ND); 241 LPC_P(0,1, GPIO, SSP1,ENET_ALT,SGPIO, R, R, ENET, I2S1, 0, ND); 242 LPC_P(1,0, GPIO, CTIN, EMC, R, R, SSP0, SGPIO, R, 0, ND); [all …]
|
H A D | pinctrl-microchip-sgpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Microsemi/Microchip SoCs serial gpio driver 13 #include <linux/gpio/driver.h> 107 static const char * const functions[] = { "gpio" }; 112 struct gpio_chip gpio; member 138 addr->port = pin / priv->bitcount; in sgpio_pin_to_addr() 139 addr->bit = pin % priv->bitcount; in sgpio_pin_to_addr() 144 return bit + port * priv->bitcount; in sgpio_addr_to_pin() 149 return (priv->properties->regoff[rno] + off) * in sgpio_get_addr() 150 regmap_get_reg_stride(priv->regs); in sgpio_get_addr() [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | microchip,sparx5-sgpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/microchip,sparx5-sgpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Microsemi/Microchip Serial GPIO controller 10 - Lars Povlsen <lars.povlsen@microchip.com> 21 pattern: "^gpio@[0-9a-f]+$" 25 - microchip,sparx5-sgpio 26 - mscc,ocelot-sgpio 27 - mscc,luton-sgpio [all …]
|
/linux/Documentation/devicetree/bindings/gpio/ |
H A D | aspeed,sgpio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpio/aspeed,sgpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Aspeed SGPIO controller 10 - Andrew Jeffery <andrew@aj.id.au> 13 This SGPIO controller is for ASPEED AST2400, AST2500 and AST2600 SoC, 14 AST2600 have two sgpio master one with 128 pins another one with 80 pins, 15 AST2500/AST2400 have one sgpio master with 80 pins. Each of the Serial 16 GPIO pins can be programmed to support the following options [all …]
|
H A D | nuvoton,sgpio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpio/nuvoton,sgpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Nuvoton SGPIO controller 10 - Jim LIU <JJLIU0@nuvoton.com> 13 This SGPIO controller is for NUVOTON NPCM7xx and NPCM8xx SoC and detailed 15 Nuvoton NPCM7xx SGPIO module is combines a serial to parallel IC (HC595) 19 NPCM7xx/NPCM8xx have two sgpio modules. Each module can support up 21 GPIO pins can be programmed to support the following options [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | mscc,ocelot.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Ocelot Externally-Controlled Ethernet Switch 10 - Colin Foster <colin.foster@in-advantage.com> 18 The switch family is a multi-port networking switch that supports many 20 external GPIO expanders. 25 - mscc,vsc7512 30 "#address-cells": 33 "#size-cells": [all …]
|
/linux/arch/arm64/boot/dts/microchip/ |
H A D | sparx5_pcb134_board.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 10 gpio-restart { 11 compatible = "gpio-restart"; 12 gpios = <&gpio 37 GPIO_ACTIVE_LOW>; 16 i2c0_imux: i2c-mux-0 { 17 compatible = "i2c-mux-pinctrl"; 18 #address-cells = <1>; 19 #size-cells = <0>; 20 i2c-parent = <&i2c0>; [all …]
|
H A D | sparx5.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/interrupt-controller/arm-gic.h> 8 #include <dt-bindings/clock/microchip,sparx5.h> 12 interrupt-parent = <&gic>; 13 #address-cells = <2>; 14 #size-cells = <1>; 23 stdout-path = "serial0:115200n8"; 27 #address-cells = <1>; 28 #size-cells = <0>; [all …]
|
H A D | sparx5_pcb125.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 11 compatible = "microchip,sparx5-pcb125", "microchip,sparx5"; 19 &gpio { 20 emmc_pins: emmc-pins { 28 drive-strength = <3>; 35 bus-width = <8>; 36 non-removable; 37 pinctrl-0 = <&emmc_pins>; 38 max-frequency = <8000000>; [all …]
|
H A D | sparx5_pcb135_board.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 10 gpio-restart { 11 compatible = "gpio-restart"; 12 gpios = <&gpio 37 GPIO_ACTIVE_LOW>; 16 i2c0_imux: i2c-mux { 17 compatible = "i2c-mux-pinctrl"; 18 #address-cells = <1>; 19 #size-cells = <0>; 20 i2c-parent = <&i2c0>; [all …]
|
/linux/Documentation/devicetree/bindings/ata/ |
H A D | sata_highbank.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 15 - Andre Przywara <andre.przywara@arm.com> 19 const: calxeda,hb-ahci 27 dma-coherent: true 29 calxeda,pre-clocks: 33 sending an SGPIO pattern. 35 calxeda,post-clocks: 39 sending an SGPIO pattern. [all …]
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | lan966x-kontron-kswitch-d10-mmt.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "dt-bindings/phy/phy-lan966x-serdes.h" 16 stdout-path = "serial0:115200n8"; 19 gpio-restart { 20 compatible = "gpio-restart"; 21 pinctrl-0 = <&reset_pins>; 22 pinctrl-names = "default"; 23 gpios = <&gpio 56 GPIO_ACTIVE_LOW>; 29 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>; [all …]
|
H A D | lan966x-pcb8291.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * lan966x_pcb8291.dts - Device Tree file for PCB8291 5 /dts-v1/; 7 #include "dt-bindings/phy/phy-lan966x-serdes.h" 10 model = "Microchip EVB - LAN9662"; 11 compatible = "microchip,lan9662-pcb8291", "microchip,lan9662", "microchip,lan966"; 14 stdout-path = "serial0:115200n8"; 21 gpio-restart { 22 compatible = "gpio-restart"; 23 gpios = <&gpio 56 GPIO_ACTIVE_LOW>; [all …]
|
H A D | lan966x-pcb8309.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * lan966x_pcb8309.dts - Device Tree file for PCB8309 5 /dts-v1/; 7 #include "dt-bindings/phy/phy-lan966x-serdes.h" 10 model = "Microchip EVB - LAN9662"; 11 compatible = "microchip,lan9662-pcb8309", "microchip,lan9662", "microchip,lan966"; 20 stdout-path = "serial0:115200n8"; 23 gpio-restart { 24 compatible = "gpio-restart"; 25 gpios = <&gpio 56 GPIO_ACTIVE_LOW>; [all …]
|
H A D | lan966x.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * lan966x.dtsi - Device Tree Include file for Microchip LAN966 family SoC 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/mfd/atmel-flexcom.h> 14 #include <dt-bindings/dma/at91.h> 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/clock/microchip,lan966x.h> 21 interrupt-parent = <&gic>; 22 #address-cells = <1>; [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-npcm-sgpio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Nuvoton NPCM Serial GPIO Driver 10 #include <linux/gpio/driver.h> 137 static void __iomem *bank_reg(struct npcm_sgpio *gpio, in bank_reg() argument 143 return gpio->base + bank->rdata_reg; in bank_reg() 145 return gpio->base + bank->wdata_reg; in bank_reg() 147 return gpio->base + bank->event_config; in bank_reg() 149 return gpio->base + bank->event_status; in bank_reg() 152 dev_WARN(gpio->chip.parent, "Getting here is an error condition"); in bank_reg() 165 struct npcm_sgpio **gpio, in npcm_sgpio_irqd_to_data() argument [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 # generic gpio support: platform drivers, dedicated expander chips, etc 4 ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG 6 obj-$(CONFIG_GPIOLIB) += gpiolib.o 7 obj-$(CONFIG_GPIOLIB) += gpiolib-devres.o 8 obj-$(CONFIG_GPIOLIB) += gpiolib-legacy.o 9 obj-$(CONFIG_OF_GPIO) += gpiolib-of.o 10 obj-$(CONFIG_GPIO_CDEV) += gpiolib-cdev.o 11 obj-$(CONFIG_GPIO_SYSFS) += gpiolib-sysfs.o 12 obj-$(CONFIG_GPIO_ACPI) += gpiolib-acpi.o [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # GPIO infrastructure and drivers 7 bool "GPIO Support" 9 This enables GPIO support through the generic GPIO library. 11 one or more of the GPIO drivers below. 47 this symbol, but new drivers should use the generic gpio-regmap 51 bool "Debug GPIO calls" 54 Say Y here to add some extra checks and diagnostics to GPIO calls. 57 non-sleeping contexts. They can make bitbanged serial protocols 62 bool "/sys/class/gpio/... (sysfs interface)" if EXPERT [all …]
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-vegman-sx20.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "aspeed-bmc-vegman.dtsi" 9 compatible = "yadro,vegman-sx20-bmc", "aspeed,ast2500"; 12 &gpio { 14 gpio-line-names = 15 …/*A0-A7*/ "CHASSIS_INTRUSION","CASE_OPEN_FAULT_RST","","","SPEAKER_BMC","FM_FORCE_BMC_UPDATE","","… 16 /*B0-B7*/ "","","","","","","","", 17 /*C0-C7*/ "","","","","","","","", 18 /*D0-D7*/ "","","","","","","","", [all …]
|
H A D | aspeed-bmc-vegman-n110.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "aspeed-bmc-vegman.dtsi" 9 compatible = "yadro,vegman-n110-bmc", "aspeed,ast2500"; 12 &gpio { 14 gpio-line-names = 15 …/*A0-A7*/ "CHASSIS_INTRUSION","CASE_OPEN_FAULT_RST","","","SPEAKER_BMC","FM_FORCE_BMC_UPDATE","","… 16 /*B0-B7*/ "","","","","","","","", 17 /*C0-C7*/ "","","","","","","","", 18 /*D0-D7*/ "","","","","","","","", [all …]
|
H A D | aspeed-bmc-vegman-rx20.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "aspeed-bmc-vegman.dtsi" 9 compatible = "yadro,vegman-rx20-bmc", "aspeed,ast2500"; 12 compatible = "gpio-leds"; 16 default-state = "off"; 17 gpios = <&gpio ASPEED_GPIO(E, 4) GPIO_ACTIVE_LOW>; 22 default-state = "off"; 23 gpios = <&gpio ASPEED_GPIO(E, 5) GPIO_ACTIVE_LOW>; 28 default-state = "off"; [all …]
|
/linux/arch/mips/boot/dts/mscc/ |
H A D | serval.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #address-cells = <1>; 8 #size-cells = <1>; 12 #address-cells = <1>; 13 #size-cells = <0>; 25 gpio0 = &gpio; 28 cpuintc: interrupt-controller { 29 #address-cells = <0>; 30 #interrupt-cells = <1>; 31 interrupt-controller; [all …]
|
/linux/drivers/ata/ |
H A D | sata_highbank.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #include <linux/gpio/consumer.h> 53 /* Each of the 6 phys can have up to 4 sata ports attached to i. Map 0-based 73 /* number of extra clocks that the SGPIO PIC controller expects */ 91 return 1 << (3 * pdata->port_to_sgpio[port] + shift); in sgpio_bit_shift() 97 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 100 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 103 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 106 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 109 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() [all …]
|
/linux/Documentation/devicetree/bindings/reset/ |
H A D | nxp,lpc1850-rgu.txt | 8 - compatible: Should be "nxp,lpc1850-rgu" 9 - reg: register base and length 10 - clocks: phandle and clock specifier to RGU clocks 11 - clock-names: should contain "delay" and "reg" 12 - #reset-cells: should be 1 20 12 ARM Cortex-M0 subsystem core (LPC43xx only) 31 28 GPIO 56 56 ARM Cortex-M0 application core (LPC4370 only) 57 57 SGPIO (LPC43xx only) 59 60 ADCHS (12-bit ADC) (LPC4370 only) [all …]
|
/linux/arch/arm/boot/dts/calxeda/ |
H A D | ecx-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2011-2012 Calxeda, Inc. 20 #address-cells = <1>; 21 #size-cells = <1>; 22 compatible = "simple-bus"; 23 interrupt-parent = <&intc>; 26 compatible = "calxeda,hb-ahci"; 29 dma-coherent; 30 calxeda,port-phys = < &combophy5 0>, <&combophy0 0>, 33 calxeda,sgpio-gpio =<&gpioh 5 1>, <&gpioh 6 1>, [all …]
|