Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3726233ybl; Tue, 20 Aug 2019 01:05:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRQZs03hlHamf5nxfGZtFIujoJ1MKipiUwA8y/22G0NEJRjcH5+o9Wrvhq0wfJpqn0q/ql X-Received: by 2002:aa7:8085:: with SMTP id v5mr28934752pff.165.1566288312704; Tue, 20 Aug 2019 01:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566288312; cv=none; d=google.com; s=arc-20160816; b=uZNhhYB+/H/QPUqdjQq9DgQiY4HaDzKihsX85RYgs2gL/JuvFPdT1s6sclTicNAsl/ 4GUghKVcEx13ectMQVm67qHjFgY1TYCw57yVcqVLnX/2TkqtPGWu5bgfRBCtpGybQfcA GfVYq2kveT7hvcAC6hPoWOhk/ET8Z4T+RQYA7+5MFuMNjiC3r1VF2y+j3HmYCIg2abwY egB0DfYssvV+M8M97I+lwfNK97ijWNsGaunm6epse922hoLPL9aDR2xEO3ZA7YKXlbSA Iq6F5HU+bwo568IGgP6H62KBblCVOoW6L0lhS5hoBHDjnlVj6LxhYIEVYuVuc9efZ/xx kV6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AkIn78PdAZA+g211KqS3nLIuICOD74evizTm8Y7zKdU=; b=o0uK/mcqErdEW5mmsVXveoi3FErfo8ZOWBUJKlyNZOow7h0TYvzTm1hdxwvTRjnim8 yT5j+ZwB9lFGitOdx5xxPCoJp+dGGTcSN2/tBMzTgkEQA4gvWlqMZJSm+asX6Mvb/cK8 oH834Cb/NtuPKKbMWD7i6LcSHtMh4tjvsioNhUvAIWfoNX5gxTiUDc3yeL3hBdVdAYH/ uzTPQzLkKSPTCce25UlXRltJhp44XzFSQ+VfsYanejO0Eb5wuFz2CWlP8lTXL0mXPkB8 23Luk2fzQRGVnXRWUuS5Xi6K+WXXuXidtZagB0gwLkE/SIohi1ynReQ7XbZRUofqVDq+ zolQ== 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 m129si12583956pfm.15.2019.08.20.01.04.57; Tue, 20 Aug 2019 01:05:12 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729246AbfHTIEG (ORCPT + 99 others); Tue, 20 Aug 2019 04:04:06 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:35553 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbfHTIEG (ORCPT ); Tue, 20 Aug 2019 04:04:06 -0400 X-Originating-IP: 87.18.63.98 Received: from uno.localdomain (unknown [87.18.63.98]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 3B21F4000A; Tue, 20 Aug 2019 08:03:59 +0000 (UTC) Date: Tue, 20 Aug 2019 10:05:28 +0200 From: Jacopo Mondi To: Geert Uytterhoeven Cc: Jacopo Mondi , Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Koji Matsuoka , muroya@ksk.co.jp, VenkataRajesh.Kalakodima@in.bosch.com, Harsha.ManjulaMallikarjun@in.bosch.com, Linux-Renesas , DRI Development , Linux Kernel Mailing List Subject: Re: [PATCH v2 01/19] dt-bindings: display: renesas,cmm: Add R-Car CMM documentation Message-ID: <20190820080528.2p3l4z525nii2djt@uno.localdomain> References: <20190706140746.29132-1-jacopo+renesas@jmondi.org> <20190706140746.29132-2-jacopo+renesas@jmondi.org> <20190820074826.5rdzeqyk6ylpjr7o@uno.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uoy3xuspityfwvxm" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uoy3xuspityfwvxm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Geert, On Tue, Aug 20, 2019 at 09:53:44AM +0200, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Tue, Aug 20, 2019 at 9:47 AM Jacopo Mondi wrote: > > On Mon, Aug 19, 2019 at 03:45:54PM +0200, Geert Uytterhoeven wrote: > > > On Mon, Jul 8, 2019 at 9:58 AM Geert Uytterhoeven wrote: > > > > On Sat, Jul 6, 2019 at 4:07 PM Jacopo Mondi wrote: > > > > > Add device tree bindings documentation for the Renesas R-Car Display > > > > > Unit Color Management Module. > > > > > > > > > > CMM is the image enhancement module available on each R-Car DU video > > > > > channel on R-Car Gen2 and Gen3 SoCs (V3H and V3M excluded). > > > > > > > > > > Signed-off-by: Jacopo Mondi > > > > > Reviewed-by: Laurent Pinchart > > > > > > > > Thanks for your patch! > > > > > > > > > --- /dev/null > > > > > +++ b/Documentation/devicetree/bindings/display/renesas,cmm.txt > > > > > @@ -0,0 +1,25 @@ > > > > > +* Renesas R-Car Color Management Module (CMM) > > > > > + > > > > > +Renesas R-Car image enhancement module connected to R-Car DU video channels. > > > > > + > > > > > +Required properties: > > > > > + - compatible: shall be one of: > > > > > + - "renesas,rcar-gen3-cmm" > > > > > + - "renesas,rcar-gen2-cmm" > > > > > > > > Why do you think you do not need SoC-specific compatible values? > > > > What if you discover a different across the R-Car Gen3 line tomorrow? > > > > Does the IP block have a version register? > > > > > > Do you have an answer to these questions? > > > > It does not seem to me that CMM has any version register, nor there > > are differences between the different Gen3 SoCs.. > > > > However, even if we now define a single compatible property for > > gen3/gen2 and we later find out one of the SoC needs a soc-specific > > property we can safely add it and keep the generic gen3/gen2 one as > > fallback.. Does it work for you? > > Unfortunately that won't work, as the existing DTBs won't have the > soc-specific compatible value. Correct, existing dtbs won't have the soc-specific value... However, there are functional differences between different SoCs according to the datasheet, but if it's good practice to provide soc-specific compatibles "just in case" I'm fine doing that.. > You could still resort to soc_device_match(), but it is better to avoid that. I see... Also that function's documentation prescribes to go through DT first, so I guess it's our last resort... > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds --uoy3xuspityfwvxm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEtcQ9SICaIIqPWDjAcjQGjxahVjwFAl1bqcgACgkQcjQGjxah VjzfIQ//bceJ2Cx5ZIgeBzXpJ+LvUqUpBoZU2JcuzPvzZHK3zjHVRil1FBlktd8U qkO8BsZqefP7YenFiMX1wfCXEj/+2Nwm9HGSw4xlOPWuF2oVLtU5PajvYNmSJqRZ NbVnYtiTf2xQtfj2JE8JkNR9uz+KMH6oHlsqzX8YaSSll5mOt/1I23AV/JIVmx/S BkQ78othU3hWDFQCxct9rq1GkPrC0TOsq4zN+rw2kxQUdRHcBzb7kZrdDt0kkYYg K9YBmQgTLnvGoL+yBLnMKRLLpVYFiQpMNzT9TgUjOx0yzXyk2HOxJMh938V97sqX XtxtAJlxN8VruOrG2RJ4rYfKsPU9OWRyurntMhF1btXysM73zoX8D6AXkEGSqkA2 TtwIDHco5k1FtuZODoFgIetgXOWfkbykC2TWUft52QQriDnYOqZ8qKXp0AE9qoYn iL72UoeeZwsyVgkPNZBxzI4MUzcfTPJssvlV2tUtXxOciRkBl6zmD61nhN4vvp9p 1AbXOXhYKfC/gmCs/WK4QzJvehSXa1bIAtMWeceUsvJBadsAttbNc6O2BM6SEWuF JnAZRhWcjqOtfNl90o0bctWsFAZ109guX2rTJONZYSPxXaDya7yJpUdRMw0QgPCx XVCryR/NCK52QGsFtaExhfidbkxNqKLaRZiPei31s0QWbo6SkJ4= =M2QT -----END PGP SIGNATURE----- --uoy3xuspityfwvxm--