From patchwork Mon Jan 21 07:38:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 156160 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6079278jaa; Sun, 20 Jan 2019 23:39:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN5UEKZnO+jEoae8fCMwtKkWZdVXUihnaUiKOlLRg0TmhmuVCCt1HKqPuYKfzCPgNkkCkyc0 X-Received: by 2002:a17:902:298a:: with SMTP id h10mr29337755plb.312.1548056383281; Sun, 20 Jan 2019 23:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548056383; cv=none; d=google.com; s=arc-20160816; b=w8X7scG4nXA8Mk21m/h2Awj/1UQOfRsF7gf/oOtkl9DX/P9PR54rl96DgYiqYFwP0P YfJT53b7ID0HOiSQ9ZOdbUiv/yA2OUrYAGV68Y2iw9FeQA75al6Ef4RirWfqaSeS8mZl GdLaaEyNvvoo0RFG9marwDgBxzHhvpSLYpPAFY8QFJ4ktvAaQCReuLS8WCBx3yW7Efhv BrhqHgLTNpnYPVDDIRREY9ulj3yqRoE6UX5m7SsLmweO8CXfqNlT9mGjslgchl0KEiZT SPrVeUbWUF1PxSZpLyvKsoqG4tSGsefn+dxYZRAU8J/ZPgNfVLieMIeEx149jd8k7LsT oopg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=WoGfmBXbkp22eB752R6+rnQEzLObCNo8qMMo8guRvqY=; b=yHEwwcsLpkykthR//wZy8yFFywikIapr7g+2ssZkKh1FM8ul7QqlDGUh3SVlCb2Zkt CcYV7AIjYYYMohI0RdAkNErnVoP+yAksjmy8gBhkMIj2rhAV4JTAQzZzHlq+B46d6i9t fCSbFwqoa55hreg4Szv3mChfSYzIQ9GuPiCzXaNoW8BAMVxN95ce6U32XqbT4XXjrODq 1DN9NAyWF5WBp6gWBUQ1lXPDV+iaT4IBLcHgkAKGVWnkg5cf1qcZCZ10IB8N21xC9bBy p7MVZPx043dLXfGk1BJeUsOgnspRMZnpmNnyu6xrt6Fzkm3+xgMgjXE68w/JIMOkogjS FqhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DsjVkACW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t186si11838643pfd.68.2019.01.20.23.39.43; Sun, 20 Jan 2019 23:39:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DsjVkACW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728945AbfAUHjl (ORCPT + 24 others); Mon, 21 Jan 2019 02:39:41 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44305 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728573AbfAUHjj (ORCPT ); Mon, 21 Jan 2019 02:39:39 -0500 Received: by mail-pl1-f194.google.com with SMTP id e11so9384786plt.11 for ; Sun, 20 Jan 2019 23:39:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=WoGfmBXbkp22eB752R6+rnQEzLObCNo8qMMo8guRvqY=; b=DsjVkACWlqglSNGhM3nJdcZLu4R32jh+mLpC+C0R8ZR2N8fnNBvR0EfJ1B5kSLvCEc 9GJ6T6u0AmmNjTpYIo1ypZtvKSnigJjdVVwpSLIjNnGqHFUjL/PyHAWW7NcqDIFaH5XH SoioOQbIvDHzqYpVTvIJACl9xl/c6lIO4SJLc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=WoGfmBXbkp22eB752R6+rnQEzLObCNo8qMMo8guRvqY=; b=XIwU5btIwuJ0IhjK5Tf97ujRCVfKmLFpfrDChsKOpP7PbUw2xOKJazhCaJ84YBmqRz cB2mFw9HDGDgV9Gctsm2t33E6BgPE5L1QyRd5wvTweJlfirMUXSjh+1OQrnp5CGgcpBE K9PHmzdZjN9meTd3mJOzQ9UIHkQ5B78DyXCgk84PO8DrOCDufpKLVO5AoVDAh5wEMmRQ V0ifSrOWLPFUBiSfH30XB8ir92NeTPAiqe8FH+XqkM2OY/PjopmtgfWhiVojgcPVsoKG mPUKJbxpyRtmkzwb30opR9lTXeNHeyeN0ZVCk6H3gNE/LDqIxAxJdIdcNLCyRGcMLg35 34Pg== X-Gm-Message-State: AJcUukeq9pgq2sHBHHCED1mJ2nUN90VS7d5EYSH89rAA2Wzqz62/Yzqg LfVexoN6Cba7TtqW4aIrRe+1ZJVABJZjNw== X-Received: by 2002:a17:902:2ec1:: with SMTP id r59mr29453151plb.254.1548056378468; Sun, 20 Jan 2019 23:39:38 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id h19sm15583083pfn.114.2019.01.20.23.39.34 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Jan 2019 23:39:37 -0800 (PST) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de, olof@lixom.net, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: devicetree@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 3/4] arm64: dts: sprd: Add SC2731 charger device Date: Mon, 21 Jan 2019 15:38:30 +0800 Message-Id: <1f57f120e915ea9af75a45f48c8ef2f446d10486.1548052878.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add charger device node and related battery node for SC2731 PMIC. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 6 ++++++ arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index a2edc25..b52eaf0 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -17,6 +17,12 @@ #address-cells = <1>; #size-cells = <0>; + charger@0 { + compatible = "sprd,sc27xx-charger", "sprd,sc2731-charger"; + reg = <0x0>; + monitored-battery = <&bat>; + }; + led-controller@200 { compatible = "sprd,sc27xx-bltc", "sprd,sc2731-bltc"; reg = <0x200>; diff --git a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts index 3bd18e3..2a963bd 100644 --- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts @@ -41,6 +41,22 @@ #size-cells = <2>; ranges; }; + + bat: battery { + compatible = "simple-battery"; + charge-full-design-microamp-hours = <1900000>; + charge-term-current-microamp = <120000>; + constant_charge_voltage_max_microvolt = <4350000>; + internal-resistance-micro-ohms = <250000>; + ocv-capacity-celsius = <20>; + ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>, + <4022000 85>, <3983000 80>, <3949000 75>, + <3917000 70>, <3889000 65>, <3864000 60>, + <3835000 55>, <3805000 50>, <3787000 45>, + <3777000 40>, <3773000 35>, <3770000 30>, + <3765000 25>, <3752000 20>, <3724000 15>, + <3680000 10>, <3605000 5>, <3400000 0>; + }; }; &uart0 {