Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1590752 > unrolled thread
| Started by | Sebastian Reichel <sre@kernel.org> |
|---|---|
| First post | 2017-03-02 02:10 +0100 |
| Last post | 2017-03-03 17:40 +0100 |
| Articles | 18 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 0/8] Droid4 DTS update Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:10 +0100
[PATCH 1/8] ARM: dts: omap4-droid4: Add gpio-keys Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:10 +0100
[PATCH 2/8] ARM: dts: omap4-droid4: Configure regulators Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:10 +0100
[PATCH 7/8] ARM: dts: omap4-droid4: Add touchscreen Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:10 +0100
[PATCH 3/8] ARM: dts: motorola-cpcap-mapphone: add rtc Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:20 +0100
[PATCH 5/8] ARM: dts: omap4-droid4: Add compass Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:20 +0100
[PATCH 8/8] ARM: dts: omap4-droid4: Add keypad support Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:20 +0100
Re: [PATCH 8/8] ARM: dts: omap4-droid4: Add keypad support Tony Lindgren <tony@atomide.com> - 2017-03-02 02:50 +0100
[PATCH 4/8] ARM: dts: motorola-cpcap-mapphone: add pwrbutton Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:20 +0100
[PATCH 6/8] ARM: dts: omap4-droid4: Add accelerometer Sebastian Reichel <sre@kernel.org> - 2017-03-02 02:20 +0100
Re: [PATCH 0/8] Droid4 DTS update Tony Lindgren <tony@atomide.com> - 2017-03-02 02:50 +0100
Re: [PATCH 0/8] Droid4 DTS update Tony Lindgren <tony@atomide.com> - 2017-03-02 03:00 +0100
Re: [PATCH 0/8] Droid4 DTS update Sebastian Reichel <sre@kernel.org> - 2017-03-03 17:30 +0100
Re: [PATCH 0/8] Droid4 DTS update Tony Lindgren <tony@atomide.com> - 2017-03-03 17:30 +0100
Re: [PATCH 0/8] Droid4 DTS update Tony Lindgren <tony@atomide.com> - 2017-03-04 17:30 +0100
Re: [PATCH 0/8] Droid4 DTS update Sebastian Reichel <sre@kernel.org> - 2017-03-05 01:00 +0100
Re: [PATCH 0/8] Droid4 DTS update Sebastian Reichel <sre@kernel.org> - 2017-03-03 12:50 +0100
Re: [PATCH 0/8] Droid4 DTS update Tony Lindgren <tony@atomide.com> - 2017-03-03 17:40 +0100
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:10 +0100 |
| Subject | [PATCH 0/8] Droid4 DTS update |
| Message-ID | <tgnpL-30D-3@gated-at.bofh.it> |
Hi, Tony, since your omap4-droid4 dts patches were not yet in a public repository and they would merge conflict with my patches I put them all together into a single patchset. I also added my Tested-By to your patches. The mounting-matrix for the sensors and the touchscreen's rotation assume, that the phone's default rotation is vertical. I think that's sensible, because * Android on the phone uses this as default rotation (like almost? all other phones) * volume buttons make sense (in horizontal position one would expect, that left button means lower volume. I know at least Maemo swaps them) That should cover all mainline drivers. -- Sebastian Sebastian Reichel (6): ARM: dts: omap4-droid4: Add gpio-keys ARM: dts: motorola-cpcap-mapphone: add rtc ARM: dts: motorola-cpcap-mapphone: add pwrbutton ARM: dts: omap4-droid4: Add compass ARM: dts: omap4-droid4: Add accelerometer ARM: dts: omap4-droid4: Add touchscreen Tony Lindgren (2): ARM: dts: omap4-droid4: Configure regulators ARM: dts: omap4-droid4: Add keypad support arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 164 ++++++++++++++++++++++++ arch/arm/boot/dts/omap4-droid4-xt894.dts | 165 +++++++++++++++++++++---- 2 files changed, 308 insertions(+), 21 deletions(-) create mode 100644 arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi -- 2.11.0
[toc] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:10 +0100 |
| Subject | [PATCH 1/8] ARM: dts: omap4-droid4: Add gpio-keys |
| Message-ID | <tgnpL-30D-5@gated-at.bofh.it> |
| In reply to | #1590752 |
On Droid 4 "Volume Down" and "Keypad Slide" keys are
connected via SoC GPIOs, "Power Key" via CPCAP and
all other keys via SoC keypad Matrix. This adds the
GPIO keys.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
arch/arm/boot/dts/omap4-droid4-xt894.dts | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index f3ccb4ceed9e..89f5f17cda7a 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include "omap443x.dtsi"
+#include <dt-bindings/input/input.h>
/ {
model = "Motorola Droid 4 XT894";
@@ -53,6 +54,26 @@
startup-delay-us = <70000>;
enable-active-high;
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+
+ volume_down {
+ label = "Volume Down";
+ gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; /* gpio154 */
+ linux,code = <KEY_VOLUMEDOWN>;
+ linux,can-disable;
+ };
+
+ slider {
+ label = "Keypad Slide";
+ gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>; /* gpio122 */
+ linux,input-type = <EV_SW>;
+ linux,code = <SW_KEYPAD_SLIDE>;
+ linux,can-disable;
+
+ };
+ };
};
/* L3_2 interconnect is unused, SRAM, GPMC and L3_ICLK2 disabled */
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:10 +0100 |
| Subject | [PATCH 2/8] ARM: dts: omap4-droid4: Configure regulators |
| Message-ID | <tgnpM-30D-13@gated-at.bofh.it> |
| In reply to | #1590752 |
From: Tony Lindgren <tony@atomide.com>
With drivers/mfd/motorola-cpcap.c and drivers/regulator/cpcap-regulator.c
we can now configure proper regulators for droid 4.
Let's add regulator voltages and switch over MMC, eMMC and WLAN to use
the CPCAP regulators.
Cc: devicetree@vger.kernel.org
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-By: Sebastian Reichel <sre@kernel.org>
---
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 151 +++++++++++++++++++++++++
arch/arm/boot/dts/omap4-droid4-xt894.dts | 27 +----
2 files changed, 156 insertions(+), 22 deletions(-)
create mode 100644 arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
new file mode 100644
index 000000000000..b7e12463016e
--- /dev/null
+++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
@@ -0,0 +1,151 @@
+/*
+ * Common CPCAP configuration used on Motorola phones
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+&mcspi1 {
+ cpcap: pmic@0 {
+ compatible = "motorola,cpcap", "st,6556002";
+ reg = <0>; /* cs0 */
+ interrupt-parent = <&gpio1>;
+ interrupts = <7 IRQ_TYPE_EDGE_RISING>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ spi-max-frequency = <3000000>;
+ spi-cs-high;
+
+ cpcap_regulator: regulator {
+ compatible = "motorola,mapphone-cpcap-regulator";
+
+ cpcap_regulators: regulators {
+ };
+ };
+ };
+};
+
+&cpcap_regulators {
+ sw5: SW5 {
+ regulator-min-microvolt = <5050000>;
+ regulator-max-microvolt = <5050000>;
+ regulator-enable-ramp-delay = <50000>;
+ regulator-boot-on;
+ };
+
+ vcam: VCAM {
+ regulator-min-microvolt = <2900000>;
+ regulator-max-microvolt = <2900000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ /* Used by DSS */
+ vcsi: VCSI {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-enable-ramp-delay = <1000>;
+ regulator-boot-on;
+ };
+
+ vdac: VDAC {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vdig: VDIG {
+ regulator-min-microvolt = <1875000>;
+ regulator-max-microvolt = <1875000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vfuse: VFUSE {
+ regulator-min-microvolt = <1500000>;
+ regulator-max-microvolt = <3150000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vhvio: VHVIO {
+ regulator-min-microvolt = <2775000>;
+ regulator-max-microvolt = <2775000>;
+ regulator-enable-ramp-delay = <1000>;
+ regulator-always-on;
+ };
+
+ /* Used by eMMC at mmc2 */
+ vsdio: VSDIO {
+ regulator-min-microvolt = <2900000>;
+ regulator-max-microvolt = <2900000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vpll: VPLL {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-enable-ramp-delay = <100>;
+ };
+
+ vrf1: VRF1 {
+ regulator-min-microvolt = <2775000>;
+ regulator-max-microvolt = <2775000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vrf2: VRF2 {
+ regulator-min-microvolt = <2775000>;
+ regulator-max-microvolt = <2775000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vrfref: VRFREF {
+ regulator-min-microvolt = <2500000>;
+ regulator-max-microvolt = <2775000>;
+ regulator-enable-ramp-delay = <100>;
+ };
+
+ vwlan1: VWLAN1 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1900000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vwlan2: VWLAN2 {
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3000000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vsim: VSIM {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <2900000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ /* Used by micro-SDIO at mmc1 */
+ vsimcard: VSIMCARD {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <2900000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vvib: VVIB {
+ regulator-min-microvolt = <1300000>;
+ regulator-max-microvolt = <3000000>;
+ regulator-enable-ramp-delay = <500>;
+ };
+
+ vusb: VUSB {
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+
+ vaudio: VAUDIO {
+ regulator-min-microvolt = <2775000>;
+ regulator-max-microvolt = <2775000>;
+ regulator-enable-ramp-delay = <1000>;
+ };
+};
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index 89f5f17cda7a..e9cffc375695 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -5,8 +5,9 @@
*/
/dts-v1/;
-#include "omap443x.dtsi"
#include <dt-bindings/input/input.h>
+#include "omap443x.dtsi"
+#include "motorola-cpcap-mapphone.dtsi"
/ {
model = "Motorola Droid 4 XT894";
@@ -26,25 +27,7 @@
reg = <0x80000000 0x3fd00000>; /* 1021 MB */
};
- /* CPCAP really supports 1650000 to 3400000 range */
- vmmc: regulator-mmc {
- compatible = "regulator-fixed";
- regulator-name = "vmmc";
- regulator-min-microvolt = <3000000>;
- regulator-max-microvolt = <3000000>;
- regulator-always-on;
- };
-
- /* CPCAP really supports 3000000 to 3100000 range */
- vemmc: regulator-emmc {
- compatible = "regulator-fixed";
- regulator-name = "vemmc";
- regulator-min-microvolt = <3000000>;
- regulator-max-microvolt = <3000000>;
- regulator-always-on;
- };
-
- /* CPCAP really supports 1650000 to 1950000 range */
+ /* This is probably coming straight from the battery.. */
wl12xx_vmmc: regulator-wl12xx {
compatible = "regulator-fixed";
regulator-name = "vwl1271";
@@ -82,13 +65,13 @@
};
&mmc1 {
- vmmc-supply = <&vmmc>;
+ vmmc-supply = <&vsimcard>;
bus-width = <4>;
cd-gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; /* gpio106 */
};
&mmc2 {
- vmmc-supply = <&vemmc>;
+ vmmc-supply = <&vsdio>;
bus-width = <8>;
non-removable;
};
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:10 +0100 |
| Subject | [PATCH 7/8] ARM: dts: omap4-droid4: Add touchscreen |
| Message-ID | <tgnpM-30D-19@gated-at.bofh.it> |
| In reply to | #1590752 |
Droid4's touchscreen can be used with mainline's maxtouch
driver. The touchscreen's lower area is used for four soft
buttons (KEY_MENU, KEY_HOME, KEY_BACK, KEY_SEARCH), but that
is currently not supported by the mainline kernel.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
arch/arm/boot/dts/omap4-droid4-xt894.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index 479cd5e5de83..364e98e66037 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -191,6 +191,20 @@
power = <50>;
};
+&i2c2 {
+ atmxt: touchscreen@4a {
+ compatible = "atmel,maxtouch";
+ reg = <0x4a>;
+
+ interrupt-parent = <&gpio6>;
+ interrupts = <23 IRQ_TYPE_LEVEL_LOW>; /* gpio183 */
+
+ reset-gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; /* gpio173 */
+
+ /* TODO: touchscreen has 4 soft buttons */
+ };
+};
+
&i2c4 {
ak8975: magnetometer@c {
compatible = "asahi-kasei,ak8975";
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:20 +0100 |
| Subject | [PATCH 3/8] ARM: dts: motorola-cpcap-mapphone: add rtc |
| Message-ID | <tgnzr-34a-3@gated-at.bofh.it> |
| In reply to | #1590752 |
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
index b7e12463016e..34fb93ba5966 100644
--- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
+++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
@@ -25,6 +25,13 @@
cpcap_regulators: regulators {
};
};
+
+ cpcap_rtc: rtc {
+ compatible = "motorola,cpcap-rtc";
+
+ interrupt-parent = <&cpcap>;
+ interrupts = <39 IRQ_TYPE_NONE>, <26 IRQ_TYPE_NONE>;
+ };
};
};
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:20 +0100 |
| Subject | [PATCH 5/8] ARM: dts: omap4-droid4: Add compass |
| Message-ID | <tgnzr-34a-1@gated-at.bofh.it> |
| In reply to | #1590752 |
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
arch/arm/boot/dts/omap4-droid4-xt894.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index e9cffc375695..71e1769e9b0f 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -190,3 +190,20 @@
mode = <3>;
power = <50>;
};
+
+&i2c4 {
+ ak8975: magnetometer@c {
+ compatible = "asahi-kasei,ak8975";
+ reg = <0x0c>;
+
+ vdd-supply = <&vhvio>;
+
+ interrupt-parent = <&gpio6>;
+ interrupts = <15 IRQ_TYPE_EDGE_RISING>; /* gpio175 */
+
+ rotation-matrix = "-1", "0", "0",
+ "0", "1", "0",
+ "0", "0", "-1";
+
+ };
+};
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:20 +0100 |
| Subject | [PATCH 8/8] ARM: dts: omap4-droid4: Add keypad support |
| Message-ID | <tgnzs-34a-15@gated-at.bofh.it> |
| In reply to | #1590752 |
From: Tony Lindgren <tony@atomide.com>
Let's configure the keypad in a way where it's usable out of the
box for Linux console use. To do this, let's follow the standard
PC keyboard layout for ctrl, shift and alt keys:
Ctrl = what is labeled as shift
Alt = what is labeled as SYM
Shift = what is lableled as caps lock
Meta = what is labled as OK
Who knows where they got the caps lock idea.. Probably from
some focus group popularity vote or something.
Note that some other keys don't match the labels either as they
don't follow the PC keyboard style. For example we have "shift + ,"
produce "<", and "shift + ." produce ">" instead of ";" and ":".
Pretty much Esc is the only key missing. I've used "Meta + 1"
produce Esc, and that seems to work OK. But that can be mapped
using the standard userspace tools.
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-By: Sebastian Reichel <sre@kernel.org>
---
arch/arm/boot/dts/omap4-droid4-xt894.dts | 74 ++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index 364e98e66037..8ea22852ef3f 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -64,6 +64,80 @@
status = "disabled";
};
+&keypad {
+ keypad,num-rows = <8>;
+ keypad,num-columns = <8>;
+ linux,keymap = <
+
+ /* Row 1 */
+ MATRIX_KEY(0, 2, KEY_1)
+ MATRIX_KEY(0, 6, KEY_2)
+ MATRIX_KEY(2, 3, KEY_3)
+ MATRIX_KEY(0, 7, KEY_4)
+ MATRIX_KEY(0, 4, KEY_5)
+ MATRIX_KEY(5, 5, KEY_6)
+ MATRIX_KEY(0, 1, KEY_7)
+ MATRIX_KEY(0, 5, KEY_8)
+ MATRIX_KEY(0, 0, KEY_9)
+ MATRIX_KEY(1, 6, KEY_0)
+
+ /* Row 2 */
+ MATRIX_KEY(3, 4, KEY_APOSTROPHE)
+ MATRIX_KEY(7, 6, KEY_Q)
+ MATRIX_KEY(7, 7, KEY_W)
+ MATRIX_KEY(7, 2, KEY_E)
+ MATRIX_KEY(1, 0, KEY_R)
+ MATRIX_KEY(4, 4, KEY_T)
+ MATRIX_KEY(1, 2, KEY_Y)
+ MATRIX_KEY(6, 7, KEY_U)
+ MATRIX_KEY(2, 2, KEY_I)
+ MATRIX_KEY(5, 6, KEY_O)
+ MATRIX_KEY(3, 7, KEY_P)
+ MATRIX_KEY(6, 5, KEY_BACKSPACE)
+
+ /* Row 3 */
+ MATRIX_KEY(5, 4, KEY_TAB)
+ MATRIX_KEY(5, 7, KEY_A)
+ MATRIX_KEY(2, 7, KEY_S)
+ MATRIX_KEY(7, 0, KEY_D)
+ MATRIX_KEY(2, 6, KEY_F)
+ MATRIX_KEY(6, 2, KEY_G)
+ MATRIX_KEY(6, 6, KEY_H)
+ MATRIX_KEY(1, 4, KEY_J)
+ MATRIX_KEY(3, 1, KEY_K)
+ MATRIX_KEY(2, 1, KEY_L)
+ MATRIX_KEY(4, 6, KEY_ENTER)
+
+ /* Row 4 */
+ MATRIX_KEY(3, 6, KEY_LEFTSHIFT) /* KEY_CAPSLOCK */
+ MATRIX_KEY(6, 1, KEY_Z)
+ MATRIX_KEY(7, 4, KEY_X)
+ MATRIX_KEY(5, 1, KEY_C)
+ MATRIX_KEY(1, 7, KEY_V)
+ MATRIX_KEY(2, 4, KEY_B)
+ MATRIX_KEY(4, 1, KEY_N)
+ MATRIX_KEY(1, 1, KEY_M)
+ MATRIX_KEY(3, 5, KEY_COMMA)
+ MATRIX_KEY(5, 2, KEY_DOT)
+ MATRIX_KEY(6, 3, KEY_UP)
+ MATRIX_KEY(7, 3, KEY_RIGHTMETA) /* KEY_OK */
+
+ /* Row 5 */
+ MATRIX_KEY(2, 5, KEY_LEFTCTRL) /* KEY_LEFTSHIFT */
+ MATRIX_KEY(4, 5, KEY_LEFTALT) /* SYM */
+ MATRIX_KEY(6, 0, KEY_MINUS)
+ MATRIX_KEY(4, 7, KEY_EQUAL)
+ MATRIX_KEY(1, 5, KEY_SPACE)
+ MATRIX_KEY(3, 2, KEY_SLASH)
+ MATRIX_KEY(4, 3, KEY_LEFT)
+ MATRIX_KEY(5, 3, KEY_DOWN)
+ MATRIX_KEY(3, 3, KEY_RIGHT)
+
+ /* Side buttons (KEY_VOLUMEDOWN is gpio-key and PWR is cpcap key) */
+ MATRIX_KEY(5, 0, KEY_VOLUMEUP)
+ >;
+};
+
&mmc1 {
vmmc-supply = <&vsimcard>;
bus-width = <4>;
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2017-03-02 02:50 +0100 |
| Subject | Re: [PATCH 8/8] ARM: dts: omap4-droid4: Add keypad support |
| Message-ID | <tgo2t-3jr-3@gated-at.bofh.it> |
| In reply to | #1590769 |
* Sebastian Reichel <sre@kernel.org> [170301 17:11]: > From: Tony Lindgren <tony@atomide.com> > > Let's configure the keypad in a way where it's usable out of the > box for Linux console use. To do this, let's follow the standard > PC keyboard layout for ctrl, shift and alt keys: > > Ctrl = what is labeled as shift > Alt = what is labeled as SYM > Shift = what is lableled as caps lock > Meta = what is labled as OK With this one I posted an update that keeps OK as OK as there's no obvious other use for it. Esc is the opposite of OK.. Marcel wanted delete key there.. I don't think we can come up with any sane mapping for that one. And we need to map things in the user space anyways. Regards, Tony
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:20 +0100 |
| Subject | [PATCH 4/8] ARM: dts: motorola-cpcap-mapphone: add pwrbutton |
| Message-ID | <tgnzs-34a-19@gated-at.bofh.it> |
| In reply to | #1590752 |
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
index 34fb93ba5966..9970985e685b 100644
--- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
+++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
@@ -32,6 +32,12 @@
interrupt-parent = <&cpcap>;
interrupts = <39 IRQ_TYPE_NONE>, <26 IRQ_TYPE_NONE>;
};
+
+ power_button: button {
+ compatible = "motorola,cpcap-pwrbutton";
+
+ interrupts = <23 IRQ_TYPE_NONE>;
+ };
};
};
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-02 02:20 +0100 |
| Subject | [PATCH 6/8] ARM: dts: omap4-droid4: Add accelerometer |
| Message-ID | <tgnzs-34a-27@gated-at.bofh.it> |
| In reply to | #1590752 |
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
arch/arm/boot/dts/omap4-droid4-xt894.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index 71e1769e9b0f..479cd5e5de83 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -206,4 +206,18 @@
"0", "0", "-1";
};
+
+ lis3dh: accelerometer@18 {
+ compatible = "st,lis3dh-accel";
+ reg = <0x18>;
+
+ vdd-supply = <&vhvio>;
+
+ interrupt-parent = <&gpio2>;
+ interrupts = <2 IRQ_TYPE_EDGE_BOTH>; /* gpio34 */
+
+ rotation-matrix = "0", "-1", "0",
+ "1", "0", "0",
+ "0", "0", "1";
+ };
};
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2017-03-02 02:50 +0100 |
| Message-ID | <tgo2t-3jr-5@gated-at.bofh.it> |
| In reply to | #1590752 |
* Sebastian Reichel <sre@kernel.org> [170301 17:10]: > Hi, > > Tony, since your omap4-droid4 dts patches were not > yet in a public repository and they would merge conflict > with my patches I put them all together into a single > patchset. I also added my Tested-By to your patches. OK > The mounting-matrix for the sensors and the touchscreen's > rotation assume, that the phone's default rotation is vertical. > I think that's sensible, because > > * Android on the phone uses this as default rotation > (like almost? all other phones) > * volume buttons make sense (in horizontal position one > would expect, that left button means lower volume. I > know at least Maemo swaps them) > > That should cover all mainline drivers. Heheheh cool looks like you configured compass and accelerometer :) I have a better touchscreen patch that also configures the wakeirq that I did not post yet at http://muru.com/linux/d4/patches/ in the updated set droid4-wip-next-20170217.tar.gz. I have few more interesting ones coming, I got the HDMI working reliably over the weekend. I was planning on waiting until -rc1 to post them but let's see if I can send few patches out before that. Anyways, I'll post a better touchscreen patch then let's apply these into omap-for-v4.12/dt-droid4 branch when -rc1 is tagged. Regards Tony > Sebastian Reichel (6): > ARM: dts: omap4-droid4: Add gpio-keys > ARM: dts: motorola-cpcap-mapphone: add rtc > ARM: dts: motorola-cpcap-mapphone: add pwrbutton > ARM: dts: omap4-droid4: Add compass > ARM: dts: omap4-droid4: Add accelerometer > ARM: dts: omap4-droid4: Add touchscreen > > Tony Lindgren (2): > ARM: dts: omap4-droid4: Configure regulators > ARM: dts: omap4-droid4: Add keypad support > > arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 164 ++++++++++++++++++++++++ > arch/arm/boot/dts/omap4-droid4-xt894.dts | 165 +++++++++++++++++++++---- > 2 files changed, 308 insertions(+), 21 deletions(-) > create mode 100644 arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi > > -- > 2.11.0 >
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2017-03-02 03:00 +0100 |
| Message-ID | <tgoc9-3mW-5@gated-at.bofh.it> |
| In reply to | #1590788 |
* Tony Lindgren <tony@atomide.com> [170301 17:45]: > * Sebastian Reichel <sre@kernel.org> [170301 17:10]: > > Hi, > > > > Tony, since your omap4-droid4 dts patches were not > > yet in a public repository and they would merge conflict > > with my patches I put them all together into a single > > patchset. I also added my Tested-By to your patches. > > OK > > > The mounting-matrix for the sensors and the touchscreen's > > rotation assume, that the phone's default rotation is vertical. > > I think that's sensible, because > > > > * Android on the phone uses this as default rotation > > (like almost? all other phones) > > * volume buttons make sense (in horizontal position one > > would expect, that left button means lower volume. I > > know at least Maemo swaps them) > > > > That should cover all mainline drivers. > > Heheheh cool looks like you configured compass and accelerometer :) > > I have a better touchscreen patch that also configures the wakeirq > that I did not post yet at http://muru.com/linux/d4/patches/ in the > updated set droid4-wip-next-20170217.tar.gz. > > I have few more interesting ones coming, I got the HDMI working > reliably over the weekend. I was planning on waiting until -rc1 to > post them but let's see if I can send few patches out before that. Oh and I have the poweroff-gpio patch and tmp105 patch. And the LMU backlight patch should be OK to go as the binding was already acked a while back. Some of the command mode LCD patches could be sent out too, and if the timing patch is OK then we can configure the LCD in the dts too. Have you had a chance to look at those related to what all I broke for n950? Regards, Tony
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-03 17:30 +0100 |
| Message-ID | <tgYfE-3Kq-21@gated-at.bofh.it> |
| In reply to | #1590793 |
[Multipart message — attachments visible in raw view] — view raw
Hi, On Wed, Mar 01, 2017 at 05:49:11PM -0800, Tony Lindgren wrote: > * Tony Lindgren <tony@atomide.com> [170301 17:45]: > > * Sebastian Reichel <sre@kernel.org> [170301 17:10]: > > > Hi, > > > > > > Tony, since your omap4-droid4 dts patches were not > > > yet in a public repository and they would merge conflict > > > with my patches I put them all together into a single > > > patchset. I also added my Tested-By to your patches. > > > > OK > > > > > The mounting-matrix for the sensors and the touchscreen's > > > rotation assume, that the phone's default rotation is vertical. > > > I think that's sensible, because > > > > > > * Android on the phone uses this as default rotation > > > (like almost? all other phones) > > > * volume buttons make sense (in horizontal position one > > > would expect, that left button means lower volume. I > > > know at least Maemo swaps them) > > > > > > That should cover all mainline drivers. > > > > Heheheh cool looks like you configured compass and accelerometer :) > > > > I have a better touchscreen patch that also configures the wakeirq > > that I did not post yet at http://muru.com/linux/d4/patches/ in the > > updated set droid4-wip-next-20170217.tar.gz. > > > > I have few more interesting ones coming, I got the HDMI working > > reliably over the weekend. I was planning on waiting until -rc1 to > > post them but let's see if I can send few patches out before that. > > Oh and I have the poweroff-gpio patch and tmp105 patch. > > And the LMU backlight patch should be OK to go as the binding was > already acked a while back. > > Some of the command mode LCD patches could be sent out too, and > if the timing patch is OK then we can configure the LCD in the dts > too. Have you had a chance to look at those related to what all I > broke for n950? I took your patchset and fixed it for N950. The main problem was, that you dropped the fifo size update, which is required for OMAP3 (HW bug). Here is a branch based on recent master branch from torvalds. I had a quick test with droid4 and dmesg still looked fine, but I did not have the lm3532 patches in that branch and nothing is visible without display backlight. Can you check if the branch works for you on D4? http://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n950-display-tony -- Sebastian
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2017-03-03 17:30 +0100 |
| Message-ID | <tgYfE-3Kq-23@gated-at.bofh.it> |
| In reply to | #1592115 |
* Sebastian Reichel <sre@kernel.org> [170303 03:03]: > On Wed, Mar 01, 2017 at 05:49:11PM -0800, Tony Lindgren wrote: > > Some of the command mode LCD patches could be sent out too, and > > if the timing patch is OK then we can configure the LCD in the dts > > too. Have you had a chance to look at those related to what all I > > broke for n950? > > I took your patchset and fixed it for N950. The main problem was, > that you dropped the fifo size update, which is required for OMAP3 > (HW bug). Here is a branch based on recent master branch from > torvalds. I had a quick test with droid4 and dmesg still looked fine, > but I did not have the lm3532 patches in that branch and nothing is > visible without display backlight. Can you check if the branch works > for you on D4? OK good to hear you figured it out. Yeah I tried to cut down the changes to minimum to get some idea what's going on and noticed I did not need the fifo changes for droid 4. I'll take a look later on today or over the weekend. Regards, Tony > http://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n950-display-tony
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2017-03-04 17:30 +0100 |
| Message-ID | <thkJc-3n4-5@gated-at.bofh.it> |
| In reply to | #1592116 |
* Tony Lindgren <tony@atomide.com> [170303 08:31]: > * Sebastian Reichel <sre@kernel.org> [170303 03:03]: > > On Wed, Mar 01, 2017 at 05:49:11PM -0800, Tony Lindgren wrote: > > > Some of the command mode LCD patches could be sent out too, and > > > if the timing patch is OK then we can configure the LCD in the dts > > > too. Have you had a chance to look at those related to what all I > > > broke for n950? > > > > I took your patchset and fixed it for N950. The main problem was, > > that you dropped the fifo size update, which is required for OMAP3 > > (HW bug). Here is a branch based on recent master branch from > > torvalds. I had a quick test with droid4 and dmesg still looked fine, > > but I did not have the lm3532 patches in that branch and nothing is > > visible without display backlight. Can you check if the branch works > > for you on D4? > > OK good to hear you figured it out. Yeah I tried to cut down the > changes to minimum to get some idea what's going on and noticed I did > not need the fifo changes for droid 4. I'll take a look later on today > or over the weekend. I tested your branch and those patches work just fine on droid 4. I did not test the fifo patch as it's missing something compiles as loadable modules: ERROR: "dispc_ovl_set_fifo_threshold" [drivers/gpu/drm/omapdrm/omapdrm.ko] undefined! ERROR: "dispc_ovl_compute_fifo_thresholds" [drivers/gpu/drm/omapdrm/omapdrm.ko] undefined! Probably just EXPORT_SYMBOL missing? Anyways, yeah I guess that set is pretty much ready to be sent for review if you feel like sending it. Or let me know if you want me to send it. Regards, Tony > > http://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n950-display-tony
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-05 01:00 +0100 |
| Message-ID | <thrKF-8kZ-17@gated-at.bofh.it> |
| In reply to | #1592560 |
[Multipart message — attachments visible in raw view] — view raw
Hi, On Sat, Mar 04, 2017 at 08:26:55AM -0800, Tony Lindgren wrote: > * Tony Lindgren <tony@atomide.com> [170303 08:31]: > > * Sebastian Reichel <sre@kernel.org> [170303 03:03]: > > > On Wed, Mar 01, 2017 at 05:49:11PM -0800, Tony Lindgren wrote: > > > > Some of the command mode LCD patches could be sent out too, and > > > > if the timing patch is OK then we can configure the LCD in the dts > > > > too. Have you had a chance to look at those related to what all I > > > > broke for n950? > > > > > > I took your patchset and fixed it for N950. The main problem was, > > > that you dropped the fifo size update, which is required for OMAP3 > > > (HW bug). Here is a branch based on recent master branch from > > > torvalds. I had a quick test with droid4 and dmesg still looked fine, > > > but I did not have the lm3532 patches in that branch and nothing is > > > visible without display backlight. Can you check if the branch works > > > for you on D4? > > > > OK good to hear you figured it out. Yeah I tried to cut down the > > changes to minimum to get some idea what's going on and noticed I did > > not need the fifo changes for droid 4. I'll take a look later on today > > or over the weekend. > > I tested your branch and those patches work just fine on droid 4. > > I did not test the fifo patch as it's missing something compiles > as loadable modules: > > ERROR: "dispc_ovl_set_fifo_threshold" [drivers/gpu/drm/omapdrm/omapdrm.ko] undefined! > ERROR: "dispc_ovl_compute_fifo_thresholds" [drivers/gpu/drm/omapdrm/omapdrm.ko] undefined! > > Probably just EXPORT_SYMBOL missing? Yes, I didn't notice, since I test stuff with monolithic kernel. kbuild test robot already noticed missing EXPORT_SYMBOL before you, though and I rebased the branch (obviously after you already pulled it). > Anyways, yeah I guess that set is pretty much ready to be sent for > review if you feel like sending it. Or let me know if you want me to > send it. Ok. It's just being sent out. -- Sebastian
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-03 12:50 +0100 |
| Message-ID | <tgTSG-Aj-21@gated-at.bofh.it> |
| In reply to | #1590788 |
[Multipart message — attachments visible in raw view] — view raw
Hi, On Wed, Mar 01, 2017 at 05:37:08PM -0800, Tony Lindgren wrote: > * Sebastian Reichel <sre@kernel.org> [170301 17:10]: > > Hi, > > > > Tony, since your omap4-droid4 dts patches were not > > yet in a public repository and they would merge conflict > > with my patches I put them all together into a single > > patchset. I also added my Tested-By to your patches. > > OK > > > The mounting-matrix for the sensors and the touchscreen's > > rotation assume, that the phone's default rotation is vertical. > > I think that's sensible, because > > > > * Android on the phone uses this as default rotation > > (like almost? all other phones) > > * volume buttons make sense (in horizontal position one > > would expect, that left button means lower volume. I > > know at least Maemo swaps them) > > > > That should cover all mainline drivers. > > Heheheh cool looks like you configured compass and accelerometer :) Easy targets with driver already available :) One of them actually does not forward the mount rotation matrix to sysfs/userspace at the moment due to missing driver support, but the binding is generic. > I have a better touchscreen patch that also configures the wakeirq > that I did not post yet at http://muru.com/linux/d4/patches/ in the > updated set droid4-wip-next-20170217.tar.gz. It's part of the LCD patch, so I missed it. > I have few more interesting ones coming, I got the HDMI working > reliably over the weekend. I was planning on waiting until -rc1 to > post them but let's see if I can send few patches out before that. Thanks for the reminder, that I still have to buy an adapter from µHDMI to HDMI. > I was planning on waiting until -rc1 to post them but let's see if > I can send few patches out before that. > > Anyways, I'll post a better touchscreen patch then let's apply these > into omap-for-v4.12/dt-droid4 branch when -rc1 is tagged. Sure. -- Sebastian
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2017-03-03 17:40 +0100 |
| Message-ID | <tgYpj-3NK-3@gated-at.bofh.it> |
| In reply to | #1591887 |
* Sebastian Reichel <sre@kernel.org> [170303 03:18]: > Hi, > > On Wed, Mar 01, 2017 at 05:37:08PM -0800, Tony Lindgren wrote: > > * Sebastian Reichel <sre@kernel.org> [170301 17:10]: > > > Hi, > > > > > > Tony, since your omap4-droid4 dts patches were not > > > yet in a public repository and they would merge conflict > > > with my patches I put them all together into a single > > > patchset. I also added my Tested-By to your patches. > > > > OK > > > > > The mounting-matrix for the sensors and the touchscreen's > > > rotation assume, that the phone's default rotation is vertical. > > > I think that's sensible, because > > > > > > * Android on the phone uses this as default rotation > > > (like almost? all other phones) > > > * volume buttons make sense (in horizontal position one > > > would expect, that left button means lower volume. I > > > know at least Maemo swaps them) > > > > > > That should cover all mainline drivers. > > > > Heheheh cool looks like you configured compass and accelerometer :) > > Easy targets with driver already available :) > > One of them actually does not forward the mount rotation matrix > to sysfs/userspace at the moment due to missing driver support, > but the binding is generic. > > > I have a better touchscreen patch that also configures the wakeirq > > that I did not post yet at http://muru.com/linux/d4/patches/ in the > > updated set droid4-wip-next-20170217.tar.gz. > > It's part of the LCD patch, so I missed it. Yeah so it seems sorry. I got most of the patches split out last night, still need some time before I can send them out. Regards, Tony
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web