Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5742470rwl; Tue, 4 Apr 2023 03:02:19 -0700 (PDT) X-Google-Smtp-Source: AKy350as7asHpZNyvRgYuk5JTlzzFH77XB6gGRFNT18EHoVTEDwSWC69PjOT6kfi23dvNLR5NUyn X-Received: by 2002:a17:906:5387:b0:8b1:e791:faef with SMTP id g7-20020a170906538700b008b1e791faefmr1609369ejo.67.1680602539181; Tue, 04 Apr 2023 03:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680602539; cv=none; d=google.com; s=arc-20160816; b=T96RfQlG8v4O7M3x0xdo9xJr5b4Y93oDYlsULiFk/MITysY6A0ke7pDBLHmjbtT4Im x7ZUIp3wD3ZOQq6LeijtyAbygKwtMeTj0gA1tmBHLOntJ99630cRc4S79wgQCh9t5XZN ADj7QU8Sop2j2ZBfDKPpczcwVbCXSrciQKLjRPmUwX28dhCzfXWazUsR5JmHPb4rjSE/ s2US3191Lz/oDOP74KbjWwi404AxWa1nOpHpYKUy+EC72c/ne99+fNumn6SZUjXfMKmt yW/E8DaIHlhAKmZ6dUINrlCXfJeLKPxsG+jxIGEUHiRKw/cg5WzVQGdNikbMn2FyMTGK DXHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gE5GYSD/Jv/st14bR6vIpX3+m96fdd5PsjXiDdC37SA=; b=IyiyrUNLt7Zm9M2k2dDddPZMClqWwOThABSZRuXaOVejbq3ui52Q0vWKGtK9T+w4xB XYXk2FmP0XX9W62nqLX+wqbIzATgyikm73SUN04SNunbpZtyosrYAE44WR0I7+i+YFDt VSu5EyXakmrJoVCEKbGhI79RBVCH9RMXM9d24vf2qJZYVgKdEc5L4stQsIo3A6BY3f6W 1HmiH2T/q5evWzuLI2yGsxDUlGLBKj47mhmKDhh7iyVdjrXQt5KN9TqRT35i3kVNXWgn SRJTO0nOtfYxjgOQn9tHgapPxB3JIe5KrtA8driNdiR9VAy5rR6VDSrTcpdW3Y+yYTgZ 8Asw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Qb8y+NXn; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb10-20020a1709077e8a00b00947e2d50eb4si3185305ejc.68.2023.04.04.03.01.54; Tue, 04 Apr 2023 03:02:19 -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=@bootlin.com header.s=gm1 header.b=Qb8y+NXn; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234292AbjDDJ4U (ORCPT + 99 others); Tue, 4 Apr 2023 05:56:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234256AbjDDJ4Q (ORCPT ); Tue, 4 Apr 2023 05:56:16 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A6B9269A; Tue, 4 Apr 2023 02:56:09 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 25B0C60017; Tue, 4 Apr 2023 09:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680602167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gE5GYSD/Jv/st14bR6vIpX3+m96fdd5PsjXiDdC37SA=; b=Qb8y+NXnhI916wxrPrrocRr3unVcblsLe1mz0RJTB8FDeOtGM5RpElRsW3EMpEZcNmFpij COypw/LZJ8p5m+YGp7U5t4ulla6RC0QimLNAjJyCA0JZ6YmGv2ddXU3Jq76mcugf4H2vGD WNuty7fU80FH3BYiMguCG8r4eN7eosXb6YB1nboZmWf+LXC0t1Yir3Wv0jstl0o95uipHI 1o86YUw6qcfFDcDNKeh0Y1a5wSeUoQ+zlNQO6Nq9oLbJIr93ps+xN7qIW2sFCNZnRc7C8o q30cJIJseTBNMq4+Pn6UEcZ1iulpbmK69QOOTvIHjgBtVejV71qcVpR365E1tw== Date: Tue, 4 Apr 2023 11:56:05 +0200 From: Alexandre Belloni To: Krzysztof Kozlowski 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 Subject: Re: [PATCH v5 2/2] dt-bindings: rtc: add max313xx RTCs Message-ID: <202304040956056c59af98@mail.local> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0fd972bd-c5e7-65cc-6992-09c4c3e88f95@linaro.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 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. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com