Skip to contentSkip to conversation

Droid4 DTS update

PATCH In review Sebastian Reichel 3 participants 20 messages Mar 2, 2017 – Mar 17, 2017 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover Droid4 DTS update

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
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/8 ARM: dts: omap4-droid4: Add gpio-keys

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.

---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/omap4-droid4-xt894.dts +21 -0
index f3ccb4ceed9e..89f5f17cda7a 100644
@@ -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 */
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/8 ARM: dts: omap4-droid4: Configure regulators

In reply to Sebastian Reichel

From: Tony Lindgren <[email protected]>

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.

---
 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
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi new file +151 -0
new file mode 100644
index 000000000000..b7e12463016e
@@ -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>;
+	};
+};
arch/arm/boot/dts/omap4-droid4-xt894.dts +5 -22
index 89f5f17cda7a..e9cffc375695 100644
@@ -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;
 };
Signature · 1 line
2.11.0
#3 lore raw

PATCH 3/8 ARM: dts: motorola-cpcap-mapphone: add rtc

In reply to Sebastian Reichel
---
 arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi +7 -0
index b7e12463016e..34fb93ba5966 100644
@@ -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>;
+		};
 	};
 };
 
Signature · 1 line
2.11.0
#4 lore raw

PATCH 4/8 ARM: dts: motorola-cpcap-mapphone: add pwrbutton

In reply to Sebastian Reichel
---
 arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi +6 -0
index 34fb93ba5966..9970985e685b 100644
@@ -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>;
+		};
 	};
 };
 
Signature · 1 line
2.11.0
#5 lore raw

PATCH 5/8 ARM: dts: omap4-droid4: Add compass

In reply to Sebastian Reichel
---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm/boot/dts/omap4-droid4-xt894.dts +17 -0
index e9cffc375695..71e1769e9b0f 100644
@@ -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";
+
+	};
+};
Signature · 1 line
2.11.0
#6 lore raw

PATCH 6/8 ARM: dts: omap4-droid4: Add accelerometer

In reply to Sebastian Reichel
---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/omap4-droid4-xt894.dts +14 -0
index 71e1769e9b0f..479cd5e5de83 100644
@@ -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";
+	};
 };
Signature · 1 line
2.11.0
#7 lore raw

PATCH 7/8 ARM: dts: omap4-droid4: Add touchscreen

In reply to Sebastian Reichel

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.

---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/omap4-droid4-xt894.dts +14 -0
index 479cd5e5de83..364e98e66037 100644
@@ -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";
Signature · 1 line
2.11.0
#8 lore raw

PATCH 8/8 ARM: dts: omap4-droid4: Add keypad support

In reply to Sebastian Reichel

From: Tony Lindgren <[email protected]>

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.

---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 74 ++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
arch/arm/boot/dts/omap4-droid4-xt894.dts +74 -0
index 364e98e66037..8ea22852ef3f 100644
@@ -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>;
Signature · 1 line
2.11.0
#9 lore raw

Re: [PATCH 8/8] ARM: dts: omap4-droid4: Add keypad support

Quoted 10 lines · Sebastian Reichel

From: Tony Lindgren <[email protected]>

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
--
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

#10 lore raw
In reply to Sebastian Reichel
Quoted 6 lines · Sebastian Reichel

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

Quoted 11 lines

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

Quoted 8 lines

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

Quoted 12 lines

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
Signature · 1 line
2.11.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

#11 lore raw
Quoted 24 lines · Tony Lindgren
Quoted 6 lines · Sebastian Reichel

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

Quoted 11 lines

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 :)

Quoted 7 lines

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

#12 lore raw

Hi,

Quoted 35 lines · Tony Lindgren
Quoted 24 lines · Tony Lindgren
Quoted 6 lines · Sebastian Reichel

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

Quoted 11 lines

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 :)

Quoted 7 lines

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.

Quoted 7 lines

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

#13 lore raw
Quoted 6 lines · Sebastian Reichel
Quoted 4 lines · Tony Lindgren

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?

Quoted 7 lines

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

Quoted 1 line

http://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n950-display-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

#14 lore raw
Quoted 15 lines · Tony Lindgren
Quoted 6 lines · Sebastian Reichel
Quoted 4 lines · Tony Lindgren

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?

Quoted 7 lines

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?

Quoted 4 lines

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

Quoted 1 line
Quoted 1 line

http://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n950-display-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

#15 lore raw

Hi,

Quoted 23 lines · Tony Lindgren
Quoted 15 lines · Tony Lindgren
Quoted 6 lines · Sebastian Reichel
Quoted 4 lines · Tony Lindgren

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?

Quoted 7 lines

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?

Quoted 4 lines

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.

Quoted 7 lines

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).

Quoted 3 lines

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

#16 lore raw
In reply to Tony Lindgren

Hi,

Quoted 20 lines · Tony Lindgren
Quoted 6 lines · Sebastian Reichel

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

Quoted 10 lines

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)

Quoted 3 lines
Quoted 1 line

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.

Quoted 3 lines

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.

Quoted 3 lines

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.

Quoted 5 lines

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

#17 lore raw
Quoted 33 lines · Sebastian Reichel

Hi,

Quoted 20 lines · Tony Lindgren
Quoted 6 lines · Sebastian Reichel

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

Quoted 10 lines

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)

Quoted 3 lines
Quoted 1 line

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.

Quoted 5 lines
Quoted 3 lines

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
--
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

#18 lore raw
In reply to Sebastian Reichel

Hi!

Quoted 11 lines

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.

Actually, I'd use orientation with keyboard open (horizontal) -- as that's how the console will be orientated (right?) and how the linux will be most useful...
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#19 lore raw
Quoted 12 lines · Pavel Machek

Hi!

Quoted 10 lines

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)

Quoted 5 lines
Quoted 1 line

That should cover all mainline drivers.

Actually, I'd use orientation with keyboard open (horizontal) -- as that's how the console will be orientated (right?) and how the linux will be most useful...

Right, so how can we do that by default? I currently have "fbcon=rotate:1" in cmdline.

BTW, I think with omap4 we have the tiler hardware taking care of the rotation on omap4, well I have not verified that though.

Regards,

Tony