[PATCH v2 1/4] ARM: pxa3xx: dts: Add defines for pinctrl-single,bias-pull{up,down}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This allows users of the pinctrl driver to specify either

  pinctrl-single,bias-pullup = MPF_PULL_UP;

or

  pinctrl-single,bias-pulldown = MPF_PULL_DOWN;

To activate the pull bits in the MFP registers.

Signed-off-by: Daniel Mack <daniel@xxxxxxxxxx>
---
 arch/arm/boot/dts/pxa3xx.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/pxa3xx.dtsi b/arch/arm/boot/dts/pxa3xx.dtsi
index e1e607f53ce6..c237a0e4b12a 100644
--- a/arch/arm/boot/dts/pxa3xx.dtsi
+++ b/arch/arm/boot/dts/pxa3xx.dtsi
@@ -70,6 +70,14 @@
 #define MFP_DS10X	< (0x6 << 10) MFP_DSMSK >
 #define MFP_DS13X	< (0x7 << 10) MFP_DSMSK >
 
+/*
+ * MFP bias pull mode for pins.
+ * Example of use: pinctrl-single,bias-pullup = MPF_PULL_UP;
+ */
+#define MPF_PULL_MSK	(0x7 << 13)
+#define MPF_PULL_DOWN	< (0x5 << 13) (0x5 << 13) 0 MPF_PULL_MSK >
+#define MPF_PULL_UP	< (0x6 << 13) (0x6 << 13) 0 MPF_PULL_MSK >
+
 /*
  * MFP low power mode for pins.
  * Example of use:
-- 
2.20.1




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux