Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp166936rdb; Tue, 19 Dec 2023 12:35:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6yyLPVY0ITTlFpHuYuvb6wO0/nlPmb+gw8o6agGNqqEx3SOdycQX/pYbCv11+LL7YROhV X-Received: by 2002:a50:cc49:0:b0:54c:87a1:34fe with SMTP id n9-20020a50cc49000000b0054c87a134femr10801161edi.10.1703018137424; Tue, 19 Dec 2023 12:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703018137; cv=none; d=google.com; s=arc-20160816; b=DVQ2GS/O2yOevX1zahJDcnKgD6A4YXwerpNjt8kXm+J4Ti7V0lXqZoq1GSbZgTVk0y ssPxPmkh/gyLm6V3CUn+krKRzg3pbITRBqVGtBvXnGaruTnkPbkxeWHjpf7OAsVEqJBB iU4JUJJimz2kr/D1sbLiRvSdMlHgAahj/4PO0RXgqtRoZWnRGVPoh08CoHg8xd6aVbTH ncidFxLLTF4wQ9YCODAL2ReXjGK5y4FaN4o+sTDTua0VJ2Ak//ZNXZqlUowiokR/ERua Li5RbnICnSSjVmWqVCWxXEeGwAq8zlTiZRunsOz7pu7Cdjvu+InAtld88oAtc9SO73IE hQ9A== 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=uBP5+4pQK3uFRN8UqYAB+LK0Vg09XZtHg8dKysI62eg=; fh=mqnjmawRPkm26cJRs0Gl/fHnrnbLN2+NGYrDpMBvKo4=; b=EqguWgJTPJoVhoBNlnfueMzpCHiugtsac4nWAIVo8UwMKqwF23OYieX5OqeuTUU5rH gD7wPzjuBMQF6AeaFviZS2iP5hnXqKJkCAM2cYxTnGDdFXhQT4uLBKa7auFft45xX01Y Ym0HmKifFmPgJNAqYrZvMblpokXqNdVz/uF2xRMthr0p5iLrnFAHIJo9whx6ir+lZ8Go iJlB7Sg2mJttUuMDsA5NePdIgwSFaCgyCkfFhDKl1/vnLbCOsz77lhcCaoXV9DfBQgmf GphHyeO+gR2HNdfYvE1lYcVTdCfO/uw498wXb1HuZdzvaXV3wQoRYDFdei+3cVEYBVGK wkzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UWIKJsHv; spf=pass (google.com: domain of linux-kernel+bounces-5927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5927-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. [147.75.80.249]) by mx.google.com with ESMTPS id dk18-20020a0564021d9200b00553905d2a1csi929215edb.24.2023.12.19.12.35.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 12:35:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UWIKJsHv; spf=pass (google.com: domain of linux-kernel+bounces-5927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5927-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 308B21F27A63 for ; Tue, 19 Dec 2023 20:35:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 507453C46E; Tue, 19 Dec 2023 20:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UWIKJsHv" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 0C8693BB2D for ; Tue, 19 Dec 2023 20:34:55 +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=1703018095; 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=uBP5+4pQK3uFRN8UqYAB+LK0Vg09XZtHg8dKysI62eg=; b=UWIKJsHveG5VIOoOcbVyD+ISqNIZ9Gm1airsZ8rQH2FzuNwXKDR3dHogwxycAMV5Qgq+5r oJF4HwICa1/P8G79zbbJ9DG/MkVZqMAUlwuDSOyoow6tRK0WeULX42qTqbxxumuiKMYgi+ rKDFTvF+GkdNK0lGkxa6slApPXbQu98= 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-345-g5HbBmySNSqXXQ8dH77tTA-1; Tue, 19 Dec 2023 15:34:53 -0500 X-MC-Unique: g5HbBmySNSqXXQ8dH77tTA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-40c514f9243so33023975e9.3 for ; Tue, 19 Dec 2023 12:34:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703018091; x=1703622891; 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=uBP5+4pQK3uFRN8UqYAB+LK0Vg09XZtHg8dKysI62eg=; b=EzXZuKsDpcicydHB+2fTRQinvFJ0fONtDGGnVLj3s2VumDHFAOWsBxtE/Y0tudTcQL 0JKrsYP8PMVxG01zPmq9P7jQUb+rfm1Q/B4rAbYwUPESdcl4nhVWdDiUeOWRCm841Rmc eXlYd8BJFN0MVee1e7lRPMn6JqnxAcs3lVVZMjCysT/20hBrdqrAY5CyxfHDNgepXBTE wuQSi17p6QXnbsR6XttEFefPPJhbEdt94Mi9A9v5/9T+V1YG4iYBO0ZlFrInO8AkrJ71 fktcem69X5rFt6owKaYIvRT0HUzE1DQ7jaQbJ5Vhkdaqr5Ovop7rNKbynKD4p2Cco8Bf QMnA== X-Gm-Message-State: AOJu0YxoycQ4bGRacd7Z6b2Bs6OFo7CzNbc3K/htYPNE/zfdbRIvsCJS 5/brl5UcrUg1dwGbHQOShBFpZWS9yfmPjY7b+ZB3R+HjaPc/Diq5DSslKP6BuUPK40wR4ZgTenM Fhlz+aHh5tx6hGlkLbkPo73cCA8D5CuBMTfNAlHtleUhP5dLIMpZ22Ll9xbQFzLajxVK6pWblhQ IchOtPkM8= X-Received: by 2002:a05:600c:458d:b0:40b:33c0:a22 with SMTP id r13-20020a05600c458d00b0040b33c00a22mr11268590wmo.28.1703018091029; Tue, 19 Dec 2023 12:34:51 -0800 (PST) X-Received: by 2002:a05:600c:458d:b0:40b:33c0:a22 with SMTP id r13-20020a05600c458d00b0040b33c00a22mr11268569wmo.28.1703018090722; Tue, 19 Dec 2023 12:34:50 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id c5-20020a05600c0a4500b0040c411da99csm4464496wmq.48.2023.12.19.12.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 12:34:50 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Maxime Ripard , Peter Robinson , Rob Herring , Conor Dooley , Jocelyn Falempe , Krzysztof Kozlowski , 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 v3 3/4] dt-bindings: display: Add SSD133x OLED controllers Date: Tue, 19 Dec 2023 21:34:08 +0100 Message-ID: <20231219203416.2299702-4-javierm@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219203416.2299702-1-javierm@redhat.com> References: <20231219203416.2299702-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 --- 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