Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp613416pxu; Fri, 11 Dec 2020 09:59:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1lUoc9xSGO8pjC+R1mT52O+mWYYGaL3Qxt1ABrUcNBWs4MyPrO42RoJtdI7s0t8u0Q88S X-Received: by 2002:a17:907:2111:: with SMTP id qn17mr11582314ejb.525.1607709546511; Fri, 11 Dec 2020 09:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607709546; cv=none; d=google.com; s=arc-20160816; b=cHlojcboekASQozf2k053FwOX/Kk6AnsrZ/UJmDETI+MnfErgYB+46lPyg6WB3MwVD xEqwD5pnv39X9DS8gf8PuZzeepREKcC3Rjb7x2LgEIA9CXGZeCm6kQGARnw3LFPPEaB7 KqNYJb3Ktdr2ggtwz9CELtGpZ0YacEJwbmDTr4oKsaHxh0tH6EvjK+P8FurTF8h0OV3j PUiaxiM/zpY0r9BIc7/924rZC40cYsMRliLJQHeE8yuTaifk0HThS8hvvJWQpn8M6uvj sehUMzNo76MGeguJHx3+bAffFJcxgk/xFsMTxAal0O1D3H8DszOYtJpCrL0SMjuSZdBg 7LHg== 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=my0v3tsRd/Mz4EIypIj37zNMuhiMI5SF6h5TpgmxpB4=; b=hoiZ3GNfAgSI7wYYDZ+i+3o0nOcnFR82vzQLobdmzO4CMoQkQBOV122R2AE6722Aiz eK3N0gfJZGVdVRmiZ+Xgz/yXwH8dvSv8zOQbqZrw63PMnMh1wsJr89tpnTCfawbLVjJn D/0xlo57Tsb/YKgVeZ53l7mTQ1vfHcLij/7DMSm+EFHT65m7Q0C8XwmOApYCDY2bGTGu T9hisBtTzIZdMX5M5TYWffryx1YBs1viNzsmYSpld/lZ7sGkHV8VWN7JLkFE4JSVfP5j LgQHmY+Yj5nK/q2tv3iIx7kUGvZaEBq6TVsEzjIbNG2bRngml+BRnRQvkDgIpoU5tUWL XDpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UrzvvXJ0; 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 w10si5357331edv.243.2020.12.11.09.58.43; Fri, 11 Dec 2020 09:59:06 -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=UrzvvXJ0; 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 S2437903AbgLKP0D (ORCPT + 99 others); Fri, 11 Dec 2020 10:26:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437886AbgLKPZx (ORCPT ); Fri, 11 Dec 2020 10:25:53 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC564C0613CF; Fri, 11 Dec 2020 07:25:12 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id 3so8939154wmg.4; Fri, 11 Dec 2020 07:25:12 -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=my0v3tsRd/Mz4EIypIj37zNMuhiMI5SF6h5TpgmxpB4=; b=UrzvvXJ0cz0zGNOSqpro4dW33KOVtYPq4hM2Aw+imIHgxrPqJSXTEIZSc8GjmEZ6Cl 9ikTpG7cWdOnKFpctkZDvJbLYS13DDwDC4/Rar1X/To9YrL4IfK0q+UQpvTv6HklUzIz fiRD3G772ooaDOM2lnJ8LdsAT9gF3DcWZMPrwT2b1cZgCG3vpzQiuVs7cX7NrRnjDMEt 9aPhBfxpqJ/D3DmxnJbBBH+ynO61KPPpZjRx+D99HTic9fG8e5v+KmQMrYNXdATGmArc 5FgPiAZhUOtPK6xTTWmsB2zrqZnhL9sJL6eVj6cIqgDM4evCIOmvqkgo7neeZK92bIze bBsA== 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=my0v3tsRd/Mz4EIypIj37zNMuhiMI5SF6h5TpgmxpB4=; b=DDtwJ2cwffE70QgpDP7+qBaZQUYfQSzDp2twg587gSMqH9/cah7tftmvxLp96Fhtl4 9SMiPGApIP3HRqlzrM1wlOBMmZxah4hFu2X1RyRUWQFSmAkpJilbikfo9JXF+50XA7gW WW8FBS0VhO/BswrIY74vfSa9D3CMrdm0IuHVGe9/xUMNmMSXK19uAh65meVO1WYsAbG3 bYoFBLw/T0mQw/8UaAFPGPHET9fetXvAm8OPsaVFwPPhckd+f70/7zV8vvvHAX9oFQLZ +pbYEUtmR4HCbViTaVfHl1XKZk/s9OEWvyo4Ar0ecplkq6M6GF8vNldXjdpOwfapFvHs 3fGw== X-Gm-Message-State: AOAM531URbv4WN7p0ZHusto26W6O80IlWVcZBY3k6ah3uOTpVYrG1AuF 2PzWoFRj6dN1IvipPvkMqq8= X-Received: by 2002:a1c:a344:: with SMTP id m65mr13965395wme.108.1607700311561; Fri, 11 Dec 2020 07:25:11 -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 b14sm15403083wrx.77.2020.12.11.07.25.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Dec 2020 07:25:10 -0800 (PST) Subject: Re: [PATCH 12/18] ARM: dts: qcom: msm8974-samsung-klte: 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-12-krzk@kernel.org> From: Iskren Chernev Message-ID: <9a896342-cc0b-5cdf-aefd-6fe13c540c69@gmail.com> Date: Fri, 11 Dec 2020 17:25:07 +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-12-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: da8d46992e67 ("ARM: dts: qcom: msm8974-klte: Add fuel gauge") > Signed-off-by: Krzysztof Kozlowski > --- >  arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts > index 97352de91314..64a3fdb79539 100644 > --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts > +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts > @@ -691,7 +691,7 @@ fuelgauge@36 { >              maxim,rcomp = /bits/ 8 <0x56>; > >              interrupt-parent = <&pma8084_gpios>; > -            interrupts = <21 IRQ_TYPE_EDGE_FALLING>; > +            interrupts = <21 IRQ_TYPE_LEVEL_LOW>; > >              pinctrl-names = "default"; >              pinctrl-0 = <&fuelgauge_pin>; After testing this patch + the rfc modifying 17040 driver I can confirm it works on the klte. Also, according to the max17048 datasheet, the ALRT pin is active low, so everything is in order. Acked-By: Iskren Chernev Tested-By: Iskren Chernev