Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp120736rdg; Thu, 12 Oct 2023 00:02:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0/XoB2c+oM2w+aT0s9LHsZfgzGbb3AuD4cfe0Gk4n1nUmLnQHEAtTi5eTKUJ8XkPwhDQm X-Received: by 2002:a17:90a:af86:b0:277:4be4:7a84 with SMTP id w6-20020a17090aaf8600b002774be47a84mr30247516pjq.19.1697094135256; Thu, 12 Oct 2023 00:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697094135; cv=none; d=google.com; s=arc-20160816; b=oqwYh++qL1kJvU9IHGdX7IcFBsR5IBR5r0YGj7X+dtCpya5U/QavvvI5sfzXDgTgv5 GLBi2gK4NwCzajItxHKa+YiyvUP1fcc5sXLpxbw9mTQe2ojzVh9VRyZ+pi00x/97MPa4 4pcWz7OVCb+mQg5lYYP6RqhUYzoF8bKF8uwDXBkk51gpSU/YTcAm5ZfVUBAee0USD6UR UeWShvNH9eh256JJ9jhU+rMU07pzcudy0kdjqpwo51koZgMd3YC4S0XnKiL4/SMazD1C Pr+cBhd0jBcTpBTay/B6htrpr0L5oOiJYDtjuyHIm3kH6XI9XrBdHecIT4Ym9h4ZnI39 9S9g== 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=HDry+FhkIeT/NRPHa1BVdFItba2J4DOxCsv4jEZYJSQ=; fh=VXwNf6PNTJYPTy/42XFFoocdKSBTXUd49MKzcr70jb0=; b=a8E6H2Opj2gV3Oo6fxtxiviryinE0eH91OhelO1MC1i2imWIEgXrN5NvDeb4gG+Tnh 1aZH2+fXDTt7FOPMKwJfs0ZRBql57j7thzt+2wKrFJPBI3ODs/TTkIM2cs+xTAfNkTD7 62AoTC0C9W63sDGw74sZkBL6NZnj5NkvnzTOAuY98M2YnrTnffHVAZ32z3OsYb+pQNzJ BtBLl2/DGBEVFexIRkN6EOKd4u4B/TTLRcDswPDuSesUoKK0wy8tR1/ElBPPnDV9XXvj ml3dcrSE3VWF2vP/IgOpyl/hhbI2T1W6s0Hup5YHbI56RhJL+68q7XsC14bqNe7qlNFZ UMcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WqtLo3q7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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. [23.128.96.34]) by mx.google.com with ESMTPS id lb1-20020a17090b4a4100b0027901ee93fbsi1738745pjb.156.2023.10.12.00.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:02:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WqtLo3q7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 530948085FA3; Thu, 12 Oct 2023 00:00:24 -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 S1377864AbjJLG7f (ORCPT + 99 others); Thu, 12 Oct 2023 02:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377695AbjJLG7X (ORCPT ); Thu, 12 Oct 2023 02:59:23 -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 C7642DB for ; Wed, 11 Oct 2023 23:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697093918; 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=HDry+FhkIeT/NRPHa1BVdFItba2J4DOxCsv4jEZYJSQ=; b=WqtLo3q7RDWC9yzz9ohRQTVKpV1zSkmyqhya8qOoFPSoBOoM1oE95C/zSA4tKz+UsGd6p+ 0oaOebi7x0YvsLVfPuju86D0wNG339dhoZM5J3T9/dITWp9KO6GGMzTBa0uCqcdGN/gs94 Hl4N/RSB5R7AR1kiwlIy/FpmXZUdH1o= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-662-kGnHv1GMNOWiC_mhWFR4IA-1; Thu, 12 Oct 2023 02:58:36 -0400 X-MC-Unique: kGnHv1GMNOWiC_mhWFR4IA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-40540179bcdso6143225e9.2 for ; Wed, 11 Oct 2023 23:58:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697093914; x=1697698714; 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=HDry+FhkIeT/NRPHa1BVdFItba2J4DOxCsv4jEZYJSQ=; b=SyB1jxMazZIshFo7GnVcpVo9tFwGMOiq71uzUXPZwvNzjA7w2RcGuIB2px8R+2rDcc AZg3yPaq4I68SPeFRqyms7ZgPH1b4WCQHk2cVm5j7O206I/rbRVf1Luy3W9PTvZkToly dnx2rRKLybWoyLFDplVrLuUIPWyfgBv9rumBL7mLpGEsiPxbWrQM2Nl4baZegsaX9whp /c6BN9poenWOC6X8teQqxatvEi7WdYQtxJ/XLn66a/R/wYrtVRmD5VeC9sl5uFAOkjKG v0crgH4Wqj1HH+8rKh1fFIyS3XRmF8mGoRVaqxJlHzgvRGukkxKc3phrEyo3bGhELq/G FCkg== X-Gm-Message-State: AOJu0Yw0X/n9v7OtqhKrZL57Qodx/9zFE+bd18FltalwS+qCjeH90L5p ZXrlDu2DU/5cpi1458f+BS8ahfdO/vFPnYyGrrudow1uiVGFEoDqdiuTXSWZ6pRC9qdlFDv9opf jVyv3rsDvyJQEiIR3GCGywCgDAiVJxzmZtslHnUYe4f4uZrVvCaNNZaveOdT9o/DJlHUCQgWCua EwhsML3LI= X-Received: by 2002:a05:600c:c8b:b0:401:b2c7:34aa with SMTP id fj11-20020a05600c0c8b00b00401b2c734aamr20358197wmb.33.1697093914626; Wed, 11 Oct 2023 23:58:34 -0700 (PDT) X-Received: by 2002:a05:600c:c8b:b0:401:b2c7:34aa with SMTP id fj11-20020a05600c0c8b00b00401b2c734aamr20358177wmb.33.1697093914403; Wed, 11 Oct 2023 23:58:34 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id 6-20020a05600c22c600b0040303a9965asm21113713wmg.40.2023.10.11.23.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:58:34 -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 6/6] dt-bindings: display: Add SSD132x OLED controllers Date: Thu, 12 Oct 2023 08:58:15 +0200 Message-ID: <20231012065822.1007930-7-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 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]); Thu, 12 Oct 2023 00:00:25 -0700 (PDT) Add a Device Tree binding schema for the OLED panels based on the Solomon SSD132x family of controllers. Signed-off-by: Javier Martinez Canillas --- Changes in v2: - Remove unnecessary 'oneOf' in the SSD132x DT binding schema (Conor Dooley). - Remove unused DT nodes labels in the binding schema examples (Conor Dooley). - Split out common Solomon properties into a separate schema (Rob Herring). .../bindings/display/solomon,ssd132x.yaml | 89 +++++++++++++++++++ MAINTAINERS | 2 +- 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/display/solomon,ssd132x.yaml diff --git a/Documentation/devicetree/bindings/display/solomon,ssd132x.yaml b/Documentation/devicetree/bindings/display/solomon,ssd132x.yaml new file mode 100644 index 000000000000..0aa41bd9ddca --- /dev/null +++ b/Documentation/devicetree/bindings/display/solomon,ssd132x.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/solomon,ssd132x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Solomon SSD132x OLED Display Controllers + +maintainers: + - Javier Martinez Canillas + +properties: + compatible: + - enum: + - solomon,ssd1322 + - solomon,ssd1325 + - solomon,ssd1327 + +required: + - compatible + - reg + +allOf: + - $ref: solomon,ssd-common.yaml# + + - if: + properties: + compatible: + contains: + const: solomon,ssd1322 + then: + properties: + width: + default: 480 + height: + default: 128 + + - if: + properties: + compatible: + contains: + const: solomon,ssd1325 + then: + properties: + width: + default: 128 + height: + default: 80 + + - if: + properties: + compatible: + contains: + const: solomon,ssd1327 + then: + properties: + width: + default: 128 + height: + default: 128 + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + oled@3c { + compatible = "solomon,ssd1327"; + reg = <0x3c>; + reset-gpios = <&gpio2 7>; + }; + + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + oled@0 { + compatible = "solomon,ssd1327"; + reg = <0x0>; + reset-gpios = <&gpio2 7>; + dc-gpios = <&gpio2 8>; + spi-max-frequency = <10000000>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 4a3baf970839..5257e0074f2b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6733,7 +6733,7 @@ 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: Documentation/devicetree/bindings/display/solomon,ssd13*.yaml F: drivers/gpu/drm/solomon/ssd130x* DRM DRIVER FOR ST-ERICSSON MCDE -- 2.41.0