Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp615259pxu; Fri, 11 Dec 2020 10:01:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUEyk4wecWEOdJXRY753UBqAGXp4vDqMNdQtPkOd5rfhR2cBSLeVezPHlObr0xislNIm9/ X-Received: by 2002:a05:6402:1592:: with SMTP id c18mr12856676edv.181.1607709686505; Fri, 11 Dec 2020 10:01:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607709686; cv=none; d=google.com; s=arc-20160816; b=uGYVndWjiWiBdJCrEGYGEm5CPMVGbMU9tVFosaII4YHU5rbJvqsirhvYVLhkKz/cbq zVsuubF3UQzkv/xDFa6scNtDWWCajybm1lRdvV+/dswK0hXVcrj4G40/iHWyZdrfGX44 Lepb7hjr8Y4hYKVtRI4mRYRz2HgEK7lnkHSQ/vdeS6gcDJTvKmPGj5LcPmtHOVHKozSg KqynFMWc/sBNBvQuHBjD5Vjzx0KQF9RDcObI4l8LZwxHdAl/RyJm48UNh9eGdcoT0K8A Ewzw7aJ6g6QRWiEYPlMknJaw4ANb4/fPERM/uOgcNMX8bkGqFNqc0K84gpUMaZJhqLIA adtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zERc61e6q0jyeQa9DII4Gd3+QcLplYsxEQ++mmlkRqE=; b=Ql5m2sPm8t2EDb3SCqX9IcnKE6cdgULw9lnFVLgrKsBrIxT/9uJ4Jj5QBKEItwzSu7 FXrsRq96FT4E9g4zHLcwou+jC1BXUeTktWJ8qvO9qi6tHVb7dtJEq7YJJ5Xnco/TRvy3 KtNQCh3GJ582akmWyuOC05rtu+igW3nlBKJxu+GCjcJxfj8z4iHACGbtAbNNR+/wsUW0 RxxLMAkMy9P5BrWLIRy3Y5spBAPHGMu82rz2qLDPmZDTDvwzXuPqRXXWFHLxBZIz87GG MCXtVdwJCd4GVosBv6u2ECHh4k3X8GsUiQOjwNtUH8O/aDfVFRhob3GJfu9hy4NSnJFK gJaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kAPBD5id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si4871577ejr.2.2020.12.11.10.01.01; Fri, 11 Dec 2020 10:01:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kAPBD5id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403914AbgLKPax (ORCPT + 99 others); Fri, 11 Dec 2020 10:30:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388379AbgLKPad (ORCPT ); Fri, 11 Dec 2020 10:30:33 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED03C0613CF; Fri, 11 Dec 2020 07:29:52 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id m5so9424447wrx.9; Fri, 11 Dec 2020 07:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=zERc61e6q0jyeQa9DII4Gd3+QcLplYsxEQ++mmlkRqE=; b=kAPBD5ididRwkjsfOLZM27vUwQTDQh5Tvkvr2H9LSKoBN1/Tjgz8j0J7BC6GiT3yc7 rsyYBvQKGPipWFGSkGYpw9QZUY4lU1EFgOdThLzewOMDzFhr3cHdbMFDhQJrrt22YCjE tttxzDbbGnR2C+APmaFEooKNqOlOerIIBqFrJC4X1PTfKg2ugGVKMYVkoT4JLyq5DG52 MFTAeYJfvaTlk6zb7U93xoS37Zasqzn70eLhGHFBUHcuiS0MfGMldYYNBRp76UR20l5J bTVcKDilQoV/mKGAyfGCr4YoVWVPYKBejSiUAk8oVhrRNZvNuMscTS2/DFV6BvmANrNW zk/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=zERc61e6q0jyeQa9DII4Gd3+QcLplYsxEQ++mmlkRqE=; b=n17nMdGu9iVj9lZ2NvUoOLbMWCSqwvC0Pv2L9djSWWuOv54N6BsXOv+lrrKxVhSTft u+QaEuz0lX182TNMo8Cmm2vJBqCmJh7x8dX+ev40dLLLmuQHJGH/lTZY0SA9IFPYMy7L 6UbSky3e54k5CRNuhGoHF8CVfxNfJJWFrRO4XxIjKQ2aLCfMEB8hBOp4aIookiIkE9jy 84uN/2uSzzrrPLa+5AH+oV4vEjbyFMk9+wovH15HLahr1yaOw6s7ruUd1U4gSMn6f8WP Wl3hMpTD15zPqmrf5f+HIfvsyDMgS8tD4Py2oX97fNa82VCPvg0tL05HM2HmCs3FrKS0 wyrg== X-Gm-Message-State: AOAM531jBMUyPlKHRdU4XFrccWQG7HRXTCczKUDPnbaJDQC3KJn9ZUci t17fTRrfZvqF2kNYOvYEq+k= X-Received: by 2002:adf:e64b:: with SMTP id b11mr14391204wrn.257.1607700591324; Fri, 11 Dec 2020 07:29:51 -0800 (PST) Received: from [192.168.74.106] (178-169-161-196.razgrad.ddns.bulsat.com. [178.169.161.196]) by smtp.gmail.com with ESMTPSA id d9sm15262283wrs.26.2020.12.11.07.29.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Dec 2020 07:29:50 -0800 (PST) Subject: Re: [PATCH 11/18] ARM: dts: qcom: msm8974-lge-nexus5: correct fuel gauge interrupt trigger level To: Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Michael Turquette , Stephen Boyd , Rob Herring , Lee Jones , Sebastian Reichel , Liam Girdwood , Mark Brown , Andy Gross , Bjorn Andersson , Alessandro Zummo , Alexandre Belloni , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rtc@vger.kernel.org Cc: Matheus Castello , Sebastian Krzyszkowiak , Angus Ainslie , Hans de Goede References: <20201210212534.216197-1-krzk@kernel.org> <20201210212534.216197-11-krzk@kernel.org> From: Iskren Chernev Message-ID: <14e52c51-23ab-6877-dcec-2b1add958d71@gmail.com> Date: Fri, 11 Dec 2020 17:29:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201210212534.216197-11-krzk@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/20 11:25 PM, Krzysztof Kozlowski wrote: > The Maxim fuel gauge datasheets describe the interrupt line as active > low with a requirement of acknowledge from the CPU.  The falling edge > interrupt will mostly work but it's not correct. > > Fixes: 45dfa741df86 ("ARM: dts: qcom: msm8974-lge-nexus5: Add fuel gauge") > Signed-off-by: Krzysztof Kozlowski > --- >  arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts > index e769f638f205..4c6f54aa9f66 100644 > --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts > +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts > @@ -575,7 +575,7 @@ fuelgauge: max17048@36 { >              maxim,rcomp = /bits/ 8 <0x4d>; > >              interrupt-parent = <&msmgpio>; > -            interrupts = <9 IRQ_TYPE_EDGE_FALLING>; > +            interrupts = <9 IRQ_TYPE_LEVEL_LOW>; > >              pinctrl-names = "default"; >              pinctrl-0 = <&fuelgauge_pin>; According to the datasheet for max17048 the ALRT pin is active low, so that looks good. The reason it was implemented EDGE_FALLING is mostly due to fragments taken from downstream, and the fact that it worked :) Acked-by: Iskren Chernev