From patchwork Sun Nov 5 20:46:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryant Mairs X-Patchwork-Id: 161780 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2300004vqu; Sun, 5 Nov 2023 12:50:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/28CF+lK030H9JnD6LqgYCEFaAk2ggLRMwhJV0/9Vr0VK8qRqT0mImMGCIE1e6HAjG+Tn X-Received: by 2002:a0d:d696:0:b0:5ac:fe2d:5edf with SMTP id y144-20020a0dd696000000b005acfe2d5edfmr9221289ywd.44.1699217452642; Sun, 05 Nov 2023 12:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699217452; cv=none; d=google.com; s=arc-20160816; b=kH4mFsrsjR0p9msLQk8nMbBZYmwu4ill+Y6llGlaZRYfduCwZc3qwnNJR45O4jHrn0 GYiJRmLbhcC9j7ZjG3vXpCSvpVkUMfJskm29D22jrifBjC362j8mUJuyaJ9QWt65rDx/ ofcE/zMn65pJIPFKHE4CcvGGmg3jcVlTjtya9b13fXGba05qfOFWgVWUQ7foFVjqGrVi z0mAGMJBCSpv6kN1/CVk/Baf1Rt/DxBEbFWPbZcDufuUhCRS10GT1sT80NxZOrGDAhUB dGS4BkBSJ1MCXw3z6+YHuwuo8dai6mTB6uDCSh0Dozz6eeTDC8J2IfyeALjwgczcCB0s 0FQw== 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 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p56-20020a056a0026f800b006c3212b57aasi5961644pfw.325.2023.11.05.12.50.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 12:50:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; 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 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id B8C278087E11; Sun, 5 Nov 2023 12:50:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbjKEUtz (ORCPT + 34 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 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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 05 Nov 2023 12:50:31 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781758639767341500 X-GMAIL-MSGID: 1781758639767341500 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";