Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1377244pxb; Fri, 21 Jan 2022 17:00:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/wRRLyFesJDR6Yt14otkPmguD0ILp6c+yW8x8oI01T1LQE9earbSJn34uIlNmYylfmXCH X-Received: by 2002:a17:90b:1b12:: with SMTP id nu18mr3169208pjb.70.1642813236130; Fri, 21 Jan 2022 17:00:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642813236; cv=none; d=google.com; s=arc-20160816; b=BsuSx8ohRjSN78fQy2IJY4uw9dv3HSy+6fAnAS7W0C7iDlnkDDIVuq/mN+jxuo1Bft kdEN4FuD3g5QkAtX0ys3RLkWdD+ZH4I9Lw2FD1zDBo4LZVKE/0VpQ90VRp0+ziSp97EB IFia2sBNoJXz31BIEmj6ZasH7x4BpINJsURMfCuaNzxa8EKCkame8N5aoX2j9SPWMLAK kaEu9ntSoTbxtj4FBKK6FefAjwDc8HPw0kDEi0AhKDV3hsPBlMmd2ciEktNTU1e5juPK 0bCTpNQI7UbFsIDLcuMp5SoSTQfg938EZJWWgJWttZYk5lcTGio0w8kLT5t9rUfbwhCi 0dEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=qqRduQ6pwUJD4EpwWXKwPFy7ze+L3+n5fzGWCVuYmuA=; b=JjsgaHi44pmosPBvTQTMz9Msg58pbERsCnBknb8uygy7/lFwCZqhmGCFUJDtcF4u8+ w2V9HCybO2ZZQGNZF9YFDJCscg3D5hlEr5XTSzmFu04AU1Gy+7qgIVpmfYwz9QMooaM/ eMYHujemVwD3qEPF9hLOctlM/18e0DI8jEm4d4B2K5zMdY+mBnIq1wEVUOJYoqZdP8xn M7GIK05RiRMhTxpqaLEitEqdUDyHyePVCNhkhWvDzmm2MHK9qlD3MBHnwsKjKZ6x/ILJ 5tmxV1C+WojTEKuiYmIWUTY+hUkHSZhoqPtqGwz8ldDE6DYYztuhjrQ15ZxEgx3EV8t6 BNkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si8307681plx.86.2022.01.21.17.00.25; Fri, 21 Jan 2022 17:00:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380294AbiAUMGl (ORCPT + 99 others); Fri, 21 Jan 2022 07:06:41 -0500 Received: from mail-vk1-f177.google.com ([209.85.221.177]:40694 "EHLO mail-vk1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380308AbiAUMGc (ORCPT ); Fri, 21 Jan 2022 07:06:32 -0500 Received: by mail-vk1-f177.google.com with SMTP id m131so5418310vkm.7; Fri, 21 Jan 2022 04:06:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qqRduQ6pwUJD4EpwWXKwPFy7ze+L3+n5fzGWCVuYmuA=; b=zadp1B942ts+pMZ0SHxYHgQLaB8AmwSQvDDIwN2f6mgenyHwxcVGE0/4GrHDkkBXpu S2grFfOiQJQFeXqZECXDmfREotELYfB85oWXWrQMzos71KdU5I8sACdMlT1bKkd3PuJY x5h7BxIVTPMSZzlX0TMBYLQ5A2LpIPq2LXAfOw/44wByuHR4SmQWNkt9ZSvu3qB+sLK9 o9rYwXoSyLnOH8HFuJpUND8R5bcyhuJ2v49EP3f1MFc6LMmfEpeTDnI+hGwm7zCOICL2 zfALxG8iRl/Sr6ZZ+lLgti+/Cn8tJHTv2lEnFBMA6wQrfBB1YBB5Kl9pZc4dNYA1eEoz dHdA== X-Gm-Message-State: AOAM532XGTA6chej/7unkLIg3wHviJ5eEpWApDJLqHxoNkIKzeAvnCV0 g+VOJc0Q7ciNGow9R7CZEUJE8UxbiO1p+A== X-Received: by 2002:a05:6122:221d:: with SMTP id bb29mr1428075vkb.30.1642766791744; Fri, 21 Jan 2022 04:06:31 -0800 (PST) Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com. [209.85.222.47]) by smtp.gmail.com with ESMTPSA id 4sm950583vsv.22.2022.01.21.04.06.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Jan 2022 04:06:31 -0800 (PST) Received: by mail-ua1-f47.google.com with SMTP id 2so16465737uax.10; Fri, 21 Jan 2022 04:06:30 -0800 (PST) X-Received: by 2002:a67:e905:: with SMTP id c5mr1616195vso.68.1642766790659; Fri, 21 Jan 2022 04:06:30 -0800 (PST) MIME-Version: 1.0 References: <20220121010543.31385-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220121010543.31385-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 21 Jan 2022 13:06:19 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 1/4] media: dt-bindings: media: Document RZ/G2L CSI-2 block To: "Lad, Prabhakar" Cc: Lad Prabhakar , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Jacopo Mondi , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Laurent Pinchart , Sakari Ailus , Hans Verkuil , Linux Media Mailing List , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Fri, Jan 21, 2022 at 12:52 PM Lad, Prabhakar wrote: > On Fri, Jan 21, 2022 at 9:26 AM Geert Uytterhoeven wrote: > > On Fri, Jan 21, 2022 at 2:06 AM Lad Prabhakar > > wrote: > > > Document the CSI-2 block which is part of CRU found in Renesas > > > RZ/G2L SoC. > > > > > > Signed-off-by: Lad Prabhakar > > > > Thanks for your patch! > > > > > --- > > > Hi Geert/All, > > > > > > vclk and pclk clocks are shared with CRU both CSI and CRU driver are using > > > pm_runtime. pclk clock is necessary for register access where as vclk clock > > > is only used for calculations. So would you suggest passing vclk as part of > > > > What do you mean by "calculations"? > To set the CSI2nMCT2 register bits (FRRSKW/FRRCLK), vclk clock rate is used. Ah, clock rate calculations. I (mis)understood that vclk clocked a hardware calculation block, and was wondering what kind of heavy calculations were involved ;-) > > The bindings say this is the main clock? > > > That is because the RZG2L_clock_list_r02_02.xlsx mentions it as the main clock. > > > > clocks (as currently implemented) or pass the vclk clock rate as a dt property. > > > > Please do not specify clock rates in DT, but always pass clock > > specifiers instead. > > The clock subsystem handles sharing of clocks just fine. > > > Agreed. So doing clk_get_rate() is fine. 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