Message ID | 20231012065822.1007930-1-javierm@redhat.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1033161vqb; Wed, 11 Oct 2023 23:59:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH39/Mu80ClaMVo4NDOX+87je61ch6BeFlHfKJFiyAZLwVMRg4wsH9CLGDhGjJcrHwh/gRF X-Received: by 2002:a05:6359:b9a:b0:147:eb87:3665 with SMTP id gf26-20020a0563590b9a00b00147eb873665mr18994777rwb.3.1697093993302; Wed, 11 Oct 2023 23:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697093993; cv=none; d=google.com; s=arc-20160816; b=hLDQy6xvxdWmossEqNPi4M+mHlXCRokTsYvR3nhRmVS79RR2jrwQdK42Dj5pjlyg6H C/qcXLAmZjzcYh9pT44/HEg9KRKvFPrtMSNUBnsd8uHIRxfD/bWNdaFEI4RJqVkVgh7o YavC63X9FZzFRc+cmwujFsuHonDT0UQcOqhnuY2/vyJfUBlrfR63XX823gqppWkiuHp2 Z/ERXt2fLKG9f0V7YiDxKH+bs9ChnRJKyu3i2T+f0ql77alJYhjBtN63yJdfaSfYgO7B zXch8xXQbe9Hfcp/UNLKt33q+GIVQ4eK8YprAOKk5Pmc4eEOEToXxA9dDCvIOYbgOEF2 lDjA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=gQEDK0zRsxdao/USWhxq2/eyquvh3FKOLJOV9l+xrLE=; fh=VXwNf6PNTJYPTy/42XFFoocdKSBTXUd49MKzcr70jb0=; b=I9QqTX/KNSQwJ7vIAguHEtZwSRJ3tZD9nbOdpu9iQ1/WL/WgM1jOsfr2evyFhBHMkn orBJ97T7ZQNbF+IbX3SCGv2Lz4xWxvOsYeXSJzrsN2uK/psxeqyYEpq+qsQzYy6xV5r+ D9z5lymyAXqnL4k1oXmu1CpZeS9WDN199Ma8kVLORd5p0kt5JawHgpwoTN2hiuXeL55W s1YOf9Ujss1iwIkODlIrQ/Mk3AmMtQEaxOsgZBHnfgevY09lmG+0EgP+xNgSEUbdibBZ qDyN8NRymDlNAD3JiTinIQeMBJJZnJRd7VlYjmYfrw5HPw8RhFOD/nk2zPr4KcZLSmD3 H9Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AoEZ5Urt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h9-20020a056a00230900b0068fc080f79dsi14023300pfh.122.2023.10.11.23.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AoEZ5Urt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id EDAEC80ED990; Wed, 11 Oct 2023 23:59:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347092AbjJLG7S (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Thu, 12 Oct 2023 02:59:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347055AbjJLG7O (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 12 Oct 2023 02:59:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8EC7BA for <linux-kernel@vger.kernel.org>; Wed, 11 Oct 2023 23:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697093914; 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; bh=gQEDK0zRsxdao/USWhxq2/eyquvh3FKOLJOV9l+xrLE=; b=AoEZ5Urts6zFcCppf3SvDwr0rW3Y7kLRSYw28KntRgXtwQY42jJE/rzqGqp7NyOeNNh4qq u+DelfEz66JdgjL7QxatVt67m18kvbFHsji8TWNDMP3U+J/XR3Z0fGF3lhzVUnd1HBAAWI kVw6Eoq0R/HJ1oarKuEPenpoq8uNIqo= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-367-zXarBG4wNWuDcyGKTqMPwg-1; Thu, 12 Oct 2023 02:58:27 -0400 X-MC-Unique: zXarBG4wNWuDcyGKTqMPwg-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-32d931872cbso111121f8f.0 for <linux-kernel@vger.kernel.org>; Wed, 11 Oct 2023 23:58:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697093906; x=1697698706; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gQEDK0zRsxdao/USWhxq2/eyquvh3FKOLJOV9l+xrLE=; b=odeGiTx3gWxXBkfo+WT1NkM4SWGjoP9yrNT4mHliyu2BTzi8SdXrJGHSP5W3BUmhdI mB6Cz2wk96UnKe90w6Ikuk6+PlWcymTDg+bLQLUSrUFh5AuYBDNkXzpIWNfErGndaaNH 2qy3DXn1q8G7gCOeQhZ+2IJsl3kd16tXGxeu1d+Sizmqd/vhDXKryrrBROiXXz0KlRGQ wP7/EaKTj2RUEPrUTqMsq4droM2bmXSypwQXvvDztMu0N2Rg+Nw5kiXNUBeNxVpGHHjq 1NQv6prrPkBGqg+4ju0JoX9Fc8aia04dZD8vr2UgU183xMlBpelDroweT3akxiW6Iuve czjw== X-Gm-Message-State: AOJu0YzVpbawKf2J4veRwZQUBl40trl/GvknKohIKICJp2cHqeogJfQN 45BmWL6UgWsSpf0Vqz6REMRQVh3Xw1p7Le35eF8MQWvGniitHvuJ/crXJN6SMRZqzIspQ5pC0hv gnfOZv7U0O5yaJWp73P2XsJjMW0/jD7rFN8gExHbddShMZ4J7c/P0tY7InKibcy9KmSsTZG+tup vClTOC/4g= X-Received: by 2002:adf:cc8b:0:b0:313:f463:9d40 with SMTP id p11-20020adfcc8b000000b00313f4639d40mr18345675wrj.65.1697093906368; Wed, 11 Oct 2023 23:58:26 -0700 (PDT) X-Received: by 2002:adf:cc8b:0:b0:313:f463:9d40 with SMTP id p11-20020adfcc8b000000b00313f4639d40mr18345648wrj.65.1697093905990; Wed, 11 Oct 2023 23:58:25 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id q15-20020a5d574f000000b00323384e04e8sm17393266wrw.111.2023.10.11.23.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:58:25 -0700 (PDT) From: Javier Martinez Canillas <javierm@redhat.com> To: linux-kernel@vger.kernel.org Cc: Thomas Zimmermann <tzimmermann@suse.de>, Conor Dooley <conor@kernel.org>, Peter Robinson <pbrobinson@gmail.com>, Rob Herring <robh@kernel.org>, Maxime Ripard <mripard@kernel.org>, Geert Uytterhoeven <geert@linux-m68k.org>, Javier Martinez Canillas <javierm@redhat.com>, Conor Dooley <conor+dt@kernel.org>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/6] drm/solomon: Add support for the SSD132x controller family Date: Thu, 12 Oct 2023 08:58:09 +0200 Message-ID: <20231012065822.1007930-1-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 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 groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 23:59:42 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779532030876964993 X-GMAIL-MSGID: 1779532030876964993 |
Series |
drm/solomon: Add support for the SSD132x controller family
|
|
Message
Javier Martinez Canillas
Oct. 12, 2023, 6:58 a.m. UTC
Hello, This patch-set adds support for the family of SSD132x Solomon controllers, such as the SSD1322, SSD1325 and SSD1327 chips. These are used for 16 Gray Scale Dot Matrix OLED panels. This is a v2 that address issues pointed out during review of the v1: https://lists.freedesktop.org/archives/dri-devel/2023-October/426039.html The patches were tested on a Waveshare SSD1327 display using glmark2-drm, fbcon, fbtests and the retroarch emulator. Patch #1 drops the .page_height field from the device info with a constant because it's only needed by the SSD130x family and not the SSD132x family. Patch #2 adds a per controller family functions table to have logic that could be shared by both SSD130x and SSD132x callbacks. Patch #3 renames some SSD130X_* commands that are shared by both families. Patch #4 adds the support for the SSD132x controller family. Patch #5 splits out some properties that are shared across both controller families bindings and move them into a separate solomon,ssd-common schema. Finally patch #6 adds a DT binding schema for the SSD132x controllers. Best regards, Javier Changes in v2: - Add Geert Uytterhoeven's Reviewed-by tag to patch #1. - Squash patch that uses drm_format_info_min_pitch() to calculate dest_pitch with the following patch (Geert Uytterhoeven). - Store ssd13xx_family_funcs[SSD130X_FAMILY] in struct ssd130x_deviceinfo (Geert Uytterhoeven). - Don't mix switch (family_id) and ssd13xx_funcs[family_id] (Geert Uytterhoeven). - Replace switch (family_id) by an .set_buffer_sizes (Geert Uytterhoeven). - Move the rect alignment to a per chip family function (Geert Uytterhoeven). - Align the rectangle to the segment width (Geert Uytterhoeven). - Drop patches that rename driver and prefixes (Maxime Ripard, Peter Robinson). - 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). Javier Martinez Canillas (6): drm/ssd130x: Replace .page_height field in device info with a constant drm/ssd130x: Add a per controller family functions table drm/ssd130x: Rename commands that are shared across chip families drm/ssd130x: Add support for the SSD132x OLED controller family dt-bindings: display: Split common Solomon properties in their own schema dt-bindings: display: Add SSD132x OLED controllers .../bindings/display/solomon,ssd-common.yaml | 42 ++ .../bindings/display/solomon,ssd1307fb.yaml | 28 +- .../bindings/display/solomon,ssd132x.yaml | 89 ++++ MAINTAINERS | 3 +- drivers/gpu/drm/solomon/Kconfig | 12 +- drivers/gpu/drm/solomon/ssd130x-i2c.c | 18 +- drivers/gpu/drm/solomon/ssd130x-spi.c | 27 +- drivers/gpu/drm/solomon/ssd130x.c | 405 +++++++++++++++--- drivers/gpu/drm/solomon/ssd130x.h | 33 +- 9 files changed, 552 insertions(+), 105 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/solomon,ssd-common.yaml create mode 100644 Documentation/devicetree/bindings/display/solomon,ssd132x.yaml