Nokia N9/N950 misc. DT patches
cover Nokia N9/N950 misc. DT patches
Hi,
Here are a couple of N950/N9 DT patches. I only tested them on the Nokia N950, but Filip tested his patches on N9 and the regulator configuration in Nokia's kernel is the same for N950 and N9.
The patches are based on 4.5-rc7.
-- Sebastian
Filip Matijević (2):
ARM: dts: N9/N950: Add support for 1GHz CPU clock
ARM: dts: N9/N950: Add support for accelerometer
Sebastian Reichel (5):
ARM: dts: n9/n950: regulator configuration
ARM: dts: OMAP3-N950: Add Keypad Matrix
ARM: dts: OMAP3-N950: Add Vibrator
ARM: dts: Enable N950 keyboard sleep leds by default
ARM: dts: OMAP3-N950: Add Keypad Slide Switch
arch/arm/boot/dts/omap3-n9.dts | 14 ++++ arch/arm/boot/dts/omap3-n950-n9.dtsi | 151 +++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/omap3-n950.dts | 99 +++++++++++++++++++++++ 3 files changed, 264 insertions(+)
Signature · 1 line
2.7.0
PATCH 1/7 ARM: dts: n9/n950: regulator configuration
Add regulator configuration as found in the
board files of Nokia's kernel.
--- arch/arm/boot/dts/omap3-n950-n9.dtsi | 72 ++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+)
arch/arm/boot/dts/omap3-n950-n9.dtsi +72 -0
@@ -72,6 +72,30 @@ ti,pulldowns = <0x008106>; /* BIT(1) | BIT(2) | BIT(8) | BIT(15) */ }; +&vdac { + regulator-name = "vdac"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; +}; + +&vpll1 { + regulator-name = "vpll1"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; +}; + +&vpll2 { + regulator-name = "vpll2"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; +}; + +&vaux1 { + regulator-name = "vaux1"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; +}; + /* CSI-2 receiver */ &vaux2 { regulator-name = "vaux2";
@@ -86,6 +110,54 @@ regulator-max-microvolt = <2800000>; }; +&vaux4 { + regulator-name = "vaux4"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; +}; + +&vmmc1 { + regulator-name = "vmmc1"; + regulator-min-microvolt = <1850000>; + regulator-max-microvolt = <3150000>; +}; + +&vmmc2 { + regulator-name = "vmmc2"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; +}; + +&vintana1 { + regulator-name = "vintana1"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; +}; + +&vintana2 { + regulator-name = "vintana2"; + regulator-min-microvolt = <2750000>; + regulator-max-microvolt = <2750000>; +}; + +&vintdig { + regulator-name = "vintdig"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; +}; + +&vsim { + regulator-name = "vsim"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; +}; + +&vio { + regulator-name = "vio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; +}; + &i2c2 { clock-frequency = <400000>; };
Signature · 1 line
2.7.0
PATCH 2/7 ARM: dts: OMAP3-N950: Add Keypad Matrix
In reply to Sebastian ReichelAdd keypad matrix information based on data from
Nokia N950 Kernel.
--- arch/arm/boot/dts/omap3-n950.dts | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+)
arch/arm/boot/dts/omap3-n950.dts +56 -0
@@ -11,6 +11,7 @@ /dts-v1/; #include "omap3-n950-n9.dtsi" +#include <dt-bindings/input/input.h> / { model = "Nokia N950";
@@ -53,3 +54,58 @@ }; }; }; + +&twl_keypad { + linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_BACKSLASH) + MATRIX_KEY(0x01, 0x00, KEY_LEFTSHIFT) + MATRIX_KEY(0x02, 0x00, KEY_COMPOSE) + MATRIX_KEY(0x03, 0x00, KEY_LEFTMETA) + MATRIX_KEY(0x04, 0x00, KEY_RIGHTCTRL) + MATRIX_KEY(0x05, 0x00, KEY_BACKSPACE) + MATRIX_KEY(0x06, 0x00, KEY_VOLUMEDOWN) + MATRIX_KEY(0x07, 0x00, KEY_VOLUMEUP) + + MATRIX_KEY(0x03, 0x01, KEY_Z) + MATRIX_KEY(0x04, 0x01, KEY_A) + MATRIX_KEY(0x05, 0x01, KEY_Q) + MATRIX_KEY(0x06, 0x01, KEY_W) + MATRIX_KEY(0x07, 0x01, KEY_E) + + MATRIX_KEY(0x03, 0x02, KEY_X) + MATRIX_KEY(0x04, 0x02, KEY_S) + MATRIX_KEY(0x05, 0x02, KEY_D) + MATRIX_KEY(0x06, 0x02, KEY_C) + MATRIX_KEY(0x07, 0x02, KEY_V) + + MATRIX_KEY(0x03, 0x03, KEY_O) + MATRIX_KEY(0x04, 0x03, KEY_I) + MATRIX_KEY(0x05, 0x03, KEY_U) + MATRIX_KEY(0x06, 0x03, KEY_L) + MATRIX_KEY(0x07, 0x03, KEY_APOSTROPHE) + + MATRIX_KEY(0x03, 0x04, KEY_Y) + MATRIX_KEY(0x04, 0x04, KEY_K) + MATRIX_KEY(0x05, 0x04, KEY_J) + MATRIX_KEY(0x06, 0x04, KEY_H) + MATRIX_KEY(0x07, 0x04, KEY_G) + + MATRIX_KEY(0x03, 0x05, KEY_B) + MATRIX_KEY(0x04, 0x05, KEY_COMMA) + MATRIX_KEY(0x05, 0x05, KEY_M) + MATRIX_KEY(0x06, 0x05, KEY_N) + MATRIX_KEY(0x07, 0x05, KEY_DOT) + + MATRIX_KEY(0x00, 0x06, KEY_SPACE) + MATRIX_KEY(0x03, 0x06, KEY_T) + MATRIX_KEY(0x04, 0x06, KEY_UP) + MATRIX_KEY(0x05, 0x06, KEY_LEFT) + MATRIX_KEY(0x06, 0x06, KEY_RIGHT) + MATRIX_KEY(0x07, 0x06, KEY_DOWN) + + MATRIX_KEY(0x03, 0x07, KEY_P) + MATRIX_KEY(0x04, 0x07, KEY_ENTER) + MATRIX_KEY(0x05, 0x07, KEY_SLASH) + MATRIX_KEY(0x06, 0x07, KEY_F) + MATRIX_KEY(0x07, 0x07, KEY_R) + >; +};
Signature · 1 line
2.7.0
PATCH 3/7 ARM: dts: OMAP3-N950: Add Vibrator
In reply to Sebastian Reichel--- arch/arm/boot/dts/omap3-n950.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/omap3-n950.dts +7 -0
@@ -55,6 +55,13 @@ }; }; +&twl { + twl_audio: audio { + compatible = "ti,twl4030-audio"; + ti,enable-vibra = <1>; + }; +}; + &twl_keypad { linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_BACKSLASH) MATRIX_KEY(0x01, 0x00, KEY_LEFTSHIFT)
Signature · 1 line
2.7.0
PATCH 4/7 ARM: dts: Enable N950 keyboard sleep leds by default
In reply to Sebastian ReichelLike the Nokia N900, the N950 has leds to show
the state of sys_clkreq and sys_off_mode pins.
A detailed description for the LEDs and
OMAP's sleep states can be found in Tony's
commit for the Nokia N900:
c1be2032f66df9e1238bd5bc4ca666de88a62abc
--- arch/arm/boot/dts/omap3-n950-n9.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/boot/dts/omap3-n950-n9.dtsi +18 -0
@@ -31,9 +31,27 @@ startup-delay-us = <150>; enable-active-high; }; + + leds { + compatible = "gpio-leds"; + + heartbeat { + label = "debug::sleep"; + gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>; /* gpio92 */ + linux,default-trigger = "default-on"; + pinctrl-names = "default"; + pinctrl-0 = <&debug_leds>; + }; + }; }; &omap3_pmx_core { + debug_leds: pinmux_debug_led_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE4) /* dss_data22.gpio_92 */ + >; + }; + mmc2_pins: pinmux_mmc2_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
Signature · 1 line
2.7.0
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
Hi!
For 1-3 in the series, Acked-by: Pavel Machek <[email protected]>
Quoted 8 lines
Like the Nokia N900, the N950 has leds to show
the state ofsys_clkreqandsys_off_modepins.A detailed description for the LEDs and
OMAP's sleep states can be found in Tony's
commit for the Nokia N900:
c1be2032f66df9e1238bd5bc4ca666de88a62abc
I must say I've seen it on N900, and yes, it is useful, but no, I don't think this is right.
This is not a LED. This is a interface that changes meaning of two other LEDs. I guess it should go to debugfs somewhere.
Best regards,
Pavel
Quoted 31 lines
Signed-off-by Sebastian Reichel <[email protected]>+++
b/arch/arm/boot/dts/omap3-n950-n9.dtsiarch/arm/boot/dts/omap3-n950-n9.dtsi +18
-0@@ -31,9 +31,27 @@ startup-delay-us = <150>; enable-active-high; }; + + leds { + compatible = "gpio-leds"; + + heartbeat { + label = "debug::sleep"; + gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>; /* gpio92 */ + linux,default-trigger = "default-on"; + pinctrl-names = "default"; + pinctrl-0 = <&debug_leds>; + }; + }; }; &omap3_pmx_core { + debug_leds: pinmux_debug_led_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE4) /* dss_data22.gpio_92 */ + >; + }; + mmc2_pins: pinmux_mmc2_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
Signature · 6 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
Hi,
Quoted 9 lines · Pavel Machek
For 1-3 in the series, Acked-by: Pavel Machek <[email protected]>
Quoted 7 lines
Like the Nokia N900, the N950 has leds to show
the state ofsys_clkreqandsys_off_modepins.A detailed description for the LEDs and
OMAP's sleep states can be found in Tony's
commit for the Nokia N900:
Quoted 7 lines
Quoted 1 line
c1be2032f66df9e1238bd5bc4ca666de88a62abcI must say I've seen it on N900, and yes, it is useful, but no, I don't think this is right.
This is not a LED. This is a interface that changes meaning of two other LEDs. I guess it should go to debugfs somewhere.
I don't think we should diverge N900 and N950 userspace APIs in this regard.
Actually the correct way would be a custom trigger for the leds IMHO. I don't know if the led framework supports per led custom triggers, though.
-- Sebastian
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
Quoted 14 lines · Sebastian Reichel
Hi,
Quoted 11 lines · Pavel Machek
For 1-3 in the series, Acked-by: Pavel Machek <[email protected]>
Quoted 8 lines
Like the Nokia N900, the N950 has leds to show
the state ofsys_clkreqandsys_off_modepins.A detailed description for the LEDs and
OMAP's sleep states can be found in Tony's
commit for the Nokia N900:
c1be2032f66df9e1238bd5bc4ca666de88a62abc
Quoted 8 lines
Quoted 5 lines
I must say I've seen it on N900, and yes, it is useful, but no, I don't think this is right.
This is not a LED. This is a interface that changes meaning of two other LEDs. I guess it should go to debugfs somewhere.
I don't think we should diverge N900 and N950 userspace APIs in this regard.
That's a good argument.
But maybe we should move both to debugfs somewhere before we get too much userspace that relies on it...
Quoted 3 lines
Actually the correct way would be a custom trigger for the leds IMHO. I don't know if the led framework supports per led custom triggers, though.
Well, not even custom trigger would make this easy: AFAIK you need to enable this on two LEDs or not at all, so you'd have one trigger _that would need to be shared over two LEDs_.
Best regards,
Pavel
Signature · 6 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
In reply to Sebastian ReichelQuoted 19 lines · Sebastian Reichel
Hi,
Quoted 16 lines · Pavel Machek
For 1-3 in the series, Acked-by: Pavel Machek <[email protected]>
Quoted 8 lines
Like the Nokia N900, the N950 has leds to show
the state ofsys_clkreqandsys_off_modepins.A detailed description for the LEDs and
OMAP's sleep states can be found in Tony's
commit for the Nokia N900:
c1be2032f66df9e1238bd5bc4ca666de88a62abcI must say I've seen it on N900, and yes, it is useful, but no, I don't think this is right.
This is not a LED. This is a interface that changes meaning of two other LEDs. I guess it should go to debugfs somewhere.
Eh that sounds like a GPIO LED to me :) And it already has a /sys/class/leds/debug interface.
The two LEDs this GPIO controls are hardwired to sys_clkreq and sys_off_mode pins that are the control signals between the SoC and PMIC.
In theory you could steal the sys_clkreq and sys_off_mode pins from the PMIC at the cost of breaking PM. But I doubt anybody wants to do that considering it's a battery operated device.
Quoted 6 lines
I don't think we should diverge N900 and N950 userspace APIs in this regard.
Actually the correct way would be a custom trigger for the leds IMHO. I don't know if the led framework supports per led custom triggers, though.
Sure, there are something like 10 triggers already. And you can already change them using:
echo none > /sys/class/leds/debug::sleep/trigger
That still does not change the fact that the LEDs trigger based on the state of sys_clkreq and sys_off_mode.
Maybe I'm not following what you guys are trying to achieve here though :) If so, please let me know.
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
Hi,
Quoted 27 lines · Tony Lindgren
Quoted 5 lines
Quoted 5 lines
I must say I've seen it on N900, and yes, it is useful, but no, I don't think this is right.
This is not a LED. This is a interface that changes meaning of two other LEDs. I guess it should go to debugfs somewhere.
Eh that sounds like a GPIO LED to me :) And it already has a
/sys/class/leds/debuginterface.The two LEDs this GPIO controls are hardwired to
sys_clkreqandsys_off_modepins that are the control signals between the SoC and PMIC.In theory you could steal the
sys_clkreqandsys_off_modepins from the PMIC at the cost of breaking PM. But I doubt anybody wants to do that considering it's a battery operated device.Quoted 6 lines
I don't think we should diverge N900 and N950 userspace APIs in this regard.
Actually the correct way would be a custom trigger for the leds IMHO. I don't know if the led framework supports per led custom triggers, though.
Sure, there are something like 10 triggers already. And you can already change them using:
Quoted 7 lines
echo none > /sys/class/leds/debug::sleep/trigger
That still does not change the fact that the LEDs trigger based on the state of
sys_clkreqandsys_off_mode.Maybe I'm not following what you guys are trying to achieve here though :) If so, please let me know.
If I understand the situation correctly there are two different control methods for the same LED. I was wondering if the trigger from lp5523:kb0 could enable the gpio. For example like this:
echo cpu-sleep-state > /sys/class/leds/lp5523:kb0/trigger
Thinking about it again supporting this requires quite some effort with N9xx being the only affected platform. Apart from that (as Pavel mentioned) two LEDs are affected by the GPIO, so even the trigger is not a clean option.
So I'm fine with the current solution. IMHO moving it to debugfs is not recommendable while keeping it default enabled (which makes sense IMHO). At the end the correct solution is fixing the power management. If the cpu sleeps the impact of this should be marginal.
-- Sebastian
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
In reply to Tony LindgrenHi!
Quoted 18 lines
Quoted 10 lines · Pavel Machek
Quoted 9 lines
For 1-3 in the series, Acked-by: Pavel Machek <[email protected]>
Quoted 7 lines
Like the Nokia N900, the N950 has leds to show
the state ofsys_clkreqandsys_off_modepins.A detailed description for the LEDs and
OMAP's sleep states can be found in Tony's
commit for the Nokia N900:Quoted 7 lines
Quoted 7 lines
Quoted 1 line
c1be2032f66df9e1238bd5bc4ca666de88a62abcI must say I've seen it on N900, and yes, it is useful, but no, I don't think this is right.
This is not a LED. This is a interface that changes meaning of two other LEDs. I guess it should go to debugfs somewhere.
Quoted 6 lines
Eh that sounds like a GPIO LED to me :) And it already has a
/sys/class/leds/debuginterface.The two LEDs this GPIO controls are hardwired to
sys_clkreqandsys_off_modepins that are the control signals between the SoC and PMIC.
No, not on N900. On N900, these LEDs are normally used for keyboard backlight.
Quoted 3 lines
In theory you could steal the
sys_clkreqandsys_off_modepins from the PMIC at the cost of breaking PM. But I doubt anybody wants to do that considering it's a battery operated device.
No. It seems that on N900, you can select whether sys_clkreq and sys_off_mode is binary-or'ed with normal control of two keyboard backlight LEDs.
Quoted 10 lines
Quoted 6 lines
I don't think we should diverge N900 and N950 userspace APIs in this regard.
Actually the correct way would be a custom trigger for the leds IMHO. I don't know if the led framework supports per led custom triggers, though.
Sure, there are something like 10 triggers already. And you can already change them using:
Quoted 7 lines
echo none > /sys/class/leds/debug::sleep/trigger
That still does not change the fact that the LEDs trigger based on the state of
sys_clkreqandsys_off_mode.Maybe I'm not following what you guys are trying to achieve here though :) If so, please let me know.
...and this is what this GPIO does. So it is not exactly a LED. You can turn it on, but than, _two_ LEDs will start blinking. You can't control them with the brightess control. "Heartbeat" trigger is going to be very confusing on debug::sleep.
Best regards,
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
Quoted 23 lines · Pavel Machek
Hi!
Quoted 21 lines
Quoted 10 lines · Pavel Machek
Quoted 9 lines
For 1-3 in the series, Acked-by: Pavel Machek <[email protected]>
Quoted 7 lines
Like the Nokia N900, the N950 has leds to show
the state ofsys_clkreqandsys_off_modepins.A detailed description for the LEDs and
OMAP's sleep states can be found in Tony's
commit for the Nokia N900:Quoted 7 lines
Quoted 7 lines
Quoted 1 line
c1be2032f66df9e1238bd5bc4ca666de88a62abcI must say I've seen it on N900, and yes, it is useful, but no, I don't think this is right.
This is not a LED. This is a interface that changes meaning of two other LEDs. I guess it should go to debugfs somewhere.
Eh that sounds like a GPIO LED to me :) And it already has a
/sys/class/leds/debuginterface.
Quoted 6 lines
Quoted 3 lines
The two LEDs this GPIO controls are hardwired to
sys_clkreqandsys_off_modepins that are the control signals between the SoC and PMIC.No, not on N900. On N900, these LEDs are normally used for keyboard backlight.
Oh I see. I've totally forgotten that as I always keep the debug option enabled :) The extra battery consumption by those is quite minimal and warns you if you have something hogging the CPU.
Quoted 7 lines
Quoted 3 lines
In theory you could steal the
sys_clkreqandsys_off_modepins from the PMIC at the cost of breaking PM. But I doubt anybody wants to do that considering it's a battery operated device.No. It seems that on N900, you can select whether
sys_clkreqandsys_off_modeis binary-or'ed with normal control of two keyboard backlight LEDs.
That might be doable by reconfiguring the I2C LED driver.
For the GPIO, the "default-on" just keeps the I2C LED driver powered.
Quoted 15 lines
Quoted 15 lines
Quoted 6 lines
I don't think we should diverge N900 and N950 userspace APIs in this regard.
Actually the correct way would be a custom trigger for the leds IMHO. I don't know if the led framework supports per led custom triggers, though.
Sure, there are something like 10 triggers already. And you can already change them using:
echo none > /sys/class/leds/debug::sleep/trigger
That still does not change the fact that the LEDs trigger based on the state of
sys_clkreqandsys_off_mode.
Quoted 7 lines
Quoted 2 lines
Maybe I'm not following what you guys are trying to achieve here though :) If so, please let me know.
...and this is what this GPIO does. So it is not exactly a LED. You can turn it on, but than, _two_ LEDs will start blinking. You can't control them with the brightess control. "Heartbeat" trigger is going to be very confusing on
debug::sleep.
And it occured to me that adding any other policy than "default-on" to the GPIO LED will only work when the device is active.
Sounds like the thing to do is to just configure the I2C LED controller in the dts file if we don't already have that. And assuming it has a Linux driver.
Regards,
Tony
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
Hi!
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
The two LEDs this GPIO controls are hardwired to
sys_clkreqandsys_off_modepins that are the control signals between the SoC and PMIC.No, not on N900. On N900, these LEDs are normally used for keyboard backlight.
Oh I see. I've totally forgotten that as I always keep the debug option enabled :) The extra battery consumption by those is quite minimal and warns you if you have something hogging the CPU.
Yes, I like it.
Quoted 5 lines
Quoted 4 lines
...and this is what this GPIO does. So it is not exactly a LED. You can turn it on, but than, _two_ LEDs will start blinking. You can't control them with the brightess control. "Heartbeat" trigger is going to be very confusing on
debug::sleep.
Quoted 7 lines
And it occured to me that adding any other policy than "default-on" to the GPIO LED will only work when the device is active.
Sounds like the thing to do is to just configure the I2C LED controller in the dts file if we don't already have that. And assuming it has a Linux driver.
I don't see what you mean here. If you want to always keep the debug leds on... that may be a bit confusing for the users (and Pali wants to keep kernel usable for mere mortals it seems).
Anyway, current solution is not too horrible (its wrong but it does not hurt that much), so...
Best regards,
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default
Quoted 7 lines · Pavel Machek
Quoted 3 lines
Sounds like the thing to do is to just configure the I2C LED controller in the dts file if we don't already have that. And assuming it has a Linux driver.
I don't see what you mean here. If you want to always keep the debug leds on... that may be a bit confusing for the users (and Pali wants to keep kernel usable for mere mortals it seems).
I think to make the LEDs ignore the hardware idle lines requires reconfiguring the I2C LED controller.
Quoted 2 lines
Anyway, current solution is not too horrible (its wrong but it does not hurt that much), so...
Yeah further changes can be done later.
Applying the whole series to omap-for-v4.7/dt with your ack on patches 5 - 7.
Regards,
Tony
A message that is not in the archive (sent off-list or not yet received): 1457827580-16919-1-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
PATCH 4/7 ARM: dts: Enable N950 keyboard sleep leds by default
Like the Nokia N900, the N950 has leds to show
the state of sys_clkreq and sys_off_mode pins.
A detailed description for the LEDs and
OMAP's sleep states can be found in Tony's
commit for the Nokia N900:
c1be2032f66df9e1238bd5bc4ca666de88a62abc
--- arch/arm/boot/dts/omap3-n950-n9.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/boot/dts/omap3-n950-n9.dtsi +18 -0
@@ -31,9 +31,27 @@ startup-delay-us = <150>; enable-active-high; }; + + leds { + compatible = "gpio-leds"; + + heartbeat { + label = "debug::sleep"; + gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>; /* gpio92 */ + linux,default-trigger = "default-on"; + pinctrl-names = "default"; + pinctrl-0 = <&debug_leds>; + }; + }; }; &omap3_pmx_core { + debug_leds: pinmux_debug_led_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE4) /* dss_data22.gpio_92 */ + >; + }; + mmc2_pins: pinmux_mmc2_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
Signature · 6 lines
2.7.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 5/7 ARM: dts: OMAP3-N950: Add Keypad Slide Switch
In reply to Sebastian Reichel--- arch/arm/boot/dts/omap3-n950.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
arch/arm/boot/dts/omap3-n950.dts +22 -0
@@ -16,6 +16,28 @@ / { model = "Nokia N950"; compatible = "nokia,omap3-n950", "ti,omap36xx", "ti,omap3"; + + keys { + compatible = "gpio-keys"; + + keypad_slide { + label = "Keypad Slide"; + gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; /* 109 */ + linux,input-type = <EV_SW>; + linux,code = <SW_KEYPAD_SLIDE>; + wakeup-source; + pinctrl-names = "default"; + pinctrl-0 = <&keypad_slide_pins>; + }; + }; +}; + +&omap3_pmx_core { + keypad_slide_pins: pinmux_debug_led_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT | MUX_MODE4) /* cam_d10.gpio_109 */ + >; + }; }; &i2c2 {
Signature · 1 line
2.7.0
PATCH 6/7 ARM: dts: N9/N950: Add support for 1GHz CPU clock
In reply to Sebastian ReichelFrom: Filip Matijević <[email protected]>
--- arch/arm/boot/dts/omap3-n950-n9.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/omap3-n950-n9.dtsi +7 -0
@@ -14,6 +14,13 @@ cpus { cpu@0 { cpu0-supply = <&vcc>; + operating-points = < + /* kHz uV */ + 300000 1012500 + 600000 1200000 + 800000 1325000 + 1000000 1375000 + >; }; };
Signature · 1 line
2.7.0
PATCH 7/7 ARM: dts: N9/N950: Add support for accelerometer
In reply to Sebastian ReichelFrom: Filip Matijević <[email protected]>
--- arch/arm/boot/dts/omap3-n9.dts | 14 ++++++++++ arch/arm/boot/dts/omap3-n950-n9.dtsi | 54 ++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/omap3-n950.dts | 14 ++++++++++ 3 files changed, 82 insertions(+)
arch/arm/boot/dts/omap3-n9.dts +14 -0
@@ -53,3 +53,17 @@ }; }; }; + +&lis302 { + st,axis-x = <1>; /* LIS3_DEV_X */ + st,axis-y = <(-2)>; /* LIS3_INV_DEV_Y */ + st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */ + + st,min-limit-x = <(-46)>; + st,min-limit-y = <3>; + st,min-limit-z = <3>; + + st,max-limit-x = <(-3)>; + st,max-limit-y = <46>; + st,max-limit-z = <46>; +};
arch/arm/boot/dts/omap3-n950-n9.dtsi +54 -0
66 lines not on this page · raw message
arch/arm/boot/dts/omap3-n950.dts +14 -0
@@ -138,3 +138,17 @@ MATRIX_KEY(0x07, 0x07, KEY_R) >; }; + +&lis302 { + st,axis-x = <(-2)>; /* LIS3_INV_DEV_Y */ + st,axis-y = <(-1)>; /* LIS3_INV_DEV_X */ + st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */ + + st,min-limit-x = <(-32)>; + st,min-limit-y = <3>; + st,min-limit-z = <3>; + + st,max-limit-x = <(-3)>; + st,max-limit-y = <32>; + st,max-limit-z = <32>; +};
Signature · 1 line
2.7.0
Re: [PATCH 7/7] ARM: dts: N9/N950: Add support for accelerometer
Quoted 9 lines · Sebastian Reichel
From: Filip Matijević <[email protected]>
Signed-off-by Filip Matijević <[email protected]>Signed-off-by Sebastian Reichel <[email protected]>--- arch/arm/boot/dts/omap3-n9.dts | 14 ++++++++++ arch/arm/boot/dts/omap3-n950-n9.dtsi | 54 ++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/omap3-n950.dts | 14 ++++++++++ 3 files changed, 82 insertions(+)
5-7: Acked-by: Pavel Machek <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html