Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp466085ybl; Fri, 30 Aug 2019 02:29:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeh7Z+9uTELz4e6ZfcaBh+zwqKl1ZkBaG2GrjuiVMt3dF1ZYaOTA3RfVnlQrNE7ipLU/vp X-Received: by 2002:a62:1810:: with SMTP id 16mr16459684pfy.171.1567157342054; Fri, 30 Aug 2019 02:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567157342; cv=none; d=google.com; s=arc-20160816; b=TpJVML8k/DE8wcybDwX3hCfWsgbeoNjLY7jlWlGUdQjkDufoJ8GhHzqlfU6bwdHlN3 iR9KUQ7nlUIVuyoFJpHzgQVhNy3i07XCzzvVEYnw1qP9DBRCQ2FDgUTSJxUVSZEL4Q6T R8FeQ2LOwjl3AHsnyRc4wjpDvMQaR4puOqNPyQoLWdYpfxGPX7MZ8Qt0ivoa8tPOumrG h1Y9vWE1pAelEoYkB8blYJwZScfSVmHIQ/Y7A9vGzNTZLQDjbfbVAbt2SiUPRqIHGSPX 7ddHdtuBWdHcZkl6jkT9ezDlJp9loMjaejIELzcHknBmsIkinkFCVKOH+U1EVnWuRQWQ HvNw== 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=A4+0Xi/ivWMfiLm8jtLCuiW3rgf3ZsNyFoo2yXlscdg=; b=JVojy/Q1+AlLBIIBFXT+jJaQcVFyjiu0uHVSEty02X3k2RLxFUrs6r0LGFxRr8xTq/ LTymkDzg3XuFh28bGKeZCVMLKIBks50+48N9eCnXx6lGgQDoscgipyncCnjOJOyJlWnw Gi03w2XQIudAW8nR900xKo7egYj8geSUm2MB+cHwyydUCwu3S1ehFt9OhqjW6NL026EY 5/jZ3aS83ikmM6ExZ3ikfWSTBu+z+ATdHQMQ2RJuXTUZsalW3hMK8/BpEzupemvOqHtF ODwVzu2VnIEBiD6bf93a3afvK84mibGsCZ5gy3pO2OX33Ynfe5yNhga1QrhKanxwg6UD 1C1w== 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 n2si4088612pga.426.2019.08.30.02.28.46; Fri, 30 Aug 2019 02:29:02 -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 S1728350AbfH3J1e (ORCPT + 99 others); Fri, 30 Aug 2019 05:27:34 -0400 Received: from inva020.nxp.com ([92.121.34.13]:50538 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbfH3J1d (ORCPT ); Fri, 30 Aug 2019 05:27:33 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C9E9D1A03CC; Fri, 30 Aug 2019 11:27:30 +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 395DE1A00A9; Fri, 30 Aug 2019 11:27:26 +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 4B845402D7; Fri, 30 Aug 2019 17:27:20 +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: [1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties Date: Fri, 30 Aug 2019 17:17:19 +0800 Message-Id: <20190830091720.41156-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-capacitance: integer type - quartz-drive-strength: integer type - quartz-low-jitter: bool type - wakeup-source: bool type Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- .../devicetree/bindings/rtc/pcf85363.txt | 31 +++++++++++++++++++ include/dt-bindings/rtc/pcf85363.h | 15 +++++++++ 2 files changed, 46 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..d83359990bd7 100644 --- a/Documentation/devicetree/bindings/rtc/pcf85363.txt +++ b/Documentation/devicetree/bindings/rtc/pcf85363.txt @@ -8,10 +8,41 @@ Required properties: Optional properties: - interrupts: IRQ line for the RTC (not implemented). +- interrupt-output-pin: The interrupt output pin must be + "NONE", "INTA" or "INTB", default value is "NONE" + +- quartz-load-capacitance: The internal capacitor to select for the quartz: + PCF85263_QUARTZCAP_7pF [0] + PCF85263_QUARTZCAP_6pF [1] + PCF85263_QUARTZCAP_12p5pF [2] DEFAULT + +- quartz-drive-strength: Drive strength for the quartz: + PCF85263_QUARTZDRIVE_NORMAL [0] DEFAULT + PCF85263_QUARTZDRIVE_LOW [1] + PCF85263_QUARTZDRIVE_HIGH [2] + +- 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, mark the chip as a wakeup source, + independently of the availability of an IRQ line connected to the SoC. + This is useful if the IRQ line is connected to a PMIC or other circuit + that can power up the device rather than to a normal SOC interrupt. + 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-capacitance = ; + quartz-drive-strength = ; + 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..2c06c28eb5ff --- /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_NORMAL 0 +#define PCF85363_QUARTZDRIVE_LOW 1 +#define PCF85363_QUARTZDRIVE_HIGH 2 + +#endif /* _DT_BINDINGS_RTC_PCF85363_H */ -- 2.17.1