Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1032291pxb; Wed, 1 Sep 2021 15:49:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTX1sDrPLUKp9ROEJxaeX1ldoBpsTPWAlyw9MiuYESrzeFnX8RANhKfQGYJMJlnStrUG25 X-Received: by 2002:a50:9e0f:: with SMTP id z15mr286236ede.40.1630536474109; Wed, 01 Sep 2021 15:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630536474; cv=none; d=google.com; s=arc-20160816; b=qpvKJAvTn2I10ulSIaPjEvcL/O2w3SWCwl9iZX+805+doBzqFUZ7XRH4c8kz4THQeF NBnACsJK6eGaAnu+xuKnAw6AozyFo/gisg+AZ0EeW8OzfafDj5ZXUKVXuDlVQyinMnV3 KOxGf5H5p48imoWvQgq5uoPBYjsxlPvOoXjL6hKeIii/9BRKzcP7d5RkGMEiTPrfJCOi SEaW0q7ectU1mmwIhyH2TdvCqsCYHHn6j4lx/IwYpTWh/prIhmKMdy3Eu0ouOMfiKPcY DrvRTAQa8s4jKtXfOZSoI06HdsE4H5PJGYOQfV1OyFaMigo2rOJMyk1NdczIYvjvkH2t cl6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=08MrfLsIyl4+4TRJTew7bu9jnl3YFRs+6zMNm65aIhE=; b=nFatq1fLljpwV545fbCE1JaOd+BSFn2Tjf5pY96iGQcKKsRmLJV2TW3M/y9PbTb4t5 rPpHIEXxupN4tbEvxMZdSENxAA17JWGSJ/OOXTH4S6aXkFLrhRh+JRB3LjYtgUf8GEj4 SQQL0skfmabRDi2eKkf00RsGr0rRNhub44DiHdJq7wKdnTlFSiDdyjpIl77C8z/ZHdcj hS7asNuC76gScLU6sw5dJmDxINqcUfP7Eg8VJ4GRl3zf8TVqK6+lA2O8V8fukWI+9Wc1 CDf7WSFh5RD5u5gQIzLaSxruLqnCnXeyH3i6k4hIx4ktgHaMklcHrZK6zF7AqEgDEe2M j9Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=hJHOHTQL; 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 j23si1254742eje.21.2021.09.01.15.47.31; Wed, 01 Sep 2021 15:47:54 -0700 (PDT) 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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=hJHOHTQL; 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 S242745AbhIAWOl (ORCPT + 99 others); Wed, 1 Sep 2021 18:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236202AbhIAWOl (ORCPT ); Wed, 1 Sep 2021 18:14:41 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA23EC061575; Wed, 1 Sep 2021 15:13:43 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 04F6E340; Thu, 2 Sep 2021 00:13:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1630534422; bh=09bxQvWBNLZUb9b+id81hZsBnKjmRqZOhUOZz7Th8Dg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hJHOHTQLzK17Jef6QZoYnLPMw+SnzNTsso5L0cV5OBrrhVFnPjFotDyuxRe8h905Y 1TECrmKMxxwth9d3Zsca+cSfLIaXSH9+cDz/s4cQCdl1ZCmAI9tGELHGPCR59SwbOs tP7dmJSeMZV90JsRRUJGnng1Sf7Ao/DCAoZ8CAL8= Date: Thu, 2 Sep 2021 01:13:26 +0300 From: Laurent Pinchart To: Kieran Bingham Cc: Geert Uytterhoeven , Kieran Bingham , David Airlie , Daniel Vetter , Rob Herring , "open list:DRM DRIVERS FOR RENESAS" , "open list:DRM DRIVERS FOR RENESAS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH] dt-bindings: display: renesas,du: Provide bindings for r8a779a0 Message-ID: References: <20210622231146.3208404-1-kieran.bingham@ideasonboard.com> <22bf664e-4a28-3ae2-0106-5913a8643625@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <22bf664e-4a28-3ae2-0106-5913a8643625@ideasonboard.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, On Wed, Sep 01, 2021 at 11:01:11PM +0100, Kieran Bingham wrote: > On 23/06/2021 13:53, Geert Uytterhoeven wrote: > > On Wed, Jun 23, 2021 at 1:11 AM Kieran Bingham wrote: > >> From: Kieran Bingham > >> > >> Extend the Renesas DU display bindings to support the r8a779a0 V3U. > >> > >> Signed-off-by: Kieran Bingham > > > > Thanks for your patch! > > > >> --- a/Documentation/devicetree/bindings/display/renesas,du.yaml > >> +++ b/Documentation/devicetree/bindings/display/renesas,du.yaml > >> @@ -39,6 +39,7 @@ properties: > >> - renesas,du-r8a77980 # for R-Car V3H compatible DU > >> - renesas,du-r8a77990 # for R-Car E3 compatible DU > >> - renesas,du-r8a77995 # for R-Car D3 compatible DU > >> + - renesas,du-r8a779a0 # for R-Car V3U compatible DU > >> > >> reg: > >> maxItems: 1 > >> @@ -774,6 +775,57 @@ allOf: > >> - reset-names > >> - renesas,vsps > >> > >> + - if: > >> + properties: > >> + compatible: > >> + contains: > >> + enum: > >> + - renesas,du-r8a779a0 > >> + then: > >> + properties: > >> + clocks: > >> + items: > >> + - description: Functional clock for DU0 > >> + - description: Functional clock for DU1 > >> + > >> + clock-names: > >> + items: > >> + - const: du.0 > >> + - const: du.1 > > > > The hardware block has only a single function clock for both channels, > > like on R-Car H1. > > Indeed, but I believe both channels still need to set them, if they can > be operated independently, the driver looks up the clock based on the > du.%d, and so for DU1, it is simply expressed as the same clock in DT. > > Is this acceptable? or is there further issues there? Could we handle that on the driver side, like we do for H1 by not setting RCAR_DU_FEATURE_CRTC_IRQ_CLOCK ? We would probably need to split that flag in two, as there are two interrupts. It's a bit annoying not knowing what the MSTP bits do exactly, we've modelled them as gates for the functional clock, but maybe in cases like this one the mapping isn't fully correct, I'm not sure. > > And what about DU_DOTCLKIN? > > This thread has already discussed this with Laurent, and I concur - > There doesn't appear to be any relevant reference to DU_DOTCLKIN on the > DU side. -- Regards, Laurent Pinchart