* [PATCH 0/3] Configure CPCAP PMIC ADC, charger and OTG for droid 4
@ 2017-03-17 4:10 Tony Lindgren
[not found] ` <20170317041012.26800-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2017-03-17 4:10 UTC (permalink / raw)
To: linux-omap-u79uwXL29TY76Z2rM5mHXA
Cc: Benoît Cousson, devicetree-u79uwXL29TY76Z2rM5mHXA
Hi all,
These patches configure ADC, battery charger and USB OTG for
droid 4.
To test, you'll need current Linux next and the following sets
of patches:
- [PATCH v2] genirq: Add support for nested shared IRQs
- [PATCH 0/4] Regmap IRQ fix and related changes CPCAP
- [PATCH] iio: adc: cpcap: Add minimal support for CPCAP PMIC ADC
- [PATCH] power: supply: cpcap-charger: Add minimal CPCAP PMIC battery charger
- [PATCH] phy: cpcap-usb: Add CPCAP PMIC USB support
Regards,
Tony
Tony Lindgren (3):
ARM: dts: omap4-droid4: Add CPCAP PMIC ADC configuration
ARM: dts: omap4-droid4: Add CPCAP PMIC battery charger configuration
ARM: dts: omap4-droid4: Add CPCAP PMIC OTG PHY configuration
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 49 ++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
--
2.11.1
--
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] 7+ messages in thread
* [PATCH 1/3] ARM: dts: omap4-droid4: Add CPCAP PMIC ADC configuration
[not found] ` <20170317041012.26800-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
@ 2017-03-17 4:10 ` Tony Lindgren
[not found] ` <20170317041012.26800-2-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-17 4:10 ` [PATCH 2/3] ARM: dts: omap4-droid4: Add CPCAP PMIC battery charger configuration Tony Lindgren
2017-03-17 4:10 ` [PATCH 3/3] ARM: dts: omap4-droid4: Add CPCAP PMIC OTG PHY configuration Tony Lindgren
2 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2017-03-17 4:10 UTC (permalink / raw)
To: linux-omap-u79uwXL29TY76Z2rM5mHXA
Cc: Benoît Cousson, devicetree-u79uwXL29TY76Z2rM5mHXA,
Marcel Partap, Michael Scott, Sebastian Reichel
Add CPCAP PMIC ADC configuration.
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Marcel Partap <mpartap-hi6Y0CQ0nG0@public.gmane.org>
Cc: Michael Scott <michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Signed-off-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
---
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
--- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
+++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
@@ -19,6 +19,13 @@
spi-max-frequency = <3000000>;
spi-cs-high;
+ cpcap_adc: adc {
+ compatible = "motorola,mapphone-cpcap-adc";
+ interrupts-extended = <&cpcap 8 0>;
+ interrupt-names = "adcdone";
+ #io-channel-cells = <1>;
+ };
+
cpcap_regulator: regulator {
compatible = "motorola,mapphone-cpcap-regulator";
--
2.11.1
--
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] 7+ messages in thread
* [PATCH 2/3] ARM: dts: omap4-droid4: Add CPCAP PMIC battery charger configuration
[not found] ` <20170317041012.26800-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-17 4:10 ` [PATCH 1/3] ARM: dts: omap4-droid4: Add CPCAP PMIC ADC configuration Tony Lindgren
@ 2017-03-17 4:10 ` Tony Lindgren
[not found] ` <20170317041012.26800-3-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-17 4:10 ` [PATCH 3/3] ARM: dts: omap4-droid4: Add CPCAP PMIC OTG PHY configuration Tony Lindgren
2 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2017-03-17 4:10 UTC (permalink / raw)
To: linux-omap-u79uwXL29TY76Z2rM5mHXA
Cc: Benoît Cousson, devicetree-u79uwXL29TY76Z2rM5mHXA,
Marcel Partap, Michael Scott, Sebastian Reichel
Add CPCAP PMIC battery charger configuration.
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Marcel Partap <mpartap-hi6Y0CQ0nG0@public.gmane.org>
Cc: Michael Scott <michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Signed-off-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
---
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
--- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
+++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
@@ -26,6 +26,25 @@
#io-channel-cells = <1>;
};
+ cpcap_charger: charger {
+ compatible = "motorola,mapphone-cpcap-charger";
+ interrupts-extended = <
+ &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
+ &cpcap 22 0 &cpcap 20 0 &cpcap 19 0 &cpcap 54 0
+ >;
+ interrupt-names =
+ "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
+ "rvrs_mode", "chrgcurr1", "vbusvld", "battdetb";
+ mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW
+ &gpio3 23 GPIO_ACTIVE_LOW>;
+ io-channels = <&cpcap_adc 0 &cpcap_adc 1
+ &cpcap_adc 2 &cpcap_adc 5
+ &cpcap_adc 6>;
+ io-channel-names = "battdetb", "battp",
+ "vbus", "chg_isense",
+ "batti";
+ };
+
cpcap_regulator: regulator {
compatible = "motorola,mapphone-cpcap-regulator";
--
2.11.1
--
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] 7+ messages in thread
* [PATCH 3/3] ARM: dts: omap4-droid4: Add CPCAP PMIC OTG PHY configuration
[not found] ` <20170317041012.26800-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-17 4:10 ` [PATCH 1/3] ARM: dts: omap4-droid4: Add CPCAP PMIC ADC configuration Tony Lindgren
2017-03-17 4:10 ` [PATCH 2/3] ARM: dts: omap4-droid4: Add CPCAP PMIC battery charger configuration Tony Lindgren
@ 2017-03-17 4:10 ` Tony Lindgren
[not found] ` <20170317041012.26800-4-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2017-03-17 4:10 UTC (permalink / raw)
To: linux-omap-u79uwXL29TY76Z2rM5mHXA
Cc: Benoît Cousson, devicetree-u79uwXL29TY76Z2rM5mHXA,
Marcel Partap, Michael Scott, Sebastian Reichel
Add CPCAP PMIC OTG PHY configuration.
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Marcel Partap <mpartap-hi6Y0CQ0nG0@public.gmane.org>
Cc: Michael Scott <michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Signed-off-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
---
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
--- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
+++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
@@ -65,6 +65,29 @@
interrupts = <23 IRQ_TYPE_NONE>;
};
+ cpcap_usb2_phy: phy {
+ compatible = "motorola,mapphone-cpcap-usb-phy";
+ pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
+ pinctrl-1 = <&usb_ulpi_pins>;
+ pinctrl-2 = <&usb_utmi_pins>;
+ pinctrl-3 = <&uart3_pins>;
+ pinctrl-names = "default", "ulpi", "utmi", "uart";
+ #phy-cells = <0>;
+ interrupts-extended = <
+ &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
+ &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
+ &cpcap 48 1
+ >;
+ interrupt-names =
+ "id_ground", "id_float", "se0conn", "vbusvld",
+ "sessvld", "sessend", "se1", "dm", "dp";
+ mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH
+ &gpio1 0 GPIO_ACTIVE_HIGH>;
+ io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
+ io-channel-names = "vbus", "id";
+ vusb-supply = <&vusb>;
+ };
+
led_red: led-red {
compatible = "motorola,cpcap-led-red";
vdd-supply = <&sw5>;
--
2.11.1
--
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] 7+ messages in thread
* Re: [PATCH 1/3] ARM: dts: omap4-droid4: Add CPCAP PMIC ADC configuration
[not found] ` <20170317041012.26800-2-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
@ 2017-03-22 2:19 ` Sebastian Reichel
0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Reichel @ 2017-03-22 2:19 UTC (permalink / raw)
To: Tony Lindgren
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, Benoît Cousson,
devicetree-u79uwXL29TY76Z2rM5mHXA, Marcel Partap, Michael Scott
[-- Attachment #1: Type: text/plain, Size: 1345 bytes --]
Hi,
On Thu, Mar 16, 2017 at 09:10:10PM -0700, Tony Lindgren wrote:
> Add CPCAP PMIC ADC configuration.
>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Cc: Marcel Partap <mpartap-hi6Y0CQ0nG0@public.gmane.org>
> Cc: Michael Scott <michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> Cc: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Signed-off-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Reviewed-by: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Tested-by: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
> arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> --- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> +++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> @@ -19,6 +19,13 @@
> spi-max-frequency = <3000000>;
> spi-cs-high;
>
> + cpcap_adc: adc {
> + compatible = "motorola,mapphone-cpcap-adc";
> + interrupts-extended = <&cpcap 8 0>;
> + interrupt-names = "adcdone";
> + #io-channel-cells = <1>;
> + };
> +
> cpcap_regulator: regulator {
> compatible = "motorola,mapphone-cpcap-regulator";
>
> --
> 2.11.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] ARM: dts: omap4-droid4: Add CPCAP PMIC battery charger configuration
[not found] ` <20170317041012.26800-3-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
@ 2017-03-22 2:20 ` Sebastian Reichel
0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Reichel @ 2017-03-22 2:20 UTC (permalink / raw)
To: Tony Lindgren
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, Benoît Cousson,
devicetree-u79uwXL29TY76Z2rM5mHXA, Marcel Partap, Michael Scott
[-- Attachment #1: Type: text/plain, Size: 1859 bytes --]
Hi,
On Thu, Mar 16, 2017 at 09:10:11PM -0700, Tony Lindgren wrote:
> Add CPCAP PMIC battery charger configuration.
>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Cc: Marcel Partap <mpartap-hi6Y0CQ0nG0@public.gmane.org>
> Cc: Michael Scott <michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> Cc: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Signed-off-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Reviewed-by: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Tested-by: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
> arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> --- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> +++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> @@ -26,6 +26,25 @@
> #io-channel-cells = <1>;
> };
>
> + cpcap_charger: charger {
> + compatible = "motorola,mapphone-cpcap-charger";
> + interrupts-extended = <
> + &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
> + &cpcap 22 0 &cpcap 20 0 &cpcap 19 0 &cpcap 54 0
> + >;
> + interrupt-names =
> + "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
> + "rvrs_mode", "chrgcurr1", "vbusvld", "battdetb";
> + mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW
> + &gpio3 23 GPIO_ACTIVE_LOW>;
> + io-channels = <&cpcap_adc 0 &cpcap_adc 1
> + &cpcap_adc 2 &cpcap_adc 5
> + &cpcap_adc 6>;
> + io-channel-names = "battdetb", "battp",
> + "vbus", "chg_isense",
> + "batti";
> + };
> +
> cpcap_regulator: regulator {
> compatible = "motorola,mapphone-cpcap-regulator";
>
> --
> 2.11.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] ARM: dts: omap4-droid4: Add CPCAP PMIC OTG PHY configuration
[not found] ` <20170317041012.26800-4-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
@ 2017-03-22 2:20 ` Sebastian Reichel
0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Reichel @ 2017-03-22 2:20 UTC (permalink / raw)
To: Tony Lindgren
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, Benoît Cousson,
devicetree-u79uwXL29TY76Z2rM5mHXA, Marcel Partap, Michael Scott
[-- Attachment #1: Type: text/plain, Size: 2042 bytes --]
Hi,
On Thu, Mar 16, 2017 at 09:10:12PM -0700, Tony Lindgren wrote:
> Add CPCAP PMIC OTG PHY configuration.
>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Cc: Marcel Partap <mpartap-hi6Y0CQ0nG0@public.gmane.org>
> Cc: Michael Scott <michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> Cc: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Signed-off-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Reviewed-by: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Tested-by: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
-- Sebastian
> ---
> arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> --- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> +++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> @@ -65,6 +65,29 @@
> interrupts = <23 IRQ_TYPE_NONE>;
> };
>
> + cpcap_usb2_phy: phy {
> + compatible = "motorola,mapphone-cpcap-usb-phy";
> + pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
> + pinctrl-1 = <&usb_ulpi_pins>;
> + pinctrl-2 = <&usb_utmi_pins>;
> + pinctrl-3 = <&uart3_pins>;
> + pinctrl-names = "default", "ulpi", "utmi", "uart";
> + #phy-cells = <0>;
> + interrupts-extended = <
> + &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
> + &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
> + &cpcap 48 1
> + >;
> + interrupt-names =
> + "id_ground", "id_float", "se0conn", "vbusvld",
> + "sessvld", "sessend", "se1", "dm", "dp";
> + mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH
> + &gpio1 0 GPIO_ACTIVE_HIGH>;
> + io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
> + io-channel-names = "vbus", "id";
> + vusb-supply = <&vusb>;
> + };
> +
> led_red: led-red {
> compatible = "motorola,cpcap-led-red";
> vdd-supply = <&sw5>;
> --
> 2.11.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-03-22 2:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17 4:10 [PATCH 0/3] Configure CPCAP PMIC ADC, charger and OTG for droid 4 Tony Lindgren
[not found] ` <20170317041012.26800-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-17 4:10 ` [PATCH 1/3] ARM: dts: omap4-droid4: Add CPCAP PMIC ADC configuration Tony Lindgren
[not found] ` <20170317041012.26800-2-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-22 2:19 ` Sebastian Reichel
2017-03-17 4:10 ` [PATCH 2/3] ARM: dts: omap4-droid4: Add CPCAP PMIC battery charger configuration Tony Lindgren
[not found] ` <20170317041012.26800-3-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-22 2:20 ` Sebastian Reichel
2017-03-17 4:10 ` [PATCH 3/3] ARM: dts: omap4-droid4: Add CPCAP PMIC OTG PHY configuration Tony Lindgren
[not found] ` <20170317041012.26800-4-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-22 2:20 ` Sebastian Reichel
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.