From patchwork Fri Dec 29 11:20:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 183897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2505743dyb; Fri, 29 Dec 2023 03:21:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrcKtTTP2dtTV06x+/mAwsc5yaMMLNgfmXndYq24JMAXtXc/EV9t1dMnZnTWGxRb1HdoVQ X-Received: by 2002:a9d:66c7:0:b0:6db:a0e9:f248 with SMTP id t7-20020a9d66c7000000b006dba0e9f248mr7880487otm.37.1703848913861; Fri, 29 Dec 2023 03:21:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703848913; cv=none; d=google.com; s=arc-20160816; b=X+ZzwUjtj0la/J5qxXf7+7R/pVDcQTufjzimWllqwIMhvjqvT6E1LU9eU+hhIdk3bV n1ycl4lxLrZlCitMI8KxcfmywwILKhR1P81lNMifsG9zBG6XZVRD7Uhw+UgoezQteb4S L0X87m1vBAl3kSQhMAWX2LUDllfMx5F3hz0JASLJqLLUoS1mj6f1Kk44ekBqwCqkyFSU yf/I5HJ/+dOenOaLUQ+yl303Bwt65lGvtFTFD2V4HdvP6pLAMCTyBTjM2+/B5jy7Kh1i kZJ26tYdxvKchMecFp56M1oCi9SVieNpMTPwdehXFReEkRBnLenfOtGwPpiong/w1xaO aw+A== 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=lSLqHCf+PCh+kG7eprKkh+p3h0FyLiC3U9qCESwxHTc=; fh=Mu1HnY2UcA9BmcLO8GrVzAMlPO3B8AXeqScNjkurIsQ=; b=mJ9bLTSikPP2FkW7lpacmtUZmX95dq15UU91/m7RiJ0J9pHfnOUSzMScXN1MuiSD7y ImwNl1zVQ5ZHkr5qWcDBw47UO02CYPpck3u5tPdOan2yp4c39sbVdrwkq85g3q6CNJ0F 1ev3a3LjZG7AheBFsYUiZ+vfh0/xcKCFsYE7oyCz8ZFcjsuqpxgbSMGNF+/qrnVsON0k fkvBSHhwspZHC0JQGIaPMbDUXnz5zWClpE5o+Uo1pDYRaQr/HtpcSFrS+t8OArLhmuQx AqNOGGj09B+TLic788QMbphB+txMjv8c6fYPEUtKmXZqQ2JuiQ5fMAZh8WnKUxELfCaF 2lpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GEBiAZIF; spf=pass (google.com: domain of linux-kernel+bounces-13058-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13058-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t18-20020a6564d2000000b005cdf55c924esi12090188pgv.750.2023.12.29.03.21.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 03:21:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13058-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GEBiAZIF; spf=pass (google.com: domain of linux-kernel+bounces-13058-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13058-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 69AB2B2280A for ; Fri, 29 Dec 2023 11:21:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62C6811C89; Fri, 29 Dec 2023 11:20:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GEBiAZIF" 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 8933811710 for ; Fri, 29 Dec 2023 11:20:40 +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=1703848839; 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=lSLqHCf+PCh+kG7eprKkh+p3h0FyLiC3U9qCESwxHTc=; b=GEBiAZIFQ6IWa5Z94sb54LpNcBMWF0d3zbpRASNy8QAegWWdDuy8T5eamcmZ8eS5+5dmW7 APBo2XjhcUT/0503YaSQTqumheRlG7QThuodwO+PxjsU5V7KtVlVOB7kAXmQH71VKpke8+ XzPBKzx0jriKD48+wXUulUsUMNVTRaY= 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-457-C5vwgMMTPm6YM_vQsCZg2A-1; Fri, 29 Dec 2023 06:20:38 -0500 X-MC-Unique: C5vwgMMTPm6YM_vQsCZg2A-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-40d54db2ab5so45083685e9.2 for ; Fri, 29 Dec 2023 03:20:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703848836; x=1704453636; 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=lSLqHCf+PCh+kG7eprKkh+p3h0FyLiC3U9qCESwxHTc=; b=TXDFm8ZVQ7Q+Mti9TxfoeD9XeMlga/i2eQa/er6rb1iiq7p3lwxiMoNjYhTQOLD7Lu PpJ62UVbkQrSnz7xfcoi0vofLbIomg6GJdHSiQoOxNLPZ3unuSDzgTscX/nHq/TwUUPt rYCuAfNkmIUtt9UfvwX4BgsBCRyouWUSGQFHMuY1nrhpfCcwpM5C1PmEJHqP6ix5qZIc WiyGG8RsG5AgJTZAqPWhBgwyYc6YhlF/56Vf1RSKhyID9BE05rEdQs8PU17RIj09ppwI GVAigRFgilZBIiYMgcSlfH/L8JHLU9N/g1j4V30CGhDJowraIyoO4pp/JWKzT6g6XTDH wJkw== X-Gm-Message-State: AOJu0YwyV2jDq+Li66yoBfzSMj49On6FFvxMxomaM2hripK9366Ktcut AUSEehQHPMJpMeTKCppIguZe58J+VSA8WLNQRUgNRMm2kMbvEu35lY/lYzP5LllpKg3gsq2c+qW bFv4FprOWxnrm4khRojUAt3Q0c83dS9EaygrHLgPR3NdJhm4z0zlIbppZ9ecSNPvahyOZuB92tL tZXSrTdOCfgTtP9NI= X-Received: by 2002:a05:600c:4e47:b0:40d:593f:63e5 with SMTP id e7-20020a05600c4e4700b0040d593f63e5mr2848676wmq.7.1703848836427; Fri, 29 Dec 2023 03:20:36 -0800 (PST) X-Received: by 2002:a05:600c:4e47:b0:40d:593f:63e5 with SMTP id e7-20020a05600c4e4700b0040d593f63e5mr2848655wmq.7.1703848836196; Fri, 29 Dec 2023 03:20:36 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id q11-20020a05600c46cb00b0040d2d33312csm30532067wmo.2.2023.12.29.03.20.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 03:20:35 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , Thomas Zimmermann , Maxime Ripard , Geert Uytterhoeven , Jocelyn Falempe , Conor Dooley , Peter Robinson , 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 v5 3/4] dt-bindings: display: Add SSD133x OLED controllers Date: Fri, 29 Dec 2023 12:20:20 +0100 Message-ID: <20231229112026.2797483-4-javierm@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229112026.2797483-1-javierm@redhat.com> References: <20231229112026.2797483-1-javierm@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786615078388304893 X-GMAIL-MSGID: 1786615078388304893 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 --- Changes in v5: - Drop I2C example in DT binding schema due that bus not being supported. 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 | 45 +++++++++++++++++++ 1 file changed, 45 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..b7780038a34b --- /dev/null +++ b/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml @@ -0,0 +1,45 @@ +# 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: + - | + 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>; + }; + };