All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Brandon Martin <martinbv-cvVvTOR6QHAqDJ6do+/SaQ@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/2] rtc: v3020: Add documentation for DT bindings
Date: Fri, 25 Aug 2017 16:54:57 -0500	[thread overview]
Message-ID: <20170825215457.qcd5paiw5qtuybxv@rob-hp-laptop> (raw)
In-Reply-To: <660fa006-4f91-2fb5-ef98-ba0482e1ecff-cvVvTOR6QHAqDJ6do+/SaQ@public.gmane.org>

On Tue, Aug 22, 2017 at 05:05:47PM -0400, Brandon Martin wrote:
> Document the DT bindings for the rtc-v3020 driver.  MMIO and GPIO
> attachment modes are both supported via DT.
> 
> Signed-off-by: Brandon Martin <martinbv-cvVvTOR6QHAqDJ6do+/SaQ@public.gmane.org>
> ---
>  .../devicetree/bindings/rtc/rtc-v3020.txt          | 38 ++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/rtc/rtc-v3020.txt
> 
> diff --git a/Documentation/devicetree/bindings/rtc/rtc-v3020.txt b/Documentation/devicetree/bindings/rtc/rtc-v3020.txt
> new file mode 100644
> index 000000000000..8b32e6a79960
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/rtc-v3020.txt
> @@ -0,0 +1,38 @@
> + EM Micro v3020 RTC
> +~~~~~~~~~~~~~~~~~~~~
> +
> +Required properties:
> +  - compatible : "emmicro,v3020"
> +
> +Required for MMIO connection:
> +  - reg : should contain registers location and length.

Looking at the datasheet, there's really no such thing. You'd have to 
have some specialized h/w to generate the serial waveform.

> +
> +Required for GPIO connection:
> +- emmicro,use-gpio
> +- cs-gpios, wr-gpios, rd-gpios, io-gpios : specify gpios connected to
> +  corresponding pins of the RTC
> +
> +Optional properties:
> +- emmicro,mmio-left-shift : data bit to which IO line is connected for MMIO
> +  connection (defaults to 0)

This has come up several times on RTCs (LP8841, DS1302). This really 
looks like SPI and could probably use the spi-gpio bitbang driver. 

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-08-25 21:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-22 21:05 [PATCH 0/2] DT bindings for rtc-v3020 Brandon Martin
     [not found] ` <b832db93-9885-adfe-39b4-1950851b391d-cvVvTOR6QHAqDJ6do+/SaQ@public.gmane.org>
2017-08-22 21:05   ` [PATCH 1/2] rtc: v3020: Add documentation for DT bindings Brandon Martin
     [not found]     ` <660fa006-4f91-2fb5-ef98-ba0482e1ecff-cvVvTOR6QHAqDJ6do+/SaQ@public.gmane.org>
2017-08-25 21:54       ` Rob Herring [this message]
2017-08-25 22:36         ` Brandon Martin
     [not found]           ` <59A0A664.7040904-cvVvTOR6QHAqDJ6do+/SaQ@public.gmane.org>
2017-08-28 18:36             ` Rob Herring
     [not found]               ` <CAL_JsqLgxQ1xKg6mWHQTjq-u3ukOu7n1kwBspVnpF6XDxWpVFw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-29  2:30                 ` Brandon Martin
2017-08-22 21:06   ` [PATCH 2/2] rtc: v3020: " Brandon Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170825215457.qcd5paiw5qtuybxv@rob-hp-laptop \
    --to=robh-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=martinbv-cvVvTOR6QHAqDJ6do+/SaQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.