All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryant Mairs <bryant@mai.rs>
To: Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-input@vger.kernel.org
Subject: [PATCH 5/7] ARM: dts: qcom: apq8026-samsung-milletwifi: Enable charger
Date: Sun,  5 Nov 2023 21:46:20 +0100	[thread overview]
Message-ID: <20231105204759.37107-6-bryant@mai.rs> (raw)
In-Reply-To: <20231105204759.37107-1-bryant@mai.rs>

Enable charging support.

Signed-off-by: Bryant Mairs <bryant@mai.rs>
---
 .../qcom/qcom-apq8026-samsung-milletwifi.dts  | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-milletwifi.dts b/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-milletwifi.dts
index 545992091c6b..910e8d2f69b0 100644
--- a/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-milletwifi.dts
+++ b/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-milletwifi.dts
@@ -7,6 +7,7 @@
 /dts-v1/;
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/power/summit,smb347-charger.h>
 #include "qcom-msm8226.dtsi"
 #include "qcom-pm8226.dtsi"
 
@@ -258,6 +259,26 @@ accelerometer@1d {
 	};
 };
 
+&blsp1_i2c3 {
+	status = "okay";
+
+	charger@6a {
+		compatible = "summit,smb358";
+		reg = <0x6a>;
+
+		interrupts-extended = <&tlmm 115 IRQ_TYPE_EDGE_FALLING>;
+
+		pinctrl-0 = <&charger_int_default_state>;
+		pinctrl-names = "default";
+
+		summit,enable-usb-charging;
+		summit,enable-charge-control = <SMB3XX_CHG_ENABLE_SW>;
+		summit,fast-voltage-threshold-microvolt = <3000000>;
+		summit,chip-temperature-threshold-celsius = <130>;
+		summit,usb-current-limit-microamp = <1500000>;
+	};
+};
+
 &blsp1_i2c4 {
 	status = "okay";
 
@@ -495,6 +516,13 @@ backlight_vddio_default_state: backlight-vddio-default-state {
 		bias-disable;
 	};
 
+	charger_int_default_state: charger-int-default-state {
+		pins = "gpio115";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-disable;
+	};
+
 	muic_int_default_state: muic-int-default-state {
 		pins = "gpio67";
 		function = "gpio";
-- 
2.41.0


  parent reply	other threads:[~2023-11-05 20:49 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-05 20:46 [PATCH 0/7] Add samsung-milletwifi Bryant Mairs
2023-11-05 20:46 ` [PATCH 1/7] dt-bindings: input: melfas,mms114: add MMS252 compatible Bryant Mairs
2023-11-05 21:08   ` Linus Walleij
2023-11-06  7:36   ` Krzysztof Kozlowski
2024-01-23  3:33   ` Dmitry Torokhov
2023-11-05 20:46 ` [PATCH 2/7] dt-bindings: arm: qcom: Document samsung,milletwifi device Bryant Mairs
2023-11-06  7:37   ` Krzysztof Kozlowski
2023-11-06  8:07     ` Bryant Mairs
2023-11-05 20:46 ` [PATCH 3/7] ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 8.0 Wi-Fi Bryant Mairs
2023-11-07  1:28   ` kernel test robot
2023-11-07  7:29   ` Krzysztof Kozlowski
2023-11-07 11:26     ` Bryant Mairs
2023-11-05 20:46 ` [PATCH 4/7] ARM: dts: qcom: Disable pm8941 & pm8226 smbb charger by default Bryant Mairs
2023-11-06  7:39   ` Krzysztof Kozlowski
2023-11-05 20:46 ` Bryant Mairs [this message]
2023-11-06  7:40   ` [PATCH 5/7] ARM: dts: qcom: apq8026-samsung-milletwifi: Enable charger Krzysztof Kozlowski
2023-11-05 20:46 ` [PATCH 6/7] ARM: dts: qcom: apq8026-samsung-milletwifi: Enable Wi-Fi and Bluetooth Bryant Mairs
2023-11-06  7:40   ` Krzysztof Kozlowski
2023-11-16  4:24   ` kernel test robot
2023-11-05 20:46 ` [PATCH 7/7] ARM: dts: qcom: apq8026-samsung-milletwifi: Enable modem Bryant Mairs
2023-11-06  7:41   ` Krzysztof Kozlowski
2023-11-05 21:19 ` [PATCH 0/7] Add samsung-milletwifi Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231105204759.37107-6-bryant@mai.rs \
    --to=bryant@mai.rs \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.