Received: by 10.223.164.202 with SMTP id h10csp963385wrb; Tue, 7 Nov 2017 18:35:33 -0800 (PST) X-Google-Smtp-Source: ABhQp+Ton6D2TINuFtx84nj2sVu+qdv6ZgW6Tg1IYJmJskTHFMFulsPGmj7GCSMXL4vCNnUEVIbl X-Received: by 10.99.150.2 with SMTP id c2mr752068pge.386.1510108533444; Tue, 07 Nov 2017 18:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510108533; cv=none; d=google.com; s=arc-20160816; b=E4lZ9c8BRNnMMzlTMur+xp0aP4lMNDe25W7o4SMIqXDRsfkStU0nThcUEnOsx2t0QL BRLrpp8g+l9nFM+ffMlZBOtZCY3wt4ZI1juvJynbjS/OKsQ8wzJ+YLJ1jE2Ep2kSTwLT LXpS9FLk5ZoTstutaBHkvGFkf/5D1bvAoRymcKuAO3nVTyksva/ks93hY6OVxTauM4J+ Ql1t63B6FRHlXtvW8oS0MDImp9KfuBpUAY17R6776fQJRFRsYXolYRpsiHQZnzC2cFvp tM200dGJ1zel62NvvjAf9UPeFeLH8mInLkzFJrxNtOLqNNkJfaGLqLdJnXOSaNgz/U5a KxlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2bOiKmrJiPkno5XTKs7FBNn1MJhkvnzGv61p6IF8XIc=; b=XRqMXaWOYoHfmJu05zW6FlDp063XGat7Wgq3iEcNaO06wrhhRe6NqNRI5Wde5BOMMU ieeJSFjOLs3iox2/kUNK7+0s65xecAwdTs+yTwUieA5rYJm8DjG8H6RqIibfjDKgv9CG RQHmDumfPsLodTBWld5bWrgHJUuWHzyjS41p3SR4Eu6anR6EA7woWrY8kxDRzIwiDkXp HoCPXPUSIAov7FXgZZgi1lxUORhfW+n8HgPCe5HYZSKPNuFoRqBCFGuLvVZuJOQI+UgE HpNthDteCUOHkAJysuFqT4E5k/R9/FUFzT7LfdgT3IdniLVeTcRhxIJ4BISZWFV9N31L 9kvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions-com.20150623.gappssmtp.com header.s=20150623 header.b=UUxzE+pW; 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 t25si2730701pfj.353.2017.11.07.18.35.20; Tue, 07 Nov 2017 18:35:33 -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=@amarulasolutions-com.20150623.gappssmtp.com header.s=20150623 header.b=UUxzE+pW; 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 S932819AbdKGUEW (ORCPT + 90 others); Tue, 7 Nov 2017 15:04:22 -0500 Received: from mail-it0-f41.google.com ([209.85.214.41]:51641 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932761AbdKGUEV (ORCPT ); Tue, 7 Nov 2017 15:04:21 -0500 Received: by mail-it0-f41.google.com with SMTP id o135so3776032itb.0 for ; Tue, 07 Nov 2017 12:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2bOiKmrJiPkno5XTKs7FBNn1MJhkvnzGv61p6IF8XIc=; b=UUxzE+pW/AU+sehNdkQuhdrIrIm7acgZG+QsfdNEGfXtSt22rbsKra8YIbWrXik/co UP7wscr0g/wDyBgraUtqTH+f82sw+1beo3KeJoVhjSUXkzqGBgc0Kz7/hVJXe/eDHc0h uQr4aVSIx+8WMRSenJspRcXc1jCZgeK6bDXcShDLf47+VTSvmf3gpmj0qFaGrR2U45+p Of5kNGuiMdB1zL/48QaQzabIKrzG/e42GNvWncutspP9OFRnAq66MKnfvDbxZig3PbCi brUdeajZTEWgoEmnrXXyB3PWUxuUAmIHoYlYKlY7zTMYoi4466fGp/Sl02atSiHMUjoH fd2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2bOiKmrJiPkno5XTKs7FBNn1MJhkvnzGv61p6IF8XIc=; b=edwWcvgia6a0EkO1UZeIO9TubaCC5O4K6Ra0I2I2w5NRL+1E+N1nTpiTRzhAqUt8eH 6EPvIF7ruJgUlwws1ShHY9Af11CB2u+Y82JgJ7gtA/BcrxsssV58pxAIN1ua+qdZqYe7 2ijIfX8zLtERTm5yl0cxvUsaxNwKyb0JoVQL6C3G8GH894N2frYIbtL+J9ISmyjHw/MV 8mLpa1Dtoqe07F8OVWBKLyWREKsae7etm2a294mmoRP2MYMku7aj2TvrojHKmWCGG3vk nvVHGz9bU7ThLFIJn79aLbEKtTTun4Fka1Js28ZgjtgmEHLKcwkVHcwIr7pfzjPf84sj 7oVw== X-Gm-Message-State: AJaThX4XphmMprieNqbKZUFXq324cN4mmwWl5UsOpZHG0ul+7LKXCLJD KP5WMohvH7Zy4EK4VDi55mojaEUAY6rNMPheL9crKg== X-Received: by 10.36.80.11 with SMTP id m11mr593421itb.6.1510085060245; Tue, 07 Nov 2017 12:04:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.17.197 with HTTP; Tue, 7 Nov 2017 12:04:19 -0800 (PST) In-Reply-To: <20171107195912.GA3274@amd> References: <20171103210349.GA14071@amd> <20171107195020.GA19508@amd> <20171107195912.GA3274@amd> From: Michael Nazzareno Trimarchi Date: Tue, 7 Nov 2017 21:04:19 +0100 Message-ID: Subject: Re: Battery charging, battery status on Nokia N9, N950 To: Pavel Machek Cc: =?UTF-8?Q?Pali_Roh=C3=A1r?= , Sebastian Reichel , kernel list , linux-arm-kernel , Linux OMAP Mailing List , Tony Lindgren , khilman@kernel.org, aaro.koskinen@iki.fi, Ivaylo Dimitrov , patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, clayton@craftyguy.net, martijn@brixit.nl, sakari.ailus@linux.intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel On Tue, Nov 7, 2017 at 8:59 PM, Pavel Machek wrote: > Hi! > >> >> > I'm fighting with battery status & battery charging on Nokia >> > N9/N950. https://elinux.org/N950 contains enough info to get battery >> > status (and below is first attempt at kernel implementation), but I'm >> > not sure what needs to be done to charge the battery (or at least >> > power phone from USB). >> >> Nemo recovery system (2824336 Jul 25 2016 zImage-moslo) seems to >> either charge phone from USB or at power it from USB. >> >> But 4.13 does not; it seems there are two separate issue. >> >> First, something needs to be done to enable system power from the >> USB. I'm not sure what that one would be :-(. Then, it should be >> possible to ask bq24153 to charge the battery. > > If someone has schematics or pointer to them.. for N9 or N950, that > would be useful :-). > You can dump pinctrl and configuration and check if some gpio are used. From reference schematic of this charger you have OTG and CD. Those pins can be just used to enable/disable and boost charging. You should dig a bit in sysfs to figure it out ;) Michael > Thanks, > Pavel > > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html From 1583463543973652373@xxx Wed Nov 08 02:35:12 +0000 2017 X-GM-THRID: 1583080369635626910 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread