| /openbmc/skeleton/libopenbmc_intf/ |
| H A D | gpio_configs.c | 29 * Loads the GPIO information into the gpios->power_gpio structure 32 * @param gpios - the structure where GpioConfigs.power_gpio will 36 void read_power_gpios(GpioConfigs* gpios, const cJSON* gpio_configs) in read_power_gpios() argument 49 gpios->power_gpio.power_good_in.name = g_strdup(pgood->valuestring); in read_power_gpios() 52 gpios->power_gpio.power_good_in.name); in read_power_gpios() 59 gpios->power_gpio.latch_out.name = g_strdup(latch->valuestring); in read_power_gpios() 61 gpios->power_gpio.latch_out.name); in read_power_gpios() 66 gpios->power_gpio.latch_out.name = NULL; in read_power_gpios() 75 gpios->power_gpio.num_power_up_outs = cJSON_GetArraySize(power_up_outs); in read_power_gpios() 77 gpios->power_gpio.num_power_up_outs); in read_power_gpios() [all …]
|
| /openbmc/u-boot/drivers/i2c/muxes/ |
| H A D | i2c-mux-gpio.c | 26 * @gpios: the mux-gpios array 27 * @n_gpios: num of gpios in mux-gpios 33 struct gpio_desc *gpios; member 46 ret = dm_gpio_set_value(&priv->gpios[i], (channel >> i) & 1); in i2c_mux_gpio_select() 61 ret = dm_gpio_set_value(&priv->gpios[i], (priv->idle >> i) & 1); in i2c_mux_gpio_deselect() 74 struct gpio_desc *gpios; in i2c_mux_gpio_probe() local 95 mux->n_gpios = gpio_get_list_count(dev, "mux-gpios"); in i2c_mux_gpio_probe() 97 dev_err(dev, "Missing mux-gpios property\n"); in i2c_mux_gpio_probe() 101 gpios = devm_kzalloc(dev, sizeof(struct gpio_desc) * mux->n_gpios, in i2c_mux_gpio_probe() 103 if (!gpios) { in i2c_mux_gpio_probe() [all …]
|
| /openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/gpio/ |
| H A D | phosphor-gpio-monitor_%.bbappend | 11 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-0.conf" 12 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-1.conf" 13 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-2.conf" 14 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-3.conf" 15 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-4.conf" 16 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-5.conf" 17 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-6.conf" 18 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-7.conf" 19 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-8.conf" 20 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs = " obmc/gpio/gpios-9.conf" [all …]
|
| /openbmc/u-boot/arch/mips/dts/ |
| H A D | huawei,hg556a.dts | 27 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; 32 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 37 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; 42 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; 47 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 52 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 57 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 62 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 67 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; 72 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; [all …]
|
| H A D | ocelot_pcb120.dts | 22 gpios = <&sgpio 44 1>; /* p12.1 */ 28 gpios = <&sgpio 12 1>; /* p12.0 */ 34 gpios = <&sgpio 45 1>; /* p13.1 */ 40 gpios = <&sgpio 13 1>; /* p13.0 */ 46 gpios = <&sgpio 46 1>; /* p14.1 */ 52 gpios = <&sgpio 14 1>; /* p14.0 */ 58 gpios = <&sgpio 47 1>; /* p15.1 */ 64 gpios = <&sgpio 15 1>; /* p15.0 */ 70 gpios = <&sgpio 48 1>; /* p16.1 */ 76 gpios = <&sgpio 16 1>; /* p16.0 */
|
| H A D | gardena-smart-gateway-mt7688.dts | 30 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; 36 gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; 42 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; 48 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>; 54 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; 60 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; 66 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; 72 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; 78 gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
|
| /openbmc/openbmc/meta-hpe/meta-rl300-g11/recipes-hpe/power-sequencing/files/ |
| H A D | power-button.sh | 2 # File which is managing GPIOS when detected. First parameter is which GPIOs that switched 5 …t-property xyz.openbmc_project.Chassis.Gpios /xyz/openbmc_project/chassis/gpios xyz.openbmc_projec… 9 …t-property xyz.openbmc_project.Chassis.Gpios /xyz/openbmc_project/chassis/gpios xyz.openbmc_projec…
|
| H A D | gpios-manager.sh | 2 # File which is managing GPIOS when detected. First parameter is which GPIOs that switched 7 …t-property xyz.openbmc_project.Chassis.Gpios /xyz/openbmc_project/chassis/gpios xyz.openbmc_projec… 67 …t-property xyz.openbmc_project.Chassis.Gpios /xyz/openbmc_project/chassis/gpios xyz.openbmc_projec… 76 echo "Restarting" >> /tmp/gpios 81 echo "$1" >> /tmp/gpios.txt
|
| /openbmc/openbmc/meta-hpe/meta-dl360-g11/recipes-hpe/power-sequencing/files/ |
| H A D | power-button.sh | 2 # File which is managing GPIOS when detected. First parameter is which GPIOs that switched 5 …t-property xyz.openbmc_project.Chassis.Gpios /xyz/openbmc_project/chassis/gpios xyz.openbmc_projec… 9 …t-property xyz.openbmc_project.Chassis.Gpios /xyz/openbmc_project/chassis/gpios xyz.openbmc_projec…
|
| H A D | gpios-manager.sh | 2 # File which is managing GPIOS when detected. First parameter is which GPIOs that switched 5 …t-property xyz.openbmc_project.Chassis.Gpios /xyz/openbmc_project/chassis/gpios xyz.openbmc_projec… 57 …t-property xyz.openbmc_project.Chassis.Gpios /xyz/openbmc_project/chassis/gpios xyz.openbmc_projec… 66 echo "Restarting" >> /tmp/gpios 72 echo "$1" >> /tmp/gpios.txt
|
| /openbmc/u-boot/drivers/gpio/ |
| H A D | bcm2835_gpio.c | 22 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_direction_input() local 25 val = readl(&gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_input() 28 writel(val, &gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_input() 36 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_direction_output() local 41 val = readl(&gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_output() 44 writel(val, &gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_output() 49 static int bcm2835_get_value(const struct bcm2835_gpios *gpios, unsigned gpio) in bcm2835_get_value() argument 53 val = readl(&gpios->reg->gplev[BCM2835_GPIO_COMMON_BANK(gpio)]); in bcm2835_get_value() 60 const struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_get_value() local 62 return bcm2835_get_value(gpios, gpio); in bcm2835_gpio_get_value() [all …]
|
| H A D | vybrid_gpio.c | 25 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_direction_input() local 27 gpio = gpio + (gpios->chip * VYBRID_GPIO_COUNT); in vybrid_gpio_direction_input() 36 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_direction_output() local 38 gpio = gpio + (gpios->chip * VYBRID_GPIO_COUNT); in vybrid_gpio_direction_output() 47 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_get_value() local 49 return ((readl(&gpios->reg->gpio_pdir) & (1 << gpio))) ? 1 : 0; in vybrid_gpio_get_value() 55 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_set_value() local 57 writel((1 << gpio), &gpios->reg->gpio_psor); in vybrid_gpio_set_value() 59 writel((1 << gpio), &gpios->reg->gpio_pcor); in vybrid_gpio_set_value() 66 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_get_function() local [all …]
|
| H A D | Kconfig | 14 particular GPIOs that they provide. The uclass interface 98 95 GPIOs which can be configured from the device tree. 118 This driver supports CREG GPIOs on Synopsys HSDK SOC. 133 the number of available GPIOs with a minimum number of 201 Support GPIO access on Rockchip SoCs. The GPIOs are arranged into 202 a number of banks (different for each SoC type) each with 32 GPIOs. 203 The GPIOs for a device are defined in the device tree with one node 210 This driver supports some simulated GPIOs which can be adjusted 212 GPIOs can be inspected through the normal get_get_value() 213 interface. The purpose of this is to allow GPIOs to be used as [all …]
|
| /openbmc/u-boot/Documentation/devicetree/bindings/misc/ |
| H A D | gdsys,iocon_fpga.txt | 9 - reset-gpios: List of GPIOs controlling the FPGA's reset 10 - done-gpios: List of GPIOs notifying whether the FPGA's reconfiguration is 17 reset-gpios = <&PPCPCA 26 0>; 18 done-gpios = <&GPIO_VB0 19 0>;
|
| H A D | gdsys,iocpu_fpga.txt | 9 - reset-gpios: List of GPIOs controlling the FPGA's reset 10 - done-gpios: List of GPIOs notifying whether the FPGA's reconfiguration is 17 reset-gpios = <&PPCPCA 26 0>; 18 done-gpios = <&GPIO_VB0 19 0>;
|
| /openbmc/u-boot/arch/arm/dts/ |
| H A D | am572x-idk-common.dtsi | 20 gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>; 27 gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>; 33 gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>; 40 gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; 47 gpios = <&gpio7 23 GPIO_ACTIVE_HIGH>; 53 gpios = <&gpio7 22 GPIO_ACTIVE_HIGH>; 70 load-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; 75 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 79 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
|
| H A D | kirkwood-synology.dtsi | 286 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH 305 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH 308 alarm-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; 325 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH 328 alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; 345 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH 348 alarm-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; 365 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH 368 alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; 385 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH [all …]
|
| H A D | sun4i-a10-inet9f-rev03.dts | 75 gpios = <&pio 0 6 GPIO_ACTIVE_LOW>; /* PA6 */ 83 gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; /* PA5 */ 91 gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */ 99 gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */ 107 gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */ 115 gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */ 123 gpios = <&pio 0 3 GPIO_ACTIVE_LOW>; /* PA3 */ 131 gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */ 139 gpios = <&pio 7 23 GPIO_ACTIVE_LOW>; /* PH23 */ 147 gpios = <&pio 7 24 GPIO_ACTIVE_LOW>; /* PH24 */ [all …]
|
| H A D | socfpga_cyclone5_sockit.dts | 35 gpios = <&portb 24 0>; /* HPS_GPIO53 */ 41 gpios = <&portb 25 0>; /* HPS_GPIO54 */ 47 gpios = <&portb 26 0>; /* HPS_GPIO55 */ 53 gpios = <&portb 27 0>; /* HPS_GPIO56 */ 63 gpios = <&portc 20 0>; /* HPS_GPI7 */ 70 gpios = <&portc 19 0>; /* HPS_GPI6 */ 77 gpios = <&portc 18 0>; /* HPS_GPI5 */ 84 gpios = <&portc 17 0>; /* HPS_GPI4 */ 91 gpios = <&portc 21 1>; /* HPS_GPI8 */ 97 gpios = <&portc 22 1>; /* HPS_GPI9 */ [all …]
|
| H A D | kirkwood-iconnect.dts | 89 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; 94 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 99 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; 103 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; 107 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; 111 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; 115 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 119 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; 133 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; 139 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
|
| H A D | kirkwood-goflexnet.dts | 90 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; 95 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 99 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 103 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; 107 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; 111 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; 115 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; 119 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 123 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; 127 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
|
| /openbmc/u-boot/Documentation/devicetree/bindings/board/ |
| H A D | gdsys,board_gazerbeam.txt | 13 - ver-gpios: GPIO list to read the hardware version from 14 - var-gpios: GPIO list to read the hardware variant information from 15 - reset-gpios: GPIO list for the board's reset GPIOs 33 ver-gpios = <&PPCPCA 12 0 39 var-gpios-mc2 = <&GPIO_VB0 0 0 /* VAR-MC_SC */ 42 var-gpios-mc4 = <&GPIO_VB1 0 0 /* VAR-MC_SC */ 45 reset-gpios = <&gpio0 1 0 &gpio0 2 1>;
|
| /openbmc/u-boot/doc/device-tree-bindings/gpio/ |
| H A D | gpio.txt | 4 1) gpios property 7 Nodes that makes use of GPIOs should specify them using one or more 16 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 18 for compatibility reasons (resolving to the "gpios" property), it is not allowed 22 cases should they contain more than one. If your device uses several GPIOs with 24 meaningful name. The only case where an array of GPIOs is accepted is when 25 several GPIOs serve the same function (e.g. a parallel data line). 27 The exact purpose of each gpios property must be documented in the device tree 43 enable-gpios = <&gpio2 2>; 44 data-gpios = <&gpio1 12 0>, [all …]
|
| /openbmc/openbmc/meta-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control/ |
| H A D | power-config-host0.json | 29 "DbusName" : "xyz.openbmc_project.Chassis.Gpios", 30 "Path" : "/xyz/openbmc_project/chassis/gpios", 31 "Interface" : "xyz.openbmc_project.Chassis.Gpios", 37 "DbusName" : "xyz.openbmc_project.Chassis.Gpios", 38 "Path" : "/xyz/openbmc_project/chassis/gpios", 39 "Interface" : "xyz.openbmc_project.Chassis.Gpios",
|
| /openbmc/u-boot/drivers/board/ |
| H A D | gazerbeam.c | 31 * @reset_gpios: GPIOs for the board's reset GPIOs. 32 * @var_gpios: GPIOs for the board's hardware variant GPIOs 33 * @ver_gpios: GPIOs for the board's hardware version GPIOs 52 * The data read from the board's hardware (mostly hard-wired GPIOs) is stored 90 listname = mc2 ? "var-gpios-mc2" : "var-gpios-mc4"; in _read_board_variant_data() 132 * The hardware version read from the board (from hard-wired GPIOs) is stored 143 res = gpio_request_list_by_name(dev, "ver-gpios", priv->ver_gpios, in _read_hwversion() 147 debug("%s: Error getting GPIO list 'ver-gpios' (err = %d)\n", in _read_hwversion() 230 gpio_num = gpio_request_list_by_name(dev, "reset-gpios", in board_gazerbeam_probe() 236 debug("%s: Error getting GPIO list 'reset-gpios' (err = %d)\n", in board_gazerbeam_probe() [all …]
|