All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] LG Optimus Black codename sniper support series
@ 2016-02-28 12:39 ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Tony Lindgren, Liam Girdwood,
	Javier Martinez Canillas, devicetree, linux-arm-kernel,
	linux-omap

This series requires lp872x regulator patches from the regulator tree[0] to work
at run-time but can be applied as-is.

Changes since v3:
* Switch to the already-defined devicetree vendor prefix for LG
* Enable the lp872x regulator in omap2plus_defconfig

Changes since v2:
* Add USB OTG support
* Add TWL4030 keypad support
* Drop references to P970 since other devices (e.g. KU5900) are supported too

Changes since v1:
* Remove lp872x patches that were accepted already from the series
* Explain why removing the invalid DVS GPIO warning is enough
* Update copyright notice on omap3-sniper.dts
* Rename the devicetree property for the enable GPIO to enable-gpios
* Rename function to enable GPIO to lp872x_hw_enable
* Add enable delays after requesting the enable GPIO
* Use IOPAD macros for pinmux description
* Mux the dp3t uart selection pins to gpio
* Restrict not-reset gpio controllers to only avoid reset when needed

This series introduces support for the LG Optimus Black, as described in the
patch adding devicetree support for the device.

In order to power the external mmc (mmc1), the lp872x regulator is used.
Its code had to be improved a bit to work on the device.

Note that the patch adding devicetree support for the device requires the
changes applied to the lp872x regulator, so all this is sent in one series
despite the fact they're different parts of the code.

[0]: https://git.kernel.org/cgit/linux/kernel/git/broonie/regulator.git/log/?h=topic/lp872x

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 0/5] LG Optimus Black codename sniper support series
@ 2016-02-28 12:39 ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Tony Lindgren, Liam Girdwood,
	Javier Martinez Canillas, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

This series requires lp872x regulator patches from the regulator tree[0] to work
at run-time but can be applied as-is.

Changes since v3:
* Switch to the already-defined devicetree vendor prefix for LG
* Enable the lp872x regulator in omap2plus_defconfig

Changes since v2:
* Add USB OTG support
* Add TWL4030 keypad support
* Drop references to P970 since other devices (e.g. KU5900) are supported too

Changes since v1:
* Remove lp872x patches that were accepted already from the series
* Explain why removing the invalid DVS GPIO warning is enough
* Update copyright notice on omap3-sniper.dts
* Rename the devicetree property for the enable GPIO to enable-gpios
* Rename function to enable GPIO to lp872x_hw_enable
* Add enable delays after requesting the enable GPIO
* Use IOPAD macros for pinmux description
* Mux the dp3t uart selection pins to gpio
* Restrict not-reset gpio controllers to only avoid reset when needed

This series introduces support for the LG Optimus Black, as described in the
patch adding devicetree support for the device.

In order to power the external mmc (mmc1), the lp872x regulator is used.
Its code had to be improved a bit to work on the device.

Note that the patch adding devicetree support for the device requires the
changes applied to the lp872x regulator, so all this is sent in one series
despite the fact they're different parts of the code.

[0]: https://git.kernel.org/cgit/linux/kernel/git/broonie/regulator.git/log/?h=topic/lp872x

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 0/5] LG Optimus Black codename sniper support series
@ 2016-02-28 12:39 ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-arm-kernel

This series requires lp872x regulator patches from the regulator tree[0] to work
at run-time but can be applied as-is.

Changes since v3:
* Switch to the already-defined devicetree vendor prefix for LG
* Enable the lp872x regulator in omap2plus_defconfig

Changes since v2:
* Add USB OTG support
* Add TWL4030 keypad support
* Drop references to P970 since other devices (e.g. KU5900) are supported too

Changes since v1:
* Remove lp872x patches that were accepted already from the series
* Explain why removing the invalid DVS GPIO warning is enough
* Update copyright notice on omap3-sniper.dts
* Rename the devicetree property for the enable GPIO to enable-gpios
* Rename function to enable GPIO to lp872x_hw_enable
* Add enable delays after requesting the enable GPIO
* Use IOPAD macros for pinmux description
* Mux the dp3t uart selection pins to gpio
* Restrict not-reset gpio controllers to only avoid reset when needed

This series introduces support for the LG Optimus Black, as described in the
patch adding devicetree support for the device.

In order to power the external mmc (mmc1), the lp872x regulator is used.
Its code had to be improved a bit to work on the device.

Note that the patch adding devicetree support for the device requires the
changes applied to the lp872x regulator, so all this is sent in one series
despite the fact they're different parts of the code.

[0]: https://git.kernel.org/cgit/linux/kernel/git/broonie/regulator.git/log/?h=topic/lp872x

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-02-28 12:39   ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Tony Lindgren, Liam Girdwood,
	Javier Martinez Canillas, devicetree, linux-arm-kernel,
	linux-omap, Paul Kocialkowski

The LG Optimus Black codename sniper is a smartphone that was designed and
manufactured by LG Electronics (LGE) and released back in 2011.
It is using an OMAP3630 SoC, GP version.

This adds devicetree support for the device, with only a few basic features
supported, such as debug uart, i2c, internal emmc and external mmc.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/boot/dts/Makefile         |   1 +
 arch/arm/boot/dts/omap3-sniper.dts | 215 +++++++++++++++++++++++++++++++++++++
 2 files changed, 216 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap3-sniper.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index a4a6d70..7314cf8 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -460,6 +460,7 @@ dtb-$(CONFIG_ARCH_OMAP3) += \
 	omap3-sbc-t3517.dtb \
 	omap3-sbc-t3530.dtb \
 	omap3-sbc-t3730.dtb \
+	omap3-sniper.dtb \
 	omap3-thunder.dtb \
 	omap3-zoom3.dtb
 dtb-$(CONFIG_SOC_TI81XX) += \
diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
new file mode 100644
index 0000000..f057e03
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -0,0 +1,215 @@
+/*
+ * Copyright (C) 2015-2016 Paul Kocialkowski <contact@paulk.fr>
+ *
+ * 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.
+ */
+/dts-v1/;
+
+#include "omap36xx.dtsi"
+
+/ {
+	model = "LG Optimus Black";
+	compatible = "lg,omap3-sniper", "ti,omap36xx", "ti,omap3";
+
+	cpus {
+		cpu@0 {
+			cpu0-supply = <&vcc>;
+		};
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x20000000>; /* 512 MB */
+	};
+};
+
+&omap3_pmx_core {
+	pinctrl-names = "default";
+
+	uart3_pins: pinmux_uart3_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)	/* uart3_rx_irrx */
+			OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)	/* uart3_tx_irtx */
+		>;
+	};
+
+	dp3t_sel_pins: pinmux_dp3t_sel_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2196, PIN_OUTPUT | MUX_MODE4)	/* gpio_161 */
+			OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4)	/* gpio_162 */
+		>;
+	};
+
+	i2c1_pins: pinmux_i2c1_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)	/* i2c1_scl */
+			OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)	/* i2c1_sda */
+		>;
+	};
+
+	i2c2_pins: pinmux_i2c2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0)	/* i2c2_scl */
+			OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0)	/* i2c2_sda */
+		>;
+	};
+
+	i2c3_pins: pinmux_i2c3_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0)	/* i2c3_scl */
+			OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0)	/* i2c3_sda */
+		>;
+	};
+
+	lp8720_en_pin: pinmux_lp8720_en_pin {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2080, PIN_OUTPUT | MUX_MODE4)	/* gpio_37 */
+		>;
+	};
+
+	mmc1_pins: pinmux_mmc1_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT | MUX_MODE0)	/* sdmmc1_clk */
+			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0)	/* sdmmc1_cmd */
+			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat0 */
+			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat1 */
+			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat2 */
+			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat3 */
+		>;
+	};
+
+	mmc2_pins: pinmux_mmc2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT | MUX_MODE0)	/* sdmmc2_clk */
+			OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT | MUX_MODE0)	/* sdmmc2_cmd */
+			OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat0 */
+			OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat1 */
+			OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat2 */
+			OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat3 */
+			OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat4 */
+			OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat5 */
+			OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat6 */
+			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat7 */
+		>;
+	};
+};
+
+&omap3_pmx_wkup {
+	pinctrl-names = "default";
+
+	mmc1_cd_pin: pinmux_mmc1_cd_pin {
+		pinctrl-single,pins = <
+			OMAP3_WKUP_IOPAD(0x2a1a, PIN_INPUT | MUX_MODE4)		/* gpio_10 */
+		>;
+	};
+};
+
+&gpio2 {
+	ti,no-reset-on-init;
+};
+
+&gpio5 {
+	ti,no-reset-on-init;
+};
+
+&gpio6 {
+	ti,no-reset-on-init;
+};
+
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart3_pins &dp3t_sel_pins>;
+
+	interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
+};
+
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+
+	clock-frequency = <2600000>;
+
+	twl: twl@48 {
+		reg = <0x48>;
+		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
+		interrupt-parent = <&intc>;
+
+		power {
+			compatible = "ti,twl4030-power";
+			ti,use_poweroff;
+		};
+	};
+};
+
+&i2c2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c2_pins>;
+
+	clock-frequency = <400000>;
+};
+
+&i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c3_pins>;
+
+	clock-frequency = <400000>;
+
+	lp8720@7d {
+		pinctrl-names = "default";
+		pinctrl-0 = <&lp8720_en_pin>;
+
+		compatible = "ti,lp8720";
+		reg = <0x7d>;
+
+		enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* gpio_37 */
+
+		lp8720_ldo1: ldo1 {
+			regulator-min-microvolt = <3000000>;
+			regulator-max-microvolt = <3000000>;
+		};
+	};
+};
+
+&mmc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins &mmc1_cd_pin>;
+	vmmc-supply = <&lp8720_ldo1>;
+	cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio 10 */
+	bus-width = <4>;
+};
+
+&mmc2 {
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc2_pins>;
+	vmmc-supply = <&vmmc2>;
+	ti,non-removable;
+	bus-width = <8>;
+};
+
+&mmc3 {
+	status = "disabled";
+};
+
+#include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
+
+/*
+ * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3.
+ * When not powered, these sensors cause the I2C3 clock to stay low at all times,
+ * making it impossible to reach other devices on I2C3.
+ */
+
+&vaux2 {
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <2800000>;
+	regulator-always-on;
+};
+
+&vdac {
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-always-on;
+};
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-02-28 12:39   ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Tony Lindgren, Liam Girdwood,
	Javier Martinez Canillas, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA, Paul Kocialkowski

The LG Optimus Black codename sniper is a smartphone that was designed and
manufactured by LG Electronics (LGE) and released back in 2011.
It is using an OMAP3630 SoC, GP version.

This adds devicetree support for the device, with only a few basic features
supported, such as debug uart, i2c, internal emmc and external mmc.

Signed-off-by: Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org>
---
 arch/arm/boot/dts/Makefile         |   1 +
 arch/arm/boot/dts/omap3-sniper.dts | 215 +++++++++++++++++++++++++++++++++++++
 2 files changed, 216 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap3-sniper.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index a4a6d70..7314cf8 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -460,6 +460,7 @@ dtb-$(CONFIG_ARCH_OMAP3) += \
 	omap3-sbc-t3517.dtb \
 	omap3-sbc-t3530.dtb \
 	omap3-sbc-t3730.dtb \
+	omap3-sniper.dtb \
 	omap3-thunder.dtb \
 	omap3-zoom3.dtb
 dtb-$(CONFIG_SOC_TI81XX) += \
diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
new file mode 100644
index 0000000..f057e03
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -0,0 +1,215 @@
+/*
+ * Copyright (C) 2015-2016 Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org>
+ *
+ * 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.
+ */
+/dts-v1/;
+
+#include "omap36xx.dtsi"
+
+/ {
+	model = "LG Optimus Black";
+	compatible = "lg,omap3-sniper", "ti,omap36xx", "ti,omap3";
+
+	cpus {
+		cpu@0 {
+			cpu0-supply = <&vcc>;
+		};
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x20000000>; /* 512 MB */
+	};
+};
+
+&omap3_pmx_core {
+	pinctrl-names = "default";
+
+	uart3_pins: pinmux_uart3_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)	/* uart3_rx_irrx */
+			OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)	/* uart3_tx_irtx */
+		>;
+	};
+
+	dp3t_sel_pins: pinmux_dp3t_sel_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2196, PIN_OUTPUT | MUX_MODE4)	/* gpio_161 */
+			OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4)	/* gpio_162 */
+		>;
+	};
+
+	i2c1_pins: pinmux_i2c1_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)	/* i2c1_scl */
+			OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)	/* i2c1_sda */
+		>;
+	};
+
+	i2c2_pins: pinmux_i2c2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0)	/* i2c2_scl */
+			OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0)	/* i2c2_sda */
+		>;
+	};
+
+	i2c3_pins: pinmux_i2c3_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0)	/* i2c3_scl */
+			OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0)	/* i2c3_sda */
+		>;
+	};
+
+	lp8720_en_pin: pinmux_lp8720_en_pin {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2080, PIN_OUTPUT | MUX_MODE4)	/* gpio_37 */
+		>;
+	};
+
+	mmc1_pins: pinmux_mmc1_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT | MUX_MODE0)	/* sdmmc1_clk */
+			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0)	/* sdmmc1_cmd */
+			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat0 */
+			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat1 */
+			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat2 */
+			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat3 */
+		>;
+	};
+
+	mmc2_pins: pinmux_mmc2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT | MUX_MODE0)	/* sdmmc2_clk */
+			OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT | MUX_MODE0)	/* sdmmc2_cmd */
+			OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat0 */
+			OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat1 */
+			OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat2 */
+			OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat3 */
+			OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat4 */
+			OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat5 */
+			OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat6 */
+			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat7 */
+		>;
+	};
+};
+
+&omap3_pmx_wkup {
+	pinctrl-names = "default";
+
+	mmc1_cd_pin: pinmux_mmc1_cd_pin {
+		pinctrl-single,pins = <
+			OMAP3_WKUP_IOPAD(0x2a1a, PIN_INPUT | MUX_MODE4)		/* gpio_10 */
+		>;
+	};
+};
+
+&gpio2 {
+	ti,no-reset-on-init;
+};
+
+&gpio5 {
+	ti,no-reset-on-init;
+};
+
+&gpio6 {
+	ti,no-reset-on-init;
+};
+
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart3_pins &dp3t_sel_pins>;
+
+	interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
+};
+
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+
+	clock-frequency = <2600000>;
+
+	twl: twl@48 {
+		reg = <0x48>;
+		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
+		interrupt-parent = <&intc>;
+
+		power {
+			compatible = "ti,twl4030-power";
+			ti,use_poweroff;
+		};
+	};
+};
+
+&i2c2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c2_pins>;
+
+	clock-frequency = <400000>;
+};
+
+&i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c3_pins>;
+
+	clock-frequency = <400000>;
+
+	lp8720@7d {
+		pinctrl-names = "default";
+		pinctrl-0 = <&lp8720_en_pin>;
+
+		compatible = "ti,lp8720";
+		reg = <0x7d>;
+
+		enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* gpio_37 */
+
+		lp8720_ldo1: ldo1 {
+			regulator-min-microvolt = <3000000>;
+			regulator-max-microvolt = <3000000>;
+		};
+	};
+};
+
+&mmc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins &mmc1_cd_pin>;
+	vmmc-supply = <&lp8720_ldo1>;
+	cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio 10 */
+	bus-width = <4>;
+};
+
+&mmc2 {
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc2_pins>;
+	vmmc-supply = <&vmmc2>;
+	ti,non-removable;
+	bus-width = <8>;
+};
+
+&mmc3 {
+	status = "disabled";
+};
+
+#include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
+
+/*
+ * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3.
+ * When not powered, these sensors cause the I2C3 clock to stay low at all times,
+ * making it impossible to reach other devices on I2C3.
+ */
+
+&vaux2 {
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <2800000>;
+	regulator-always-on;
+};
+
+&vdac {
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-always-on;
+};
-- 
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-02-28 12:39   ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-arm-kernel

The LG Optimus Black codename sniper is a smartphone that was designed and
manufactured by LG Electronics (LGE) and released back in 2011.
It is using an OMAP3630 SoC, GP version.

This adds devicetree support for the device, with only a few basic features
supported, such as debug uart, i2c, internal emmc and external mmc.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/boot/dts/Makefile         |   1 +
 arch/arm/boot/dts/omap3-sniper.dts | 215 +++++++++++++++++++++++++++++++++++++
 2 files changed, 216 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap3-sniper.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index a4a6d70..7314cf8 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -460,6 +460,7 @@ dtb-$(CONFIG_ARCH_OMAP3) += \
 	omap3-sbc-t3517.dtb \
 	omap3-sbc-t3530.dtb \
 	omap3-sbc-t3730.dtb \
+	omap3-sniper.dtb \
 	omap3-thunder.dtb \
 	omap3-zoom3.dtb
 dtb-$(CONFIG_SOC_TI81XX) += \
diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
new file mode 100644
index 0000000..f057e03
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -0,0 +1,215 @@
+/*
+ * Copyright (C) 2015-2016 Paul Kocialkowski <contact@paulk.fr>
+ *
+ * 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.
+ */
+/dts-v1/;
+
+#include "omap36xx.dtsi"
+
+/ {
+	model = "LG Optimus Black";
+	compatible = "lg,omap3-sniper", "ti,omap36xx", "ti,omap3";
+
+	cpus {
+		cpu at 0 {
+			cpu0-supply = <&vcc>;
+		};
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x20000000>; /* 512 MB */
+	};
+};
+
+&omap3_pmx_core {
+	pinctrl-names = "default";
+
+	uart3_pins: pinmux_uart3_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)	/* uart3_rx_irrx */
+			OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)	/* uart3_tx_irtx */
+		>;
+	};
+
+	dp3t_sel_pins: pinmux_dp3t_sel_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2196, PIN_OUTPUT | MUX_MODE4)	/* gpio_161 */
+			OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4)	/* gpio_162 */
+		>;
+	};
+
+	i2c1_pins: pinmux_i2c1_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)	/* i2c1_scl */
+			OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)	/* i2c1_sda */
+		>;
+	};
+
+	i2c2_pins: pinmux_i2c2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0)	/* i2c2_scl */
+			OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0)	/* i2c2_sda */
+		>;
+	};
+
+	i2c3_pins: pinmux_i2c3_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0)	/* i2c3_scl */
+			OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0)	/* i2c3_sda */
+		>;
+	};
+
+	lp8720_en_pin: pinmux_lp8720_en_pin {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2080, PIN_OUTPUT | MUX_MODE4)	/* gpio_37 */
+		>;
+	};
+
+	mmc1_pins: pinmux_mmc1_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT | MUX_MODE0)	/* sdmmc1_clk */
+			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0)	/* sdmmc1_cmd */
+			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat0 */
+			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat1 */
+			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat2 */
+			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat3 */
+		>;
+	};
+
+	mmc2_pins: pinmux_mmc2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT | MUX_MODE0)	/* sdmmc2_clk */
+			OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT | MUX_MODE0)	/* sdmmc2_cmd */
+			OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat0 */
+			OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat1 */
+			OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat2 */
+			OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat3 */
+			OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat4 */
+			OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat5 */
+			OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat6 */
+			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat7 */
+		>;
+	};
+};
+
+&omap3_pmx_wkup {
+	pinctrl-names = "default";
+
+	mmc1_cd_pin: pinmux_mmc1_cd_pin {
+		pinctrl-single,pins = <
+			OMAP3_WKUP_IOPAD(0x2a1a, PIN_INPUT | MUX_MODE4)		/* gpio_10 */
+		>;
+	};
+};
+
+&gpio2 {
+	ti,no-reset-on-init;
+};
+
+&gpio5 {
+	ti,no-reset-on-init;
+};
+
+&gpio6 {
+	ti,no-reset-on-init;
+};
+
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart3_pins &dp3t_sel_pins>;
+
+	interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
+};
+
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+
+	clock-frequency = <2600000>;
+
+	twl: twl at 48 {
+		reg = <0x48>;
+		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
+		interrupt-parent = <&intc>;
+
+		power {
+			compatible = "ti,twl4030-power";
+			ti,use_poweroff;
+		};
+	};
+};
+
+&i2c2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c2_pins>;
+
+	clock-frequency = <400000>;
+};
+
+&i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c3_pins>;
+
+	clock-frequency = <400000>;
+
+	lp8720 at 7d {
+		pinctrl-names = "default";
+		pinctrl-0 = <&lp8720_en_pin>;
+
+		compatible = "ti,lp8720";
+		reg = <0x7d>;
+
+		enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* gpio_37 */
+
+		lp8720_ldo1: ldo1 {
+			regulator-min-microvolt = <3000000>;
+			regulator-max-microvolt = <3000000>;
+		};
+	};
+};
+
+&mmc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins &mmc1_cd_pin>;
+	vmmc-supply = <&lp8720_ldo1>;
+	cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio 10 */
+	bus-width = <4>;
+};
+
+&mmc2 {
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc2_pins>;
+	vmmc-supply = <&vmmc2>;
+	ti,non-removable;
+	bus-width = <8>;
+};
+
+&mmc3 {
+	status = "disabled";
+};
+
+#include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
+
+/*
+ * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3.
+ * When not powered, these sensors cause the I2C3 clock to stay low at all times,
+ * making it impossible to reach other devices on I2C3.
+ */
+
+&vaux2 {
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <2800000>;
+	regulator-always-on;
+};
+
+&vdac {
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-always-on;
+};
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 2/5] ARM: dts: omap3-sniper: USB OTG support
  2016-02-28 12:39 ` Paul Kocialkowski
@ 2016-02-28 12:39   ` Paul Kocialkowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Tony Lindgren, Liam Girdwood,
	Javier Martinez Canillas, devicetree, linux-arm-kernel,
	linux-omap, Paul Kocialkowski

This adds support for USB OTG on the Optimus Black.
The HSUSB0 interface is connected to the TWL4030 USB PHY.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/boot/dts/omap3-sniper.dts | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
index f057e03..6e31daf 100644
--- a/arch/arm/boot/dts/omap3-sniper.dts
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -94,6 +94,23 @@
 			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat7 */
 		>;
 	};
+
+	usb_otg_hs_pins: pinmux_usb_otg_hs_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0)	/* hsusb0_clk */
+			OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0)	/* hsusb0_stp */
+			OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0)	/* hsusb0_dir */
+			OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0)	/* hsusb0_nxt */
+			OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0)	/* hsusb0_data0 */
+			OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0)	/* hsusb0_data1 */
+			OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0)	/* hsusb0_data2 */
+			OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0)	/* hsusb0_data3 */
+			OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0)	/* hsusb0_data4 */
+			OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0)	/* hsusb0_data5 */
+			OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0)	/* hsusb0_data6 */
+			OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0)	/* hsusb0_data7 */
+		>;
+	};
 };
 
 &omap3_pmx_wkup {
@@ -175,15 +192,16 @@
 &mmc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc1_pins &mmc1_cd_pin>;
+
 	vmmc-supply = <&lp8720_ldo1>;
 	cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio 10 */
 	bus-width = <4>;
 };
 
 &mmc2 {
-
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc2_pins>;
+
 	vmmc-supply = <&vmmc2>;
 	ti,non-removable;
 	bus-width = <8>;
@@ -193,6 +211,18 @@
 	status = "disabled";
 };
 
+&usb_otg_hs {
+	pinctrl-names = "default";
+	pinctrl-0 = <&usb_otg_hs_pins>;
+
+	interface-type = <0>;
+	usb-phy = <&usb2_phy>;
+	phys = <&usb2_phy>;
+	phy-names = "usb2-phy";
+	mode = <3>;
+	power = <50>;
+};
+
 #include "twl4030.dtsi"
 #include "twl4030_omap3.dtsi"
 
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 2/5] ARM: dts: omap3-sniper: USB OTG support
@ 2016-02-28 12:39   ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-arm-kernel

This adds support for USB OTG on the Optimus Black.
The HSUSB0 interface is connected to the TWL4030 USB PHY.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/boot/dts/omap3-sniper.dts | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
index f057e03..6e31daf 100644
--- a/arch/arm/boot/dts/omap3-sniper.dts
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -94,6 +94,23 @@
 			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE0)	/* sdmmc2_dat7 */
 		>;
 	};
+
+	usb_otg_hs_pins: pinmux_usb_otg_hs_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0)	/* hsusb0_clk */
+			OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0)	/* hsusb0_stp */
+			OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0)	/* hsusb0_dir */
+			OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0)	/* hsusb0_nxt */
+			OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0)	/* hsusb0_data0 */
+			OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0)	/* hsusb0_data1 */
+			OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0)	/* hsusb0_data2 */
+			OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0)	/* hsusb0_data3 */
+			OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0)	/* hsusb0_data4 */
+			OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0)	/* hsusb0_data5 */
+			OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0)	/* hsusb0_data6 */
+			OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0)	/* hsusb0_data7 */
+		>;
+	};
 };
 
 &omap3_pmx_wkup {
@@ -175,15 +192,16 @@
 &mmc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc1_pins &mmc1_cd_pin>;
+
 	vmmc-supply = <&lp8720_ldo1>;
 	cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio 10 */
 	bus-width = <4>;
 };
 
 &mmc2 {
-
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc2_pins>;
+
 	vmmc-supply = <&vmmc2>;
 	ti,non-removable;
 	bus-width = <8>;
@@ -193,6 +211,18 @@
 	status = "disabled";
 };
 
+&usb_otg_hs {
+	pinctrl-names = "default";
+	pinctrl-0 = <&usb_otg_hs_pins>;
+
+	interface-type = <0>;
+	usb-phy = <&usb2_phy>;
+	phys = <&usb2_phy>;
+	phy-names = "usb2-phy";
+	mode = <3>;
+	power = <50>;
+};
+
 #include "twl4030.dtsi"
 #include "twl4030_omap3.dtsi"
 
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
  2016-02-28 12:39 ` Paul Kocialkowski
@ 2016-02-28 12:39   ` Paul Kocialkowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Tony Lindgren, Liam Girdwood,
	Javier Martinez Canillas, devicetree, linux-arm-kernel,
	linux-omap, Paul Kocialkowski

This adds support for the volume and gesture keys, using TWL4030 keypad.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/boot/dts/omap3-sniper.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
index 6e31daf..78a1184 100644
--- a/arch/arm/boot/dts/omap3-sniper.dts
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -8,6 +8,7 @@
 /dts-v1/;
 
 #include "omap36xx.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
 	model = "LG Optimus Black";
@@ -226,6 +227,14 @@
 #include "twl4030.dtsi"
 #include "twl4030_omap3.dtsi"
 
+&twl_keypad {
+	linux,keymap = <
+		MATRIX_KEY(0x00, 0x00, KEY_VOLUMEUP)
+		MATRIX_KEY(0x01, 0x00, KEY_VOLUMEDOWN)
+		MATRIX_KEY(0x02, 0x00, KEY_SELECT)
+	>;
+};
+
 /*
  * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3.
  * When not powered, these sensors cause the I2C3 clock to stay low at all times,
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
@ 2016-02-28 12:39   ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-arm-kernel

This adds support for the volume and gesture keys, using TWL4030 keypad.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/boot/dts/omap3-sniper.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
index 6e31daf..78a1184 100644
--- a/arch/arm/boot/dts/omap3-sniper.dts
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -8,6 +8,7 @@
 /dts-v1/;
 
 #include "omap36xx.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
 	model = "LG Optimus Black";
@@ -226,6 +227,14 @@
 #include "twl4030.dtsi"
 #include "twl4030_omap3.dtsi"
 
+&twl_keypad {
+	linux,keymap = <
+		MATRIX_KEY(0x00, 0x00, KEY_VOLUMEUP)
+		MATRIX_KEY(0x01, 0x00, KEY_VOLUMEDOWN)
+		MATRIX_KEY(0x02, 0x00, KEY_SELECT)
+	>;
+};
+
 /*
  * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3.
  * When not powered, these sensors cause the I2C3 clock to stay low at all times,
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 4/5] ARM: omap2plus_defconfig: Enable LP872x regulator support
  2016-02-28 12:39 ` Paul Kocialkowski
@ 2016-02-28 12:39   ` Paul Kocialkowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Tony Lindgren, Liam Girdwood,
	Javier Martinez Canillas, devicetree, linux-arm-kernel,
	linux-omap, Paul Kocialkowski

The LP872x regulator is used in the LG Optimus Black codename sniper to supply
the external mmc card.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/configs/omap2plus_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index d18d6b4..0c5f728 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -278,6 +278,7 @@ CONFIG_MFD_TPS65218=y
 CONFIG_MFD_TPS65910=y
 CONFIG_MFD_TI_AM335X_TSCADC=m
 CONFIG_TWL6040_CORE=y
+CONFIG_REGULATOR_LP872X=y
 CONFIG_REGULATOR_PALMAS=y
 CONFIG_REGULATOR_PBIAS=y
 CONFIG_REGULATOR_TI_ABB=y
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 4/5] ARM: omap2plus_defconfig: Enable LP872x regulator support
@ 2016-02-28 12:39   ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-arm-kernel

The LP872x regulator is used in the LG Optimus Black codename sniper to supply
the external mmc card.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/configs/omap2plus_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index d18d6b4..0c5f728 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -278,6 +278,7 @@ CONFIG_MFD_TPS65218=y
 CONFIG_MFD_TPS65910=y
 CONFIG_MFD_TI_AM335X_TSCADC=m
 CONFIG_TWL6040_CORE=y
+CONFIG_REGULATOR_LP872X=y
 CONFIG_REGULATOR_PALMAS=y
 CONFIG_REGULATOR_PBIAS=y
 CONFIG_REGULATOR_TI_ABB=y
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
  2016-02-28 12:39 ` Paul Kocialkowski
@ 2016-02-28 12:39   ` Paul Kocialkowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Tony Lindgren, Liam Girdwood,
	Javier Martinez Canillas, devicetree, linux-arm-kernel,
	linux-omap, Paul Kocialkowski

The LP872x regulator is used in the LG Optimus Black codename sniper to supply
the external mmc card.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 8e8b2ac..59d65bd 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -468,6 +468,7 @@ CONFIG_REGULATOR_RK808=y
 CONFIG_REGULATOR_GPIO=y
 CONFIG_MFD_SYSCON=y
 CONFIG_POWER_RESET_SYSCON=y
+CONFIG_REGULATOR_LP872X=y
 CONFIG_REGULATOR_MAX14577=m
 CONFIG_REGULATOR_MAX8907=y
 CONFIG_REGULATOR_MAX8973=y
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
@ 2016-02-28 12:39   ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-02-28 12:39 UTC (permalink / raw)
  To: linux-arm-kernel

The LP872x regulator is used in the LG Optimus Black codename sniper to supply
the external mmc card.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 8e8b2ac..59d65bd 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -468,6 +468,7 @@ CONFIG_REGULATOR_RK808=y
 CONFIG_REGULATOR_GPIO=y
 CONFIG_MFD_SYSCON=y
 CONFIG_POWER_RESET_SYSCON=y
+CONFIG_REGULATOR_LP872X=y
 CONFIG_REGULATOR_MAX14577=m
 CONFIG_REGULATOR_MAX8907=y
 CONFIG_REGULATOR_MAX8973=y
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-02-29 21:51     ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 21:51 UTC (permalink / raw)
  To: Paul Kocialkowski
  Cc: linux-kernel, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Benoît Cousson,
	Liam Girdwood, Javier Martinez Canillas, devicetree,
	linux-arm-kernel, linux-omap

Hi,

* Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> The LG Optimus Black codename sniper is a smartphone that was designed and
> manufactured by LG Electronics (LGE) and released back in 2011.
> It is using an OMAP3630 SoC, GP version.
> 
> This adds devicetree support for the device, with only a few basic features
> supported, such as debug uart, i2c, internal emmc and external mmc.
...
> +&i2c1 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c1_pins>;
> +
> +	clock-frequency = <2600000>;
> +
> +	twl: twl@48 {
> +		reg = <0x48>;
> +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> +		interrupt-parent = <&intc>;
> +
> +		power {
> +			compatible = "ti,twl4030-power";
> +			ti,use_poweroff;
> +		};
> +	};
> +};

Chances are this devices supports cutting off the voltages and
the high frequency oscillator during idle. So you may want to
at some point set compatible = "ti,twl4030-power-idle-osc-off"
here.

Anyways, applying the dts changes into omap-for-v4.6/dt thanks.

Regards,

Tony

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-02-29 21:51     ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 21:51 UTC (permalink / raw)
  To: Paul Kocialkowski
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Benoît Cousson, Liam Girdwood, Javier Martinez Canillas,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

Hi,

* Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org> [160228 04:40]:
> The LG Optimus Black codename sniper is a smartphone that was designed and
> manufactured by LG Electronics (LGE) and released back in 2011.
> It is using an OMAP3630 SoC, GP version.
> 
> This adds devicetree support for the device, with only a few basic features
> supported, such as debug uart, i2c, internal emmc and external mmc.
...
> +&i2c1 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c1_pins>;
> +
> +	clock-frequency = <2600000>;
> +
> +	twl: twl@48 {
> +		reg = <0x48>;
> +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> +		interrupt-parent = <&intc>;
> +
> +		power {
> +			compatible = "ti,twl4030-power";
> +			ti,use_poweroff;
> +		};
> +	};
> +};

Chances are this devices supports cutting off the voltages and
the high frequency oscillator during idle. So you may want to
at some point set compatible = "ti,twl4030-power-idle-osc-off"
here.

Anyways, applying the dts changes into omap-for-v4.6/dt thanks.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-02-29 21:51     ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 21:51 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

* Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> The LG Optimus Black codename sniper is a smartphone that was designed and
> manufactured by LG Electronics (LGE) and released back in 2011.
> It is using an OMAP3630 SoC, GP version.
> 
> This adds devicetree support for the device, with only a few basic features
> supported, such as debug uart, i2c, internal emmc and external mmc.
...
> +&i2c1 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c1_pins>;
> +
> +	clock-frequency = <2600000>;
> +
> +	twl: twl at 48 {
> +		reg = <0x48>;
> +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> +		interrupt-parent = <&intc>;
> +
> +		power {
> +			compatible = "ti,twl4030-power";
> +			ti,use_poweroff;
> +		};
> +	};
> +};

Chances are this devices supports cutting off the voltages and
the high frequency oscillator during idle. So you may want to
at some point set compatible = "ti,twl4030-power-idle-osc-off"
here.

Anyways, applying the dts changes into omap-for-v4.6/dt thanks.

Regards,

Tony

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
@ 2016-02-29 21:54     ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 21:54 UTC (permalink / raw)
  To: Paul Kocialkowski
  Cc: linux-kernel, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Benoît Cousson,
	Liam Girdwood, Javier Martinez Canillas, devicetree,
	linux-arm-kernel, linux-omap

* Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> The LP872x regulator is used in the LG Optimus Black codename sniper to supply
> the external mmc card.

This patch needs to be sent directly to arm@kernel.org to avoid
merge conflicts. I've picked the omap2plus_defconfig related change
into omap-for-v4.6/defconfig.

Regards,

Tony

> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
>  arch/arm/configs/multi_v7_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
> index 8e8b2ac..59d65bd 100644
> --- a/arch/arm/configs/multi_v7_defconfig
> +++ b/arch/arm/configs/multi_v7_defconfig
> @@ -468,6 +468,7 @@ CONFIG_REGULATOR_RK808=y
>  CONFIG_REGULATOR_GPIO=y
>  CONFIG_MFD_SYSCON=y
>  CONFIG_POWER_RESET_SYSCON=y
> +CONFIG_REGULATOR_LP872X=y
>  CONFIG_REGULATOR_MAX14577=m
>  CONFIG_REGULATOR_MAX8907=y
>  CONFIG_REGULATOR_MAX8973=y
> -- 
> 2.6.4
> 

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
@ 2016-02-29 21:54     ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 21:54 UTC (permalink / raw)
  To: Paul Kocialkowski
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Benoît Cousson, Liam Girdwood, Javier Martinez Canillas,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

* Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org> [160228 04:40]:
> The LP872x regulator is used in the LG Optimus Black codename sniper to supply
> the external mmc card.

This patch needs to be sent directly to arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org to avoid
merge conflicts. I've picked the omap2plus_defconfig related change
into omap-for-v4.6/defconfig.

Regards,

Tony

> Signed-off-by: Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org>
> ---
>  arch/arm/configs/multi_v7_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
> index 8e8b2ac..59d65bd 100644
> --- a/arch/arm/configs/multi_v7_defconfig
> +++ b/arch/arm/configs/multi_v7_defconfig
> @@ -468,6 +468,7 @@ CONFIG_REGULATOR_RK808=y
>  CONFIG_REGULATOR_GPIO=y
>  CONFIG_MFD_SYSCON=y
>  CONFIG_POWER_RESET_SYSCON=y
> +CONFIG_REGULATOR_LP872X=y
>  CONFIG_REGULATOR_MAX14577=m
>  CONFIG_REGULATOR_MAX8907=y
>  CONFIG_REGULATOR_MAX8973=y
> -- 
> 2.6.4
> 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
@ 2016-02-29 21:54     ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 21:54 UTC (permalink / raw)
  To: linux-arm-kernel

* Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> The LP872x regulator is used in the LG Optimus Black codename sniper to supply
> the external mmc card.

This patch needs to be sent directly to arm at kernel.org to avoid
merge conflicts. I've picked the omap2plus_defconfig related change
into omap-for-v4.6/defconfig.

Regards,

Tony

> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
>  arch/arm/configs/multi_v7_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
> index 8e8b2ac..59d65bd 100644
> --- a/arch/arm/configs/multi_v7_defconfig
> +++ b/arch/arm/configs/multi_v7_defconfig
> @@ -468,6 +468,7 @@ CONFIG_REGULATOR_RK808=y
>  CONFIG_REGULATOR_GPIO=y
>  CONFIG_MFD_SYSCON=y
>  CONFIG_POWER_RESET_SYSCON=y
> +CONFIG_REGULATOR_LP872X=y
>  CONFIG_REGULATOR_MAX14577=m
>  CONFIG_REGULATOR_MAX8907=y
>  CONFIG_REGULATOR_MAX8973=y
> -- 
> 2.6.4
> 

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
  2016-02-29 21:54     ` Tony Lindgren
@ 2016-02-29 21:58       ` Arnd Bergmann
  -1 siblings, 0 replies; 42+ messages in thread
From: Arnd Bergmann @ 2016-02-29 21:58 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Tony Lindgren, Paul Kocialkowski, Mark Rutland, devicetree,
	Russell King, Pawel Moll, Ian Campbell, linux-kernel,
	Liam Girdwood, Rob Herring, Benoît Cousson, Kumar Gala,
	Javier Martinez Canillas, linux-omap

On Monday 29 February 2016 13:54:46 Tony Lindgren wrote:
> * Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> > The LP872x regulator is used in the LG Optimus Black codename sniper to supply
> > the external mmc card.
> 
> This patch needs to be sent directly to arm@kernel.org to avoid
> merge conflicts. I've picked the omap2plus_defconfig related change
> into omap-for-v4.6/defconfig.

I'd actually prefer it as part of the omap-for-v4.6/defconfig branch.
Taking care of merge conflicts is easy.

	Arnd

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
@ 2016-02-29 21:58       ` Arnd Bergmann
  0 siblings, 0 replies; 42+ messages in thread
From: Arnd Bergmann @ 2016-02-29 21:58 UTC (permalink / raw)
  To: linux-arm-kernel

On Monday 29 February 2016 13:54:46 Tony Lindgren wrote:
> * Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> > The LP872x regulator is used in the LG Optimus Black codename sniper to supply
> > the external mmc card.
> 
> This patch needs to be sent directly to arm at kernel.org to avoid
> merge conflicts. I've picked the omap2plus_defconfig related change
> into omap-for-v4.6/defconfig.

I'd actually prefer it as part of the omap-for-v4.6/defconfig branch.
Taking care of merge conflicts is easy.

	Arnd

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
  2016-02-29 21:58       ` Arnd Bergmann
  (?)
@ 2016-02-29 22:57         ` Tony Lindgren
  -1 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 22:57 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: linux-arm-kernel, Paul Kocialkowski, Mark Rutland, devicetree,
	Russell King, Pawel Moll, Ian Campbell, linux-kernel,
	Liam Girdwood, Rob Herring, Benoît Cousson, Kumar Gala,
	Javier Martinez Canillas, linux-omap

* Arnd Bergmann <arnd@arndb.de> [160229 13:59]:
> On Monday 29 February 2016 13:54:46 Tony Lindgren wrote:
> > * Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> > > The LP872x regulator is used in the LG Optimus Black codename sniper to supply
> > > the external mmc card.
> > 
> > This patch needs to be sent directly to arm@kernel.org to avoid
> > merge conflicts. I've picked the omap2plus_defconfig related change
> > into omap-for-v4.6/defconfig.
> 
> I'd actually prefer it as part of the omap-for-v4.6/defconfig branch.
> Taking care of merge conflicts is easy.

OK will apply then.

Thanks,

Tony

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
@ 2016-02-29 22:57         ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 22:57 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Paul Kocialkowski, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Russell King, Pawel Moll,
	Ian Campbell, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Liam Girdwood,
	Rob Herring, Benoît Cousson, Kumar Gala,
	Javier Martinez Canillas, linux-omap-u79uwXL29TY76Z2rM5mHXA

* Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> [160229 13:59]:
> On Monday 29 February 2016 13:54:46 Tony Lindgren wrote:
> > * Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org> [160228 04:40]:
> > > The LP872x regulator is used in the LG Optimus Black codename sniper to supply
> > > the external mmc card.
> > 
> > This patch needs to be sent directly to arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org to avoid
> > merge conflicts. I've picked the omap2plus_defconfig related change
> > into omap-for-v4.6/defconfig.
> 
> I'd actually prefer it as part of the omap-for-v4.6/defconfig branch.
> Taking care of merge conflicts is easy.

OK will apply then.

Thanks,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 5/5] ARM: multi_v7_defconfig: Enable LP872x regulator support
@ 2016-02-29 22:57         ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-02-29 22:57 UTC (permalink / raw)
  To: linux-arm-kernel

* Arnd Bergmann <arnd@arndb.de> [160229 13:59]:
> On Monday 29 February 2016 13:54:46 Tony Lindgren wrote:
> > * Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> > > The LP872x regulator is used in the LG Optimus Black codename sniper to supply
> > > the external mmc card.
> > 
> > This patch needs to be sent directly to arm at kernel.org to avoid
> > merge conflicts. I've picked the omap2plus_defconfig related change
> > into omap-for-v4.6/defconfig.
> 
> I'd actually prefer it as part of the omap-for-v4.6/defconfig branch.
> Taking care of merge conflicts is easy.

OK will apply then.

Thanks,

Tony

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
  2016-02-29 21:51     ` Tony Lindgren
@ 2016-03-01  8:05       ` Paul Kocialkowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-01  8:05 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-kernel, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Benoît Cousson,
	Liam Girdwood, Javier Martinez Canillas, devicetree,
	linux-arm-kernel, linux-omap

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]

Le lundi 29 février 2016 à 13:51 -0800, Tony Lindgren a écrit :
> Hi,
> 
> * Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> > The LG Optimus Black codename sniper is a smartphone that was designed and
> > manufactured by LG Electronics (LGE) and released back in 2011.
> > It is using an OMAP3630 SoC, GP version.
> > 
> > This adds devicetree support for the device, with only a few basic features
> > supported, such as debug uart, i2c, internal emmc and external mmc.
> ...
> > +&i2c1 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&i2c1_pins>;
> > +
> > +	clock-frequency = <2600000>;
> > +
> > +	twl: twl@48 {
> > +		reg = <0x48>;
> > +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> > +		interrupt-parent = <&intc>;
> > +
> > +		power {
> > +			compatible = "ti,twl4030-power";
> > +			ti,use_poweroff;
> > +		};
> > +	};
> > +};
> 
> Chances are this devices supports cutting off the voltages and
> the high frequency oscillator during idle. So you may want to
> at some point set compatible = "ti,twl4030-power-idle-osc-off"
> here.

Thanks for the pointer, I'll consider adding this in the future!

> Anyways, applying the dts changes into omap-for-v4.6/dt thanks.

Nice, thanks!

Cheers,

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-03-01  8:05       ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-01  8:05 UTC (permalink / raw)
  To: linux-arm-kernel

Le lundi 29 f?vrier 2016 ? 13:51 -0800, Tony Lindgren a ?crit?:
> Hi,
> 
> * Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> > The LG Optimus Black codename sniper is a smartphone that was designed and
> > manufactured by LG Electronics (LGE) and released back in 2011.
> > It is using an OMAP3630 SoC, GP version.
> > 
> > This adds devicetree support for the device, with only a few basic features
> > supported, such as debug uart, i2c, internal emmc and external mmc.
> ...
> > +&i2c1 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&i2c1_pins>;
> > +
> > +	clock-frequency = <2600000>;
> > +
> > +	twl: twl at 48 {
> > +		reg = <0x48>;
> > +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> > +		interrupt-parent = <&intc>;
> > +
> > +		power {
> > +			compatible = "ti,twl4030-power";
> > +			ti,use_poweroff;
> > +		};
> > +	};
> > +};
> 
> Chances are this devices supports cutting off the voltages and
> the high frequency oscillator during idle. So you may want to
> at some point set compatible = "ti,twl4030-power-idle-osc-off"
> here.

Thanks for the pointer, I'll consider adding this in the future!

> Anyways, applying the dts changes into omap-for-v4.6/dt thanks.

Nice, thanks!

Cheers,

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160301/60df0e74/attachment.sig>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
  2016-02-28 12:39   ` Paul Kocialkowski
@ 2016-03-01 19:19     ` Paul Kocialkowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-01 19:19 UTC (permalink / raw)
  To: linux-kernel, Tony Lindgren
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Benoît Cousson, Liam Girdwood,
	Javier Martinez Canillas, devicetree, linux-arm-kernel,
	linux-omap

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

Hi,

Le dimanche 28 février 2016 à 13:39 +0100, Paul Kocialkowski a écrit :
> This adds support for the volume and gesture keys, using TWL4030 keypad.

I noticed this patch hadn't been picked up in: https://git.kernel.org/cgit/linux
/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt

Should I submit it somewhere else instead?

> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
>  arch/arm/boot/dts/omap3-sniper.dts | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-
> sniper.dts
> index 6e31daf..78a1184 100644
> --- a/arch/arm/boot/dts/omap3-sniper.dts
> +++ b/arch/arm/boot/dts/omap3-sniper.dts
> @@ -8,6 +8,7 @@
>  /dts-v1/;
>  
>  #include "omap36xx.dtsi"
> +#include <dt-bindings/input/input.h>
>  
>  / {
>  	model = "LG Optimus Black";
> @@ -226,6 +227,14 @@
>  #include "twl4030.dtsi"
>  #include "twl4030_omap3.dtsi"
>  
> +&twl_keypad {
> +	linux,keymap = <
> +		MATRIX_KEY(0x00, 0x00, KEY_VOLUMEUP)
> +		MATRIX_KEY(0x01, 0x00, KEY_VOLUMEDOWN)
> +		MATRIX_KEY(0x02, 0x00, KEY_SELECT)
> +	>;
> +};
> +
>  /*
>   * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on
> I2C3.
>   * When not powered, these sensors cause the I2C3 clock to stay low at all
> times,

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
@ 2016-03-01 19:19     ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-01 19:19 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Le dimanche 28 f?vrier 2016 ? 13:39 +0100, Paul Kocialkowski a ?crit?:
> This adds support for the volume and gesture keys, using TWL4030 keypad.

I noticed this patch hadn't been picked up in:?https://git.kernel.org/cgit/linux
/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt

Should I submit it somewhere else instead?

> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
> ?arch/arm/boot/dts/omap3-sniper.dts | 9 +++++++++
> ?1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-
> sniper.dts
> index 6e31daf..78a1184 100644
> --- a/arch/arm/boot/dts/omap3-sniper.dts
> +++ b/arch/arm/boot/dts/omap3-sniper.dts
> @@ -8,6 +8,7 @@
> ?/dts-v1/;
> ?
> ?#include "omap36xx.dtsi"
> +#include <dt-bindings/input/input.h>
> ?
> ?/ {
> ?	model = "LG Optimus Black";
> @@ -226,6 +227,14 @@
> ?#include "twl4030.dtsi"
> ?#include "twl4030_omap3.dtsi"
> ?
> +&twl_keypad {
> +	linux,keymap = <
> +		MATRIX_KEY(0x00, 0x00, KEY_VOLUMEUP)
> +		MATRIX_KEY(0x01, 0x00, KEY_VOLUMEDOWN)
> +		MATRIX_KEY(0x02, 0x00, KEY_SELECT)
> +	>;
> +};
> +
> ?/*
> ? * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on
> I2C3.
> ? * When not powered, these sensors cause the I2C3 clock to stay low at all
> times,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160301/b4af7293/attachment-0001.sig>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
  2016-03-01 19:19     ` Paul Kocialkowski
@ 2016-03-01 20:59       ` Tony Lindgren
  -1 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-03-01 20:59 UTC (permalink / raw)
  To: Paul Kocialkowski
  Cc: linux-kernel, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Benoît Cousson,
	Liam Girdwood, Javier Martinez Canillas, devicetree,
	linux-arm-kernel, linux-omap

* Paul Kocialkowski <contact@paulk.fr> [160301 11:19]:
> Hi,
> 
> Le dimanche 28 février 2016 à 13:39 +0100, Paul Kocialkowski a écrit :
> > This adds support for the volume and gesture keys, using TWL4030 keypad.
> 
> I noticed this patch hadn't been picked up in: https://git.kernel.org/cgit/linux
> /kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt
> 
> Should I submit it somewhere else instead?

No sorry I missed it. I've now applied it to omap-for-v4.6/dt
and pushed out.

Regards,

Tony

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
@ 2016-03-01 20:59       ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-03-01 20:59 UTC (permalink / raw)
  To: linux-arm-kernel

* Paul Kocialkowski <contact@paulk.fr> [160301 11:19]:
> Hi,
> 
> Le dimanche 28 f?vrier 2016 ? 13:39 +0100, Paul Kocialkowski a ?crit?:
> > This adds support for the volume and gesture keys, using TWL4030 keypad.
> 
> I noticed this patch hadn't been picked up in:?https://git.kernel.org/cgit/linux
> /kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt
> 
> Should I submit it somewhere else instead?

No sorry I missed it. I've now applied it to omap-for-v4.6/dt
and pushed out.

Regards,

Tony

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
@ 2016-03-01 22:04         ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-01 22:04 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-kernel, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Benoît Cousson,
	Liam Girdwood, Javier Martinez Canillas, devicetree,
	linux-arm-kernel, linux-omap

[-- Attachment #1: Type: text/plain, Size: 846 bytes --]

Le mardi 01 mars 2016 à 12:59 -0800, Tony Lindgren a écrit :
> * Paul Kocialkowski <contact@paulk.fr> [160301 11:19]:
> > Hi,
> > 
> > Le dimanche 28 février 2016 à 13:39 +0100, Paul Kocialkowski a écrit :
> > > This adds support for the volume and gesture keys, using TWL4030 keypad.
> > 
> > I noticed this patch hadn't been picked up in: https://git.kernel.org/cgit/l
> > inux
> > /kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt
> > 
> > Should I submit it somewhere else instead?
> 
> No sorry I missed it. I've now applied it to omap-for-v4.6/dt
> and pushed out.

Great, thanks a lot!

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
@ 2016-03-01 22:04         ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-01 22:04 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Benoît Cousson, Liam Girdwood, Javier Martinez Canillas,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

Le mardi 01 mars 2016 à 12:59 -0800, Tony Lindgren a écrit :
> * Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org> [160301 11:19]:
> > Hi,
> > 
> > Le dimanche 28 février 2016 à 13:39 +0100, Paul Kocialkowski a écrit :
> > > This adds support for the volume and gesture keys, using TWL4030 keypad.
> > 
> > I noticed this patch hadn't been picked up in: https://git.kernel.org/cgit/l
> > inux
> > /kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt
> > 
> > Should I submit it somewhere else instead?
> 
> No sorry I missed it. I've now applied it to omap-for-v4.6/dt
> and pushed out.

Great, thanks a lot!

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support
@ 2016-03-01 22:04         ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-01 22:04 UTC (permalink / raw)
  To: linux-arm-kernel

Le mardi 01 mars 2016 ? 12:59 -0800, Tony Lindgren a ?crit?:
> * Paul Kocialkowski <contact@paulk.fr> [160301 11:19]:
> > Hi,
> > 
> > Le dimanche 28 f?vrier 2016 ? 13:39 +0100, Paul Kocialkowski a ?crit?:
> > > This adds support for the volume and gesture keys, using TWL4030 keypad.
> > 
> > I noticed this patch hadn't been picked up in:?https://git.kernel.org/cgit/l
> > inux
> > /kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt
> > 
> > Should I submit it somewhere else instead?
> 
> No sorry I missed it. I've now applied it to omap-for-v4.6/dt
> and pushed out.

Great, thanks a lot!

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160301/99dd0dbc/attachment.sig>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-03-20 15:58       ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-20 15:58 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-kernel, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Benoît Cousson,
	Liam Girdwood, Javier Martinez Canillas, devicetree,
	linux-arm-kernel, linux-omap

[-- Attachment #1: Type: text/plain, Size: 1629 bytes --]

Hi,

Le lundi 29 février 2016 à 13:51 -0800, Tony Lindgren a écrit :
> Hi,
> 
> * Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> > 
> > The LG Optimus Black codename sniper is a smartphone that was designed and
> > manufactured by LG Electronics (LGE) and released back in 2011.
> > It is using an OMAP3630 SoC, GP version.
> > 
> > This adds devicetree support for the device, with only a few basic features
> > supported, such as debug uart, i2c, internal emmc and external mmc.
> ...
> > 
> > +&i2c1 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&i2c1_pins>;
> > +
> > +	clock-frequency = <2600000>;
> > +
> > +	twl: twl@48 {
> > +		reg = <0x48>;
> > +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> > +		interrupt-parent = <&intc>;
> > +
> > +		power {
> > +			compatible = "ti,twl4030-power";
> > +			ti,use_poweroff;
> > +		};
> > +	};
> > +};
> Chances are this devices supports cutting off the voltages and
> the high frequency oscillator during idle. So you may want to
> at some point set compatible = "ti,twl4030-power-idle-osc-off"
> here.
> 
> Anyways, applying the dts changes into omap-for-v4.6/dt thanks.

It seems that v3 of this patch was merged into your tree instead of v4, which
contains some improvements over v3.

Should I submit a cleanup patch with the diff or can you use v4 instead (if not
too late)?

Cheers,

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-03-20 15:58       ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-20 15:58 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Benoît Cousson, Liam Girdwood, Javier Martinez Canillas,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1649 bytes --]

Hi,

Le lundi 29 février 2016 à 13:51 -0800, Tony Lindgren a écrit :
> Hi,
> 
> * Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org> [160228 04:40]:
> > 
> > The LG Optimus Black codename sniper is a smartphone that was designed and
> > manufactured by LG Electronics (LGE) and released back in 2011.
> > It is using an OMAP3630 SoC, GP version.
> > 
> > This adds devicetree support for the device, with only a few basic features
> > supported, such as debug uart, i2c, internal emmc and external mmc.
> ...
> > 
> > +&i2c1 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&i2c1_pins>;
> > +
> > +	clock-frequency = <2600000>;
> > +
> > +	twl: twl@48 {
> > +		reg = <0x48>;
> > +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> > +		interrupt-parent = <&intc>;
> > +
> > +		power {
> > +			compatible = "ti,twl4030-power";
> > +			ti,use_poweroff;
> > +		};
> > +	};
> > +};
> Chances are this devices supports cutting off the voltages and
> the high frequency oscillator during idle. So you may want to
> at some point set compatible = "ti,twl4030-power-idle-osc-off"
> here.
> 
> Anyways, applying the dts changes into omap-for-v4.6/dt thanks.

It seems that v3 of this patch was merged into your tree instead of v4, which
contains some improvements over v3.

Should I submit a cleanup patch with the diff or can you use v4 instead (if not
too late)?

Cheers,

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-03-20 15:58       ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-20 15:58 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Le lundi 29 f?vrier 2016 ? 13:51 -0800, Tony Lindgren a ?crit?:
> Hi,
> 
> * Paul Kocialkowski <contact@paulk.fr> [160228 04:40]:
> > 
> > The LG Optimus Black codename sniper is a smartphone that was designed and
> > manufactured by LG Electronics (LGE) and released back in 2011.
> > It is using an OMAP3630 SoC, GP version.
> > 
> > This adds devicetree support for the device, with only a few basic features
> > supported, such as debug uart, i2c, internal emmc and external mmc.
> ...
> > 
> > +&i2c1 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&i2c1_pins>;
> > +
> > +	clock-frequency = <2600000>;
> > +
> > +	twl: twl at 48 {
> > +		reg = <0x48>;
> > +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> > +		interrupt-parent = <&intc>;
> > +
> > +		power {
> > +			compatible = "ti,twl4030-power";
> > +			ti,use_poweroff;
> > +		};
> > +	};
> > +};
> Chances are this devices supports cutting off the voltages and
> the high frequency oscillator during idle. So you may want to
> at some point set compatible = "ti,twl4030-power-idle-osc-off"
> here.
> 
> Anyways, applying the dts changes into omap-for-v4.6/dt thanks.

It seems that v3 of this patch was merged into your tree instead of v4, which
contains some improvements over v3.

Should I submit a cleanup patch with the diff or can you use v4 instead (if not
too late)?

Cheers,

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160320/5208b283/attachment.sig>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-03-30 19:13         ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-03-30 19:13 UTC (permalink / raw)
  To: Paul Kocialkowski
  Cc: linux-kernel, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Benoît Cousson,
	Liam Girdwood, Javier Martinez Canillas, devicetree,
	linux-arm-kernel, linux-omap

* Paul Kocialkowski <contact@paulk.fr> [160320 08:59]:
> Le lundi 29 février 2016 à 13:51 -0800, Tony Lindgren a écrit :
> > Anyways, applying the dts changes into omap-for-v4.6/dt thanks.
> 
> It seems that v3 of this patch was merged into your tree instead of v4, which
> contains some improvements over v3.
> 
> Should I submit a cleanup patch with the diff or can you use v4 instead (if not
> too late)?

Oops sorry. Yes please send an incremental patch against v4.6-rc1.

Thanks,

Tony

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-03-30 19:13         ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-03-30 19:13 UTC (permalink / raw)
  To: Paul Kocialkowski
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	Benoît Cousson, Liam Girdwood, Javier Martinez Canillas,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

* Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org> [160320 08:59]:
> Le lundi 29 février 2016 à 13:51 -0800, Tony Lindgren a écrit :
> > Anyways, applying the dts changes into omap-for-v4.6/dt thanks.
> 
> It seems that v3 of this patch was merged into your tree instead of v4, which
> contains some improvements over v3.
> 
> Should I submit a cleanup patch with the diff or can you use v4 instead (if not
> too late)?

Oops sorry. Yes please send an incremental patch against v4.6-rc1.

Thanks,

Tony

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-03-30 19:13         ` Tony Lindgren
  0 siblings, 0 replies; 42+ messages in thread
From: Tony Lindgren @ 2016-03-30 19:13 UTC (permalink / raw)
  To: linux-arm-kernel

* Paul Kocialkowski <contact@paulk.fr> [160320 08:59]:
> Le lundi 29 f?vrier 2016 ? 13:51 -0800, Tony Lindgren a ?crit?:
> > Anyways, applying the dts changes into omap-for-v4.6/dt thanks.
> 
> It seems that v3 of this patch was merged into your tree instead of v4, which
> contains some improvements over v3.
> 
> Should I submit a cleanup patch with the diff or can you use v4 instead (if not
> too late)?

Oops sorry. Yes please send an incremental patch against v4.6-rc1.

Thanks,

Tony

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
  2016-03-30 19:13         ` Tony Lindgren
@ 2016-03-30 19:22           ` Paul Kocialkowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-30 19:22 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-kernel, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Russell King, Benoît Cousson,
	Liam Girdwood, Javier Martinez Canillas, devicetree,
	linux-arm-kernel, linux-omap

[-- Attachment #1: Type: text/plain, Size: 889 bytes --]

Le mercredi 30 mars 2016 à 12:13 -0700, Tony Lindgren a écrit :
> * Paul Kocialkowski <contact@paulk.fr> [160320 08:59]:
> > 
> > Le lundi 29 février 2016 à 13:51 -0800, Tony Lindgren a écrit :
> > > 
> > > Anyways, applying the dts changes into omap-for-v4.6/dt thanks.
> > It seems that v3 of this patch was merged into your tree instead of v4,
> > which
> > contains some improvements over v3.
> > 
> > Should I submit a cleanup patch with the diff or can you use v4 instead (if
> > not
> > too late)?
> Oops sorry. Yes please send an incremental patch against v4.6-rc1.

Ah my bad, nevermind this, I double-checked and everything looks good!

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support
@ 2016-03-30 19:22           ` Paul Kocialkowski
  0 siblings, 0 replies; 42+ messages in thread
From: Paul Kocialkowski @ 2016-03-30 19:22 UTC (permalink / raw)
  To: linux-arm-kernel

Le mercredi 30 mars 2016 ? 12:13 -0700, Tony Lindgren a ?crit?:
> * Paul Kocialkowski <contact@paulk.fr> [160320 08:59]:
> > 
> > Le lundi 29 f?vrier 2016 ? 13:51 -0800, Tony Lindgren a ?crit?:
> > > 
> > > Anyways, applying the dts changes into omap-for-v4.6/dt thanks.
> > It seems that v3 of this patch was merged into your tree instead of v4,
> > which
> > contains some improvements over v3.
> > 
> > Should I submit a cleanup patch with the diff or can you use v4 instead (if
> > not
> > too late)?
> Oops sorry. Yes please send an incremental patch against v4.6-rc1.

Ah my bad, nevermind this, I double-checked and everything looks good!

-- 
Paul Kocialkowski, low-level free software developer on embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160330/cf4985a8/attachment.sig>

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2016-03-30 19:23 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-28 12:39 [PATCH v4 0/5] LG Optimus Black codename sniper support series Paul Kocialkowski
2016-02-28 12:39 ` Paul Kocialkowski
2016-02-28 12:39 ` Paul Kocialkowski
2016-02-28 12:39 ` [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support Paul Kocialkowski
2016-02-28 12:39   ` Paul Kocialkowski
2016-02-28 12:39   ` Paul Kocialkowski
2016-02-29 21:51   ` Tony Lindgren
2016-02-29 21:51     ` Tony Lindgren
2016-02-29 21:51     ` Tony Lindgren
2016-03-01  8:05     ` Paul Kocialkowski
2016-03-01  8:05       ` Paul Kocialkowski
2016-03-20 15:58     ` Paul Kocialkowski
2016-03-20 15:58       ` Paul Kocialkowski
2016-03-20 15:58       ` Paul Kocialkowski
2016-03-30 19:13       ` Tony Lindgren
2016-03-30 19:13         ` Tony Lindgren
2016-03-30 19:13         ` Tony Lindgren
2016-03-30 19:22         ` Paul Kocialkowski
2016-03-30 19:22           ` Paul Kocialkowski
2016-02-28 12:39 ` [PATCH v4 2/5] ARM: dts: omap3-sniper: USB OTG support Paul Kocialkowski
2016-02-28 12:39   ` Paul Kocialkowski
2016-02-28 12:39 ` [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support Paul Kocialkowski
2016-02-28 12:39   ` Paul Kocialkowski
2016-03-01 19:19   ` Paul Kocialkowski
2016-03-01 19:19     ` Paul Kocialkowski
2016-03-01 20:59     ` Tony Lindgren
2016-03-01 20:59       ` Tony Lindgren
2016-03-01 22:04       ` Paul Kocialkowski
2016-03-01 22:04         ` Paul Kocialkowski
2016-03-01 22:04         ` Paul Kocialkowski
2016-02-28 12:39 ` [PATCH v4 4/5] ARM: omap2plus_defconfig: Enable LP872x regulator support Paul Kocialkowski
2016-02-28 12:39   ` Paul Kocialkowski
2016-02-28 12:39 ` [PATCH v4 5/5] ARM: multi_v7_defconfig: " Paul Kocialkowski
2016-02-28 12:39   ` Paul Kocialkowski
2016-02-29 21:54   ` Tony Lindgren
2016-02-29 21:54     ` Tony Lindgren
2016-02-29 21:54     ` Tony Lindgren
2016-02-29 21:58     ` Arnd Bergmann
2016-02-29 21:58       ` Arnd Bergmann
2016-02-29 22:57       ` Tony Lindgren
2016-02-29 22:57         ` Tony Lindgren
2016-02-29 22:57         ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.