Searched +full:peripcfg +full:- +full:reg (Results 1 – 4 of 4) sorted by relevance
/linux/Documentation/devicetree/bindings/gpio/ |
H A D | st,spear-spics-gpio.yaml | 1 # 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# 10 - Viresh Kumar <vireshk@kernel.org> 27 const: st,spear-spics-gpio 29 reg: 32 gpio-controller: true 34 '#gpio-cells': 37 st-spics,peripcfg-reg: [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | spear1340.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 compatible = "st,spear-spics-gpio"; 17 reg = <0xe0700000 0x1000>; 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 D | spear1310.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 compatible = "st,spear-spics-gpio"; 16 reg = <0xe0700000 0x1000>; 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 …]
|
/linux/drivers/gpio/ |
H A D | gpio-spear-spics.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 * struct spear_spics - represents spi chip select control 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() 65 tmp |= offset << spics->cs_enable_shift; in spics_set_value() 69 tmp &= ~(0x1 << spics->cs_value_bit); in spics_set_value() 70 tmp |= value << spics->cs_value_bit; in spics_set_value() 71 writel_relaxed(tmp, spics->base + spics->perip_cfg); in spics_set_value() [all …]
|