| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | wm1250-ev1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for the 1250-EV1 audio I/O module 15 #include <sound/soc-dapm.h> 16 #include <sound/wm1250-ev1.h> 27 struct gpio gpios[WM1250_EV1_NUM_GPIOS]; member 33 struct wm1250_priv *wm1250 = dev_get_drvdata(component->dev); in wm1250_ev1_set_bias_level() 37 ena = wm1250->gpios[WM1250_EV1_GPIO_CLK_ENA].gpio; in wm1250_ev1_set_bias_level() 39 ena = -1; in wm1250_ev1_set_bias_level() 63 SND_SOC_DAPM_ADC("ADC", "wm1250-ev1 Capture", SND_SOC_NOPM, 0, 0), 64 SND_SOC_DAPM_DAC("DAC", "wm1250-ev1 Playback", SND_SOC_NOPM, 0, 0), [all …]
|
| /OK3568_Linux_fs/kernel/drivers/regulator/ |
| H A D | rt4801-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 #define N_VOLTAGES ((MAX_UV - MIN_UV) / STEP_UV + 1) 40 int id = rdev_get_id(rdev), ret; in rt4801_set_voltage_sel() local 42 if (priv->enable_flag & BIT(id)) { in rt4801_set_voltage_sel() 48 priv->volt_sel[id] = selector; in rt4801_set_voltage_sel() 55 int id = rdev_get_id(rdev); in rt4801_get_voltage_sel() local 57 if (priv->enable_flag & BIT(id)) in rt4801_get_voltage_sel() 60 return priv->volt_sel[id]; in rt4801_get_voltage_sel() 66 struct gpio_descs *gpios = priv->enable_gpios; in rt4801_enable() local 67 int id = rdev_get_id(rdev), ret; in rt4801_enable() local [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | ls1021a-moxa-uc-8410a.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2017 Moxa Inc. - https://www.moxa.com/ 10 /dts-v1/; 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/input/input.h> 17 model = "Moxa UC-8410A"; 18 compatible = "fsl,ls1021a-moxa-uc-8410a", "fsl,ls1021a"; 26 sys_mclk: clock-mclk { 27 compatible = "fixed-clock"; 28 #clock-cells = <0>; [all …]
|
| H A D | aspeed-bmc-opp-romulus.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 3 #include "aspeed-g5.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 8 compatible = "ibm,romulus-bmc", "aspeed,ast2500"; 11 stdout-path = &uart5; 19 reserved-memory { 20 #address-cells = <1>; 21 #size-cells = <1>; 25 no-map; [all …]
|
| H A D | armada-370-netgear-rn104.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include "armada-370.dtsi" 16 compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp"; 19 stdout-path = "serial0:115200n8"; 32 internal-regs { 44 pinctrl-0 = <&ge0_rgmii_pins>; 45 pinctrl-names = "default"; [all …]
|
| H A D | qcom-ipq8064-rb3011.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-ipq8064.dtsi" 3 #include <dt-bindings/input/input.h> 6 model = "MikroTik RB3011UiAS-RM"; 13 mdio-gpio0 = &mdio0; 14 mdio-gpio1 = &mdio1; 19 stdout-path = "serial0:115200n8"; 27 mdio0: mdio-0 { 29 compatible = "virtual,mdio-gpio"; 30 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>, [all …]
|
| H A D | aspeed-bmc-opp-mowgli.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 3 #include "aspeed-g5.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 5 #include <dt-bindings/leds/leds-pca955x.h> 9 compatible = "ibm,mowgli-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; [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> 17 * id: the index of analog switch inputs 19 * gpio_mask: set the value of switch-gpios with mask, that 20 * makes the 'id' connect to 'saradc_chan_id'. 23 u32 id; member 29 .id = _index, \ 46 * gpios: pointer of digital enable input gpios 54 struct gpio_descs *gpios; member 68 chan_data = &muxadc->data->chans[index]; in gpio_muxadc_chan_read_by_index() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/firmware-guide/acpi/ |
| H A D | gpio-properties.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 allows names to be given to GPIOs (and other things as well) returned 13 With _DSD we can now query GPIOs using a name instead of an integer 16 // Bluetooth device with reset and shutdown GPIOs 31 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 34 Package () {"reset-gpios", Package() {^BTH, 1, 1, 0 }}, 35 Package () {"shutdown-gpios", Package() {^BTH, 0, 0, 0 }}, 61 In our Bluetooth example the "reset-gpios" refers to the second GpioIo() 75 assuming non-active (Polarity = !Pull Bias) 77 Down High as low, assuming non-active [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/ |
| H A D | sitronix,st7735r.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/display/sitronix,st7735r.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David Lechner <david@lechnology.com> 17 - $ref: panel/panel-common.yaml# 22 - description: 23 Adafruit 1.8" 160x128 Color TFT LCD (Product ID 358 or 618) 25 - enum: 26 - jianda,jd-t18003-t01 [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/ |
| H A D | brcm,ns2-drd-phy.txt | 4 - compatible: brcm,ns2-drd-phy 5 - reg: offset and length of the NS2 PHY related registers. 6 - reg-names 8 icfg - for DRD ICFG configurations 9 rst-ctrl - for DRD IDM reset 10 crmu-ctrl - for CRMU core vdd, PHY and PHY PLL reset 11 usb2-strap - for port over current polarity reversal 12 - #phy-cells: Must be 0. No args required. 13 - vbus-gpios: vbus gpio binding 14 - id-gpios: id gpio binding [all …]
|
| /OK3568_Linux_fs/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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mmc/ |
| H A D | atmel-hsmci.txt | 7 by mmc.txt and the properties used by the atmel-mci driver. 12 - compatible: should be "atmel,hsmci" 13 - #address-cells: should be one. The cell is the slot id. 14 - #size-cells: should be zero. 15 - at least one slot node 16 - clock-names: tuple listing input clock names. 18 - clocks: phandles to input clocks. 28 #address-cells = <1>; 29 #size-cells = <0>; 30 clock-names = "mci_clk"; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/ |
| H A D | silabs,wfx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $id: http://devicetree.org/schemas/net/wireless/silabs,wfx.yaml# 7 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - Jérôme Pouiller <jerome.pouiller@silabs.com> 20 ID and Product ID. However, driver will only provide limited features in 24 In addition, it is recommended to declare a mmc-pwrseq on SDIO host above 25 WFx. Without it, you may encounter issues with warm boot. The mmc-pwrseq 26 should be compatible with mmc-pwrseq-simple. Please consult 27 Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml for more [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/extcon/ |
| H A D | extcon-max3355.txt | 2 ------------------------------------- 5 integrated USB OTG dual-role transceiver to function as a USB OTG dual-role 9 - compatible: should be "maxim,max3355"; 10 - maxim,shdn-gpios: should contain a phandle and GPIO specifier for the GPIO pin 12 - id-gpios: should contain a phandle and GPIO specifier for the GPIO pin 17 usb-otg { 19 maxim,shdn-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; 20 id-gpios = <&gpio5 31 GPIO_ACTIVE_HIGH>;
|
| /OK3568_Linux_fs/kernel/arch/mips/boot/dts/ingenic/ |
| H A D | gcw0.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 5 #include <dt-bindings/clock/ingenic,tcu.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/iio/adc/ingenic,adc.h> 9 #include <dt-bindings/input/input.h> 29 stdout-path = "serial2:57600n8"; 33 compatible = "regulator-fixed"; 34 regulator-name = "vcc"; 36 regulator-min-microvolt = <3300000>; [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/input/ |
| H A D | gpio_key.c | 4 * SPDX-License-Identifier: GPL-2.0+ 17 return -ENXIO; in gpio_key_ofdata_to_platdata() 19 uc_key->type = GPIO_KEY; in gpio_key_ofdata_to_platdata() 20 uc_key->name = dev_read_string(dev, "label"); in gpio_key_ofdata_to_platdata() 21 uc_key->code = dev_read_u32_default(dev, "linux,code", -ENODATA); in gpio_key_ofdata_to_platdata() 22 if (uc_key->code < 0) { in gpio_key_ofdata_to_platdata() 23 printf("%s: read 'linux,code' failed\n", uc_key->name); in gpio_key_ofdata_to_platdata() 24 return -EINVAL; in gpio_key_ofdata_to_platdata() 27 if (dev_read_u32_array(dev, "gpios", in gpio_key_ofdata_to_platdata() 28 uc_key->gpios, ARRAY_SIZE(uc_key->gpios))) { in gpio_key_ofdata_to_platdata() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/nfc/ |
| H A D | samsung,s3fwrn5.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/net/nfc/samsung,s3fwrn5.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 - Krzysztof Opasiak <k.opasiak@samsung.com> 15 const: samsung,s3fwrn5-i2c 17 en-gpios: 28 wake-gpios: 33 s3fwrn5,en-gpios: [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/ |
| H A D | gpio-charger.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/gpio-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: simple battery chargers only communicating through GPIOs 10 - Sebastian Reichel <sre@kernel.org> 14 autonomously, only providing some status GPIOs and possibly some 15 GPIOs for limited control over the charging process. 19 const: gpio-charger 21 charger-type: [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/panel/ |
| H A D | boe,himax8279d.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/panel/boe,himax8279d.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jerry Han <jerry.han.hq@gmail.com> 13 - $ref: panel-common.yaml# 18 - const: boe,himax8279d8p 19 - const: boe,himax8279d10p 22 enable-gpios: true 25 pp33-gpios: [all …]
|
| H A D | ronbo,rb070d30.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR X11) 3 --- 4 $id: http://devicetree.org/schemas/display/panel/ronbo,rb070d30.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Maxime Ripard <mripard@kernel.org> 17 description: MIPI-DSI virtual channel 19 power-gpios: 23 reset-gpios: 27 shlr-gpios: 31 updn-gpios: [all …]
|
| H A D | jdi,lt070me05000.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/panel/jdi,lt070me05000.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vinay Simha BN <simhavcs@gmail.com> 13 - $ref: panel-common.yaml# 19 enable-gpios: true 21 reset-gpios: true 23 vddp-supply: 25 The regulator that provides the supply voltage Power IC supply (3-5V) [all …]
|
| H A D | sharp,ls037v7dw01.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/panel/sharp,ls037v7dw01.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: SHARP LS037V7DW01 TFT-LCD panel 10 This panel can have zero to five GPIOs to configure to change configuration 12 configured with external pulls, all the GPIOs are considered optional with holes 16 - Tony Lindgren <tony@atomide.com> 19 - $ref: panel-common.yaml# 26 enable-gpios: true [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/ |
| H A D | spi-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: SPI-GPIO devicetree bindings 10 - Rob Herring <robh@kernel.org> 13 This represents a group of 3-n GPIO lines used for bit-banged SPI on 17 - $ref: "/schemas/spi/spi-controller.yaml#" 21 const: spi-gpio 23 sck-gpios: [all …]
|
| /OK3568_Linux_fs/u-boot/include/asm-generic/ |
| H A D | gpio.h | 4 * SPDX-License-Identifier: GPL-2.0+ 15 * Generic GPIO API for U-Boot 17 * -- 20 * - gpio_request_by_name() 21 * - dm_gpio_get_value() etc. 24 * -- 26 * GPIOs are numbered from 0 to GPIO_COUNT-1 which value is defined 38 * an error value of -1. 51 * @return 0 if ok, -1 on error 60 * @return 0 if ok, -1 on error [all …]
|