summaryrefslogtreecommitdiff
path: root/arch/arm/dts/imx53-pinfunc.h
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2018-04-26 13:19:13 +0200
committerStefano Babic <sbabic@denx.de>2018-05-17 12:13:00 +0200
commit768cce8b793ab13848db622792975d1f59bddbcf (patch)
tree975081bcba918d3081a5933ba34780572880bfdf /arch/arm/dts/imx53-pinfunc.h
parent0a107afde6b436726de84e6869207e0dea637431 (diff)
dts: pinctrl: Provide IMX_PAD_SION definition for imx53 pinctrl
The SION pin must be set for proper operation of I2C when DM is enabled. When legacy I2C is used, this bit is set implicitly in the u-boot code: arch/arm/include/asm/arch-mx5/iomux-mx53.h:92: MX53_PAD_KEY_ROW3__I2C2_SDA = IOMUX_PAD(0x368, 0x040, 4 | IOMUX_CONFIG_SION, 0x820, 0, NO_PAD_CTRL), The Linux kernel uses similar approach with: arch/arm/boot/dts/imx53-tqma53.dtsi:182: MX53_PAD_KEY_ROW3__I2C2_SDA 0xc0000000 After applying this patch it is possible to have the I2C working with DM on imx53 devices: MX53_PAD_KEY_ROW3__I2C2_SDA (0x1ee | IMX_PAD_SION) Signed-off-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'arch/arm/dts/imx53-pinfunc.h')
-rw-r--r--arch/arm/dts/imx53-pinfunc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/dts/imx53-pinfunc.h b/arch/arm/dts/imx53-pinfunc.h
index aec406bc65e..baf710d0df2 100644
--- a/arch/arm/dts/imx53-pinfunc.h
+++ b/arch/arm/dts/imx53-pinfunc.h
@@ -10,6 +10,7 @@
#ifndef __DTS_IMX53_PINFUNC_H
#define __DTS_IMX53_PINFUNC_H
+#define IMX_PAD_SION 0x40000000
/*
* The pin function ID is a tuple of
* <mux_reg conf_reg input_reg mux_mode input_val>