From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Torgue Subject: Re: [PATCH 2/3] ARM: dts: stm32mp157: Add missing pinctrl definitions Date: Fri, 3 May 2019 09:13:27 +0200 Message-ID: <369b2593-71b6-0b00-b72c-041967ffba73@st.com> References: <20190503053123.6828-1-manivannan.sadhasivam@linaro.org> <20190503053123.6828-3-manivannan.sadhasivam@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190503053123.6828-3-manivannan.sadhasivam@linaro.org> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Manivannan Sadhasivam , mcoquelin.stm32@gmail.com, robh+dt@kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loic.pallardy@st.com List-Id: devicetree@vger.kernel.org Hi Mani On 5/3/19 7:31 AM, Manivannan Sadhasivam wrote: > Add missing pinctrl definitions for STM32MP157 MPU. > > Signed-off-by: Manivannan Sadhasivam > --- > arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 62 +++++++++++++++++++++++ > 1 file changed, 62 insertions(+) > > diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi > index 85c417d9983b..0b5bcf6a7c97 100644 > --- a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi > +++ b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi > @@ -241,6 +241,23 @@ > }; > }; > > + i2c1_pins_b: i2c1-2 { > + pins { > + pinmux = , /* I2C1_SCL */ > + ; /* I2C1_SDA */ > + bias-disable; > + drive-open-drain; > + slew-rate = <0>; > + }; > + }; > + > + i2c1_pins_sleep_b: i2c1-3 { > + pins { > + pinmux = , /* I2C1_SCL */ > + ; /* I2C1_SDA */ > + }; > + }; > + > i2c2_pins_a: i2c2-0 { > pins { > pinmux = , /* I2C2_SCL */ > @@ -258,6 +275,23 @@ > }; > }; > > + i2c2_pins_b: i2c2-2 { > + pins { > + pinmux = , /* I2C2_SCL */ > + ; /* I2C2_SDA */ You can't do that. has to be declared in pincontroller-z. So in your case, you have to define 2 groups for i2C2 for your default state (the same for the sleep state). regards Alex > + bias-disable; > + drive-open-drain; > + slew-rate = <0>; > + }; > + }; > + > + i2c2_pins_sleep_b: i2c2-3 { > + pins { > + pinmux = , /* I2C2_SCL */ > + ; /* I2C2_SDA */ > + }; > + }; > + > i2c5_pins_a: i2c5-0 { > pins { > pinmux = , /* I2C5_SCL */ > @@ -599,6 +633,34 @@ > bias-disable; > }; > }; > + > + uart4_pins_b: uart4-1 { > + pins1 { > + pinmux = ; /* UART4_TX */ > + bias-disable; > + drive-push-pull; > + slew-rate = <0>; > + }; > + pins2 { > + pinmux = ; /* UART4_RX */ > + bias-disable; > + }; > + }; > + > + uart7_pins_a: uart7-0 { > + pins1 { > + pinmux = ; /* UART4_TX */ > + bias-disable; > + drive-push-pull; > + slew-rate = <0>; > + }; > + pins2 { > + pinmux = , /* UART4_RX */ > + , /* UART4_CTS */ > + ; /* UART4_RTS */ > + bias-disable; > + }; > + }; > }; > > pinctrl_z: pin-controller-z@54004000 { >