Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpio/
Dgpio-spear-spics.c62 struct spear_spics *spics = gpiochip_get_data(chip); in spics_set_value() local
66 tmp = readl_relaxed(spics->base + spics->perip_cfg); in spics_set_value()
67 if (spics->last_off != offset) { in spics_set_value()
68 spics->last_off = offset; in spics_set_value()
69 tmp &= ~(spics->cs_enable_mask << spics->cs_enable_shift); in spics_set_value()
70 tmp |= offset << spics->cs_enable_shift; in spics_set_value()
74 tmp &= ~(0x1 << spics->cs_value_bit); in spics_set_value()
75 tmp |= value << spics->cs_value_bit; in spics_set_value()
76 writel_relaxed(tmp, spics->base + spics->perip_cfg); in spics_set_value()
93 struct spear_spics *spics = gpiochip_get_data(chip); in spics_request() local
[all …]
DMakefile156 obj-$(CONFIG_GPIO_SPEAR_SPICS) += gpio-spear-spics.o
/linux-6.12.1/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-6.12.1/arch/arm/boot/dts/st/
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>;