/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | board.rst | 5 This document explains how GPIOs can be assigned to given devices and functions. 7 Note that it only applies to the new descriptor-based interface. For a 8 description of the deprecated integer-based GPIO interface please refer to 15 Kconfig. Then, how GPIOs are mapped depends on what the platform uses to 20 ----------- 21 GPIOs can easily be mapped to devices and functions in the device tree. The 22 exact way to do it depends on the GPIO controller providing the GPIOs, see the 25 GPIOs mappings are defined in the consumer device's node, in a property named 26 <function>-gpios, where <function> is the function the driver will request 30 compatible = "acme,foo"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm2837-rpi-3-b-plus.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2836-rpi.dtsi" 5 #include "bcm283x-rpi-lan7515.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 8 #include "bcm283x-rpi-wifi-bt.dtsi" 11 compatible = "raspberrypi,3-model-b-plus", "brcm,bcm2837"; 16 stdout-path = "serial1:115200n8"; 26 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | bcm2835-rpi-zero-w.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 8 #include "bcm2835-rpi.dtsi" 9 #include "bcm2835-rpi-common.dtsi" 10 #include "bcm283x-rpi-led-deprecated.dtsi" 11 #include "bcm283x-rpi-usb-otg.dtsi" 12 #include "bcm283x-rpi-wifi-bt.dtsi" 15 compatible = "raspberrypi,model-zero-w", "brcm,bcm2835"; 25 stdout-path = "serial1:115200n8"; 30 shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | bcm2837-rpi-3-b.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2836-rpi.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-smsc9514.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 8 #include "bcm283x-rpi-wifi-bt.dtsi" 11 compatible = "raspberrypi,3-model-b", "brcm,bcm2837"; 16 stdout-path = "serial1:115200n8"; 26 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | bcm2837-rpi-zero-2-w.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 8 #include "bcm2836-rpi.dtsi" 9 #include "bcm283x-rpi-led-deprecated.dtsi" 10 #include "bcm283x-rpi-usb-otg.dtsi" 11 #include "bcm283x-rpi-wifi-bt.dtsi" 14 compatible = "raspberrypi,model-zero-2-w", "brcm,bcm2837"; 24 stdout-path = "serial1:115200n8"; 29 shutdown-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; 38 * "FOO" = GPIO line named "FOO" on the schematic [all …]
|
H A D | bcm2836-rpi-2-b.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2836-rpi.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-smsc9514.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 10 compatible = "raspberrypi,2-model-b", "brcm,bcm2836"; 25 * "FOO" = GPIO line named "FOO" on the schematic 26 * "FOO_N" = GPIO line named "FOO" on schematic, active low 28 gpio-line-names = "ID_SDA", [all …]
|
H A D | bcm2835-rpi-b-plus.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-smsc9514.dtsi" 8 #include "bcm283x-rpi-usb-host.dtsi" 11 compatible = "raspberrypi,model-b-plus", "brcm,bcm2835"; 22 * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf 23 * RPI-BPLUS sheet 1 [all …]
|
H A D | bcm2835-rpi-a-plus.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 10 compatible = "raspberrypi,model-a-plus", "brcm,bcm2835"; 24 * "FOO" = GPIO line named "FOO" on the schematic 25 * "FOO_N" = GPIO line named "FOO" on schematic, active low 27 gpio-line-names = "ID_SDA", [all …]
|
H A D | bcm2837-rpi-3-a-plus.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2836-rpi.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-usb-host.dtsi" 7 #include "bcm283x-rpi-wifi-bt.dtsi" 10 compatible = "raspberrypi,3-model-a-plus", "brcm,bcm2837"; 15 stdout-path = "serial1:115200n8"; 26 compatible = "raspberrypi,firmware-gpio"; 27 gpio-controller; [all …]
|
H A D | bcm2711-rpi-4-b.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2711-rpi.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-usb-peripheral.dtsi" 7 #include "bcm283x-rpi-wifi-bt.dtsi" 10 compatible = "raspberrypi,4-model-b", "brcm,bcm2711"; 15 stdout-path = "serial1:115200n8"; 18 sd_io_1v8_reg: regulator-sd-io-1v8 { 19 compatible = "regulator-gpio"; [all …]
|
H A D | bcm2711-rpi-cm4-io.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include "bcm2711-rpi-cm4.dtsi" 4 #include "bcm283x-rpi-led-deprecated.dtsi" 5 #include "bcm283x-rpi-usb-host.dtsi" 25 * "FOO" = GPIO line named "FOO" on the schematic 26 * "FOO_N" = GPIO line named "FOO" on schematic, active low 28 gpio-line-names = "ID_SDA", 105 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; 109 led-pwr { [all …]
|
H A D | bcm2835-rpi-b.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-smsc9512.dtsi" 8 #include "bcm283x-rpi-usb-host.dtsi" 11 compatible = "raspberrypi,model-b", "brcm,bcm2835"; 22 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf 26 * "FOO" = GPIO line named "FOO" on the schematic [all …]
|
H A D | bcm2835-rpi-zero.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 8 #include "bcm2835-rpi.dtsi" 9 #include "bcm2835-rpi-common.dtsi" 10 #include "bcm283x-rpi-led-deprecated.dtsi" 11 #include "bcm283x-rpi-usb-otg.dtsi" 14 compatible = "raspberrypi,model-zero", "brcm,bcm2835"; 28 * "FOO" = GPIO line named "FOO" on the schematic 29 * "FOO_N" = GPIO line named "FOO" on schematic, active low 31 gpio-line-names = "ID_SDA", [all …]
|
H A D | bcm2835-rpi-b-rev2.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-smsc9512.dtsi" 8 #include "bcm283x-rpi-usb-host.dtsi" 11 compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835"; 22 * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf 26 * "FOO" = GPIO line named "FOO" on the schematic [all …]
|
H A D | bcm2835-rpi-a.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 10 compatible = "raspberrypi,model-a", "brcm,bcm2835"; 21 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf 25 * "FOO" = GPIO line named "FOO" on the schematic 26 * "FOO_N" = GPIO line named "FOO" on schematic, active low [all …]
|
H A D | bcm2837-rpi-cm3-io3.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include "bcm2837-rpi-cm3.dtsi" 4 #include "bcm283x-rpi-usb-host.dtsi" 7 compatible = "raspberrypi,3-compute-module", "brcm,bcm2837"; 16 * "FOO" = GPIO line named "FOO" on the schematic 17 * "FOO_N" = GPIO line named "FOO" on schematic, active low 19 gpio-line-names = "GPIO0", 75 pinctrl-names = "default"; 76 pinctrl-0 = <&gpioout &alt0>; [all …]
|
H A D | bcm2835-rpi-cm1-io1.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include "bcm2835-rpi-cm1.dtsi" 4 #include "bcm283x-rpi-usb-host.dtsi" 7 compatible = "raspberrypi,compute-module", "brcm,bcm2835"; 16 * "FOO" = GPIO line named "FOO" on the schematic 17 * "FOO_N" = GPIO line named "FOO" on schematic, active low 19 gpio-line-names = "GPIO0", 76 pinctrl-names = "default"; 77 pinctrl-0 = <&gpioout &alt0>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | bcm2835-rpi-a-plus.dts | 1 /dts-v1/; 3 #include "bcm2835-rpi.dtsi" 4 #include "bcm283x-rpi-usb-host.dtsi" 7 compatible = "raspberrypi,model-a-plus", "brcm,bcm2835"; 12 gpios = <&gpio 47 0>; 17 gpios = <&gpio 35 0>; 18 default-state = "keep"; 19 linux,default-trigger = "default-on"; 30 * "FOO" = GPIO line named "FOO" on the schematic 31 * "FOO_N" = GPIO line named "FOO" on schematic, active low [all …]
|
H A D | bcm2835-rpi-b-plus.dts | 1 /dts-v1/; 3 #include "bcm2835-rpi.dtsi" 4 #include "bcm283x-rpi-smsc9514.dtsi" 5 #include "bcm283x-rpi-usb-host.dtsi" 8 compatible = "raspberrypi,model-b-plus", "brcm,bcm2835"; 13 gpios = <&gpio 47 0>; 18 gpios = <&gpio 35 0>; 19 default-state = "keep"; 20 linux,default-trigger = "default-on"; 27 * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf [all …]
|
H A D | bcm2835-rpi-b.dts | 1 /dts-v1/; 3 #include "bcm2835-rpi.dtsi" 4 #include "bcm283x-rpi-smsc9512.dtsi" 5 #include "bcm283x-rpi-usb-host.dtsi" 8 compatible = "raspberrypi,model-b", "brcm,bcm2835"; 13 gpios = <&gpio 16 1>; 20 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf 25 * "FOO" = GPIO line named "FOO" on the schematic 26 * "FOO_N" = GPIO line named "FOO" on schematic, active low 28 gpio-line-names = "SDA0", [all …]
|
H A D | bcm2835-rpi-b-rev2.dts | 1 /dts-v1/; 3 #include "bcm2835-rpi.dtsi" 4 #include "bcm283x-rpi-smsc9512.dtsi" 5 #include "bcm283x-rpi-usb-host.dtsi" 8 compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835"; 13 gpios = <&gpio 16 1>; 20 * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf 25 * "FOO" = GPIO line named "FOO" on the schematic 26 * "FOO_N" = GPIO line named "FOO" on schematic, active low 28 gpio-line-names = "SDA0", [all …]
|
H A D | bcm2835-rpi-a.dts | 1 /dts-v1/; 3 #include "bcm2835-rpi.dtsi" 4 #include "bcm283x-rpi-usb-host.dtsi" 7 compatible = "raspberrypi,model-a", "brcm,bcm2835"; 12 gpios = <&gpio 16 1>; 19 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf 24 * "FOO" = GPIO line named "FOO" on the schematic 25 * "FOO_N" = GPIO line named "FOO" on schematic, active low 27 gpio-line-names = "SDA0", 85 pinctrl-0 = <&gpioout &alt0 &i2s_alt2>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio.txt | 4 1) gpios property 5 ----------------- 7 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 8 of this GPIO for the device. While a non-existent <name> is considered valid 9 for compatibility reasons (resolving to the "gpios" property), it is not allowed 10 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old 15 cases should they contain more than one. If your device uses several GPIOs with 17 meaningful name. The only case where an array of GPIOs is accepted is when 18 several GPIOs serve the same function (e.g. a parallel data line). 20 The exact purpose of each gpios property must be documented in the device tree [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | maxim,max9485.txt | 5 - MAX9485_MCLKOUT: A gated, buffered output of the input clock of 27 MHz 6 - MAX9485_CLKOUT: A PLL that can be configured to 16 different discrete 8 - MAX9485_CLKOUT[1,2]: Two gated outputs for MAX9485_CLKOUT 14 - compatible: "maxim,max9485" 15 - clocks: Input clock, must provide 27.000 MHz 16 - clock-names: Must be set to "xclk" 17 - #clock-cells: From common clock binding; shall be set to 1 20 - reset-gpios: GPIO descriptor connected to the #RESET input pin 21 - vdd-supply: A regulator node for Vdd 22 - clock-output-names: Name of output clocks, as defined in common clock [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/gpio/ |
H A D | gpio.txt | 4 1) gpios property 5 ----------------- 7 Nodes that makes use of GPIOs should specify them using one or more 8 properties, each containing a 'gpio-list': 10 gpio-list ::= <single-gpio> [gpio-list] 11 single-gpio ::= <gpio-phandle> <gpio-specifier> 12 gpio-phandle : phandle to gpio controller node 13 gpio-specifier : Array of #gpio-cells specifying specific gpio 16 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 17 of this GPIO for the device. While a non-existent <name> is considered valid [all …]
|