Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2106068rwb; Fri, 12 Aug 2022 12:08:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR6sAiLkefJ60NlNED+nGkk2TKAKGoFtrUxvEAon1yiwrvHECbhg5FaVOYa0auwRD60h5zdy X-Received: by 2002:a17:906:6a03:b0:730:a20e:cf33 with SMTP id qw3-20020a1709066a0300b00730a20ecf33mr3591570ejc.620.1660331325282; Fri, 12 Aug 2022 12:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660331325; cv=none; d=google.com; s=arc-20160816; b=PM1v44dGG9xkRUjvhCkvXiZTHoJUeTYz+yh7FjWCnsd8Zd+Y7rhauche8S2zG9zSFj 6/vGhI7xNOydpDYMBCusarN5YHzQ9Fpt1SZSnjxDHLPe79kiqr9vWuEst/1mYU+0ZoJM EHO47TM3P3+ioxtcT5t6rKgP685B9WjlkN6TLkJKxQ0wF/vTNkrzNksRYyhDeMesc2v5 CzFbOQbvgF41i/GiCAwR8//0f8JNx2nLu3qqj37ynZLZAMUyb954H9qH50o6GfZM1cwc o0ODXV4CNgY9ITAD3ugLzSWQnFcxFS1W6TQbZngnR62lUCoLjpYb6Zb6liS99cNFLuBH gEcQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=H2hFHauRZ+2L1/8Jn5Q0JcmOqrApxd8gqlCGFKCdAM4=; b=C98/7ezvaw0AkA+1HTl3u+FVdbZCEdh8PwJtfRoFtAhkt3npbWSOoC8gRWWFpxrZiX 8NnH7VO5+Ym1oLRROC+df3YIpHQdtW9klt33ZpyHsdaqTtqPL7U4380Oq0Oa7YxkaOw5 xOHsiF+TU1bQBvN7cu4k3KXwdUSWDurEAJVdj6UmnjOAw5aP3P+Oc2SLd3yZEIGCQGI7 Vwihhi4EZn5FfEfYKYq6p+iXOgZWsKxYeVXAAjHxPp95fOK0F8hiq3xHRLebzeTisYHc Ho3PMob9+65vsUjJ0A3Uli06qfv4T8HdfomDWUzKS4Jy8SfZuyPkVz6BcZV3WwuiFP3h 4hEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBfBUmCC; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb38-20020a1709071ca600b00711efd98320si3132030ejc.241.2022.08.12.12.08.18; Fri, 12 Aug 2022 12:08:45 -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; dkim=pass header.i=@linaro.org header.s=google header.b=PBfBUmCC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238931AbiHLSxZ (ORCPT + 99 others); Fri, 12 Aug 2022 14:53:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238908AbiHLSxX (ORCPT ); Fri, 12 Aug 2022 14:53:23 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A16625C56 for ; Fri, 12 Aug 2022 11:53:21 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id a9so2446908lfm.12 for ; Fri, 12 Aug 2022 11:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=H2hFHauRZ+2L1/8Jn5Q0JcmOqrApxd8gqlCGFKCdAM4=; b=PBfBUmCCqcFOkJncUdtapjWauTPUiKTDxV8oZ1lYEW8xc3KN7Gru9WcRttJJrZKU1v puewIC/RAT4riMzrbYZNMmChbVUy0NVo4m3lT43eIzZTcMVjUMT0/X5alIayZosShy4a A2DBnUKi2Oa3ha/9X7/FiezFCFP3q9i/vcYoE/Mi3Y4AdJPYaYItnAvzdaooEn9rDIZN 7pAj20HghfJsz2LY4CVKj1QhkKHqoUmLnisWbFU4dQIds7kZm8k1S6Yg29dGSpwT2wDf ivyfgtn7IX0vPdhw51VB0i1Mn8hENHdS9HJxKH7sP6kJG94PPgGibl4u+FRAAJc+Wg71 YtFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=H2hFHauRZ+2L1/8Jn5Q0JcmOqrApxd8gqlCGFKCdAM4=; b=wj1jjYRUtgowDhGKvqgDY8xgmUvOvDEvZ1ObhWQVaKFYDdJUg87voFsdEPY+US4dSy Ko/rYOaZT7Ex0g3JRTMVfqrBtM2YYkpARLZZVj0B/sgLGAvZ4iP/11cfLWaObYsI/7Sx jBEB/2Q1DZdsVyRidINjhPFKJxCMVrzbSmq1cd6GFZfZCsjqV5sSIRuUzvt4MgG0MoAx cRvDw82eZ1zLdkEncTEb1LjMkUJLSmTpVl0PFBL145vYZrWruNLEbdePElpl9o7mJbLh tfPFIwmybGwhl9UfxjN0wa7oJ0M9ut/UHhjJky9eLKLxNlkBVANdNHc8GsUCyHgmhvXL i1uQ== X-Gm-Message-State: ACgBeo2zonx+oCOxJuMCGEwhjeMVYV9pXZMYS9oatE+fBslqOGb03INl OAcvuYIL2QvubLzSwT+IAIxjyQ== X-Received: by 2002:ac2:4d18:0:b0:48b:4a2d:a378 with SMTP id r24-20020ac24d18000000b0048b4a2da378mr1611866lfi.304.1660330399661; Fri, 12 Aug 2022 11:53:19 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id u9-20020ac251c9000000b0048b003c4bf7sm298508lfm.169.2022.08.12.11.53.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Aug 2022 11:53:19 -0700 (PDT) Message-ID: Date: Fri, 12 Aug 2022 21:53:15 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add Richtek RT9471 battery charger Content-Language: en-US To: ChiYuan Huang Cc: Rob Herring , Krzysztof Kozlowski , Sebastian Reichel , =?UTF-8?B?5ri45a2Q6aao?= , cy_huang , alinayu829@gmail.com, Linux PM , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml References: <1660225318-4063-1-git-send-email-u0084500@gmail.com> <1660225318-4063-2-git-send-email-u0084500@gmail.com> <3cae9d60-4012-1dfd-abd9-4d0b9379e6bb@linaro.org> <40261b95-637a-1304-2e06-8c8ff7fc377b@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 12/08/2022 19:05, ChiYuan Huang wrote: >> It's the same usage like as TI charger. >>>> >>>> For charger driver, does it mean legacy IRQ handler is more preferred? >>> >>> Who is the consumer of these interrupts? Can you show the DTS with the >>> interrupt consumer? >>> > Sorry, I forget to reply this question. > Some battery driver may need to know the 'full', 'recharge' , 'ieoc' status. > The usage will be like as below > > battery { > interrupts-extended = <&rt9471_chg 2 0>, <&rt9471_chg 3 0>, &(rt9471_chg 5 0>; > interrupt-names = "chg-done", "chg-recharge", "chg-ieoc"; > }; > > Some gauge HW needs this information to enhance the battery capacity accuracy. Other supply stack pieces do it via supplies (supplied to/from in include/linux/power_supply.h) and reporting power_supply_changed(). With such explanation, your device is an interrupt source, but it is not an interrupt controller. If your device is interrupt controller, it means someone routes the interrupt line to your device. Physical line. Best regards, Krzysztof