i.MX7 pinctrl driver writing to non existent registers

Shawn Guo shawnguo at kernel.org
Wed Mar 8 05:57:53 PST 2017


On Wed, Feb 08, 2017 at 10:08:17AM +0100, Sascha Hauer wrote:
> Hi All,
> 
> The i.MX7 has two pinmux controllers, the LPSR and the regular one. We
> instantiate a driver for each one. Now the driver assumes that the pins
> are completely configured with one iomux controller, but for the LPSR
> pins this is not true: The MUX_CTL and PAD_CTL registers are indeed
> in the LPSR controller, but the SELECT_INPUT registers for the same
> pin are found in the regular controller.
> 
> The result is that with this pin for example:
> 
> #define MX7D_PAD_GPIO1_IO06__UART5_DCE_RX                         0x0018 0x0048 0x0714 0x3 0x4
> 
> The LPSR controller writes to LPSR_BASE + 0x714 where it should really
> be IOMUX_BASE + 0x714.

Isn't property fsl,input-sel being there for addressing that?

Shawn



More information about the linux-arm-kernel mailing list