Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1404218rdg; Sat, 14 Oct 2023 00:17:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjU05fODXHaiZ6XpIUIP6Oyc3rsgrJ1nBXsX0Dh/iaK6M7eVwjv2vSQt/eJWEN5Lmdvxiv X-Received: by 2002:a05:6a20:7f9a:b0:163:a041:336c with SMTP id d26-20020a056a207f9a00b00163a041336cmr33689046pzj.48.1697267833568; Sat, 14 Oct 2023 00:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697267833; cv=none; d=google.com; s=arc-20160816; b=dv16mu9RQaoUUL5bXWSZ5eVa8UKLQxQZT/sEm1nFxMfobqUWouvP/iwfsHV9VqKe5f 3dF9XltXH8eaeoCa0dHd5nZYkMEPDniyHZFEdE+cG052vwBVwv8vjbAWIpGnLfD+JXNY OyydtNEHssUIl/6OCws9Ien/uu4M527t2t5i1VmKcDEytqG3fglG6ZnHJK6cSx36C0gs CSdzLkaxTQVi/TrwNbXCT6UZS+h5P5b9Pg1r1IyEcAnO0XBTCTijODsU0YGQGBePhFUp gLmJ8YrXfwHbBkv7wQn3/GVX97fOBykCnVNvS72DUFrrGz+3Ea77viXcRl7qTNlH+QvP oY6w== 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=L40KmVEphI0s36UXbc+Nqi/6EpaBRCldyiUbNkbVIGc=; fh=D6nFcDhtZi/dCgrpLA/b+ICD5wgZWV9Xkr6ak2kylPY=; b=eqWugEiGpdNGZjwW/yiyLgxbO1FcZCRB7ovPRsSgY/TszDAyujuleKck9R81dTXJa8 3hTjVRTGXk6oSp/3UYmvj0YV/amQqVn8IGLykblyIbjYLbK0NuYPd2jC+MlXCJayWdb9 hEBn3sON9e9zMLyglr0tIxL+d/TU4LC/En5/gv7xJaiydABoSoTQCYMUKcuMn/ZAclFF jAg0VYPrfRzn4zSOsreLTl63s89eJ832a/vUPSSgv9DTQURYRqr0+IPnDB3EjwSmhZRR 216WFTTLkuSzS2me6BAKiZNeq5BQBN9DUVhvYLvnsaQFgpzSkcNRmxxxDz2f2zVA56a2 4AEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RtZSbPA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id d3-20020a170902f14300b001c43ff69d93si5573570plb.324.2023.10.14.00.17.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 00:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RtZSbPA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id E2B41826EBB5; Sat, 14 Oct 2023 00:17:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232930AbjJNHQ1 (ORCPT + 99 others); Sat, 14 Oct 2023 03:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232917AbjJNHQY (ORCPT ); Sat, 14 Oct 2023 03:16:24 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E55CE for ; Sat, 14 Oct 2023 00:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697267738; 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=L40KmVEphI0s36UXbc+Nqi/6EpaBRCldyiUbNkbVIGc=; b=RtZSbPA3+sw/ul+V4mqWPTdsXn6geDFD5fKhS/ZxNm2GKw3LwSOvt3CCMqJ1gAsQx/MMiw CWrcROOz6wtmBGEW2CElU4CQEBoPfuLmYkfRVorNRCAe9Zo3BMzDucynhHuy1LXf295bDo BJdI+0KVb+2NiYG29h+stVdD8SGQmSY= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-133-jyBBIxDvO9e2ItiQSfQdVA-1; Sat, 14 Oct 2023 03:15:34 -0400 X-MC-Unique: jyBBIxDvO9e2ItiQSfQdVA-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-5079fd97838so625421e87.1 for ; Sat, 14 Oct 2023 00:15:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697267732; x=1697872532; 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=L40KmVEphI0s36UXbc+Nqi/6EpaBRCldyiUbNkbVIGc=; b=vLEIcw7f+z3HV+D45y7+Tij9Z/GLtTJvIy2ELx+Et1xd40jNpp0qK2568f4LJ094gq kEc1N5WJGcZ66/YDFUZ6Zuhwlz2riOBfRApPb1zCSACqfmucZWU5eFDdV1dneQkGQseP kWIer7hKsHN5wZix4odezuM26EZ0vbPEdV64BmPd0jq1322wi8FhlNkfblZbi9ZtLq9s fcV1kVV5ux4d06paLegbTaq8HNLzJURYgaI/7xvieAom6yggT4ohyWd7N6gqosE9kTeO g758i2RFW3KlPCS9BIeSy4qHi/G4NCcb1EgUT2eejjuVpoWVI3EfkE6XUuhpvkHZ8p+A kSwQ== X-Gm-Message-State: AOJu0YwyxNstNbFdBzsEGYxPGzJV2V0YEF1HL77mpGjnHb2iU6LUH2Bi IHD+N9nqlTcYM1l8hyQZYhg66Hsv34er6NefEyUo0iotPak63oVRd8Yw02oVtsfCdtfRjTsW7lw LQD9DUtc0GQOWZV8EQ0PApGTh22KuW1buSaO4MQOSf6izq8qKFXNW3jdKvlFkgZMy1v5wDrvtVK hW2zm/Ww0= X-Received: by 2002:a05:6512:3a83:b0:503:2deb:bbc1 with SMTP id q3-20020a0565123a8300b005032debbbc1mr28600331lfu.22.1697267732596; Sat, 14 Oct 2023 00:15:32 -0700 (PDT) X-Received: by 2002:a05:6512:3a83:b0:503:2deb:bbc1 with SMTP id q3-20020a0565123a8300b005032debbbc1mr28600300lfu.22.1697267732165; Sat, 14 Oct 2023 00:15:32 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id i9-20020a05600c354900b003fee53feab5sm1154353wmq.10.2023.10.14.00.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 00:15:31 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Rob Herring , Peter Robinson , Thomas Zimmermann , Maxime Ripard , Conor Dooley , 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 v4 5/6] dt-bindings: display: Split common Solomon properties in their own schema Date: Sat, 14 Oct 2023 09:15:07 +0200 Message-ID: <20231014071520.1342189-6-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231014071520.1342189-1-javierm@redhat.com> References: <20231014071520.1342189-1-javierm@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 howler.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 (howler.vger.email [0.0.0.0]); Sat, 14 Oct 2023 00:17:02 -0700 (PDT) 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 Acked-by: Thomas Zimmermann --- (no changes since v3) Changes in v3: - Fix "No newline at end of file" in solomon,ssd-common.yaml (Rob Herring). - Add Rob Herring's Reviewed-by tag to patch #5. .../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..3e6998481a75 --- /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 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 987152e3be02..c63649e9ba58 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6765,6 +6765,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* -- 2.41.0