Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp582357rdg; Thu, 12 Oct 2023 14:40:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyF4hRkllemx5TOesTEFtkeYOY8FydIN6vEttv7f5Vy1SDZseG4b80fDgy8SNxgrA2NUjz X-Received: by 2002:a17:90b:4d82:b0:274:4f21:deae with SMTP id oj2-20020a17090b4d8200b002744f21deaemr19907148pjb.35.1697146844391; Thu, 12 Oct 2023 14:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697146844; cv=none; d=google.com; s=arc-20160816; b=xjPwLocw2zDWpitxMJ/6qOAyIoAAcPUFsUYzIfVuJsIO/75NE/rdpua46saXE6P4SM tqUcJBvRRmtXQGqM3yPcxou4ESTH7aXef1kyDOKTHG0xEWyB1I/o87KDNoDRKAnEXZZy GA+TJ2sxygB3avCV/ZNEaRR7Xj2CAHRb9eUt2idHBTQELxoy2cFY38qTmD/m1FTspdA1 b7P9B3bZ9K6b+G2ni+BvcETGYMfTxcr53VAf2m7CaD4nQa6WxUJ4SWBi9MTAgGmM7nY3 wYcFdmOsoLiobv9hiINZZ54c7Z2wQsl69qTcL/m/J2xmePQ7AqgtHx/aK8Y7P/pUBA+X 3MTw== 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=o3yRqYZd7hXBCjj0x6r+xRvOZ/+by8OSU47aD3csnLU=; fh=qdO5Cr2lrDJr4zXTC/ZWzXWaDqJqOrB/3a2UvGUkyi0=; b=O1ZVaSor+/Bo92bwYsvSH/a+g9fRNoPhxp7VHaLJbUzD0Q2KEj8f1zh+UxKq51V5zN 7/5cgStO6z9S3+m+rOnPSrRiUxQzJxqVLujrLthCh94+RYPiDnaMlA37y0BSlQ7Vmn0H kChY1eR63eXp1pxQ5V5eozo94XwYecJuWk/LVwSWtdxn2C5eZM2N5jbjrvDxtB8QoCXD ci9/giiLRQdbbYkC+1RQoR17BfQgw22QpEhFvAUVoCql/DgXOy4VAT4ZxLyQJgbvobag /Xmb7zVO9UBFxtp8iEF8LKQ672B/ckW/qOHVFEyiUzU+Fe4s3plUOumwpwMTa/tumwsQ Ik/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YNUhAHNw; 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 Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i21-20020a17090acf9500b0027d0c3507eesi3186674pju.32.2023.10.12.14.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 14:40:44 -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=YNUhAHNw; 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 ADCA1829A054; Thu, 12 Oct 2023 14:40:41 -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 S1347449AbjJLVk2 (ORCPT + 99 others); Thu, 12 Oct 2023 17:40:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347425AbjJLVkQ (ORCPT ); Thu, 12 Oct 2023 17:40:16 -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 6A6E8D8 for ; Thu, 12 Oct 2023 14:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697146767; 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=o3yRqYZd7hXBCjj0x6r+xRvOZ/+by8OSU47aD3csnLU=; b=YNUhAHNwmSEdML0Q3Vxr1AoYI5TpSjRouwklKQCea/mYBaUi2soY/H934QC1UXFB86VM/C jhCITk5YThYJAR1a1XpMzMuU/Uu3GmBwaOkb5psE+77nrICTeTDoeNva2n4RmI+a5OOq3X 8bAi0lz53BcMKDnLouCiZGRbEtgN2Ec= 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-164-Vr7439uNPZWuQNVoZAcd2w-1; Thu, 12 Oct 2023 17:39:16 -0400 X-MC-Unique: Vr7439uNPZWuQNVoZAcd2w-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-407558fe418so10099495e9.0 for ; Thu, 12 Oct 2023 14:39:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697146755; x=1697751555; 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=o3yRqYZd7hXBCjj0x6r+xRvOZ/+by8OSU47aD3csnLU=; b=O0wtdUjYS1c3uEzUcWAJWNiKOb84yv09gtBkJNiUVQhUDzlncHOw5KZhnHBOOnvH/2 XfsFeceoKuqER4MHDBy3I3h/JOMwo6zv6FmusPfXXJugkW9GPXCsSrnuF83YxKxoFAoO 4mUvHWueWJbA5Cy56VXkvp39hDWAdqz8iiRitHt2QXLtgbuUfKaozzzZn/ng1RNQ6Nyo StCkcWgzJk9MjW1mLJJC7EJXklEdbiPE/xrH6UVOiP+M8weJqRfsBW3WuJhbux049aBM nQnXBoSR0wHW9GzmYYxFRRz8uMm/T463BEmjw1Uo1myV3swZx+u9ipc6jp+JVLITYBi+ yoyQ== X-Gm-Message-State: AOJu0YzdrD8Fe4VsKVIHPCPFqjwVd/PL7X6r0yNY9DMwJQ21MOxKb8TL 3kFMlgylKrtddOxLnxkNSZB0qh6UjCDXzv1289JTNdJJOqTzNPMzU2Ag9d2EX+9y9Ah2b079fss 36FUcuRxPXCbi9IKwrJA7+2mRnr6XytnmlamBrM76QuO9nsJKrhg4RFSXXpY/z3dfi8SpLdgTCy M8mOtZRfc= X-Received: by 2002:a05:600c:22d5:b0:406:52e4:cd23 with SMTP id 21-20020a05600c22d500b0040652e4cd23mr21842886wmg.0.1697146754762; Thu, 12 Oct 2023 14:39:14 -0700 (PDT) X-Received: by 2002:a05:600c:22d5:b0:406:52e4:cd23 with SMTP id 21-20020a05600c22d500b0040652e4cd23mr21842864wmg.0.1697146754547; Thu, 12 Oct 2023 14:39:14 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id y10-20020a05600c364a00b0040648217f4fsm800706wmq.39.2023.10.12.14.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 14:39:14 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Thomas Zimmermann , Peter Robinson , Geert Uytterhoeven , Rob Herring , Maxime Ripard , Conor Dooley , 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 v3 6/6] dt-bindings: display: Add SSD132x OLED controllers Date: Thu, 12 Oct 2023 23:38:36 +0200 Message-ID: <20231012213843.1151060-7-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231012213843.1151060-1-javierm@redhat.com> References: <20231012213843.1151060-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 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 14:40:41 -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 Reviewed-by: Rob Herring --- Changes in v3: - Add Rob Herring's Reviewed-by tag to patch #6. 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