From patchwork Thu Oct 12 06:58:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 151793 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1034284vqb; Thu, 12 Oct 2023 00:02:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwxF5oJ5vlyFLSwwgFMJ2qyY00SQqBSDNNjdyE8e4XNOay3dMI7iBqPkFkeUUOUmBSKGlx X-Received: by 2002:a17:902:e74b:b0:1c7:1eed:10f2 with SMTP id p11-20020a170902e74b00b001c71eed10f2mr26280083plf.2.1697094119896; Thu, 12 Oct 2023 00:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697094119; cv=none; d=google.com; s=arc-20160816; b=ynXnLeAwqhizMiIlkoJDdXi6g/w0S/TEOqM9C2B2mx7IF+2FXtCHHTdd2JujpHNc46 qzYzdkPp4e9Q0HaiGurB6myekVDIaksDoL/s1RWnxr65ejGZk+jORnlAUU7pdZ09Blot 6K5OPEwFXiI/pobGunLDOBvOJEsrqhfyITMBhzC/RofrdWI024aR6bwegKLJs4RpAM2T bho2QkV05pJ0pbmYB1WKgvWByoykZqVri+nUF2s/aSnKaP/w5gxz8+wJNOCwX7ILdltw TQoBos/QA+UrDyWK6bofBys8Di4GEaae++iirgDHELeaAwI2jXuSPRNBMrzIPIwtQrCn fM0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jYJU3nXdqvdbwcO4hjpDrp2WLD9hkGzJJegB/jryqJY=; fh=VXwNf6PNTJYPTy/42XFFoocdKSBTXUd49MKzcr70jb0=; b=IzwRX8b1dKmRsjDKcwGfrgFcBfuoWTQKgBqP3jydAllxMcdw2TI2FGwU4stKuLGXkN 7mZU1mbRO4r7AbmJBlV4yMS/b4HM0WAjWuRmz4dZxJQmih7fLtVj5tCreNWP/cuqXPAH e2m2iZdhREm6HvsBGiwMPxNYqxY/NzO7rpCeg2ZsSOWFJLCeccYJb+puMSt3lJViKUqY omvuZiuShrjhPPigt0hiGyHvnJPSFVbOerAycisjRd1o7cqbuSNZ+XbqbVtUbuYa91oo IqEoYnEeJRC65QrFClpQ0WHlkiMAZZ267izUNVdPZmlCgWbhJAMvQS0vKzTG/wTpoCnG Hwcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FH0u6JkX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id jn13-20020a170903050d00b001c5fa46f0e6si1505921plb.190.2023.10.12.00.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:01:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FH0u6JkX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D306E808D686; Thu, 12 Oct 2023 00:00:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347100AbjJLG74 (ORCPT + 19 others); Thu, 12 Oct 2023 02:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377672AbjJLG7a (ORCPT ); Thu, 12 Oct 2023 02:59:30 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42D5C0 for ; Wed, 11 Oct 2023 23:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697093926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jYJU3nXdqvdbwcO4hjpDrp2WLD9hkGzJJegB/jryqJY=; b=FH0u6JkXowLLQuqWh7v8YLqvbcQrajCwJIa2Ldg/zLYVKl4MoKRk1UGkdv/DO4y79b0rLg kJ3ZhnwTJJvtXuuSbIc42O5/6KSE8DKWodW53OlkUWqhOPDv7ieNKVMcQOETXO8np5eT8o +OL5MgJJkDDD8LDSdjjVI9nGvWWMpR8= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-hsWQRJVxPZuojSn8iqB8aQ-1; Thu, 12 Oct 2023 02:58:35 -0400 X-MC-Unique: hsWQRJVxPZuojSn8iqB8aQ-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-405917470e8so5183085e9.1 for ; Wed, 11 Oct 2023 23:58:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697093913; x=1697698713; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jYJU3nXdqvdbwcO4hjpDrp2WLD9hkGzJJegB/jryqJY=; b=QlR9rqrrE2TW4XtnlgLLRPSvECEWxmTSNfqWb0h9bBXenZzKjN6Q3mpQ3PXU1qTbmP gxhqtXM34rUef1R4UDXLX0mQlJgoEeBdm3xrX5mm3cFgKIdS0o/0DKnk7SZQi3+0ogun lu5wSHT8JD5WfO/KcPZjAY3Yk/F3I7ucEFsK3q9l/ti93rBIGy9vVKdHI1X9v4hkZ/pS hZGSPHVwf4QwVqVhZvhhrsBE66K/5m4lmN8K+K+//f+hlmI6o9PqYBhKYxOTGopoDkL7 YBaHDTPoNI3rcgPqvQyOXuZhchfjjv60yiPUpGp2BRn4Anhg2C/rq/T+P+W125lv7YjM +GGg== X-Gm-Message-State: AOJu0YxkZf2cLYCRqX2WC2vij9s4+q2MR0O3yAtrm9AjofKT1Lmr+qxc 7i+Yj5mGibvUd7zLliNuNP4w/LTxPSui53gCCd2AJOgmnEvKNN/fGyXtdDG6fT3pXmSAQNGPEs9 gZl59klmFeu92wd0naGbNwh9j6TJn8ge2bN9YoRAbc1qUQKbz0UFido/YjQibZNqRI7DLxe2DYe Nyh5YS8Qc= X-Received: by 2002:a1c:7c17:0:b0:401:bcb4:f133 with SMTP id x23-20020a1c7c17000000b00401bcb4f133mr20319567wmc.22.1697093913629; Wed, 11 Oct 2023 23:58:33 -0700 (PDT) X-Received: by 2002:a1c:7c17:0:b0:401:bcb4:f133 with SMTP id x23-20020a1c7c17000000b00401bcb4f133mr20319536wmc.22.1697093913204; Wed, 11 Oct 2023 23:58:33 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id q5-20020a7bce85000000b0040596352951sm21102422wmj.5.2023.10.11.23.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:58:32 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Thomas Zimmermann , Conor Dooley , Peter Robinson , Rob Herring , Maxime Ripard , Geert Uytterhoeven , Javier Martinez Canillas , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Maarten Lankhorst , Rob Herring , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 5/6] dt-bindings: display: Split common Solomon properties in their own schema Date: Thu, 12 Oct 2023 08:58:14 +0200 Message-ID: <20231012065822.1007930-6-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231012065822.1007930-1-javierm@redhat.com> References: <20231012065822.1007930-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 12 Oct 2023 00:00:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779532163723928518 X-GMAIL-MSGID: 1779532163723928518 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 Reviewed-by: Rob Herring --- (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 diff --git a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml index 20e2bd15d4d2..3afbb52d1b7f 100644 --- a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml +++ b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml @@ -27,38 +27,12 @@ properties: - solomon,ssd1307 - solomon,ssd1309 - reg: - maxItems: 1 - pwms: 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 - vbat-supply: description: The supply for VBAT - 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. - solomon,page-offset: $ref: /schemas/types.yaml#/definitions/uint32 default: 1 @@ -148,7 +122,7 @@ required: - reg allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# + - $ref: solomon,ssd-common.yaml# - if: properties: diff --git a/MAINTAINERS b/MAINTAINERS index 46ca5c4affdb..4a3baf970839 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6732,6 +6732,7 @@ DRM DRIVER FOR SOLOMON SSD130X OLED DISPLAYS M: Javier Martinez Canillas S: Maintained T: git git://anongit.freedesktop.org/drm/drm-misc +F: Documentation/devicetree/bindings/display/solomon,ssd-common.yaml F: Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml F: drivers/gpu/drm/solomon/ssd130x*