From patchwork Wed Feb 13 12:32:45 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: 158205 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp15521jaa; Wed, 13 Feb 2019 04:34:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IbuT5pUYoZz4IpiEsM2cJWUhQN2+1VZ5jU2N6ujNISaJGztf0LDbQClVibw9hDPHd8f0Z2T X-Received: by 2002:a62:528e:: with SMTP id g136mr286145pfb.111.1550061254102; Wed, 13 Feb 2019 04:34:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550061254; cv=none; d=google.com; s=arc-20160816; b=IWw9ne6fr6jAzO1e+NeJBY8kHgXdmHXKX2OOYTpmt8jilG9vbL4IbXaprSPgieJ5Vd QwGe6aFKeHgEKRGGGScf/UTvDd2TsUVmijim/g/DdbGF+/ROZoea2q5Jt39gHLCe1EzG OycP6BsIHLfAIH4JN/BbQROVdtPqwS+BD0qQ1EPS96SMzYDK5GTedHMxr9DzRr2IZNi8 rZPTcI7m/LlE2Hy3/p4yQ9AwShq0PSJOQwXfvbfBfiLPO11OwHwsmRuaPR1xe/9r2mh5 rDmppaP2BWb1ddHc4fPqz1RvLSzF709DXV/X6L7TCn/3oh5I5MKMzuG7nrlznhGeLpUE yqPw== 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=5wfuddSW6tp5kYw+zApWLVum/WpZ+TiS9aNH3MKdYzo=; b=nY6oaiIorC4s66IDMmGQNTX5BwrR28Du5d/M6T17SUIXrdriKyx6A8nHQ3thLsJeP7 eh84YIgUCWOICU2XI9GQ4Kkxd7yDGTCl9SZt9ETpylph4vYTbgKyntxgFKBD+Wr1N3T6 tTI3E7dbGn9r+7LPwlOacxAhQv0e5cNh3iezYZqgMWyruSiThRdAHssinCKVB15O7Q64 kHi1ZWol1cx75tbxWkNJJhM7Vup+XUU9jbtXvqi0N01LTek5Rh8++BPU4C4RfSUrpjoj jIoLKW8X1HYkIsQH/CrSsvSR1t8NY3IKiGwSJT3hG4o7UxTpHsoEQ/g002dKctQw+voR cKIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YDWzlYBr; 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 c5si9264473pgq.434.2019.02.13.04.34.13; Wed, 13 Feb 2019 04:34:14 -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=YDWzlYBr; 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 S2389052AbfBMMeN (ORCPT + 7 others); Wed, 13 Feb 2019 07:34:13 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:32910 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392136AbfBMMeM (ORCPT ); Wed, 13 Feb 2019 07:34:12 -0500 Received: by mail-pl1-f195.google.com with SMTP id y10so1112546plp.0 for ; Wed, 13 Feb 2019 04:34:11 -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=5wfuddSW6tp5kYw+zApWLVum/WpZ+TiS9aNH3MKdYzo=; b=YDWzlYBrahihGwb5mYJoLKo/xZVNfbd33CPt1cbrzZWuoYd4mrO9sghY/jilXAFcPb b+yIqYLo+3iLfK4qo47FIeJm2alKAr0zD7IigOBYuDuxyVSpMP81wwKWqbTBYYM32ikY 7eP1H9UzdYWPJFg2EjQnEimpR2CCNOZFBn4j1318kKvcCLVBMmufv0TQAAgb3M4oLi1l 30XJVvAP2EU26QLC1+acFBj30jN9YNYmUNZ9h8iy2/P/sF5ZNAOJHkXaW5iopbmtTGVe 6FnpZ6gyNHgcI2r4cNt4APQ10EgSKsA5vc7FTpYqtJ3E7dF+lR4m5xxIEi9dEOxUb171 KI1A== 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=5wfuddSW6tp5kYw+zApWLVum/WpZ+TiS9aNH3MKdYzo=; b=IFtjuFAczHs92+nC3XTSQyYj/dc9l/um3sFNcYBtaynin3o4tAJkcQN1InlLQnSkjU 5yGgvMWum7aeSCXD/zXG3Fl9qTCSE6qt345lcr7827RD0nZJbXeKJNFWESC4tvZj94YJ S85ohP6y5hhBptfCVMfjLAGqouZq68GHHCGvVTUGPkdt54uv4amU/0HGvFw5OSZlBWSd kpIMu3PvjK1cMFoyhVFBees2yxec/fcqi0kPm5iUGjsaN6HmJZZVPGZU7HZD8xF6Ei5/ d59Vr5xuYRwc9JezUMV0iNoGf2f/ZLoBCvRD8GO5dIHJmaE+IiR+SJqvKzYVsJ9RfLHp i5PQ== X-Gm-Message-State: AHQUAuZrUR1G7vbFuCbRtKuXkQYgP45kAoQhCDBHPX4FBok7o81HHdOp SPf1UlLIr4HhEvuTF3iP4Jup0g== X-Received: by 2002:a17:902:bd0b:: with SMTP id p11mr274548pls.259.1550061251528; Wed, 13 Feb 2019 04:34:11 -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.07 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Feb 2019 04:34:10 -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 1/5] arm64: dts: sprd: Remove PMIC INTC irq trigger type Date: Wed, 13 Feb 2019 20:32:45 +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 The Spreadtrum PMIC INTC controller has no registers to set trigger type, since it is always high level trigger as default. So remove its child devices' irq trigger type setting and change #interrupt-cells to 1. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index 82bd642..f2f2aa5 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -13,7 +13,7 @@ spi-max-frequency = <26000000>; interrupts = ; interrupt-controller; - #interrupt-cells = <2>; + #interrupt-cells = <1>; #address-cells = <1>; #size-cells = <0>; @@ -43,14 +43,14 @@ compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc"; reg = <0x280>; interrupt-parent = <&sc2731_pmic>; - interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <2>; }; pmic_eic: gpio@300 { compatible = "sprd,sc27xx-eic"; reg = <0x300>; interrupt-parent = <&sc2731_pmic>; - interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <5>; gpio-controller; #gpio-cells = <2>; interrupt-controller; @@ -69,7 +69,7 @@ compatible = "sprd,sc27xx-adc", "sprd,sc2731-adc"; reg = <0x480>; interrupt-parent = <&sc2731_pmic>; - interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <0>; #io-channel-cells = <1>; hwlocks = <&hwlock 4>; }; 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 { From patchwork Wed Feb 13 12:32:48 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: 158208 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp15887jaa; Wed, 13 Feb 2019 04:34:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IbCARTSHA4Oonp5QhLYDUxicN3kcLiO6N2bScVsVu/f9YzAABU/yWzr/y9wF2n1Qm8Zq66P X-Received: by 2002:a63:b105:: with SMTP id r5mr275817pgf.442.1550061266514; Wed, 13 Feb 2019 04:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550061266; cv=none; d=google.com; s=arc-20160816; b=B4ay5Zcm4mJN3+H5Al/hICLprbledqwmDqiE8rWCfZhzftLJOq894J7B4sLJQR0f93 +qbKklIpvlgEqrtVJ6mXHHploYXeYWzeusFAj0LDuWPBqmllwqeXp08+FWO3IDRf1dig 8qr3Z6KRki7yY3c68kC0WDNz0BA3CzrgMH96m3YNmIwjfmk3O4PVjAFn+/ygWlrMN1i9 4Gcv/+RIeaCzwWURKx93FNRZH3VkKV0UotsnK/SY562M7RsMpvhJQt2S/edbDY2QNHcF kywri18XF6bOJZCSbLhQ0NxB0Ee1KVlKc8LE6U18PA1SkTN85Wm87Hl1wqpxk3hIStyP NxcQ== 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=1Ftil2JC2XMfueJ0xbXmoE9WbLO/vJyO48RDROHSDf0=; b=H58Ozn/33f2JdLN3YyQlhga0JZrPjUj/Tw81Ow6Algwqap9DA+Siksxvj73T9p56Ro 7J4JcPboUkSz8oqiaZRpmMt6n5YrgLeYlnJNPvv9+UqSMQW4kgsBV0bivQg4hJS9T0dt FeQnvkbqwGFOaC8NWJSRckNnHuHcFQKgVCwLR5HVw+aHFA3qPTE+XZA/s0Bu495fFS+J 8TN+u/b4PLKhBK9phQp4rv0Et/1J8Jt1FiUPtsrjJRuk9epBqmknvFbGLdBWGGBZknXk ghJfqzU05ZyBpD28QQVKN0cHDM09uJnG9GrQbUyFd1D3MeJ6Hhu8+4iUha+alsx7wqIQ 0EKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OSoR2YWH; 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 t23si15815528plr.128.2019.02.13.04.34.26; Wed, 13 Feb 2019 04:34:26 -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=OSoR2YWH; 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 S2392176AbfBMMeZ (ORCPT + 7 others); Wed, 13 Feb 2019 07:34:25 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38453 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392170AbfBMMeY (ORCPT ); Wed, 13 Feb 2019 07:34:24 -0500 Received: by mail-pg1-f194.google.com with SMTP id g189so1076165pgc.5 for ; Wed, 13 Feb 2019 04:34:24 -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=1Ftil2JC2XMfueJ0xbXmoE9WbLO/vJyO48RDROHSDf0=; b=OSoR2YWHmdDR0TDR0DDK+/GdBK1YYrgUQhsHJFLsbFRkAFflM/s+JBorKv1keFVe/g G3WqTYVQfjWh428+yj8hIUKf2o3TfTSpJNrICx6PEjLtFAOzY40uXayS5vPSWgLb12zK 6x97NWMknbiZgNm8oqbwQMRaYGzrbXcNfsU+owOiAkuJaiqpkOKejjmRPS2fpaC/+p46 xGjrBfLDHT3bsvLpb28JPjDNEkm7QsmsT4fUuKpYkaOcULj6FsBH9EGukBiRmarVCvQd AoW/FRr/i4aFl0KXtniSeunNac6cBvKh3GDVOWdvFtXTjJK9dlJIKyTpXW7bzq4S9KfE vOjA== 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=1Ftil2JC2XMfueJ0xbXmoE9WbLO/vJyO48RDROHSDf0=; b=fHTWc6m+cRrsmtsmMEhAYr55jl5S5avfkrEKxbNmxs61+cuFKRUFzGiIAOyn/LFQwb kAZrgVXDpNS56CtgX9rjuRtKE0NsEk6Wg+h1Ld4da2C8Or2OY9DoK+LFmztxIURgvIWH BO6YVQFqfUwdX4ZiuqeVXngsyN2BGwIZn3VifD4pJ4veXa1RFIWc0mc+f2FuxTTtLefZ tlJ0J1mD1ftlU2b0jLXrJvXPVjPxldrhCMwSkUJD0+e/Ons0+qsw+vG6u9vg2kb0sefJ VvEnobjjXK40rhYVYsFHe8X6blubiqrcztOnnam5ffecHpjs66exmix0eWa5bNjKLAq1 lSmA== X-Gm-Message-State: AHQUAuYPLAqHJqgYqSlIjzmWNSfH3Edh3Xqk7N/7r0SECSAI1bvgPwQ1 i/cUGRyzX925aVqukUjYaFNalg== X-Received: by 2002:a65:6294:: with SMTP id f20mr293397pgv.174.1550061263973; Wed, 13 Feb 2019 04:34:23 -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.20 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Feb 2019 04:34:23 -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 4/5] arm64: dts: sprd: Add SC27XX fuel gauge device Date: Wed, 13 Feb 2019 20:32:48 +0800 Message-Id: <46be35679912ffa446d67bb9b81f0cee065c1ca2.1550060544.git.baolin.wang@linaro.org> 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 Spreadtrum SC27XX fuel gauge device node to calculate the battery capacity. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index dbf6242..4a79ddf 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -70,6 +70,11 @@ #size-cells = <1>; hwlocks = <&hwlock 12>; + fgu_calib: calib@6 { + reg = <0x6 0x2>; + bits = <0 9>; + }; + adc_big_scale: calib@24 { reg = <0x24 0x2>; }; @@ -90,6 +95,19 @@ nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; }; + fgu@a00 { + compatible = "sprd,sc2731-fgu"; + reg = <0xa00>; + bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; + io-channels = <&pmic_adc 3>, <&pmic_adc 6>; + io-channel-names = "bat-temp", "charge-vol"; + monitored-battery = <&bat>; + nvmem-cell-names = "fgu_calib"; + nvmem-cells = <&fgu_calib>; + interrupt-parent = <&sc2731_pmic>; + interrupts = <4>; + }; + vibrator@ec8 { compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; reg = <0xec8>;