Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5873101ioo; Wed, 1 Jun 2022 14:37:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOt3j6HsFrGiQTuZssNaZTHwkOpf1Mi8p8ufJWP0iozCEHS8Kxn2LpxXQGeUG7JGoUU532 X-Received: by 2002:a17:90b:1b4c:b0:1e4:dac8:29e0 with SMTP id nv12-20020a17090b1b4c00b001e4dac829e0mr6181959pjb.36.1654119453336; Wed, 01 Jun 2022 14:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654119453; cv=none; d=google.com; s=arc-20160816; b=KCyHEIjPyvY0uzPYQMwpRogW12nYpbCMGgGdu/Wr16RovY4goYaK4rYfZ4S2k+aR/f GhDU8+92eNpOGY03MSCMUH4bhHY2WoEZk2udJz1O12uyRKbdZhtAzofyJjgNcqgxiyu/ uJjY5EKHChAIQ66dcbIJNbNyHzIsa/FOuBdVEGj8DVAKzxOuRhSlOsgFlFHJrdOwETj/ aZz/eptsuLkC3zYrmLsx9Q91eOGeZ6Yln4qZoqe/4TzkbEm9r44TEeZdX8/N7vMzJbbw Nm4vRUcXu0dXBU/+g2sMhZ5O/I9reFCHnCYZQRP/1fdeAIYHvD0UPT47x4yII11Jwc17 14rw== 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; bh=KWGUC4uO5PZbQJw1t/pJ6JrU01XaVoUwRy9nGcZRULo=; b=U7YUps57FTO7Gp6JnJayplevu49SklpG/vvwrFAnJO/qwNL9wb6UxekmjilzQSEQS4 ck30NdvNPxoPZPdKmGWdNEYwcA0Z2XKa2gOipCyQFFBFReU4BL2xY1tCfA3Hs9CNvL6V OUGkL3ARwByIjgT83o251mBeG4tZmC9KCCA5SP4XJO9EWsB+qwyeJALuXsKxM4zBhOgy lHtfT5iPrVuooCUzPFsU8YVp3SIj3Eg+a5hT9uKy0QDum2PNSBTyryI85PQxRz1jQYLY ByAIyEiLm9D7iNmoRCo8ApvnMWa/e945qu/fYwtkRQlI4aPWxK4vHX+M2JPGC4Snn/jc mwgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t76-20020a635f4f000000b003fc4a3b9fbesi3441941pgb.818.2022.06.01.14.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:37:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 525F727934E; Wed, 1 Jun 2022 13:44:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbiFAUoJ (ORCPT + 99 others); Wed, 1 Jun 2022 16:44:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbiFAUni (ORCPT ); Wed, 1 Jun 2022 16:43:38 -0400 Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1886D24C086; Wed, 1 Jun 2022 13:27:01 -0700 (PDT) Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-f2bb84f9edso4200298fac.10; Wed, 01 Jun 2022 13:27:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=KWGUC4uO5PZbQJw1t/pJ6JrU01XaVoUwRy9nGcZRULo=; b=aUOlrrniDEMMZvqGMeyUK8q56cUWcLRIjo6qsUV9fyEhgVmc2AVzTlji3AkuJkyKYB q9s4DkMOqSx22igAxs5ULm0Bct3gWCsjoKfNdeQBo+F/SXYueQCMpmnBJE5n4TPs+rQP EtCk2LiNy/xqWCiMZk1SoKj5p7iOdNoJG8TO+n5RT7RVTAN4FcxhswWNpOgZTcaMIjlX jOKl08wYMvGLUGYgUz7FFJATsHNgSfgIMTswdU1JtvgFneRbl67tFP7t0ZiKjgdr0ggy IXWxY4UvfTJ9cH2HtnaNjoePUHSoYr2TAdWdCy3MPC3yPas5j/DonvGMCuIExXyJ9vUH pvCw== X-Gm-Message-State: AOAM530pOuFsg6YhDw/yq/+z66FsQafa2kk57uMsBKDIYE7rU9a2DrO1 Wl9V51+UeLH4yqVDyDFElGHmq2nzBg== X-Received: by 2002:a05:6808:1a8c:b0:32b:df97:b1fa with SMTP id bm12-20020a0568081a8c00b0032bdf97b1famr767976oib.184.1654114620054; Wed, 01 Jun 2022 13:17:00 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id r10-20020a4aa2ca000000b0035eb4e5a6cfsm1336181ool.37.2022.06.01.13.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:16:59 -0700 (PDT) Received: (nullmailer pid 365044 invoked by uid 1000); Wed, 01 Jun 2022 20:16:58 -0000 Date: Wed, 1 Jun 2022 15:16:58 -0500 From: Rob Herring To: Max Krummenacher Cc: max.krummenacher@toradex.com, Marek Vasut , Laurent Pinchart , Francesco Dolcini , Maxime Ripard , Christoph Niedermaier , Dave Stevenson , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Sam Ravnborg , Thierry Reding , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: display: add new bus-format property for panel-dpi Message-ID: <20220601201658.GA342879-robh@kernel.org> References: <20220518115541.38407-1-max.oss.09@gmail.com> <20220518115541.38407-2-max.oss.09@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220518115541.38407-2-max.oss.09@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 18, 2022 at 01:55:38PM +0200, Max Krummenacher wrote: > From: Max Krummenacher > > The property is used to set the enum bus_format and infer the bpc > for a panel defined by 'panel-dpi'. > This specifies how the panel is connected to the display interface. > > Signed-off-by: Max Krummenacher > > --- > > Changes in v2: > - Fix errors found by dt_binding_check > > .../bindings/display/panel/panel-dpi.yaml | 11 +++++++++ > .../dt-bindings/display/dt-media-bus-format.h | 23 +++++++++++++++++++ > 2 files changed, 34 insertions(+) > create mode 100644 include/dt-bindings/display/dt-media-bus-format.h > > diff --git a/Documentation/devicetree/bindings/display/panel/panel-dpi.yaml b/Documentation/devicetree/bindings/display/panel/panel-dpi.yaml > index dae0676b5c6e..a20b5898941e 100644 > --- a/Documentation/devicetree/bindings/display/panel/panel-dpi.yaml > +++ b/Documentation/devicetree/bindings/display/panel/panel-dpi.yaml > @@ -21,6 +21,14 @@ properties: > - {} > - const: panel-dpi > > + bus-format: > + $ref: /schemas/types.yaml#/definitions/uint32 Constraints? > + description: | > + Describes how the display panel is connected to the display interface. > + Valid values are defined in . > + The mapping between the color/significance of the panel lines to the > + parallel data lines are defined in [1]. Just drop the [1] and use a colon. > + [1] https://www.kernel.org/doc/html/v5.17/userspace-api/media/v4l/subdev-formats.html#packed-rgb-formats Why not just use the V4L number space rather than invent yet another number space? Need a blank line here too. > backlight: true > enable-gpios: true > height-mm: true > @@ -39,11 +47,14 @@ additionalProperties: false > > examples: > - | > + #include > + > panel { > compatible = "startek,startek-kd050c", "panel-dpi"; > label = "osddisplay"; > power-supply = <&vcc_supply>; > backlight = <&backlight>; > + bus-format = ; Other properties describing the interface have been put in the endpoint node. This should too I think. > > port { > lcd_in: endpoint { > diff --git a/include/dt-bindings/display/dt-media-bus-format.h b/include/dt-bindings/display/dt-media-bus-format.h > new file mode 100644 > index 000000000000..c0f2a7b59aa1 > --- /dev/null > +++ b/include/dt-bindings/display/dt-media-bus-format.h > @@ -0,0 +1,23 @@ > +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ > +/* > + * Copyright 2022 Max Krummenacher > + */ > + > +#ifndef __DT_BINDINGS_DT_MEDIA_BUS_FORMAT_H > +#define __DT_BINDINGS_DT_MEDIA_BUS_FORMAT_H > + > +/* > + * Attention: Keep these macro names in sync with > + * include/uapi/linux/media-bus-format.h > + */ > + > +#define DT_MEDIA_BUS_FMT_RGB565_1X16 1 > +#define DT_MEDIA_BUS_FMT_RGB666_1X18 2 > +#define DT_MEDIA_BUS_FMT_RBG888_1X24 3 > +#define DT_MEDIA_BUS_FMT_RGB666_1X24_CPADHI 4 > +#define DT_MEDIA_BUS_FMT_BGR888_1X24 5 > +#define DT_MEDIA_BUS_FMT_GBR888_1X24 6 > +#define DT_MEDIA_BUS_FMT_RGB888_1X24 7 > +#define DT_MEDIA_BUS_FMT_RGB888_1X32_PADHI 8 > + > +#endif /* __DT_BINDINGS_DT_MEDIA_BUS_FORMAT_H */ > -- > 2.20.1 > >