Home
last modified time | relevance | path

Searched +full:spear +full:- +full:spics +full:- +full:gpio (Results 1 – 5 of 5) sorted by relevance

/linux/Documentation/devicetree/bindings/gpio/
H A Dst,spear-spics-gpio.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpio/st,spear-spics-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ST Microelectronics SPEAr SPI CS GPIO Controller
10 - Viresh Kumar <vireshk@kernel.org>
13 SPEAr platform provides a provision to control chipselects of ARM PL022 Prime
20 Chipselects can be controlled by software by turning them as GPIOs. SPEAr
22 directly control each PL022 chipselect. Hence, it is natural for SPEAr to
23 export the control of this interface as gpio.
[all …]
/linux/drivers/gpio/
H A Dgpio-spear-spics.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * SPEAr platform SPI chipselect abstraction over gpiolib
10 #include <linux/gpio/driver.h>
21 * Provision is available on some SPEAr SoCs to control ARM PL022 spi cs
31 * struct spear_spics - represents spi chip select control
57 struct spear_spics *spics = gpiochip_get_data(chip); in spics_set_value() local
61 tmp = readl_relaxed(spics->base + spics->perip_cfg); in spics_set_value()
62 if (spics->last_off != offset) { in spics_set_value()
63 spics->last_off = offset; in spics_set_value()
64 tmp &= ~(spics->cs_enable_mask << spics->cs_enable_shift); in spics_set_value()
[all …]
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 # generic gpio support: platform drivers, dedicated expander chips, etc
4 ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG
6 obj-$(CONFIG_GPIOLIB) += gpiolib.o
7 obj-$(CONFIG_GPIOLIB) += gpiolib-devres.o
8 obj-$(CONFIG_GPIOLIB_LEGACY) += gpiolib-legacy.o
9 obj-$(CONFIG_OF_GPIO) += gpiolib-of.o
10 obj-$(CONFIG_GPIO_CDEV) += gpiolib-cdev.o
11 obj-$(CONFIG_GPIO_SYSFS) += gpiolib-sysfs.o
12 obj-$(CONFIG_GPIO_ACPI) += gpiolib-acpi.o
[all …]
/linux/arch/arm/boot/dts/st/
H A Dspear1340.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
15 spics: spics@e0700000 { label
16 compatible = "st,spear-spics-gpio";
18 st-spics,peripcfg-reg = <0x42c>;
19 st-spics,sw-enable-bit = <21>;
20 st-spics,cs-value-bit = <20>;
21 st-spics,cs-enable-mask = <3>;
22 st-spics,cs-enable-shift = <18>;
23 gpio-controller;
24 #gpio-cells = <2>;
[all …]
H A Dspear1310.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
14 spics: spics@e0700000 { label
15 compatible = "st,spear-spics-gpio";
17 st-spics,peripcfg-reg = <0x3b0>;
18 st-spics,sw-enable-bit = <12>;
19 st-spics,cs-value-bit = <11>;
20 st-spics,cs-enable-mask = <3>;
21 st-spics,cs-enable-shift = <8>;
22 gpio-controller;
23 #gpio-cells = <2>;
[all …]