Home
last modified time | relevance | path

Searched refs:spics (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/gpio/
Dgpio-spear-spics.c65 struct spear_spics *spics = gpiochip_get_data(chip); in spics_set_value() local
69 tmp = readl_relaxed(spics->base + spics->perip_cfg); in spics_set_value()
70 if (spics->last_off != offset) { in spics_set_value()
71 spics->last_off = offset; in spics_set_value()
72 tmp &= ~(spics->cs_enable_mask << spics->cs_enable_shift); in spics_set_value()
73 tmp |= offset << spics->cs_enable_shift; in spics_set_value()
77 tmp &= ~(0x1 << spics->cs_value_bit); in spics_set_value()
78 tmp |= value << spics->cs_value_bit; in spics_set_value()
79 writel_relaxed(tmp, spics->base + spics->perip_cfg); in spics_set_value()
96 struct spear_spics *spics = gpiochip_get_data(chip); in spics_request() local
[all …]
DMakefile126 obj-$(CONFIG_GPIO_SPEAR_SPICS) += gpio-spear-spics.o
/Linux-v5.4/Documentation/devicetree/bindings/gpio/
Dspear_spics.txt17 * compatible: should be defined as "st,spear-spics-gpio"
18 * reg: mentioning address range of spics controller
19 * st-spics,peripcfg-reg: peripheral configuration register offset
20 * st-spics,sw-enable-bit: bit offset to enable sw control
21 * st-spics,cs-value-bit: bit offset to drive chipselect low or high
22 * st-spics,cs-enable-mask: chip select number bit mask
23 * st-spics,cs-enable-shift: chip select number program offset
31 spics: spics@e0700000{
32 compatible = "st,spear-spics-gpio";
34 st-spics,peripcfg-reg = <0x3b0>;
[all …]
/Linux-v5.4/arch/arm/boot/dts/
Dspear1340.dtsi15 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>;
Dspear1310.dtsi14 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>;
Dspear1310-evb.dts346 cs-gpios = <&gpio1 7 0>, <&spics 0 0>, <&spics 1 0>;