Message ID | 20170529170924.25488-1-o.rempel@pengutronix.de |
---|---|
State | Superseded, archived |
Headers | show |
On Mon, May 29, 2017 at 07:09:24PM +0200, Oleksij Rempel wrote: > This board, as well as some other boards with i.MX6 and a PMIC, uses a > "MPIC_STBY_REQ" line to notify the PMIC about a state change. > The PMIC is programmed for a specific state change before triggering the > line. > In this case, PMIC_STBY_REQ can be used for Stand by, Sleep > and Power off modes. > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > Cc: kernel@pengutronix.de > Cc: linux-arm-kernel@lists.infradead.org > Cc: Shawn Guo <shawnguo@kernel.org> > Cc: Fabio Estevam <fabio.estevam@nxp.com> > Cc: Rob Herring <robh+dt@kernel.org> > Cc: Mark Rutland <mark.rutland@arm.com> > Cc: Russell King <linux@armlinux.org.uk> > Cc: devicetree@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > arch/arm/boot/dts/imx6dl-riotboard.dts | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6dl-riotboard.dts b/arch/arm/boot/dts/imx6dl-riotboard.dts > index 2cb72824e800..b5f25fe7b809 100644 > --- a/arch/arm/boot/dts/imx6dl-riotboard.dts > +++ b/arch/arm/boot/dts/imx6dl-riotboard.dts > @@ -90,6 +90,10 @@ > status = "okay"; > }; > > +&clks { > + fsl,pmic_stby_poweroff; > +}; > + > &fec { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_enet>; > @@ -125,6 +129,7 @@ > reg = <0x08>; > interrupt-parent = <&gpio5>; > interrupts = <16 8>; > + fsl,pmic_stby_poweroff; Is this property supported by upstream kernel? Shawn > > regulators { > reg_vddcore: sw1ab { /* VDDARM_IN */ > -- > 2.11.0 > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, Jun 05, 2017 at 09:50:29AM +0800, Shawn Guo wrote: > On Mon, May 29, 2017 at 07:09:24PM +0200, Oleksij Rempel wrote: > > This board, as well as some other boards with i.MX6 and a PMIC, uses a > > "MPIC_STBY_REQ" line to notify the PMIC about a state change. > > The PMIC is programmed for a specific state change before triggering the > > line. > > In this case, PMIC_STBY_REQ can be used for Stand by, Sleep > > and Power off modes. > > > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > > Cc: kernel@pengutronix.de > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: Shawn Guo <shawnguo@kernel.org> > > Cc: Fabio Estevam <fabio.estevam@nxp.com> > > Cc: Rob Herring <robh+dt@kernel.org> > > Cc: Mark Rutland <mark.rutland@arm.com> > > Cc: Russell King <linux@armlinux.org.uk> > > Cc: devicetree@vger.kernel.org > > Cc: linux-kernel@vger.kernel.org > > --- > > arch/arm/boot/dts/imx6dl-riotboard.dts | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/arch/arm/boot/dts/imx6dl-riotboard.dts b/arch/arm/boot/dts/imx6dl-riotboard.dts > > index 2cb72824e800..b5f25fe7b809 100644 > > --- a/arch/arm/boot/dts/imx6dl-riotboard.dts > > +++ b/arch/arm/boot/dts/imx6dl-riotboard.dts > > @@ -90,6 +90,10 @@ > > status = "okay"; > > }; > > > > +&clks { > > + fsl,pmic_stby_poweroff; > > +}; > > + > > &fec { > > pinctrl-names = "default"; > > pinctrl-0 = <&pinctrl_enet>; > > @@ -125,6 +129,7 @@ > > reg = <0x08>; > > interrupt-parent = <&gpio5>; > > interrupts = <16 8>; > > + fsl,pmic_stby_poweroff; > > Is this property supported by upstream kernel? Okay, just noticed that it's the last patch of series adding fsl,pmic_stby_poweroff support. Shawn -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/devicetree/bindings/clock/imx6q-clock.txt b/Documentation/devicetree/bindings/clock/imx6q-clock.txt index 9252912a5b0e..214cb5f461c7 100644 --- a/Documentation/devicetree/bindings/clock/imx6q-clock.txt +++ b/Documentation/devicetree/bindings/clock/imx6q-clock.txt @@ -6,6 +6,10 @@ Required properties: - interrupts: Should contain CCM interrupt - #clock-cells: Should be <1> +Optional properties: +- fsl,pmic_stby_poweroff: Configure CCM to assert PMIC_STBY_REQ signal + on power off. + The clock consumer should specify the desired clock by having the clock ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx6qdl-clock.h for the full list of i.MX6 Quad and DualLite clock IDs.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Cc: kernel@pengutronix.de Cc: linux-arm-kernel@lists.infradead.org Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-clk@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Documentation/devicetree/bindings/clock/imx6q-clock.txt | 4 ++++ 1 file changed, 4 insertions(+)