Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1006211ybi; Fri, 24 May 2019 15:22:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/vnT0s8kbSvmtS45JIsHVNEr03k+T+qaa43A4SIFjZOuFJkqAMhPwc50m64QLR7/Nq7gg X-Received: by 2002:a17:902:b90b:: with SMTP id bf11mr3174036plb.179.1558736529103; Fri, 24 May 2019 15:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558736529; cv=none; d=google.com; s=arc-20160816; b=ohwlIhJC9rgvT/BfXdcMTBG0//tvAcna9hlByM38+aA1Mt67kDjeOnyuRjeV/L+JI+ qNSp3rx6VA2Uj86ADJRxLJjPJ8zCG2C9vYkFhUzG4E1EmJYWQPAVAEzBwVM25mmQBUQz mTb3JosZrY+RzrbKfpbWIxyYnbqXWmu3x8RUVnKMIBg0QbpcBBBRagabM2XU9qDwXT2b gtH/4Dq+Zu9wbazq3E1qTdX05LGit5LFKCXw0o72RQG1SWi5APfcrdZXNRWift6xSmqD i19qYgdXFxM66+jMoSYZQenpF9UhWaDcJK8RfeCccKH/8nnTuTrX07inHXQXM717MeOV NuDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:cc:from:date:content-transfer-encoding:mime-version :subject:to:dkim-signature; bh=p20jB4BQU4AvtbWwn3XeTjPaRii6ZgAKH7/dXJoEJig=; b=IB9R8ycT6FAjGeWv5Mu2IDcKwZunhLxCHKQ3RpOfhHS7buySjQ0lTnuBtfKmI8eCU1 dtc17mnx+ktbZSEyGa/ry3ZyGxgEysyrBW51gwLKqBp4HzP3A+JVlow3Qu1bBu5waBR7 GuMKRzlqMneNRcmtNV15qK+Lb9ka8hERM3e0Fu4bZwrFo8AcWrxhnswFFRwmSKVSaiud aTGbCEyP/fyqw3YI3JeNmWg8pIbL6LgWp4JSkMcH4r8CTbzQ7VjEqBWqy/4DwGFPG3N0 GKo1C/+L+HTFU18irfa/qX4TIrrL3XJtcIxssvBnlZpJSAb7aBX8VtlqNqf9rfi5EBjt cSsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@akkea.ca header.s=mail header.b=bv+fvRCE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si6475186pli.78.2019.05.24.15.21.52; Fri, 24 May 2019 15:22:09 -0700 (PDT) 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=@akkea.ca header.s=mail header.b=bv+fvRCE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404314AbfEXWUq (ORCPT + 99 others); Fri, 24 May 2019 18:20:46 -0400 Received: from node.akkea.ca ([192.155.83.177]:58206 "EHLO node.akkea.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404176AbfEXWUp (ORCPT ); Fri, 24 May 2019 18:20:45 -0400 Received: by node.akkea.ca (Postfix, from userid 33) id 734D24E204B; Fri, 24 May 2019 22:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1558736445; bh=p20jB4BQU4AvtbWwn3XeTjPaRii6ZgAKH7/dXJoEJig=; h=To:Subject:Date:From:Cc:In-Reply-To:References; b=bv+fvRCEnBF18NNZaLElZPetLVBlma51ewNgSeJNF1Qvp7gLdBtgiTJau8DCU5HMK tQ1T5dyWfnVgopujkczBCJZ4f2vyPlhBNzBh5raJh2ecZaxp81wzQVtcNnjWx4PCXv gJUumLG5Tk7k9rsX4g57s2Io3/u5jqyQvRd7EouY= To: Pavel Machek Subject: Re: [PATCH v13 2/4] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit X-PHP-Originating-Script: 1000:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 24 May 2019 15:20:45 -0700 From: Angus Ainslie Cc: angus.ainslie@puri.sm, Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <1e6c0664949f38452b8f14b901bff513@www.akkea.ca> References: <20190520142330.3556-1-angus@akkea.ca> <20190520142330.3556-3-angus@akkea.ca> <20190523191926.GB3803@xo-6d-61-c0.localdomain> <1e6c0664949f38452b8f14b901bff513@www.akkea.ca> Message-ID: <64cc01b6cc6590e328e7b488bedb9dc8@www.akkea.ca> X-Sender: angus@akkea.ca User-Agent: Roundcube Webmail/1.1.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, On 2019-05-24 15:00, Angus Ainslie wrote: > Hi Pavel, > > On 2019-05-23 12:19, Pavel Machek wrote: >> Hi! >> >>> - LEDs >>> - gyro >>> - magnetometer >> >>> + leds { >>> + compatible = "gpio-leds"; >>> + pinctrl-names = "default"; >>> + pinctrl-0 = <&pinctrl_gpio_leds>; >>> + >>> + led1 { >>> + label = "LED 1"; >> >> So, what kind of LED do you have, and what color is it? label should >> probably be something like >> notify:green. >> > > As we don't have a specific use for these yet does it really matter if > there is a colour or a number associated with them ? > >>> + charger@6b { /* bq25896 */ >>> + compatible = "ti,bq25890"; >>> + reg = <0x6b>; >>> + pinctrl-names = "default"; >>> + pinctrl-0 = <&pinctrl_charger>; >>> + interrupt-parent = <&gpio3>; >>> + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; >>> + ti,battery-regulation-voltage = <4192000>; /* 4.192V */ >>> + ti,charge-current = <1600000>; /* 1.6 A */ >> >> No space before A, for consistency. >> >>> + ti,termination-current = <66000>; /* 66mA */ >>> + ti,precharge-current = <1300000>; /* 1.3A */ >> >> I thought precharge is usually something low, because you are not yet >> sure of battery health...? >> > > I think I put that in incorrectly. The intention was 130mA. > >>> + ti,minimum-sys-voltage = <2750000>; /* 2.75V */ >> >> Are you sure? Normally systems shut down at 3.2V, 3V or so. Li-ion >> batteries don't >> really like to be discharged _this_ deep. > > You are correct. I'll fix it for the next version. > Looking into it further Sanyo and Panasonic get over 300 cycles bringing the NCR18650 down to 2.5V so 2.75V should be fine. http://www.batteryonestop.com/baotongusa/products/datasheets/li-ion/SANYO-NCR18650B-3400mAh.pdf https://industrial.panasonic.com/ww/products/batteries/secondary-batteries/lithium-ion/cylindrical-type/NCR18650PF Angus > Thanks > Angus > >> >> Pavel