Home
last modified time | relevance | path

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

12345678910>>...17

/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 …]
Dcomtrend,wap-5813n.dts27 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
32 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
38 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
48 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
/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>;
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 …]
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 …]
Dsun4i-a10-inet9f-rev03.dts76 gpios = <&pio 0 6 GPIO_ACTIVE_LOW>; /* PA6 */
84 gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; /* PA5 */
92 gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */
100 gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */
108 gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */
116 gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */
124 gpios = <&pio 0 3 GPIO_ACTIVE_LOW>; /* PA3 */
132 gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */
140 gpios = <&pio 7 23 GPIO_ACTIVE_LOW>; /* PH23 */
148 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 …]
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>;
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.dts29 gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
36 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
42 gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
49 gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
55 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
61 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
96 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
100 gpios = <&gpio3 23 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>;
Dr8a7792-blanche.dts120 gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
127 gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
134 gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
141 gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
148 gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
155 gpios = <&gpio11 2 GPIO_ACTIVE_LOW>;
163 gpios = <&gpio10 10 GPIO_ACTIVE_HIGH>;
166 gpios = <&gpio10 11 GPIO_ACTIVE_HIGH>;
169 gpios = <&gpio10 12 GPIO_ACTIVE_HIGH>;
172 gpios = <&gpio10 23 GPIO_ACTIVE_HIGH>;
[all …]
Dstm32429i-eval.dts59 gpios = <&gpiog 6 1>;
63 gpios = <&gpiog 7 1>;
66 gpios = <&gpiog 10 1>;
69 gpios = <&gpiog 12 1>;
81 gpios = <&gpioa 0 0>;
86 gpios = <&gpioc 13 0>;
156 resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
157 pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
226 cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_HIGH>;
Dat91sam9261ek.dts115 cs-gpios = <&pioA 3 0>, <0>, <&pioA 28 0>, <0>;
163 gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
169 gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
175 gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
185 gpios = <&pioA 27 GPIO_ACTIVE_LOW>;
192 gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
199 gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
206 gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
Dr8a7794-alt.dts61 gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
62 gpios-states = <1>;
85 gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
86 gpios-states = <1>;
145 scl-gpios = <&gpio4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
146 sda-gpios = <&gpio4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
154 scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
155 sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
337 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
338 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
[all …]
Darmada-388-helios4.dts75 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
82 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
91 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
97 gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
103 gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
109 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
115 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
176 gpios = <0 GPIO_ACTIVE_LOW>;
182 gpios = <1 GPIO_ACTIVE_LOW>;
188 gpios = <5 GPIO_ACTIVE_HIGH>;
[all …]
/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/video/
Dtegra20-dc.txt34 - nvidia,backlight-enable-gpios: backlight enable GPIO
35 - nvidia,lvds-shutdown-gpios: LVDS power shutdown GPIO
36 - nvidia,backlight-vdd-gpios: backlight power GPIO
37 - nvidia,panel-vdd-gpios: panel power GPIO
80 nvidia,backlight-enable-gpios = <&gpio 28 0>; /* PD4 */
81 nvidia,lvds-shutdown-gpios = <&gpio 10 0>; /* PB2 */
82 nvidia,backlight-vdd-gpios = <&gpio 176 0>; /* PW0 */
83 nvidia,panel-vdd-gpios = <&gpio 22 0>; /* PC6 */
/external/u-boot/drivers/i2c/
Di2c-gpio.c34 struct gpio_desc gpios[PIN_COUNT]; member
207 struct gpio_desc *scl = &bus->gpios[PIN_SCL]; in i2c_gpio_write_data()
208 struct gpio_desc *sda = &bus->gpios[PIN_SDA]; in i2c_gpio_write_data()
240 struct gpio_desc *scl = &bus->gpios[PIN_SCL]; in i2c_gpio_read_data()
241 struct gpio_desc *sda = &bus->gpios[PIN_SDA]; in i2c_gpio_read_data()
280 struct gpio_desc *scl = &bus->gpios[PIN_SCL]; in i2c_gpio_probe()
281 struct gpio_desc *sda = &bus->gpios[PIN_SDA]; in i2c_gpio_probe()
298 struct gpio_desc *scl = &bus->gpios[PIN_SCL]; in i2c_gpio_set_bus_speed()
299 struct gpio_desc *sda = &bus->gpios[PIN_SDA]; in i2c_gpio_set_bus_speed()
315 ret = gpio_request_list_by_name(dev, "gpios", bus->gpios, in i2c_gpio_ofdata_to_platdata()
[all …]

12345678910>>...17