Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1187196pxb; Thu, 24 Mar 2022 14:39:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI45kz6bayyZac1EJUCAhssa7atUkqJXjxrpxWZPjWz+Ydt6cC6MhVS3PE3UAb8c6dMK1V X-Received: by 2002:a17:90b:3b8c:b0:1c6:ed78:67e2 with SMTP id pc12-20020a17090b3b8c00b001c6ed7867e2mr20791572pjb.163.1648157943336; Thu, 24 Mar 2022 14:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648157943; cv=none; d=google.com; s=arc-20160816; b=qKi76J3ZccR9vFAtCKI82T76YCqIiTYEEsPQldqGA+IgBo/+jBuoTC4w8xrSqXzfcw +HlPysqAZ07x2GA8yXkBLiyteHPe1YfHhx2i464lPr0T/ScSdd4hX4DMuny8Z3yZK0HQ ew1s38rb/142O4tGgSKWH/3sP4sB5hLu63rQb+DznmsToeHioGfbeU8zn40jLTowtSAY UWR0J6XFKRl/uizQ5WHe8CtxOTcRqWrp6AIsDKizikjzDc33Dr/1RRBawD5TbVFfvWTy GLguWv7yoiaVrtEoPYfpQ1wpjILjG2XSEbWHsHeXG4ReVr5EWzBeLlXb/Rl6C1rKMK0G DR0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:content-language:subject:from:user-agent:mime-version:date :message-id; bh=HlmRUE9bFHFNjrv1b4k2u8pDKleK8lJOe2XyU8TJzEU=; b=cIs6Rfn25OmLfgj+HgZfH5I9z+isdIMoxy9Fz2arQYON5fM4Kqh+PQbfKDdX3CX/XE 42ti3rbCamY8gVIGMrlI5FHkfn1CGRg1D5cheyd+YHfhje0OnAzxmCOP2rhOF90VSRGw COje7yocePN+qbCoeXOOCsPEUMZjGlWfekNKrysAE07xs/6i35xYfbpqVH+Qs9COiRt/ TXkB5g2fMytvXmMbDmcVeC5ZWhEMCfQcdJ0N3IH3lvUJW2mrt+5XPm29Rx3vJx5qejFJ 57HgOYRJr4iGJJqg3Cr6enXQX0lVaGHqd/yN4rn4kF7Uk9dtAOL0YbohDX5WSUlPov6e kduw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me1-20020a17090b17c100b001c69d26755esi849564pjb.134.2022.03.24.14.38.49; Thu, 24 Mar 2022 14:39:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242825AbiCWPdX (ORCPT + 99 others); Wed, 23 Mar 2022 11:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237516AbiCWPdW (ORCPT ); Wed, 23 Mar 2022 11:33:22 -0400 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEC6B70F70; Wed, 23 Mar 2022 08:31:51 -0700 (PDT) Received: by mail-ej1-f52.google.com with SMTP id r13so3593616ejd.5; Wed, 23 Mar 2022 08:31:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:content-language:to:cc:references:in-reply-to :content-transfer-encoding; bh=HlmRUE9bFHFNjrv1b4k2u8pDKleK8lJOe2XyU8TJzEU=; b=vARMwS0XPGLB2sMqVdPfnR8f4XKlV55dwDrqG9idOmv+2vYTLr3de0kiQUYx2Re989 Msr8Q0AtwTlSBD+Iq+D6ZcIj6cZJwC3jfBBEfjCNy2STd9+E9AJbQdqeBb6Ev57i1pU+ ajxsPv9QwISpZQg0ncBQ9sp46Xwy7lorYjEvJ2kw9yHT4ixPAUcj52AjJgrE4WI+Fkeb 5Z65Y1Bznfxju23WHEf4/FmodWTiNMy+3WEYjmumVMqBmJtEe5Gk9LnpFCzn4sKjD0O0 zTqQiF/5nWudxGFmuEMP5HNwCSqLh4/VxhwIGwLG1ujJC2p5SkaNA9p3RsdUa0DTfl96 05MA== X-Gm-Message-State: AOAM5312uJoqRsx9XWA8p7CX9IVBCIcMnq2M0xwcp0q6BWwJmvILQV9b 6Ka7JiGqYKJn9yDruIxp8xE= X-Received: by 2002:a17:907:7d9e:b0:6df:9fe8:856a with SMTP id oz30-20020a1709077d9e00b006df9fe8856amr552897ejc.373.1648049510204; Wed, 23 Mar 2022 08:31:50 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.googlemail.com with ESMTPSA id c14-20020a170906340e00b006ce98f2581asm63669ejb.205.2022.03.23.08.31.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Mar 2022 08:31:49 -0700 (PDT) Message-ID: <2eee2611-d618-3fe2-4315-c57a26de6b21@kernel.org> Date: Wed, 23 Mar 2022 16:31:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 From: krzk@kernel.org Subject: Re: [PATCH 7/7] ARM: dts: s5pv210: Add charger support in Aries Content-Language: en-US To: Jonathan Bakker , alim.akhtar@samsung.com Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220323150311.26699-1-xc-racer2@live.ca> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/03/2022 16:03, Jonathan Bakker wrote: > Add charger-manager support to Aries boards to allow safe > charging of the battery without the need for userspace control. > > Signed-off-by: Jonathan Bakker > --- > arch/arm/boot/dts/s5pv210-fascinate4g.dts | 162 ++++++++++++++++++++++ > arch/arm/boot/dts/s5pv210-galaxys.dts | 144 +++++++++++++++++++ > 2 files changed, 306 insertions(+) > > diff --git a/arch/arm/boot/dts/s5pv210-fascinate4g.dts b/arch/arm/boot/dts/s5pv210-fascinate4g.dts > index 7427c84f1126..9530231b7a70 100644 > --- a/arch/arm/boot/dts/s5pv210-fascinate4g.dts > +++ b/arch/arm/boot/dts/s5pv210-fascinate4g.dts > @@ -57,6 +57,168 @@ > pinctrl-0 = <&main_micbias_ena>; > }; > > + thermal-zones { > + batt_thermal: batt-thermal { > + polling-delay-passive = <60000>; /* 60 seconds */ There is no passive cooling device, so why do you need it? > + polling-delay = <600000>; /* 600 seconds */ > + > + thermal-sensors = <&batt_thermistor>; > + }; > + }; > + > + batt_thermistor: thermal-sensor-0 { > + compatible = "generic-adc-thermal"; > + #thermal-sensor-cells = <0>; > + io-channels = <&adc 6>; > + io-channel-names = "sensor-channel"; > + > + temperature-lookup-table = < > + (-20000) 1859 > + (-19000) 1846 > + (-18000) 1832 > + (-17000) 1818 > + (-16000) 1804 > + (-15000) 1790 > + (-14000) 1773 > + (-13000) 1756 > + (-12000) 1739 > + (-11000) 1722 > + (-10000) 1705 > + (-9000) 1691 > + (-8000) 1677 > + (-7000) 1663 > + (-6000) 1649 > + (-5000) 1635 > + (-4000) 1550 > + (-3000) 1510 > + (-2000) 1500 > + (-1000) 1490 > + 0 1480 > + 1000 1470 > + 2000 1460 > + 3000 1450 > + 4000 1430 > + 5000 1420 > + 6000 1406 > + 7000 1386 > + 8000 1366 > + 9000 1346 > + 10000 1326 > + 11000 1302 > + 12000 1278 > + 13000 1254 > + 14000 1230 > + 15000 1206 > + 16000 1182 > + 17000 1158 > + 18000 1134 > + 19000 1110 > + 20000 1086 > + 21000 1059 > + 22000 1035 > + 23000 1011 > + 24000 987 > + 25000 963 > + 26000 937 > + 27000 913 > + 28000 889 > + 29000 865 > + 30000 841 > + 31000 816 > + 32000 794 > + 33000 772 > + 34000 750 > + 35000 728 > + 36000 708 > + 37000 690 > + 38000 672 > + 39000 654 > + 40000 636 > + 41000 616 > + 42000 599 > + 43000 580 > + 44000 565 > + 45000 548 > + 46000 529 > + 47000 512 > + 48000 495 > + 49000 478 > + 50000 461 > + 51000 440 > + 52000 431 > + 53000 416 > + 54000 405 > + 55000 396 > + 56000 375 > + 57000 360 > + 58000 347 > + 59000 334 > + 60000 325 > + 61000 311 > + 62000 303 > + 63000 296 > + 64000 290 > + 65000 279 > + 66000 265 > + 67000 254 > + 68000 240 > + 69000 220 > + 70000 206>; > + }; > + > + charger_manager: charger-manager-0 { > + compatible = "charger-manager"; Sorry, this is not a hardware. It's a hack to configure kernel charging driver via DT which was made deprecated. Best regards, Krzysztof