Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1731146ybe; Tue, 3 Sep 2019 02:38:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/LYpzwu2jWdH9nckf+wDq+1OFA6UjhAzWlrzrcJDUlm3zstet8UdZgMxxd7bftL1AjlR2 X-Received: by 2002:a17:90b:8ce:: with SMTP id ds14mr17530988pjb.105.1567503494271; Tue, 03 Sep 2019 02:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567503494; cv=none; d=google.com; s=arc-20160816; b=oY0pudHUGkEkq0k1f3YHlnZmibIXdakcidjehZeqPo/3rPJDYD+pAF5+M+AhMp4H8v 8GOMyeAZj8rURNJsWTWp0m/mNQtD9BU90a7LkAZlcG/y+XPuwiqc4bsdULqcDEIWiLhv AYK3uomEmXbysjA3j5PMltfam3vIsJrM/yQLzFIyWL3H1F3zp1fn4MhfogZiJS+JNit4 I14b87qch8yw6cDX53f9on3jSXhPDKpiq+ld6p6PKKm/kUYinkvk8IEV8x7N+pTTmlU+ Ir6qxED0SDVhkkA+R6z3q9ga5RXvLtPLvety2QiE2ab58Ot5pZS7LFPDNTuPbWuIhYkV ngrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=qI/msxsXqWRFdL3aN3sjsVskSGThrgClxOqJ+yrbiFg=; b=NOlJyeSmRugc88BztOWcCWty/Or51u/jhQpBCPHRdos4Zp/5sXsOyBO3CA8eddAjHM 3RP9yz0k4lRJ/McEir9F6Es3MagopuIqIn00S/S4oVeH/9r2o38NhMe1kfHaHIg1yyDO jjJ3pK5IDI6k4IJ4eYhjZDmWo7K30Ww1XxjbZCXFWlAOtAt5lRn5zfnuvO8fa9RcbJe3 EYvtEZ0T05AWYdK2vGKaCTAdXsz0S2HjsTR4/yf1gaHeUcz8gZPEU1C8pHOvIcSczHAC PQf38R8zYF7iTmOgJ1bUfUnsWrfEg+K46MTzChiDtIRPe18LT8z7BMv/TwWS/eyzpylv FadA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flowbird.group header.s=google header.b=IClJ3jwz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flowbird.group Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bi7si9284507plb.288.2019.09.03.02.37.57; Tue, 03 Sep 2019 02:38:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flowbird.group header.s=google header.b=IClJ3jwz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flowbird.group Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728509AbfICJhF (ORCPT + 99 others); Tue, 3 Sep 2019 05:37:05 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:39853 "EHLO mail-wm1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728438AbfICJhE (ORCPT ); Tue, 3 Sep 2019 05:37:04 -0400 Received: by mail-wm1-f43.google.com with SMTP id n2so15986553wmk.4 for ; Tue, 03 Sep 2019 02:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flowbird.group; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=qI/msxsXqWRFdL3aN3sjsVskSGThrgClxOqJ+yrbiFg=; b=IClJ3jwzE0/tSlHhR/nSMgACWjFl7gf80AbtmZBxCUHLt/Jcojva+3rM9j+rrDNmZ6 LnL2oaZMOHls872SeyCum8/euj+LPM3aKsfWkOJYmKQMLEeAbBu1wVvhImNp0G92PVyC la/HV8FTjwVgupmRNGrmxzC25ZN+cYXk4vKmetNrGxzVjnnxYvzxh5zAd87UNXEDEVTs 8aXDBns9TE/og3A1VyIrvgzraaj0SVG9v2nSlkh7w3QOM9m27GCuQ1GtLWs5hBbh0a6e aTn4P54W6Bk4f2g1l0ZAyg3Orv7gPfEhYiBnkNJCdjkDn8uijF6ha1eEWe9LytiiyFfe ntjw== 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=qI/msxsXqWRFdL3aN3sjsVskSGThrgClxOqJ+yrbiFg=; b=Ik6ALNbhtI3YgluHoA6JZSH6TbkCjv6KIatN2deexyEqjfnz4TSwcfXW9iJOfY2FEw NDV3KYR0swp/Gm22Pirbq8MLWY8nLF/5ztYRNUqxKi5J/+cn8JS+MfJxHevTnbbyKbNn fuOSghuawf6cpwosrecYXS0CJCsfhazhB8WmCN8ePwwbgO1cm1ZpAIxmOcRdaJprSX8l GnZpifWiN8UfujpFe9GqMZZh8xmTrAn/6knj8dVKwdC1YO+WF56dJKmxiwsH1gwfcbbN S5gWb2K28gAm8BTb1y6DcW6CU1p4C2jdyziOGDe5zGHoMQ70Mz1zumAMnq1T1XprWMRN U6LQ== X-Gm-Message-State: APjAAAVNBKgv6fQodUIR6noFjnokw57DeKNguBuH5+tEJjPTGQZ4gcmk e+CTxoLXc61As8INXbL6wKabug== X-Received: by 2002:a1c:658a:: with SMTP id z132mr42363159wmb.98.1567503422825; Tue, 03 Sep 2019 02:37:02 -0700 (PDT) Received: from [10.32.50.252] ([185.149.63.251]) by smtp.gmail.com with ESMTPSA id v11sm29740643wrv.54.2019.09.03.02.37.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Sep 2019 02:37:02 -0700 (PDT) Subject: Re: [v3,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties To: Biwen Li , a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, mark.rutland@arm.com, leoyang.li@nxp.com Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Martin Fuzzey References: <20190903061853.19793-1-biwen.li@nxp.com> From: Martin Fuzzey Message-ID: <2374870a-a728-b046-9ec6-bd7773411f50@flowbird.group> Date: Tue, 3 Sep 2019 11:37:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190903061853.19793-1-biwen.li@nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: fr Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/09/2019 08:18, Biwen Li wrote: > diff --git a/Documentation/devicetree/bindings/rtc/pcf85363.txt b/Documentation/devicetree/bindings/rtc/pcf85363.txt > index 94adc1cf93d9..588f688b30d1 100644 > --- a/Documentation/devicetree/bindings/rtc/pcf85363.txt > +++ b/Documentation/devicetree/bindings/rtc/pcf85363.txt > @@ -8,10 +8,39 @@ Required properties: > Optional properties: > - interrupts: IRQ line for the RTC (not implemented). > > +- interrupt-output-pin: The interrupt output pin must be > + "INTA" or "INTB", default value is "INTA" > + The hardware has 2 interrupt pins which can be mapped to various interrupt sources (alarm1, alarm2, periodic, ...) Currently the driver only supports alarm1. It is even possible to use both pins for the same interrupt (eg if INTA were wired to the SoC, INTB to a PMIC and both used for alarm...) So maybe it would be better to have alarm1-interrupt-output-pin: The interrupt output pin used for the alarm function. Must be "INTA", "INTB" or "BOTH" Then, if and when other types of interrupts are supported by the driver new properties could be added for them. > +- quartz-load-femtofarads: The internal capacitor to select for the quartz: > + PCF85263_QUARTZCAP_7pF [0] > + PCF85263_QUARTZCAP_6pF [1] > + PCF85263_QUARTZCAP_12p5pF [2] DEFAULT > + The standard DT property "quartz-load-femtofarads" takes the real physical value in femto Farads ie values should be 7000, 6000, 12500 without defines. > +- nxp,quartz-drive-strength: Drive strength for the quartz: > + PCF85263_QUARTZDRIVE_100ko [0] DEFAULT > + PCF85263_QUARTZDRIVE_60ko [1] > + PCF85263_QUARTZDRIVE_500ko [2] > + Not sure about this. Wouldn't it be better to either use a real impedence value in ohms (like load property above, even though it is a vendor specific value) rather than a define, or defines for "Low, Medium, High"? Martin