| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | mpc85xx_gpio.c | 9 * SPDX-License-Identifier: GPL-2.0+ 42 return (1U << (31 - (gpio))); in gpio_mask() 47 return in_be32(&base->gpdat) & mask; in mpc85xx_gpio_get_val() 52 return in_be32(&base->gpdir) & mask; in mpc85xx_gpio_get_dir() 55 static inline void mpc85xx_gpio_set_in(struct ccsr_gpio *base, u32 gpios) in mpc85xx_gpio_set_in() argument 57 clrbits_be32(&base->gpdat, gpios); in mpc85xx_gpio_set_in() 58 /* GPDIR register 0 -> input */ in mpc85xx_gpio_set_in() 59 clrbits_be32(&base->gpdir, gpios); in mpc85xx_gpio_set_in() 62 static inline void mpc85xx_gpio_set_low(struct ccsr_gpio *base, u32 gpios) in mpc85xx_gpio_set_low() argument 64 clrbits_be32(&base->gpdat, gpios); in mpc85xx_gpio_set_low() [all …]
|
| H A D | sh_pfc.c | 23 if (enum_id < r->begin) in enum_in_range() 26 if (enum_id > r->end) in enum_in_range() 51 unsigned long data) in gpio_write_raw_reg() argument 55 writeb(data, mapped_reg); in gpio_write_raw_reg() 58 writew(data, mapped_reg); in gpio_write_raw_reg() 61 writel(data, mapped_reg); in gpio_write_raw_reg() 74 pos = dr->reg_width - (in_pos + 1); in gpio_read_bit() 77 dr->reg + offset, pos, dr->reg_width); in gpio_read_bit() 79 return (gpio_read_raw_reg(dr->mapped_reg + offset, in gpio_read_bit() 80 dr->reg_width) >> pos) & 1; in gpio_read_bit() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/ |
| H A D | soc-jack.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-jack.c -- ALSA SoC jack handling 23 struct snd_soc_jack_gpio *gpios; member 27 * snd_soc_jack_report - Report the current status for a jack 51 dapm = &jack->card->dapm; in snd_soc_jack_report() 53 mutex_lock(&jack->mutex); in snd_soc_jack_report() 55 jack->status &= ~mask; in snd_soc_jack_report() 56 jack->status |= status & mask; in snd_soc_jack_report() 60 list_for_each_entry(pin, &jack->pins, list) { in snd_soc_jack_report() 61 enable = pin->mask & jack->status; in snd_soc_jack_report() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/ |
| H A D | adi,ad7606.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Beniamin Bia <beniamin.bia@analog.com> 11 - Stefan Popa <stefan.popa@analog.com> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf 22 - adi,ad7605-4 23 - adi,ad7606-8 [all …]
|
| H A D | avia-hx711.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: "http://devicetree.org/schemas/iio/adc/avia-hx711.yaml#" 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 10 - Andreas Klinger <ak@it-klinger.de> 13 Bit-banging driver using two GPIOs: 14 - sck-gpio gives a clock to the sensor with 24 cycles for data retrieval 17 - dout-gpio is the sensor data the sensor responds to the clock 25 - avia,hx711 27 sck-gpios: [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bus/ |
| H A D | ts-nbus.c | 2 * NBUS driver for TS-4600 based boards 4 * Copyright (c) 2016 - Savoir-faire Linux 11 * This driver implements a GPIOs bit-banged bus, called the NBUS by Technologic 13 * TS-4600 SoM. 24 #include <linux/ts-nbus.h> 33 struct gpio_descs *data; member 43 * request all gpios required by the bus. 48 ts_nbus->data = devm_gpiod_get_array(&pdev->dev, "ts,data", in ts_nbus_init_pdata() 50 if (IS_ERR(ts_nbus->data)) { in ts_nbus_init_pdata() 51 dev_err(&pdev->dev, "failed to retrieve ts,data-gpio from dts\n"); in ts_nbus_init_pdata() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/bus/ |
| H A D | ts-nbus.txt | 4 Systems FPGA on the TS-4600 SoM. 7 - compatible : "technologic,ts-nbus" 8 - #address-cells : must be 1 9 - #size-cells : must be 0 10 - pwms : The PWM bound to the FPGA 11 - ts,data-gpios : The 8 GPIO pins connected to the data lines on the FPGA 12 - ts,csn-gpios : The GPIO pin connected to the csn line on the FPGA 13 - ts,txrx-gpios : The GPIO pin connected to the txrx line on the FPGA 14 - ts,strobe-gpios : The GPIO pin connected to the stobe line on the FPGA 15 - ts,ale-gpios : The GPIO pin connected to the ale line on the FPGA [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/auxdisplay/ |
| H A D | hit,hd44780.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Geert Uytterhoeven <geert@linux-m68k.org> 15 interface, which can be used in either 4-bit or 8-bit mode. 21 data-gpios: 23 GPIO pins connected to the data signal lines DB0-DB7 (8-bit mode) or 24 DB4-DB7 (4-bit mode) of the LCD Controller's bus interface. 26 - maxItems: 4 27 - maxItems: 8 [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/fsi/ |
| H A D | fsi-master-gpio.txt | 1 Device-tree bindings for gpio-based FSI master driver 2 ----------------------------------------------------- 5 - compatible = "fsi-master-gpio"; 6 - clock-gpios = <gpio-descriptor>; : GPIO for FSI clock 7 - data-gpios = <gpio-descriptor>; : GPIO for FSI data signal 10 - enable-gpios = <gpio-descriptor>; : GPIO for enable signal 11 - trans-gpios = <gpio-descriptor>; : GPIO for voltage translator enable 12 - mux-gpios = <gpio-descriptor>; : GPIO for pin multiplexing with other 14 - no-gpio-delays; : Don't add extra delays between GPIO 21 fsi-master { [all …]
|
| H A D | fsi-master-ast-cf.txt | 1 Device-tree bindings for ColdFire offloaded gpio-based FSI master driver 2 ------------------------------------------------------------------------ 5 - compatible = 6 "aspeed,ast2400-cf-fsi-master" for an AST2400 based system 8 "aspeed,ast2500-cf-fsi-master" for an AST2500 based system 10 - clock-gpios = <gpio-descriptor>; : GPIO for FSI clock 11 - data-gpios = <gpio-descriptor>; : GPIO for FSI data signal 12 - enable-gpios = <gpio-descriptor>; : GPIO for enable signal 13 - trans-gpios = <gpio-descriptor>; : GPIO for voltage translator enable 14 - mux-gpios = <gpio-descriptor>; : GPIO for pin multiplexing with other [all …]
|
| /OK3568_Linux_fs/kernel/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 9 gpio-legacy.txt (actually, there is no real mapping possible with the old 15 Kconfig. Then, how GPIOs are mapped depends on what the platform uses to 17 tree, ACPI, and platform data. 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 [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | rv1106-evb-cam.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 15 #address-cells = <1>; 16 #size-cells = <0>; 20 #address-cells = <1>; 21 #size-cells = <0>; 25 remote-endpoint = <&sc530ai_out>; 26 data-lanes = <1 2>; 30 remote-endpoint = <&sc3336_out>; 31 data-lanes = <1 2>; 35 remote-endpoint = <&sc4336_out>; [all …]
|
| H A D | kirkwood-nsa320.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (c) 2014, Adam Baker <linux@baker-net.org.uk> 9 /dts-v1/; 11 #include "kirkwood-nsa3x0-common.dtsi" 15 compatible = "zyxel,nsa320", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 24 stdout-path = &uart0; 28 pinctrl: pin-controller@10000 { 29 pinctrl-names = "default"; 32 pmx_sata0: pmx-sata0 { 37 pmx_sata1: pmx-sata1 { [all …]
|
| H A D | rv1126-ai-cam-ddr3-v1.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "rv1126-ai-cam.dtsi" 12 compatible = "rockchip,rv1126-ai-cam-ddr3L-v1", "rockchip,rv1126"; 15 …bootargs = "earlycon=uart8250,mmio32,0xff570000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfs… 18 gpio-leds { 19 compatible = "gpio-leds"; 21 work-led { 22 gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>; 23 linux,default-trigger = "timer"; [all …]
|
| H A D | at91-tse850-3.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at91-tse850-3.dts - Device Tree file for the Axentia TSE-850 3.0 board 9 /dts-v1/; 10 #include <dt-bindings/pwm/pwm.h> 11 #include "at91-linea.dtsi" 14 model = "Axentia TSE-850 3.0"; 19 compatible = "fixed-clock"; 21 #clock-cells = <0>; 22 clock-frequency = <16000000>; 23 clock-output-names = "sck"; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/iio/resolver/ |
| H A D | ad2s1210.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2010-2010 Analog Devices Inc. 78 static const struct ad2s1210_gpio gpios[] = { variable 91 struct gpio_desc *gpios[5]; member 110 gpiod_set_value(st->gpios[AD2S1210_A0], ad2s1210_mode_vals[mode][0]); in ad2s1210_set_mode() 111 gpiod_set_value(st->gpios[AD2S1210_A1], ad2s1210_mode_vals[mode][1]); in ad2s1210_set_mode() 112 st->mode = mode; in ad2s1210_set_mode() 115 /* write 1 bytes (address or data) to the chip */ 116 static int ad2s1210_config_write(struct ad2s1210_state *st, u8 data) in ad2s1210_config_write() argument 121 st->tx[0] = data; in ad2s1210_config_write() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/ |
| H A D | netxbig-gpio-ext.txt | 5 - compatible: "lacie,netxbig-gpio-ext". 6 - addr-gpios: GPIOs representing the address register (LSB -> MSB). 7 - data-gpios: GPIOs representing the data register (LSB -> MSB). 8 - enable-gpio: latches the new configuration (address, data) on raising edge. 12 netxbig_gpio_ext: netxbig-gpio-ext { 13 compatible = "lacie,netxbig-gpio-ext"; 15 addr-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH 18 data-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH 21 enable-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
| /OK3568_Linux_fs/u-boot/drivers/i2c/ |
| H A D | i2c-gpio.c | 5 * This file is based on: drivers/i2c/soft-i2c.c, 6 * with added driver-model support and code cleanup. 29 * udelay - delay [us] between GPIO toggle operations, 34 struct gpio_desc gpios[PIN_COUNT]; member 85 /* START: High -> Low on SDA while SCL is High */ 98 /* STOP: Low -> High on SDA while SCL is High */ 122 * Send a reset sequence consisting of 9 clocks with the data signal high 137 /* Set sda high with low clock, before reading slave data */ 149 int delay, uchar data) in i2c_gpio_write_byte() argument 155 i2c_gpio_write_bit(scl, sda, delay, data & 0x80); in i2c_gpio_write_byte() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/boot/dts/ingenic/ |
| H A D | ci20.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 5 #include <dt-bindings/clock/ingenic,tcu.h> 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/regulator/active-semi,8865-regulator.h> 22 stdout-path = &uart4; 31 gpio-keys { 32 compatible = "gpio-keys"; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/adc/ |
| H A D | gpio_muxadc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: Ziyuan Xu <xzy.xu@rock-chips.com> 19 * gpio_mask: set the value of switch-gpios with mask, that 46 * gpios: pointer of digital enable input gpios 50 * data: pointer to get the muxadc channels information 54 struct gpio_descs *gpios; member 57 const struct gpio_muxadc_data *data; member 68 chan_data = &muxadc->data->chans[index]; in gpio_muxadc_chan_read_by_index() 69 for (i = 0; i < muxadc->gpios->ndescs; i++) { in gpio_muxadc_chan_read_by_index() 70 struct gpio_desc *gpiod = muxadc->gpios->desc[i]; in gpio_muxadc_chan_read_by_index() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3399pro-evb-v14-linux.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 8 #include "rk3399pro-evb-v11-linux.dts" 12 compatible = "rockchip,rk3399pro-evb-v14-linux", "rockchip,rk3399pro"; 14 reserved-memory { 15 #address-cells = <2>; 16 #size-cells = <2>; 19 //no-map; 25 /delete-node/ &imx327; 26 /delete-node/ &ov13850; [all …]
|
| H A D | rk3566-evb2-lp4x-v10.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/display/media-bus-format.h> 11 #include <dt-bindings/pinctrl/rockchip.h> 13 #include "rk3566-evb.dtsi" 17 compatible = "rockchip,rk3566-evb2-lp4x-v10", "rockchip,rk3566"; 19 vcc_camera: vcc-camera-regulator { 20 compatible = "regulator-fixed"; 22 pinctrl-names = "default"; [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/hwmon/ |
| H A D | nsa320-mcu.txt | 5 - compatible : "zyxel,nsa320-mcu" 6 - data-gpios : The GPIO pin connected to the data line on the MCU 7 - clk-gpios : The GPIO pin connected to the clock line on the MCU 8 - act-gpios : The GPIO pin connected to the active line on the MCU 13 compatible = "zyxel,nsa320-mcu"; 14 pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act>; 15 pinctrl-names = "default"; 17 data-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; 18 clk-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; 19 act-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
| /OK3568_Linux_fs/kernel/drivers/hsi/clients/ |
| H A D | nokia-modem.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * nokia-modem.c 33 struct nokia_modem_gpio *gpios; member 39 static void do_nokia_modem_rst_ind_tasklet(unsigned long data) in do_nokia_modem_rst_ind_tasklet() argument 41 struct nokia_modem_device *modem = (struct nokia_modem_device *)data; in do_nokia_modem_rst_ind_tasklet() 46 dev_info(modem->device, "CMT rst line change detected\n"); in do_nokia_modem_rst_ind_tasklet() 48 if (modem->ssi_protocol) in do_nokia_modem_rst_ind_tasklet() 49 ssip_reset_event(modem->ssi_protocol); in do_nokia_modem_rst_ind_tasklet() 52 static irqreturn_t nokia_modem_rst_ind_isr(int irq, void *data) in nokia_modem_rst_ind_isr() argument 54 struct nokia_modem_device *modem = (struct nokia_modem_device *)data; in nokia_modem_rst_ind_isr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/mdio/ |
| H A D | mdio-mux-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/mdio-mux.h> 18 struct gpio_descs *gpios; member 23 void *data) in mdio_mux_gpio_switch_fn() argument 25 struct mdio_mux_gpio_state *s = data; in mdio_mux_gpio_switch_fn() 33 gpiod_set_array_value_cansleep(s->gpios->ndescs, s->gpios->desc, in mdio_mux_gpio_switch_fn() 34 s->gpios->info, values); in mdio_mux_gpio_switch_fn() 42 struct gpio_descs *gpios; in mdio_mux_gpio_probe() local 45 gpios = devm_gpiod_get_array(&pdev->dev, NULL, GPIOD_OUT_LOW); in mdio_mux_gpio_probe() 46 if (IS_ERR(gpios)) in mdio_mux_gpio_probe() [all …]
|