Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp692511rdb; Fri, 22 Dec 2023 02:03:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpM271mG0RvD9HFPJ8JyaFF4LaftTfcn2j5LspVdH4Q9y7HgWC1sZ5I747s++9uGKO7eL3 X-Received: by 2002:a50:d782:0:b0:553:5077:213c with SMTP id w2-20020a50d782000000b005535077213cmr515069edi.71.1703239381916; Fri, 22 Dec 2023 02:03:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703239381; cv=none; d=google.com; s=arc-20160816; b=IEnpBWjthes2v52XpRnUi5mawXZtXoPDULdmhCeZzBY4/YM9is+O11u+4JOpa6aYI4 WB8UgVqrfMNZWlXGZABaarJRVrV4I3kAGJ+qGP321V86KQ0aEOLeEiPSG3A6YYj5wIut NC/uJKSa8y0f5rN6DUJbZusulggkFbKhgBlDBqcAcb94NJPL4uOJ/lZam9RqgeRoJWif 4pjOEWAE+HYYDe6mzwNZ4SSJokpGik6mUXZ09502tO/qs1TNShQ7kbN2p+jMe+UqtYxj YoEyxWDdYNGZSGfS5nhHYBqoSlv/wXa+6vTE0HDSa71uzHRlS07EN2KMkHeENXFKB030 BmVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=L4FSS8B/TyNttrAPDKVxxrfugLFfEOoGgW3LT/2ICJc=; fh=6NJYW6WIRBIwdFWD7lh6yoGbTJsvhX0veDVxUvA2h7Q=; b=J5mjtiBKOtrXPfDvkmHpxnpXn+vZhMRCqUXlcyoqjnrKoV3Y2J0aTMaD8q3Emz3C96 2LMYeCwPs+NbELUB7lD27dM61MkEOrQiTIGpuXrD++ltmX4joUzLM9v6o5A+x7tAIbJk 6kQkoGwGHOop+wqruqJ0CA3AdUjgWjO0nvgqWqYIaAO7LyovIx3N9UXKjYpSIrjrYuli F0Q35bfKxTY0Ro0jHOtaJ5NTeZwywZfZ+S+hinxmVlusYhWWVqh/hhvQW2ovfUSqSoad bIrLb7ePD3MKtJMkr++h2J17xBWtNIc5ztUrc8wD3QU+OOEXYFUYCfYjzog+XYmUwykp TKWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HOYxbXpd; spf=pass (google.com: domain of linux-kernel+bounces-9572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x59-20020a50bac1000000b00553fec21663si1629239ede.332.2023.12.22.02.03.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 02:03:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HOYxbXpd; spf=pass (google.com: domain of linux-kernel+bounces-9572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A8B761F2514D for ; Fri, 22 Dec 2023 10:03:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB18117985; Fri, 22 Dec 2023 10:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HOYxbXpd" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3028171D9 for ; Fri, 22 Dec 2023 10:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703239322; 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=L4FSS8B/TyNttrAPDKVxxrfugLFfEOoGgW3LT/2ICJc=; b=HOYxbXpdyDSF3zfClSnRrBQ1j3JPXQL+7BQisjQyKSjAdwFj3XqnEl4+Q00jiZwZiqGNel qz/+rH7Oe8nBiBlANfnXXpnYYDxMPE3EKd2eQcZuVE+4zR7at/B5SkfW94ILt+Ld3dINUF blpx594T2hY706Gme4xEMaidiPik/aU= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-372-Bsa_6LomPOyPJgQ41GUfCw-1; Fri, 22 Dec 2023 05:02:00 -0500 X-MC-Unique: Bsa_6LomPOyPJgQ41GUfCw-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-3367e2bd8b0so1096623f8f.1 for ; Fri, 22 Dec 2023 02:02:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703239318; x=1703844118; 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=L4FSS8B/TyNttrAPDKVxxrfugLFfEOoGgW3LT/2ICJc=; b=Lc2gH3T7PdtZRSJu3RHCGIeg6sDmlrOpwELS7O5lIeu3+KEVZ1vSS3w80wx6Zv+2hk YEvprGdy1FQPJzbH4lIcWJDZwZXmgv2flbn+Ha3UXaqpUetovQmrTPGiBjmh7mHpS+hB sVLn/TjACtbVrJuosyA0fBfG2jDmfGYVqGr5NRc71WgohTYJby8rh+8c7bd4Py69kdt3 1uI4CPFPfgc1PiDmkQIYDfMWDAlRYyUR7oYWhTPi6LhsdhSYyymSLZGM4oOo8ooBkuv9 pkYjmCJgbUDRE4re6QbsLwZlImjOncX7kJ5wY5Sk6LbwoDJEPq734a8bts4CYyVu0AuL ZSKg== X-Gm-Message-State: AOJu0YzTv0sPSunwYRNNzO3M39AAA022OHug7u0vLZ7YtkvLxkUvJDhH pONNchkzJA6U3yAl4zQV75n6qmf5xMVJfApki6YjloF3J2DfdcCnPJKRFzjgo5TxYkef2jR8f68 GTqIDJO1O56T8SXE112VX+rF4KIRbBl17F8c/PLYAXWJspbuow8RwMOh4CQUi0UiVqKS4/+uRTO E7LmRrRsX1VmkPpJI= X-Received: by 2002:a5d:4351:0:b0:336:7357:a9f9 with SMTP id u17-20020a5d4351000000b003367357a9f9mr609057wrr.83.1703239318723; Fri, 22 Dec 2023 02:01:58 -0800 (PST) X-Received: by 2002:a5d:4351:0:b0:336:7357:a9f9 with SMTP id u17-20020a5d4351000000b003367357a9f9mr609036wrr.83.1703239318274; Fri, 22 Dec 2023 02:01:58 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id t16-20020adfe450000000b0033666ec47b7sm3883026wrm.99.2023.12.22.02.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 02:01:57 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Maxime Ripard , Jocelyn Falempe , Peter Robinson , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Conor Dooley , Thomas Zimmermann , 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 3/4] dt-bindings: display: Add SSD133x OLED controllers Date: Fri, 22 Dec 2023 11:01:40 +0100 Message-ID: <20231222100149.2641687-4-javierm@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222100149.2641687-1-javierm@redhat.com> References: <20231222100149.2641687-1-javierm@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a Device Tree binding schema for the OLED panels based on the Solomon SSD133x family of controllers. Signed-off-by: Javier Martinez Canillas Reviewed-by: Rob Herring --- (no changes since v3) Changes in v3: - Move solomon,ssd-common.yaml ref before the properties section and width/height constraints after the other properties (Conor Dooley). Changes in v2: - Unconditionally set the width and height constraints (Conor Dooley). - Fix indentation in the DTS examples (Krzysztof Kozlowski). .../bindings/display/solomon,ssd133x.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/solomon,ssd133x.yaml diff --git a/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml b/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml new file mode 100644 index 000000000000..e93879b3da5d --- /dev/null +++ b/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/solomon,ssd133x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Solomon SSD133x OLED Display Controllers + +maintainers: + - Javier Martinez Canillas + +allOf: + - $ref: solomon,ssd-common.yaml# + +properties: + compatible: + enum: + - solomon,ssd1331 + + solomon,width: + default: 96 + + solomon,height: + default: 64 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + oled@3c { + compatible = "solomon,ssd1331"; + reg = <0x3c>; + reset-gpios = <&gpio2 7>; + }; + + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + oled@0 { + compatible = "solomon,ssd1331"; + reg = <0x0>; + reset-gpios = <&gpio2 7>; + dc-gpios = <&gpio2 8>; + spi-max-frequency = <10000000>; + }; + }; -- 2.43.0