Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp61035rdb; Sun, 17 Dec 2023 02:08:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/qm5l9AZWNK/d2RobgMy0l4xvtL++3ZOzRxQRsJYB6KdMWymC76S/B+34wvNz6uo024AW X-Received: by 2002:a92:ca8a:0:b0:35f:5019:eb9d with SMTP id t10-20020a92ca8a000000b0035f5019eb9dmr12055700ilo.130.1702807694669; Sun, 17 Dec 2023 02:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702807694; cv=none; d=google.com; s=arc-20160816; b=1AGCDZrr5ZrGROa1yuznhAiNF98t1KS5/fLfBUBSupu1Z4WSgag6HmcooBnZ6bH4oT 8v9aI1NbI9Y9qnjtJxgd2hn2VBcg+SYPx4EMZbpitcAStLZ/XGedG6HXmoAileK/er8u fUxGKMQ0LLvV9ZzoAcbS2yTCZKoTn3ZAUB9/R+68U7dQSWAKExKLuaoDrlnyAGFM4G7+ 3Xu+fkik/I+91ki54hX+7IXkUMVl0p9ZfeslWzEbVnY+NaQzjyf3VnI/3uG7Mdt+20QB Auwdm+pZxBKJ1AnlFcv5kyo/3U9wW/kXZS9rvgd6xcu0i/96qWCIsZFgDgDx1DALPZZa bspA== 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=5CR/3Io6mktEEwQ1LHj5L/2zpZ/H1ugjG/amm876pBg=; fh=XH/ap8Nu0Ho4qMO4SozedsUSGhYtMcZa+6i5RnOhocc=; b=CBNAdntHGrNBxT9Nr/uNEtTuxK/GLY5yUlfdkIsVN3+Xo6XqU7vR1M2I5CgIMigMfR rjxQlNyLh9FfkSVRkD4inms3vpEIhnbycra/RvvYfDFCQvL8kWjb+SS9UJO0s/EjWkca T3xZR8WacpJNeD/s1qZlr+8+LAltDMMd6bwa4NIsOzVZKSU9DaDNnGc5B+hO1VqBpLX1 x0gl6Q30pGPq5L1Wuum+8W/wtHlDvtoiqd22b1UMGqNajYUbzNcK7j2ERWkhmx/oSpUA ckeFjORgHVmbxoI9hNqH30GfjMS14ZDmy332Ez5Pn88BNj+9vojJ5STUzbywWrgYqbe0 yUkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XEpsZzyG; spf=pass (google.com: domain of linux-kernel+bounces-2522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k15-20020a170902c40f00b001d346f6804fsi7101499plk.11.2023.12.17.02.08.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 02:08:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XEpsZzyG; spf=pass (google.com: domain of linux-kernel+bounces-2522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2522-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4DCC02830CF for ; Sun, 17 Dec 2023 10:08:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 476B75398; Sun, 17 Dec 2023 10:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XEpsZzyG" 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 1E48720F1 for ; Sun, 17 Dec 2023 10:07:51 +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=1702807670; 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=5CR/3Io6mktEEwQ1LHj5L/2zpZ/H1ugjG/amm876pBg=; b=XEpsZzyG8LZUnUt2PaxQ1AmflgzJ1Fm+ekQv1RB3o9uNDx/0te+jMGnhcNqEFFrQVilwbg egeYyRW4HR2MmoCqlW7dOKOHRNiny+nns6WeSQfgzGsSu2Htosl1ACBivWG1OrQEqf25sJ dofgof93LuEskXu6EPUmYtUf0iSVArU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-650-l5Fru9RRPcSbAaWbWpxh4g-1; Sun, 17 Dec 2023 05:07:49 -0500 X-MC-Unique: l5Fru9RRPcSbAaWbWpxh4g-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-40c42205ed0so18251465e9.2 for ; Sun, 17 Dec 2023 02:07:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702807667; x=1703412467; 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=5CR/3Io6mktEEwQ1LHj5L/2zpZ/H1ugjG/amm876pBg=; b=QmZmSl/D89f1cP7drutqBX11XC8m4ZqyB6XVERkgA4q7I2L3nt7e9iyN2i0RLqrDfr ksMAuUIPrdPnlOG4ZoK9hnFxmJUslnsUmrKPIIXG1RWSNH6gqwCK7/7UTnbGglSgTTPQ xn0nE8ICgFBwrzhE+ntAbwDZdg2WDCuY0iqJCn8vvau/Br+puA00Kum4vAArT3eTH+7M le9hyjlM1qR3am5+uz8IqoOZg0iAfT+UYTexiTIooN9+T4HwmEpz/DBV8LK5AnCvvNqK JLkaIHKIO/ObrsOR1yxa9CK3EzeB1GduE9SKvU+3mZGBrUCY5zkSyjVQU1X+mp8XocBa aY2w== X-Gm-Message-State: AOJu0YxELjNOd3lRX1kPgQ0MT6PDtQV4b29lpZda8F88yzxSF40cdstn o2RSpcb7dDEJmPmCr63URrQlauFGq3zeoT2Xq8Qu5kX4VKafmFPunZrJKgrOFZ6cdn5gbxd8o0H 6V9SgpHQaKkm2aXDN62urA44yEnRhxNKSW/DnihGmHxpIjlV3jDwqIe2MfGAKc/kjXsGBGptMM8 KJviw39oU= X-Received: by 2002:a05:600c:1393:b0:40c:4d80:f51a with SMTP id u19-20020a05600c139300b0040c4d80f51amr5305204wmf.96.1702807667330; Sun, 17 Dec 2023 02:07:47 -0800 (PST) X-Received: by 2002:a05:600c:1393:b0:40c:4d80:f51a with SMTP id u19-20020a05600c139300b0040c4d80f51amr5305183wmf.96.1702807666944; Sun, 17 Dec 2023 02:07:46 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id h2-20020a05600c350200b0040c44b4a282sm29099420wmq.43.2023.12.17.02.07.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 02:07:45 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Maxime Ripard , Thomas Zimmermann , Conor Dooley , Rob Herring , Peter Robinson , 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 1/2] dt-bindings: display: Add SSD133x OLED controllers Date: Sun, 17 Dec 2023 11:07:03 +0100 Message-ID: <20231217100741.1943932-2-javierm@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231217100741.1943932-1-javierm@redhat.com> References: <20231217100741.1943932-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 --- .../bindings/display/solomon,ssd133x.yaml | 63 +++++++++++++++++++ 1 file changed, 63 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..eee8d8c9ca35 --- /dev/null +++ b/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml @@ -0,0 +1,63 @@ +# 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 + +properties: + compatible: + enum: + - solomon,ssd1331 + +required: + - compatible + - reg + +allOf: + - $ref: solomon,ssd-common.yaml# + + - if: + properties: + compatible: + contains: + const: solomon,ssd1331 + then: + properties: + width: + default: 96 + height: + default: 64 + +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