From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net. [212.227.17.21]) by gmr-mx.google.com with ESMTPS id q64si409506wmg.0.2016.02.02.00.43.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Feb 2016 00:43:16 -0800 (PST) Subject: [rtc-linux] Re: [PATCH 2/2] doc: dt: add documentation for alphascale,asm9260-rtc To: Rob Herring References: <1454056802-23386-1-git-send-email-linux@rempel-privat.de> <1454056802-23386-3-git-send-email-linux@rempel-privat.de> <20160201152750.GA17595@rob-hp-laptop> Cc: devicetree@vger.kernel.org, a.zummo@towertech.it, alexandre.belloni@free-electrons.com, rtc-linux@googlegroups.com From: Oleksij Rempel Message-ID: <56B06BE1.3030100@rempel-privat.de> Date: Tue, 2 Feb 2016 09:42:09 +0100 MIME-Version: 1.0 In-Reply-To: <20160201152750.GA17595@rob-hp-laptop> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hxt77e8X61KOILwMShKObndQr7P7d0mRb" Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hxt77e8X61KOILwMShKObndQr7P7d0mRb Content-Type: text/plain; charset=UTF-8 Am 01.02.2016 um 16:27 schrieb Rob Herring: > On Fri, Jan 29, 2016 at 09:40:02AM +0100, Oleksij Rempel wrote: >> Document Alphascale asm9260 RTC bindings >> >> Signed-off-by: Oleksij Rempel >> --- >> .../bindings/rtc/alphascale,asm9260-rtc.txt | 25 ++++++++++++++++++++++ >> 1 file changed, 25 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt >> >> diff --git a/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt b/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt >> new file mode 100644 >> index 0000000..2c0ff3c >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt >> @@ -0,0 +1,25 @@ >> +* Alphascale asm9260 SoC Real Time Clock >> + >> +Required properties: >> +- compatible: Should be "alphascale,asm9260-rtc" >> +- reg: Physical base address of the controller and length >> + of memory mapped region. >> +- interrupts: IRQ line for the RTC. >> +- clocks: Reference to the clock entry. >> +- clock-names: should contain: >> + * "ahb" for the SoC RTC clock >> + >> +Optional: >> +- calibration: calibration value for 1 sec period. >> + Max value for forward calibration is 0x1ffff (131071), >> + Min value for backward calibration is 0xfffe0001 (-131071). > > This should be prefixed with 'alphascale,' ok, > How is this value determined? To each second the counter value will be increased to decreased by calibration value - if google translated it correctly from chinese :) It is RAW value which will be written to register. Since DT compiler do not support signed values i converted it to HEX. -- Regards, Oleksij -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. --hxt77e8X61KOILwMShKObndQr7P7d0mRb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlawa+cACgkQHwImuRkmbWkFqwD/e3wVBFQ/EEfcym8gNWf45iwp 6vvNV+kp1rEqmeuATDkA/2tUIOMoslHu9LN6X3NHUOteeMuxuxJiNhBEUeS58JP+ =foKL -----END PGP SIGNATURE----- --hxt77e8X61KOILwMShKObndQr7P7d0mRb--