Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5646158rwl; Tue, 4 Apr 2023 01:16:04 -0700 (PDT) X-Google-Smtp-Source: AKy350YfHfCBx517xo6FkVxOFiddowuP7nPXfeGNasJC8r9iYcM28uCglDIiiW+vVSIQmI14tbtb X-Received: by 2002:a17:907:7811:b0:92f:e40d:1489 with SMTP id la17-20020a170907781100b0092fe40d1489mr1538206ejc.61.1680596163970; Tue, 04 Apr 2023 01:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680596163; cv=none; d=google.com; s=arc-20160816; b=l6W3RJGjoi+u2bd/n0sPYbF8+12G8S9SlmVBD7HtWbveKcCkno6GElhQNuBY/cW/mo U/nP+noyhYEMKTC4ttmzgtFUgZsAApxojHbqdRR+/HMrqH+uOLAlEl3N8iKtTHNh6Qti CpO76crvD6Wp+22TxVjiaUx+T5Oro4O9W/8+5394uZQMR283zANC0vRzTZP5LIGVxZR2 ntFuUzYhMqCykDrqf5lhHR/sbd33dSPj3R9lJby1oc9IwWS4kAg98SDmWtasLpNrPebb +V3rZbP4IlyqDqug/GSqtz6B9LmtMWxGYrwDR+hp4M8MDIFxrI3fLVSQ0waoDJ9NJjrZ tJrw== 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=0sl7VVFpi43Dv/CruzkWtwl78mBZkfE/sbR0q5Xjw14=; b=GpxsFahpC+CEqC+qGja3WLCxw29Khv87sJWZvf38osmTaQfhaGbZilLDfDf6rslM/p 12C6L2xDOtU1/0IQ17vPBF2dXlPhhKBfckIevmcp/B3QfwiQWvRN/4wzFK7lvTnrNRWR Vj9/Ja3DQV+EXFMIE4YM50aSRG93TsHPV164rNYCoTs7TM7hCOS6dlVYyspeOe7TmHQT 95VYzk1g2s05pqQh+D9QncQkaZvoGh9iCfNrGw3eNBiqoBMr/TZYtFcm2hBZwnm1fIbL AIZd/7oI0HgRiPYo3ocj4YpSl9xHGeNlZwpbVLMKMuXxQgcFQV8LJdDR0WXbodqRnk5H Ptrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ke3PWGnD; 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 ss15-20020a170907038f00b009301df0b15asi6535958ejb.62.2023.04.04.01.15.39; Tue, 04 Apr 2023 01:16:03 -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=ke3PWGnD; 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 S234073AbjDDIOi (ORCPT + 99 others); Tue, 4 Apr 2023 04:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234031AbjDDIOh (ORCPT ); Tue, 4 Apr 2023 04:14:37 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF47019B2 for ; Tue, 4 Apr 2023 01:14:35 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id t10so126999399edd.12 for ; Tue, 04 Apr 2023 01:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680596074; 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=0sl7VVFpi43Dv/CruzkWtwl78mBZkfE/sbR0q5Xjw14=; b=ke3PWGnD8ghioKt2YLhw4hpP95DeAyGua6RnAt/fqwsBnSmGEoqwykfMSnsl0hjkS1 bsWwfgeS+Cn4bvM0go645Vol+cCCCMRjY/xCdJJPI6BHZmAyVrOoewsqbHTLwY1lGcnO kg2T7SHBRpAdz0PFuNf4s28AZ6lLGdKpdet3rg2hLyA9MRZRmSzAVPLev2WjymKdjziN azUSWQzywA6A+GWGdnjqoca82VH8O2Bs8nz0opQeMB0qG7DzTs8gZITwB9OdG3kV6l+z dgCzdi0vhGIsFjaf1zKDCQshsx6UCY+UuTbvvOP9p6u29iDpBcaiiMnt+wZ1KxV8uzDc L5wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680596074; 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=0sl7VVFpi43Dv/CruzkWtwl78mBZkfE/sbR0q5Xjw14=; b=2QZOHSSz5jktPU1YUFcV8PBPmRSU8ucHOss0p7M+2JXM0lCEgEZVniJvscJGz2XnW6 J9/acPYnl4VXc1BvFMRdbUuYcIn8PHMTaoCnCSyZsAtkIaTfgBgx2LVxChpldm62jH8b laZz7B4P8X6/gXfLugCouSZTlALkemU/ZYJaQ1OvIk2W12+xtyFQrJQmK4TcaYwhdd5d sXVLvtNMhbJnLAP+Alr5kQGHGH/5JfUWpyurQ007m7EJ58LIumK57loE2eBMjjvtpYaf ETGj/INkVahL9KkPSEmA6SOB97o2uyKbCNJU/oEDqEU864SIdIuisn1jQzo5i+tcXcee pr5w== X-Gm-Message-State: AAQBX9c9tMiYm67Gc5O/2eG2Qh84L8YcVBUul0/3pwItylGlC8fzGKoz M7uXrC60P4/3eIBYHr+xLRjuDYzKHRVilSP4kPI= X-Received: by 2002:a17:906:37cc:b0:947:df9e:4082 with SMTP id o12-20020a17090637cc00b00947df9e4082mr1432939ejc.35.1680596074451; Tue, 04 Apr 2023 01:14:34 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:233a:5c18:b527:381e? ([2a02:810d:15c0:828:233a:5c18:b527:381e]) by smtp.gmail.com with ESMTPSA id l15-20020a17090612cf00b009222a7192b4sm5579869ejb.30.2023.04.04.01.14.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 01:14:34 -0700 (PDT) Message-ID: <0fd972bd-c5e7-65cc-6992-09c4c3e88f95@linaro.org> Date: Tue, 4 Apr 2023 10:14:33 +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> From: Krzysztof Kozlowski In-Reply-To: <2023040407444619bf5596@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 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? Best regards, Krzysztof