public inbox for linux-rockchip@lists.infradead.org
 help / color / mirror / Atom feed
From: Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>
To: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
	joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org
Cc: mark.rutland-5wv7dgnIgG8@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	tomeu-XCtybt49RKsYaV1qd6yewg@public.gmane.org
Subject: Re: [PATCH 1/2] dt-bindings: iommu/rockchip: Make clock properties optional
Date: Tue, 10 Apr 2018 12:18:48 +0100	[thread overview]
Message-ID: <99245ec4-6835-7fa7-3bad-dd21874f92c0@arm.com> (raw)
In-Reply-To: <20180410092612.2653-2-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>

On 10/04/18 10:26, Heiko Stuebner wrote:
> Rockchip IOMMUs are used without explicit clock handling for 4 years
> now, so we should keep compatibility with old devicetrees if possible.
> Therefore make iommu clocks optional.

Do we need to touch the binding itself? Obviously the driver has to 
treat clocks as optional in existing DTs (and I feel a bit dumb now for 
managing to overlook that in review), but the binding effectively only 
covers future DTs, and I'd assume we want to encourage the clocks to be 
correctly specified there.

Robin.

> Fixes: 8fa9eb39c614 ("dt-bindings: iommu/rockchip: Add clock property")
> Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
> ---
>   Documentation/devicetree/bindings/iommu/rockchip,iommu.txt | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt
> index 6ecefea1c6f9..25bfad987513 100644
> --- a/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt
> +++ b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt
> @@ -14,13 +14,13 @@ Required properties:
>                       "single-master" device, and needs no additional information
>                       to associate with its master device.  See:
>                       Documentation/devicetree/bindings/iommu/iommu.txt
> +
> +Optional properties:
>   - clocks          : A list of clocks required for the IOMMU to be accessible by
>                       the host CPU.
>   - clock-names     : Should contain the following:
>   	"iface" - Main peripheral bus clock (PCLK/HCL) (required)
>   	"aclk"  - AXI bus clock (required)
> -
> -Optional properties:
>   - rockchip,disable-mmu-reset : Don't use the mmu reset operation.
>   			       Some mmu instances may produce unexpected results
>   			       when the reset operation is used.
> 

  parent reply	other threads:[~2018-04-10 11:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10  9:26 [PATCH 0/2] iommu/rockchip: fix clock handling to not break old dts Heiko Stuebner
     [not found] ` <20180410092612.2653-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2018-04-10  9:26   ` [PATCH 1/2] dt-bindings: iommu/rockchip: Make clock properties optional Heiko Stuebner
     [not found]     ` <20180410092612.2653-2-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2018-04-10 11:18       ` Robin Murphy [this message]
     [not found]         ` <99245ec4-6835-7fa7-3bad-dd21874f92c0-5wv7dgnIgG8@public.gmane.org>
2018-04-10 11:26           ` Heiko Stuebner
2018-04-13 21:02             ` Rob Herring
2018-04-17 12:01               ` Heiko Stuebner
2018-04-10  9:26   ` [PATCH 2/2] iommu/rockchip: make clock handling optional Heiko Stuebner
     [not found]     ` <20180410092612.2653-3-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2018-04-10 11:24       ` Robin Murphy

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=99245ec4-6835-7fa7-3bad-dd21874f92c0@arm.com \
    --to=robin.murphy-5wv7dgnigg8@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
    --cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org \
    --cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=tomeu-XCtybt49RKsYaV1qd6yewg@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox