Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1547860ybe; Mon, 2 Sep 2019 23:30:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfYufLGlfhE5d/Dzn57BGU8HEHD3wKEZ6HSWAU6wb07yAj0cyZQg6q5/EiaOoZF0nollJX X-Received: by 2002:a62:2b51:: with SMTP id r78mr17091574pfr.149.1567492216290; Mon, 02 Sep 2019 23:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567492216; cv=none; d=google.com; s=arc-20160816; b=cSAlAi511v/zsuWnjkeYNdFBCYnsDDuEVFjCcQgOU7/D0HXu0gv3gWWsMFFaJ2Ow4p DBhVtDga+r3J4AgstdiW2s4uWcn0/TfIQ7YLeuZ8K5FLo4Ud9yPAf7F8l/pVLYTPI2ln 8kER0egCwYW4SezgHvIl+B5aN60rH6Jh2vc1a+RIbtbK9HmedcY0dA38sYbCIE9yF5qn /DdgoypDSd7VfgXzaREMSTSsDkqQR5Ch9dN6vkBEMLQ8U+r5EAe4Gsqrdf9OW0CDZbTE utiTzfbW41VA9KjU4clCSUWacGJZtLZg2WiRJUzhJIzFApvN2DmVCF+o1Yu02JkybUiT 6yRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=DVTD5e5N1MR2cpAg2Cp+MeWoiBJOdnapxnAxSj1efxQ=; b=dlX5xx6L4qRElpxESQU5Oin4NQU0pYjrhsQNmN84jO8bRTFp3uws1RfmJ7FnoXEerj Oa89LGgJQ7O5rYJurdbH878VTvtMaYO2I7KG+LtvZ45EpRfN+4IZFfz1bNeb4TXafKct X/vkUD3Eqv+S6bbtlB9ZNJxyxXfC/MKCowCU6EEmbUP1j+HoUTgZtjn+Wu8W1h6yX064 1T9YFYZyGXxTbdvtJ3rPhsaTx18FGs3MaIh7BgMey5lYAt+HmEdLEIrz5PpCKp4xLiHT W7HQFF9fBxxt+FU167OdTtWtvnGA8JodwQLHH2vQV8nwpZ+jxvn4OssZigVx9lo/1CKZ m5hw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18si455394pjr.74.2019.09.02.23.30.00; Mon, 02 Sep 2019 23:30:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbfICG3H (ORCPT + 99 others); Tue, 3 Sep 2019 02:29:07 -0400 Received: from inva020.nxp.com ([92.121.34.13]:46958 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfICG3H (ORCPT ); Tue, 3 Sep 2019 02:29:07 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0FC0B1A02B3; Tue, 3 Sep 2019 08:29:04 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 764581A0050; Tue, 3 Sep 2019 08:28:59 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8A3D9402B7; Tue, 3 Sep 2019 14:28:53 +0800 (SGT) From: Biwen Li To: 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, Biwen Li , Martin Fuzzey Subject: [v3,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties Date: Tue, 3 Sep 2019 14:18:52 +0800 Message-Id: <20190903061853.19793-1-biwen.li@nxp.com> X-Mailer: git-send-email 2.9.5 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add some properties for pcf85263/pcf85363 as follows: - interrupt-output-pin: string type - quartz-load-femtofarads: integer type - nxp,quartz-drive-strength: integer type - nxp,quartz-low-jitter: bool type - wakeup-source: bool type Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- Change in v3: - None Change in v2: - Replace properties name quartz-load-capacitance -> quartz-load-femtofarads quartz-drive-strength -> nxp,quartz-drive-strength quartz-low-jitter -> nxp,quartz-low-jitter - Replace drive strength name PCF85263_QUARTZDRIVE_NORMAL -> PCF85263_QUARTZDRIVE_100ko PCF85263_QUARTZDRIVE_LOW -> PCF85263_QUARTZDRIVE_60ko PCF85263_QUARTZDRIVE_HIGH -> PCF85263_QUARTZDRIVE_500ko - Set default interrupt-output-pin as "INTA" .../devicetree/bindings/rtc/pcf85363.txt | 29 +++++++++++++++++++ include/dt-bindings/rtc/pcf85363.h | 15 ++++++++++ 2 files changed, 44 insertions(+) create mode 100644 include/dt-bindings/rtc/pcf85363.h 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" + +- quartz-load-femtofarads: The internal capacitor to select for the quartz: + PCF85263_QUARTZCAP_7pF [0] + PCF85263_QUARTZCAP_6pF [1] + PCF85263_QUARTZCAP_12p5pF [2] DEFAULT + +- nxp,quartz-drive-strength: Drive strength for the quartz: + PCF85263_QUARTZDRIVE_100ko [0] DEFAULT + PCF85263_QUARTZDRIVE_60ko [1] + PCF85263_QUARTZDRIVE_500ko [2] + +- nxp,quartz-low-jitter: Boolean property, if present enables low jitter mode + which reduces jitter at the cost of increased power consumption. + +- wakeup-source: Boolean property, Please refer to + Documentation/devicetree/bindings/power/wakeup-source.txt + Example: pcf85363: pcf85363@51 { compatible = "nxp,pcf85363"; reg = <0x51>; + + interrupt-parent = <&gpio1>; + interrupts = <18 IRQ_TYPE_EDGE_FALLING>; + + #include + wakeup-source; + interrupt-output-pin = "INTA"; + quartz-load-femtofarads = ; + nxp,quartz-drive-strength = ; + nxp,quartz-low-jitter; }; diff --git a/include/dt-bindings/rtc/pcf85363.h b/include/dt-bindings/rtc/pcf85363.h new file mode 100644 index 000000000000..f71b151bc481 --- /dev/null +++ b/include/dt-bindings/rtc/pcf85363.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _DT_BINDINGS_RTC_PCF85363_H +#define _DT_BINDINGS_RTC_PCF85363_H + +/* Quartz capacitance */ +#define PCF85363_QUARTZCAP_7pF 0 +#define PCF85363_QUARTZCAP_6pF 1 +#define PCF85363_QUARTZCAP_12p5pF 2 + +/* Quartz drive strength */ +#define PCF85363_QUARTZDRIVE_100ko 0 +#define PCF85363_QUARTZDRIVE_60ko 1 +#define PCF85363_QUARTZDRIVE_500ko 2 + +#endif /* _DT_BINDINGS_RTC_PCF85363_H */ -- 2.17.1