Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1752937rdf; Sun, 5 Nov 2023 12:50:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKaHku5Y7RPvW3Ol81N+smQWFVE6ycu/LhTsLnfKmRhh8YIVqpk3bc/mQKNcA9To2cHQXN X-Received: by 2002:a05:6808:4ca:b0:3b2:e765:9beb with SMTP id a10-20020a05680804ca00b003b2e7659bebmr27475353oie.56.1699217435947; Sun, 05 Nov 2023 12:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699217435; cv=none; d=google.com; s=arc-20160816; b=u429SuIZvyt1Bxy6r6+b7Z2Q7tGxZI7YdlD0bGtYa4NSdp5tJjk20hYBfFGOhkvgZ7 k/4KrTPXBaJqJmo1gSx1g+ZPxjYHxwcCN6BFGWT9rYGwNiGRqVFFKNIxIZRJvxizt33s cQb0jPunVTJorvfrxzct83SHSIN2BqJHlbF2wCAdciqTGroHlekaL/DDwyDScmOGzQAI dEk5M3w39vdrXxHH9XEaYM2jQk9DXzpojtM+4/vUQcAd3skCdfDARux0nuCf2B6fbZIb k7YXSSYjj86JAOav3XrknVC/eNY0QTgjoKd0DnPbGlpBJfvrpMu37r/hihIp6NRZHQSb Dx2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from:feedback-id :dkim-signature:dkim-signature; bh=O8fDzcjgQ7pbEFlZ3Prz4CvsbP5ODoTbqCZT7YXk//4=; fh=Zg6yj1iLReYuu+XOEmRDwyizklD9g5ULV0IopsbQ56w=; b=eATV65YH0YbIFVDd6NI2tKn8LTs/GcEdSm+y9E/H5cpELHBYOi0cYU7owavM2TjjqX hg1zKsJ0Jf6gIOVHEugoDOmjRWnW5tfTeWCWncfDw3YhARql7TyKyVJJHiItRG3QdQGQ h3CeaaRHjqbthCGTiPaDJ98XZHbtYcqlDkIBtsY5tSvyFWJXnVvKmaIl/venQU7dlknS Zs7/zFqXGtmAciKY0+/GyYM6HUsHShLp5vqokD7k4ww77IcFMS0mLkhoJDAPSp18+2FC E2WgX25yogYvGfj8zy2w2CcAKrA4wyrNNlr8lo2XZZcMSVfHCmqMxa0stmyfRm3q6/6/ S8mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mai.rs header.s=fm2 header.b=PVyRY3wR; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=eFcYhvQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t19-20020a056a0021d300b006bf0f06c31dsi6602835pfj.166.2023.11.05.12.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 12:50:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@mai.rs header.s=fm2 header.b=PVyRY3wR; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=eFcYhvQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5354780789C4; Sun, 5 Nov 2023 12:50:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbjKEUtz (ORCPT + 99 others); Sun, 5 Nov 2023 15:49:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjKEUsR (ORCPT ); Sun, 5 Nov 2023 15:48:17 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0D02F2; Sun, 5 Nov 2023 12:48:13 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4F3485C00D8; Sun, 5 Nov 2023 15:48:13 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 05 Nov 2023 15:48:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mai.rs; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1699217293; x= 1699303693; bh=O8fDzcjgQ7pbEFlZ3Prz4CvsbP5ODoTbqCZT7YXk//4=; b=P VyRY3wR5akHcZyhS/AuMA4WJeXBJbynx4JlprkOQkRhnFExy52chkCQlkk3b8//Q Ptb1jZyoAgCKmZkl4oiwycb10hwT7YvizP+dWUYL8mrXi3bi1K5x2Oxi2NUrHwGG XnyT08YnwmvHdXGZdhp0klcGk+fWvqQuf1Ambmf2KJ5nDMgmubqeQWM47XDYc5qC qvFtsS95FKyWe9Ta5UfGSDyuJdfO3pg6kRx9959jUzK8KthWYMctD9i2wiy50rSm kCAUWaVX2A6r3m6lhXhaukm/iZ6NylcvJjM/NJfHrq5RcAPSk6fJhlNrMo8uMXgs 93JQ0cTBEsem71dCgaJng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1699217293; x=1699303693; bh=O 8fDzcjgQ7pbEFlZ3Prz4CvsbP5ODoTbqCZT7YXk//4=; b=eFcYhvQeQBcZ1rUaP oJynt5vuKzT5NYNum4/RBiqcw40Hqy2GQ0Nxl/tQhvXhfssggD8U2eeEbG2JAs4V Dv3cjbq39jon/gG87NO3yihjQgdy/VpyR2Jc5OczXoLYg/lM1PPmer58v7kSdzpB MWzZCTW8tSTV9NzLuG+ipba9dBYZHvvYnMacn5Bf08/r1KazH6BAVwGdSAvQDbdr DkPRkDPpaM4SGlgoUw53b3w9mUriz6RVbIyvf5wVGtZZCXo+RXicdpZlBbiaVx5Y eyBlSMyKuKNzhSo21fU3nlliHRZK60uvSi3FlccH+P/AURgaS+owEQi/2QgBneEy 56eAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudduvddgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepuehrhigr nhhtucforghirhhsuceosghrhigrnhhtsehmrghirdhrsheqnecuggftrfgrthhtvghrnh epvdegkeekkeehffehveeltdekvdfhffejuefgjeelfeefgffgleekheeffefggeefnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghrhigrnh htsehmrghirdhrsh X-ME-Proxy: Feedback-ID: i891b436e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Nov 2023 15:48:11 -0500 (EST) From: Bryant Mairs To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Linus Walleij , 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 Message-ID: <20231105204759.37107-6-bryant@mai.rs> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231105204759.37107-1-bryant@mai.rs> References: <20231105204759.37107-1-bryant@mai.rs> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 05 Nov 2023 12:50:11 -0800 (PST) Enable charging support. Signed-off-by: Bryant Mairs --- .../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 +#include #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 = ; + 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