Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1010018ybh; Wed, 18 Mar 2020 13:14:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvAkKr4E08BzonWXk96ZIi5hp68tUgTL8u5OVLnF1ZyDJO1AJTKZYh1KGfEDBn5rlLyDMGc X-Received: by 2002:aca:7517:: with SMTP id q23mr4658464oic.23.1584562455466; Wed, 18 Mar 2020 13:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584562455; cv=none; d=google.com; s=arc-20160816; b=CkvUEeUTyIh4QSTmqVnY6ptWW1vWbh6Fjs0zjb5lZ1unauaLHtMOKCMKAFd3rbChHT KMDiHC/BpgJs55CGBKqQYmOKUG07wA7r1gS1U/fGXKAdEThNbZ3izpmKI2fWdzPsvtUB HwSCiJtbocliVww83Px8VJ2KRSwQajhqXmPucrWUU1m5reBnsO2b8zbIPciHfF58FoSZ RjSt7HPcA9AQddOgJPOwsyBpY/0ITnK1+5jUwaSj712nKqNLMS+PJjvf3r/kZopQp1P1 Az1yiPVjbGzDv3PMCTnV3SZs3xRHnHkzkNcQEVQLc5Yw3m/E5nvxi/VBE27Bghi4hiff xCdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TTrA+tMwfg5GaaL0pTTB4SX2vmA9Q9FMRW/WsoCZ0JE=; b=G00+U1JSu4+Ab/S6/yAT/770H7s9n2xJCzybgXF7sfIUxiV559jtN3+YJdwmnUqXff QxIfGYWQP2cdm5Joo9C3gCN4KIDGWEPASzUNWjkK3rarJsSCXzT/YHgwXqZw0OHj9WTA +/c4HoxfsvHCAIhA19lEKkJ9DPxgLQ0CrxC0M1E0FudhTaR1WnvucwyjG1bvZRBK/wZW TMMo+5A6FDRWA5ALoOlWxdXgT1EgfaOWNr5etU5hmXR3LCPSxbOOh6MYrY89wb9p7UJb ttR60zs79D3dQTZLGrvGWaLZq44f2syKY6DlmCcbR+d0tiiiN9GpTj6vl6G9duzlNblS Ji+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="EdyaXSK/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si4128731oif.161.2020.03.18.13.14.02; Wed, 18 Mar 2020 13:14:15 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="EdyaXSK/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726836AbgCRUN2 (ORCPT + 99 others); Wed, 18 Mar 2020 16:13:28 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:42414 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbgCRUN1 (ORCPT ); Wed, 18 Mar 2020 16:13:27 -0400 Received: by mail-oi1-f194.google.com with SMTP id 13so158390oiy.9; Wed, 18 Mar 2020 13:13:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TTrA+tMwfg5GaaL0pTTB4SX2vmA9Q9FMRW/WsoCZ0JE=; b=EdyaXSK/9dSzcuY7KwTimocBCtQucM4yN4ilyd0nhsZPKf/UZPVgHsa27qIqIEWXnQ cPh0Eqo1ASE1ekQGfsFtJNbZhhy1L/klvGKLYsRpvUQhWP06l5H7cwN0ynA4d7cnjgB9 +mSQIHNkMZW8leB3bfjIIfD9iUaGIpkiVUeiZ526JEb9RorazGGJUyLQGtYJ1Rp9Vngi XiuI7qVILh/vxu/878w2zvYPf99V8I/i1Fon1swKN8rVHN1BILMMtig7NlQzyC2xR3Vl 90HSAqD4+MRRWe0jOLDzen4quH5t9LZP3htJmM24EpiC7E4DvRe4sti7AhcEdUghPqIK ZVag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TTrA+tMwfg5GaaL0pTTB4SX2vmA9Q9FMRW/WsoCZ0JE=; b=ekdjUyFQv2TSMcoOYLYe9YJcq4hwSQZM4jcNX3jjjug/alRE/pMZGcnMhKi6qxWYm8 s19DRdCoZAjj++czh1IdTQIPfulOAFIO0pjmoUogbRutOvo3P9zmoFuhJIScr9yuIM7H LiPFmlt3bLaEsfVe9Io0UP1sMtlOr297ax5ZdBhvP6JpYKexSVx8h7Z19P+hFHT0uQ5U 0TbLIKFECs2B99Stk787Ox7zS2QZEIuPJAwUvXrLcbNv9M3JfR9iDm643kOniuCaP3rC GXvs6NE8BFXUyxA5E+JtjfsodSJnTih8OvHzSR/EAFh5iNlVJ27OsLztNL8VIsy6+Tnw AC9Q== X-Gm-Message-State: ANhLgQ3CT6GATjWRYXWJgU3Y5G2ceYxba5LOOu3bFvru0B56hu1ruLgn +4u4eD5MZpgdKJ1k4jg/+CQUuaZoPPNeiR0ls4M= X-Received: by 2002:aca:7512:: with SMTP id q18mr4630250oic.71.1584562407110; Wed, 18 Mar 2020 13:13:27 -0700 (PDT) MIME-Version: 1.0 References: <1584133954-6953-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <1584133954-6953-2-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200313212012.GL4751@pendragon.ideasonboard.com> <20200313212717.GO4751@pendragon.ideasonboard.com> In-Reply-To: <20200313212717.GO4751@pendragon.ideasonboard.com> From: "Lad, Prabhakar" Date: Wed, 18 Mar 2020 20:13:00 +0000 Message-ID: Subject: Re: [PATCH v3 1/4] media: dt-bindings: media: i2c: Switch to assigned-clock-rates To: Laurent Pinchart Cc: Prabhakar Mahadev Lad , Mark Rutland , "devicetree@vger.kernel.org" , Fabio Estevam , Sakari Ailus , Ezequiel Garcia , Sascha Hauer , Magnus Damm , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , Rob Herring , Geert Uytterhoeven , NXP Linux Team , Pengutronix Kernel Team , Mauro Carvalho Chehab , Shawn Guo , "linux-arm-kernel@lists.infradead.org" , "linux-media@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, On Fri, Mar 13, 2020 at 9:27 PM Laurent Pinchart wrote: > > Hi Prabhakar, > > On Fri, Mar 13, 2020 at 09:25:01PM +0000, Prabhakar Mahadev Lad wrote: > > On Sent: 13 March 2020 21:20, Laurent Pinchart wrote: > > > On Fri, Mar 13, 2020 at 09:12:31PM +0000, Lad Prabhakar wrote: > > > > Use assigned-clock-rates to specify the clock rate. Also mark > > > > clock-frequency property as deprecated. > > > > > > I would phrase it the other way around, this patch mainly deprecates clock- > > > frequency, and as a side effect recommends usage of assigned-clock-rates. > > > > > > "Deprecate usage of the clock-frequency propertly. The preferred method > > > to set clock rates is to use assigned-clock-rates." > > > > Agreed will do that. > > > > > > Signed-off-by: Lad Prabhakar > > > > --- > > > > Documentation/devicetree/bindings/media/i2c/ov5645.txt | 5 +++-- > > > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/ov5645.txt > > > > b/Documentation/devicetree/bindings/media/i2c/ov5645.txt > > > > index 72ad992..e62fe82 100644 > > > > --- a/Documentation/devicetree/bindings/media/i2c/ov5645.txt > > > > +++ b/Documentation/devicetree/bindings/media/i2c/ov5645.txt > > > > @@ -8,7 +8,7 @@ Required Properties: > > > > - compatible: Value should be "ovti,ov5645". > > > > - clocks: Reference to the xclk clock. > > > > - clock-names: Should be "xclk". > > > > -- clock-frequency: Frequency of the xclk clock. > > > > +- clock-frequency (deprecated): Frequency of the xclk clock. > > > > > > I would drop this completely. Drivers need to ensure backward compatibility, > > > but DT bindings should only document the latest version, the history is > > > available in git. > > > > > Sure will drop it. > > > > > Reviewed-by: Laurent Pinchart > > > > > > While at it, can I enlist you to convert these bindings to yaml ? :-) > > > > > Sure will do the honours , will make sure yaml patch is ontop of this patch too. > Shall I enlist you as the maintainer in the json-schema ? dt_binding_check says 'maintainers' is a required property. Cheers, --Prabhakar Lad > Thank you :-) > > > > > - enable-gpios: Chip enable GPIO. Polarity is GPIO_ACTIVE_HIGH. This corresponds > > > > to the hardware pin PWDNB which is physically active low. > > > > - reset-gpios: Chip reset GPIO. Polarity is GPIO_ACTIVE_LOW. This corresponds to > > > > @@ -37,7 +37,8 @@ Example: > > > > > > > > clocks = <&clks 200>; > > > > clock-names = "xclk"; > > > > -clock-frequency = <24000000>; > > > > +assigned-clocks = <&clks 200>; > > > > +assigned-clock-rates = <24000000>; > > > > > > > > vdddo-supply = <&camera_dovdd_1v8>; > > > > vdda-supply = <&camera_avdd_2v8>; > > -- > Regards, > > Laurent Pinchart > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel