Message ID | 1376432412-8509-3-git-send-email-Russ.Dill@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 8/14/2013 3:50 AM, Russ Dill wrote: > Changes since v1: > * Rebased onto new am335x PM branch > > This adds a sleep and wake sequence to set the VDD core voltage to the > OPP50 level, 0.950V. This saves power during suspend. The sequences are > specific to the Beaglebone layout and PMIC, the TPS65217. The sequences > are written out by the Cortex-M3. > > Signed-off-by: Russ Dill <Russ.Dill@ti.com> > --- > arch/arm/boot/dts/am335x-bone.dts | 25 ++++++++++++++++++++++++- > 1 file changed, 24 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts > index 444b4ed..3f6528d 100644 > --- a/arch/arm/boot/dts/am335x-bone.dts > +++ b/arch/arm/boot/dts/am335x-bone.dts > @@ -127,10 +127,33 @@ > status = "okay"; > clock-frequency = <400000>; > > + /* Set OPP50 (0.95V) for VDD core */ > + sleep_sequence = /bits/ 8 < For user readability, can you mention the PMIC used here as a comment? > + 0x02 0x24 0x0b 0x6d /* Password unlock 1 */ > + 0x02 0x24 0x10 0x02 /* Set DCDC3 to 0.95V */ > + 0x02 0x24 0x0b 0x6d /* Password unlock 2 */ > + 0x02 0x24 0x10 0x02 /* Set DCDC3 to 0.95V */ > + 0x02 0x24 0x0b 0x6c /* Password unlock 1 */ > + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ > + 0x02 0x24 0x0b 0x6c /* Password unlock 2 */ > + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ > + >; > + > + /* Set OPP100 (1.10V) for VDD core */ > + wake_sequence = /bits/ 8 < > + 0x02 0x24 0x0b 0x6d /* Password unlock 1 */ > + 0x02 0x24 0x10 0x08 /* Set DCDC3 to 1.1V */ > + 0x02 0x24 0x0b 0x6d /* Password unlock 2 */ > + 0x02 0x24 0x10 0x08 /* Set DCDC3 to 1.1V */ > + 0x02 0x24 0x0b 0x6c /* Password unlock 1 */ > + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ > + 0x02 0x24 0x0b 0x6c /* Password unlock 2 */ > + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ > + >; > + > tps: tps@24 { > reg = <0x24>; > }; > - > }; > }; > > -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Aug 14, 2013 at 1:59 AM, Gururaja Hebbar <gururaja.hebbar@ti.com> wrote: > On 8/14/2013 3:50 AM, Russ Dill wrote: >> Changes since v1: >> * Rebased onto new am335x PM branch >> >> This adds a sleep and wake sequence to set the VDD core voltage to the >> OPP50 level, 0.950V. This saves power during suspend. The sequences are >> specific to the Beaglebone layout and PMIC, the TPS65217. The sequences >> are written out by the Cortex-M3. >> >> Signed-off-by: Russ Dill <Russ.Dill@ti.com> >> --- >> arch/arm/boot/dts/am335x-bone.dts | 25 ++++++++++++++++++++++++- >> 1 file changed, 24 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts >> index 444b4ed..3f6528d 100644 >> --- a/arch/arm/boot/dts/am335x-bone.dts >> +++ b/arch/arm/boot/dts/am335x-bone.dts >> @@ -127,10 +127,33 @@ >> status = "okay"; >> clock-frequency = <400000>; >> >> + /* Set OPP50 (0.95V) for VDD core */ >> + sleep_sequence = /bits/ 8 < > > For user readability, can you mention the PMIC used here as a comment? Sounds like a good modification, will do. >> + 0x02 0x24 0x0b 0x6d /* Password unlock 1 */ >> + 0x02 0x24 0x10 0x02 /* Set DCDC3 to 0.95V */ >> + 0x02 0x24 0x0b 0x6d /* Password unlock 2 */ >> + 0x02 0x24 0x10 0x02 /* Set DCDC3 to 0.95V */ >> + 0x02 0x24 0x0b 0x6c /* Password unlock 1 */ >> + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ >> + 0x02 0x24 0x0b 0x6c /* Password unlock 2 */ >> + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ >> + >; >> + >> + /* Set OPP100 (1.10V) for VDD core */ >> + wake_sequence = /bits/ 8 < >> + 0x02 0x24 0x0b 0x6d /* Password unlock 1 */ >> + 0x02 0x24 0x10 0x08 /* Set DCDC3 to 1.1V */ >> + 0x02 0x24 0x0b 0x6d /* Password unlock 2 */ >> + 0x02 0x24 0x10 0x08 /* Set DCDC3 to 1.1V */ >> + 0x02 0x24 0x0b 0x6c /* Password unlock 1 */ >> + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ >> + 0x02 0x24 0x0b 0x6c /* Password unlock 2 */ >> + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ >> + >; >> + >> tps: tps@24 { >> reg = <0x24>; >> }; >> - >> }; >> }; >> >> > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- To unsubscribe from this list: send the line "unsubscribe linux-omap" 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/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts index 444b4ed..3f6528d 100644 --- a/arch/arm/boot/dts/am335x-bone.dts +++ b/arch/arm/boot/dts/am335x-bone.dts @@ -127,10 +127,33 @@ status = "okay"; clock-frequency = <400000>; + /* Set OPP50 (0.95V) for VDD core */ + sleep_sequence = /bits/ 8 < + 0x02 0x24 0x0b 0x6d /* Password unlock 1 */ + 0x02 0x24 0x10 0x02 /* Set DCDC3 to 0.95V */ + 0x02 0x24 0x0b 0x6d /* Password unlock 2 */ + 0x02 0x24 0x10 0x02 /* Set DCDC3 to 0.95V */ + 0x02 0x24 0x0b 0x6c /* Password unlock 1 */ + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ + 0x02 0x24 0x0b 0x6c /* Password unlock 2 */ + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ + >; + + /* Set OPP100 (1.10V) for VDD core */ + wake_sequence = /bits/ 8 < + 0x02 0x24 0x0b 0x6d /* Password unlock 1 */ + 0x02 0x24 0x10 0x08 /* Set DCDC3 to 1.1V */ + 0x02 0x24 0x0b 0x6d /* Password unlock 2 */ + 0x02 0x24 0x10 0x08 /* Set DCDC3 to 1.1V */ + 0x02 0x24 0x0b 0x6c /* Password unlock 1 */ + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ + 0x02 0x24 0x0b 0x6c /* Password unlock 2 */ + 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ + >; + tps: tps@24 { reg = <0x24>; }; - }; };
Changes since v1: * Rebased onto new am335x PM branch This adds a sleep and wake sequence to set the VDD core voltage to the OPP50 level, 0.950V. This saves power during suspend. The sequences are specific to the Beaglebone layout and PMIC, the TPS65217. The sequences are written out by the Cortex-M3. Signed-off-by: Russ Dill <Russ.Dill@ti.com> --- arch/arm/boot/dts/am335x-bone.dts | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-)