Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp921888imu; Wed, 28 Nov 2018 01:33:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/XFF0yniZtt2qcouRsWO+h2S9fmprPkxQzuacGLg1pmqbAQnG/Up+RqEHM4zLx8FQ/N3U3v X-Received: by 2002:a63:5026:: with SMTP id e38mr32638215pgb.123.1543397612995; Wed, 28 Nov 2018 01:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543397612; cv=none; d=google.com; s=arc-20160816; b=gT+ZkpEZMcr5luk4D+J2/r4fh93xVMpC2SwxYyVz33JDnyXSq9n/hctbnNuLiVPOUU 6TJZ3uceEpcIMm4tQVrvmuM0gkc5ipcmmI/k+Jc8hMiGiHtJYthko9QCT7LI6ZoA3WLR BuN0A638NB+Kf1DtYZkLwu0VZ7MYh3ijLMMe37CWgFDyEHnS8RCIeJuaGgyFBhOkCfVB dj0bzwYhb4xorqMtlFVDw6lPVk2MZUMatnvox6PXm4ZaG7bkrax2HFxIMfzvN9jkDVdD u+A52gE0V+hh6+/7D9k+R+50zB1Plp/QnlniJByS1iP5Y7wS5pKo+ZAA8KeWQ6Xy78vp gkFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Prf5rOtJWAqn7jLRfFauNJatcaQErqQuvN1I/CUqIIM=; b=Owif4mgl2S6KaSoGPBQTiHMwUGnDSckLio3XV3tvqtWmWY/t+Yx2CM0iyiKQTRR5bL UL5qgnY7/Fova6pQjIqdRNkGDeogbyVwGpoXhCxtVfFjzyP2202YltPy+57Q7jAE2c30 NJz8RSFZjih7E+f5n10HWfhO+bIADWcplUR3mFoEfMEsAIHA6Osw+bGiJghzQilVD45Z Lp9RxOaZCcFTEe4yg32yO6MkZBL2KV4uSq/TW6PRs96aZkO8xh6iFwjffGZtVSYVtaky 5n4iEqJjkbSklXY6pA+k2s0Fe0Hk+A+C2dJbhspTHUOYFJpUSfoAyvlfqME5c26jjgWn JWeg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a32si7906333pla.168.2018.11.28.01.33.18; Wed, 28 Nov 2018 01:33:32 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728205AbeK1Ube (ORCPT + 99 others); Wed, 28 Nov 2018 15:31:34 -0500 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:49102 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727585AbeK1Ubd (ORCPT ); Wed, 28 Nov 2018 15:31:33 -0500 Received: by wens.csie.org (Postfix, from userid 1000) id 3CE1B5FF44; Wed, 28 Nov 2018 17:30:28 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Alexandre Belloni , Alessandro Zummo , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 02/15] dt-bindings: rtc: sun6i-rtc: Add compatible strings for pre-H6 variants Date: Wed, 28 Nov 2018 17:29:59 +0800 Message-Id: <20181128093013.24442-3-wens@csie.org> X-Mailer: git-send-email 2.20.0.rc1 In-Reply-To: <20181128093013.24442-1-wens@csie.org> References: <20181128093013.24442-1-wens@csie.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While doing Bluetooth enablement for various boards based on various Allwinner SoCs, minor differences in the RTC modules were found. These include a lack of an external clock output (A31), different internal oscillator frequencies (H3/H5/A64/V3/V3s), different regulator voltage settings (H5/H6), and the presence of miscellaneous registers unrelated to the RTC (A64/R40/H5/H6). The datasheet also describes different number of registers for non-volatile storage, though based on actual experiments the actual number is the same across the board. This patch adds a list of all pre-H6 variants, grouped by the internal oscillator's clock rate, regulator settings, and the presence of the external clock output. Combinations are introduced for the variants that have miscellaneous registers. The RTC block in the H6 also handles the 24 MHz DCXO. This will require more device tree binding changes and will be done later. Signed-off-by: Chen-Yu Tsai --- .../devicetree/bindings/rtc/sun6i-rtc.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt index d3e96459fc66..b1eaa443347d 100644 --- a/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt +++ b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt @@ -3,7 +3,21 @@ RTC controller for the Allwinner A31 Required properties: -- compatible : Should be "allwinner,sun6i-a31-rtc" +- compatible : Should be one of the following combinations: + - "allwinner,sun6i-a31-rtc" + - "allwinner,sun8i-a23-rtc" + - "allwinner,sun8i-h3-rtc" + - "allwinner,sun8i-r40-rtc", "allwinner,sun8i-h3-rtc" + - "allwinner,sun8i-v3-rtc" + - "allwinner,sun50i-a64-rtc", "allwinner,sun8i-h3-rtc" + - "allwinner,sun50i-h5-rtc" + + Where there are two or more compatible strings, this + denotes the hardware covered by the most specific one + is backward-compatible with the latter ones, and the + implementation for the latter ones can be used, albeit + with reduced functionality. + - reg : physical base address of the controller and length of memory mapped region. - interrupts : IRQ lines for the RTC alarm 0 and alarm 1, in that order. -- 2.20.0.rc1