Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5749313rwl; Tue, 4 Apr 2023 03:07:54 -0700 (PDT) X-Google-Smtp-Source: AKy350ZxZZ1AmtdWCWjmODkgoiehVah6Lpcj0qnQewNtpqI+omfC54Jw5f+EZNz5PbKe1dyRw2wf X-Received: by 2002:a17:907:7da4:b0:947:793d:b5c4 with SMTP id oz36-20020a1709077da400b00947793db5c4mr2007059ejc.64.1680602874035; Tue, 04 Apr 2023 03:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680602874; cv=none; d=google.com; s=arc-20160816; b=qeL9sKnvS1+qr0VQpxbFVwAR1BKYRruFyuOdIhTyof8mUIJFrJvXhPDaL+Lwz3px73 i9k2N/ZmOicCkWyrP8l+JlxBhewYRgMPdksgygtRnYhNpJt4aVyknOfNOkvoBaPCCOJf 5LQ2y9hj7Kn8qI+u6X7F61vjpVrdPs0rwNjabzqfDMbsLQ21lV2gITsy2s2k0d279hjb z778eybrdgAdLpGbGlTT56tx+aZqoIQPB47w1NoKE2Jm3c3U6gcNi2aRfjnZKJnyjAEZ FBZ2PbPr+k9ex4tFbq8PwivUXPhdDgdATED+6yTni9rGqRsPmDIwmq4sKjtv+g7LPKug CVCQ== 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=DxM7pHYaYfeSkBdBDN7aQqaAsu+9Matzg8m3QMGN1rI=; b=ZYeoZXLhc0iXKJx09L7G7TJbUOtxDZBkVcdJ/QwRtEizZ1UlcZTwt48b4JITLPluib mILB3+2iQ5CAMAcwX0pc0OOEbRx/nhWwOMWhDlaS5CKbN91wAwk7wmS8Skk+X2KE79mM Iv9COkExkOa2soqTAp2BJyTonAGxKzqu1JXP+2vCh9AEgf2NJFEH6V1yro622jJD3fvc OM18mDLBkwXW544IlZ4J6PpDxCk6IfVYzZBuYbQctIN2Y9nwVBLROJYa9sUjk5pWqIxS RNNR7yJu8eKgylT8bhn/vcbpuGIuo3URTkU60L8Edy2a8Ode5bD8jLIfWmwM/DPDMzUa 6/NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j5SStedH; 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 r7-20020a1709062cc700b009334e3800dcsi1615214ejr.459.2023.04.04.03.07.29; Tue, 04 Apr 2023 03:07:54 -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=j5SStedH; 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 S234332AbjDDKGU (ORCPT + 99 others); Tue, 4 Apr 2023 06:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbjDDKGT (ORCPT ); Tue, 4 Apr 2023 06:06:19 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DD2F213B for ; Tue, 4 Apr 2023 03:06:17 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id h8so128361890ede.8 for ; Tue, 04 Apr 2023 03:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680602776; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=DxM7pHYaYfeSkBdBDN7aQqaAsu+9Matzg8m3QMGN1rI=; b=j5SStedHpTECGFWywLmPC52GuOUIrn9O2z99EVD38fkoZOAoRYvW/87/ggpABjeiyT znLCnLu1/8W/pmgcORHwd6DhZ9HEBY/Omu3kXiUH4LRI6SdK/T+Y2OHvJ/85E/linAzZ IhdTscR4J+3LJVOHTvpT/Xw1j+ZtIpyu6eGaTi2+mNA5r1oxZOQGHRci8//pN2Mr57a6 62yxEKN6qDed6le3JEDw6x02QWkF45UBsMGnF7bp3K418ZajeCaCzUGeFjdYJIW5XUyG 8sklu9Mct4hFVWbQCV0aHnw5paSyZknwqZFrmnNmvlg9+i5OFCfB2RrC6FHa7dM+pNMO Ktqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680602776; 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:subject:date:message-id:reply-to; bh=DxM7pHYaYfeSkBdBDN7aQqaAsu+9Matzg8m3QMGN1rI=; b=hREVgWCI0erP/wwtv6R+3qP2QET8PS4Aku3WsczTd4m+qsJN15t7OLmSn7V26jg+nZ 2M1QQ+RzLTOzlsm+vFbnfkph9p+qkxIp0PtKKjNgHXniTlcYINU1z5V66170aZXFdhmw YVIN20pkOhfZ1RrE1yNrlbShYd8iQwCvqni1MX+mo6KlmTNlkMsDYuYdkhTlgGbKlZLH Hgu0WEKhVMc8rektROru74YNKVOBvL72s5XyshOmVKS7iOa9Y2Xy3p8wUHj8HRQsNlMQ XSppTzLI6nvxKwBAR4M4B9nmNb3Omov2oCqHtxvvwzhCZP/D+onYEA9kE2DA2zpnuwOU ak+Q== X-Gm-Message-State: AAQBX9fwzU7satPS6aNDnTyCgPD+q13I6JKrbgsOBxILyL1dKwFmH+Gw BF/01IUfa7uKdVnyozCStNP07w== X-Received: by 2002:a17:906:99c8:b0:8b1:2bde:5c70 with SMTP id s8-20020a17090699c800b008b12bde5c70mr1880750ejn.2.1680602775988; Tue, 04 Apr 2023 03:06:15 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:99ed:4575:6001:8bda? ([2a02:810d:15c0:828:99ed:4575:6001:8bda]) by smtp.gmail.com with ESMTPSA id sd19-20020a170906ce3300b00947499e0e4dsm5850768ejb.146.2023.04.04.03.06.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 03:06:15 -0700 (PDT) Message-ID: <847cc6c8-e097-aa3a-2cd7-a6929bec18e9@linaro.org> Date: Tue, 4 Apr 2023 12:06:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v5 2/2] dt-bindings: rtc: add max313xx RTCs Content-Language: en-US To: Alexandre Belloni Cc: Ibrahim Tilki , a.zummo@towertech.it, jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, Zeynep Arslanbenzer References: <20230403154342.3108-1-Ibrahim.Tilki@analog.com> <20230403154342.3108-3-Ibrahim.Tilki@analog.com> <202304040710049c9cc01a@mail.local> <996b49ab-5e2e-76bc-efb1-38c6384871f6@linaro.org> <2023040407444619bf5596@mail.local> <0fd972bd-c5e7-65cc-6992-09c4c3e88f95@linaro.org> <202304040956056c59af98@mail.local> From: Krzysztof Kozlowski In-Reply-To: <202304040956056c59af98@mail.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 04/04/2023 11:56, Alexandre Belloni wrote: > On 04/04/2023 10:14:33+0200, Krzysztof Kozlowski wrote: >> On 04/04/2023 09:44, Alexandre Belloni wrote: >>>> >>>>> charging will always >>>>> enable a diode, select a resistor and then have or not an extra diode. >>>>> Figure2 of the MAX31329 datasheet is great. >>>> >>>> So the diode is in the max313xx? Then why enabling it is a property of >>>> DT? Either this should be inferred from compatible or is even a policy, >>>> not a DT property. Just because device has a register for something, is >>>> not an argument that "something" should be in DT. >>> >>> Well, it depends on the battery that is installed on the board so it >>> makes sense to have it in DT. >> >> OK, that would be a good reason, but I wonder why? Why choosing diode or >> not depends on the battery? Wouldn't you always want to have the diode? >> > > It limits the maximum current used to charge the battery or supercap to > not exceed what is allowed. and I still wonder why someone would like to allow exceeding what is allowed. IOW, what is the use case to disable the diode? Best regards, Krzysztof