From patchwork Wed Feb 13 12:32:47 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: 158207 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp15791jaa; Wed, 13 Feb 2019 04:34:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IYTS05f7BnCmFuB3r4lAp70f3BwEaCt7k7sjrT9iY0/jY4ZIUlZhXoQKPldh7ak8z/gTrtf X-Received: by 2002:a63:b24a:: with SMTP id t10mr242275pgo.223.1550061263441; Wed, 13 Feb 2019 04:34:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550061263; cv=none; d=google.com; s=arc-20160816; b=C0ZCErqQo+VHept3uGfi2lGKseqHfcEbyfr6x2XAFNRTAxzJ++SYgRdx0ar9g4WMJ2 me/NCbI5IE+4YbPNp0+nJkLyop9ekg3Kss3scdt5LvDcd65GHf9y4CCJZZwM8Gg1SzVH jGf9TLsesaDMcpeEagvlkbLSLgIV5qDcQM3t5OxYgnG26tvtSKrqOcflJj0UUgEjJMZ0 GUlj2yfL1MF8glc0v/fJ1zxs4MG2k4O1RyUCEmtPO7C9UQYIbNOPAiBKejVIkNVS+nvi VV7jUIFI1CwGUE4zxZ1yTHVWOA30B+pIBTEJm7Ujvu30T7iqv1y3JtZqaCP9zJIagVhw /9YA== 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=FGaARlyO45jSVlRCo3Ba46kwztIqiQvxEWOsLPfUyBY=; b=F+UU0xj0+15KMRtUlKtEjKdVYO1tsXhE70nmbVBtwYCi32WH9KGdisnPn1UytbynIb IXS/AN3pxCSNXB06FuUbawflYIxd5JvRwl605nVf7w4bQsYrQym4ie13Kukd81EWK9XZ eA6eB4nynho5mxbbQgGMnowTc7KFOMW0y7G1TYAXLq83+QT1sjX8YLXdKcsTfQyBtziA fAfTidKEprg8KVwv5xRHMT5dWvjrY6hAsJX97vIQooaqUykZozeDFCgRMRa+vFAbv3Yi fmLDBjpRklDv/VEvTzuY+MtVe1rCw91B4hd/5qD23hFaHr7whgOzqlKVc6qrwGMCoJId NP3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tmteZ4Ya; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 ay3si6019010plb.58.2019.02.13.04.34.23; Wed, 13 Feb 2019 04:34:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=tmteZ4Ya; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S2388400AbfBMMeV (ORCPT + 7 others); Wed, 13 Feb 2019 07:34:21 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42752 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392159AbfBMMeU (ORCPT ); Wed, 13 Feb 2019 07:34:20 -0500 Received: by mail-pf1-f195.google.com with SMTP id n74so1074551pfi.9 for ; Wed, 13 Feb 2019 04:34:20 -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=FGaARlyO45jSVlRCo3Ba46kwztIqiQvxEWOsLPfUyBY=; b=tmteZ4Yadx1Xj9sG8FjJzb/XQPKilq9yCsNYjoVZLRWUeNlKFBj20Hj8lf4izmYo+Y bbeGCWqccyS9rQx2mLdyJdaEyxg9LQoJHkArA1j4+WFLIBkZ/KsWvN4ODiaQxNttHHkR EwMAQ79vWNIuNG+PBfqs86YTYnu68D6h2ZruC0dK3pdyx7t9OTXKx+SzPO0DDz3kPl7X Pl9ZnKlNAzcHzZatc7X9UWT1XsN3zg5o6jD0fqONbJ4Rhm8+a5ZizaCaK1lwGBmReHOj IY4QGtiQ/igG6Lco8H4XRwozAfMo9moQS56Kiu8zFudHq+QrCqC3OnbFRLQlPQSC4Sml +nEg== 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=FGaARlyO45jSVlRCo3Ba46kwztIqiQvxEWOsLPfUyBY=; b=JkneaEbmreyKlD84ljEuYfUxK7mCRYFFoEC2zPkcU7DoCxCY5OEqxoTQikF4t/9xbv UMbV8WOll0RBocYk/r8SKeTk7NV6k7fJOJTvhFRRX0Z1Dmp53nxuRBR7eb/oraWe2JDY D2AZ+Sem1LhW6oV2n1pGTojLOuDVFizxP7qcqcvQzLFyV0wbwXOe8tyeuzTIaiwedM+U 9uoh9UtythCxAndk2+38A2d/yqPKlmBjIzO8coNUc4xJda2lhJEeXxCsoFiEDewz0ZuD WwHYtAoCWVkxvTqGkfS/244J0feuVFZ0pQa7y4+EEl9/f7h0Y3TDaofwCBzUgJJeYsnD oN7g== X-Gm-Message-State: AHQUAuYMTBsi5qAjGG9TXAH3vITM5vxJCp889DnilOXREKHvsgQFj4nZ 4jTdAxgLyU+RauCEE5nsT0N1gRm0sTw7KA== X-Received: by 2002:a63:d347:: with SMTP id u7mr232319pgi.383.1550061259786; Wed, 13 Feb 2019 04:34:19 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id l5sm21223640pgl.51.2019.02.13.04.34.15 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Feb 2019 04:34:19 -0800 (PST) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de Cc: olof@lixom.net, orsonzhai@gmail.com, zhang.lyra@gmail.com, 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 v2 3/5] arm64: dts: sprd: Add SC2731 charger device Date: Wed, 13 Feb 2019 20:32:47 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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..dbf6242 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,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 {