Home
last modified time | relevance | path

Searched refs:gpios (Results 1 – 25 of 637) sorted by relevance

12345678910>>...26

/external/u-boot/drivers/gpio/
Dbcm2835_gpio.c22 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 …]
Dvybrid_gpio.c25 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 …]
Dmpc8xxx_gpio.c60 static inline void mpc8xxx_gpio_set_in(struct ccsr_gpio *base, u32 gpios) in mpc8xxx_gpio_set_in() argument
62 clrbits_be32(&base->gpdat, gpios); in mpc8xxx_gpio_set_in()
64 clrbits_be32(&base->gpdir, gpios); in mpc8xxx_gpio_set_in()
67 static inline void mpc8xxx_gpio_set_low(struct ccsr_gpio *base, u32 gpios) in mpc8xxx_gpio_set_low() argument
69 clrbits_be32(&base->gpdat, gpios); in mpc8xxx_gpio_set_low()
71 setbits_be32(&base->gpdir, gpios); in mpc8xxx_gpio_set_low()
74 static inline void mpc8xxx_gpio_set_high(struct ccsr_gpio *base, u32 gpios) in mpc8xxx_gpio_set_high() argument
76 setbits_be32(&base->gpdat, gpios); in mpc8xxx_gpio_set_high()
78 setbits_be32(&base->gpdir, gpios); in mpc8xxx_gpio_set_high()
87 gpios) in mpc8xxx_gpio_open_drain_on() argument
[all …]
/external/u-boot/arch/mips/dts/
Dhuawei,hg556a.dts27 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 …]
Dgardena-smart-gateway-mt7688.dts30 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>;
Docelot_pcb120.dts23 gpios = <&sgpio 44 1>; /* p12.1 */
29 gpios = <&sgpio 12 1>; /* p12.0 */
35 gpios = <&sgpio 45 1>; /* p13.1 */
41 gpios = <&sgpio 13 1>; /* p13.0 */
47 gpios = <&sgpio 46 1>; /* p14.1 */
53 gpios = <&sgpio 14 1>; /* p14.0 */
59 gpios = <&sgpio 47 1>; /* p15.1 */
65 gpios = <&sgpio 15 1>; /* p15.0 */
71 gpios = <&sgpio 48 1>; /* p16.1 */
77 gpios = <&sgpio 16 1>; /* p16.0 */
/external/u-boot/arch/arm/dts/
Dkirkwood-synology.dtsi286 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 …]
Dam572x-idk-common.dtsi20 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>;
Dsocfpga_cyclone5_sockit.dts35 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 …]
Dat91sam9g25-gardena-smart-gateway.dts44 gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
50 gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
56 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
62 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
68 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
74 gpios = <&pioC 16 GPIO_ACTIVE_HIGH>;
80 gpios = <&pioC 15 GPIO_ACTIVE_HIGH>;
86 gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
92 gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
Dr8a7793-gose.dts68 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
82 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
89 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
96 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
103 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
110 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
117 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
124 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
131 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
[all …]
Dam3517-evm.dts46 gpios = <&tca6416 5 GPIO_ACTIVE_LOW>;
52 gpios = <&tca6416 8 GPIO_ACTIVE_LOW>;
58 gpios = <&tca6416 9 GPIO_ACTIVE_LOW>;
64 gpios = <&tca6416 10 GPIO_ACTIVE_LOW>;
70 gpios = <&tca6416 11 GPIO_ACTIVE_LOW>;
76 gpios = <&tca6416 12 GPIO_ACTIVE_LOW>;
82 gpios = <&tca6416 13 GPIO_ACTIVE_LOW>;
88 gpios = <&tca6416 14 GPIO_ACTIVE_LOW>;
94 gpios = <&tca6416 15 GPIO_ACTIVE_LOW>;
106 gpios = <&tca6416 7 GPIO_ACTIVE_LOW>;
[all …]
Dr8a7791-koelsch.dts82 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
89 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
96 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
103 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
110 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
117 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
124 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
131 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
138 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
145 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
[all …]
Dkirkwood-iconnect.dts89 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>;
Dsun4i-a10-inet9f-rev03.dts75 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 …]
Dat91sam9m10g45ek.dts64 resetb-gpios = <&pioD 12 GPIO_ACTIVE_LOW>;
65 pwdn-gpios = <&pioD 13 GPIO_ACTIVE_HIGH>;
97 cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>;
110 cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>;
111 wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
158 cs-gpios = <&pioB 3 0>, <0>, <0>, <0>;
289 gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
317 gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
324 gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
331 gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
[all …]
Dvf610-bk4r1.dts26 gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
33 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
40 gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
55 gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
69 gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
Dkirkwood-goflexnet.dts90 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>;
Dam571x-idk.dts30 gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
37 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
43 gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
50 gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
56 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
62 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
97 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
101 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
Drk3399-rock960.dts25 gpios = <&gpio4 RK_PC2 0>;
31 gpios = <&gpio4 RK_PC6 0>;
37 gpios = <&gpio4 RK_PD0 0>;
43 gpios = <&gpio4 RK_PD4 0>;
50 gpios = <&gpio4 RK_PD5 0>;
57 gpios = <&gpio4 RK_PD6 0>;
66 ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
Dam335x-icev2.dts56 gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
62 gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
68 gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
74 gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
80 gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
86 gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
92 gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
98 gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
111 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
118 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
[all …]
Dkirkwood-lsxl.dtsi118 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
124 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
130 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
143 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
148 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
153 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
158 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
164 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
172 gpios = <&gpio0 19 GPIO_ACTIVE_LOW
178 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
/external/u-boot/drivers/i2c/muxes/
Di2c-mux-gpio.c33 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
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()
108 ret = gpio_request_list_by_name(dev, "mux-gpios", gpios, mux->n_gpios, in i2c_mux_gpio_probe()
115 mux->gpios = gpios; in i2c_mux_gpio_probe()
/external/u-boot/arch/powerpc/include/asm/
Dmpc85xx_gpio.h41 static inline void mpc85xx_gpio_set_in(unsigned int gpios) in mpc85xx_gpio_set_in() argument
43 mpc85xx_gpio_set(gpios, 0x00000000, 0x00000000); in mpc85xx_gpio_set_in()
46 static inline void mpc85xx_gpio_set_low(unsigned int gpios) in mpc85xx_gpio_set_low() argument
48 mpc85xx_gpio_set(gpios, 0xFFFFFFFF, 0x00000000); in mpc85xx_gpio_set_low()
51 static inline void mpc85xx_gpio_set_high(unsigned int gpios) in mpc85xx_gpio_set_high() argument
53 mpc85xx_gpio_set(gpios, 0xFFFFFFFF, 0xFFFFFFFF); in mpc85xx_gpio_set_high()
/external/u-boot/doc/device-tree-bindings/board/
Dgdsys,board_gazerbeam.txt13 - 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>;

12345678910>>...26