From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42182CDB46E for ; Thu, 12 Oct 2023 11:55:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378547AbjJLLzw (ORCPT ); Thu, 12 Oct 2023 07:55:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378379AbjJLLzU (ORCPT ); Thu, 12 Oct 2023 07:55:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 119CA6580 for ; Thu, 12 Oct 2023 04:53:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52F49C43391; Thu, 12 Oct 2023 11:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697111538; bh=zxYzsLXBKi9s0aN++GqRyQ6VlVpbSThbWxRR+wmwfGo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vq+KzigLw0Dmc7f85IW9YQoiIq6p75obwZf/IvldPobgKpjN5dqHAlY8OrhlF9Xkr Ukxuycx6olO8h4TK+xKnRQJNytu+hi0HMlGtOQcWCQe3/ZfKh6hE18UDmcNJqnf2x6 xac4gqXgXkIDSW3WnpgRJMaB5qoXnt7bgo4/JASK/S6ZHkv6+g5gY0UUSMhdbqNlRd HSupGDrQKYENlRddgSQJmRDkxWXKwqTaGK0p4h0pTZORbyM5yIwOzPtTiEQlCv6cxs IUr8US4nW6bVorCK3/GVTuVepCeskzbAtGxydaURAylrmB55GRtXAf0hOz2k8yuGUZ 9OR1lenPnHEjQ== Received: (nullmailer pid 285059 invoked by uid 1000); Thu, 12 Oct 2023 11:52:16 -0000 Date: Thu, 12 Oct 2023 06:52:16 -0500 From: Rob Herring To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Thomas Zimmermann , Conor Dooley , Peter Robinson , Maxime Ripard , Geert Uytterhoeven , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Maarten Lankhorst , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 5/6] dt-bindings: display: Split common Solomon properties in their own schema Message-ID: <20231012115216.GA266951-robh@kernel.org> References: <20231012065822.1007930-1-javierm@redhat.com> <20231012065822.1007930-6-javierm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012065822.1007930-6-javierm@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 12, 2023 at 08:58:14AM +0200, Javier Martinez Canillas wrote: > There are DT properties that can be shared across different Solomon OLED > Display Controller families. Split them into a separate common schema to > avoid these properties to be duplicated in different DT bindings schemas. > > Suggested-by: Rob Herring > Signed-off-by: Javier Martinez Canillas > --- > > (no changes since v1) > > .../bindings/display/solomon,ssd-common.yaml | 42 +++++++++++++++++++ > .../bindings/display/solomon,ssd1307fb.yaml | 28 +------------ > MAINTAINERS | 1 + > 3 files changed, 44 insertions(+), 27 deletions(-) > create mode 100644 Documentation/devicetree/bindings/display/solomon,ssd-common.yaml > > diff --git a/Documentation/devicetree/bindings/display/solomon,ssd-common.yaml b/Documentation/devicetree/bindings/display/solomon,ssd-common.yaml > new file mode 100644 > index 000000000000..677fd2b90960 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/solomon,ssd-common.yaml > @@ -0,0 +1,42 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/solomon,ssd-common.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Common properties for Solomon OLED Display Controllers > + > +maintainers: > + - Javier Martinez Canillas > + > +properties: > + reg: > + maxItems: 1 > + > + reset-gpios: > + maxItems: 1 > + > + # Only required for SPI > + dc-gpios: > + description: > + GPIO connected to the controller's D/C# (Data/Command) pin, > + that is needed for 4-wire SPI to tell the controller if the > + data sent is for a command register or the display data RAM > + maxItems: 1 > + > + solomon,height: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Height in pixel of the screen driven by the controller. > + The default value is controller-dependent. > + > + solomon,width: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Width in pixel of the screen driven by the controller. > + The default value is controller-dependent. > + > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + > +additionalProperties: true > \ No newline at end of file With this fixed, Reviewed-by: Rob Herring