From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BA21CD611D for ; Mon, 9 Oct 2023 18:36:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378087AbjJISgz (ORCPT ); Mon, 9 Oct 2023 14:36:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378066AbjJISgx (ORCPT ); Mon, 9 Oct 2023 14:36:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47246E1 for ; Mon, 9 Oct 2023 11:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696876560; 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=zsxGVSfsuhfbNcHVttLtmT7ohtovb+UILcIo39l8Suw=; b=CJ1/65+JPWhnQU9nzyX+SCKE1Qdn8aXlUAe2IzOQdQhqWEqDZrLqmBlVpkbra2Shp+xIXn TZcP5/O5ZrLAjcku9Mdx3vntQN2BU2xJ+QjwwmWp3DQUHgVKqYrSlScWOY7CgeR8ThqXfM BA6lMDwvEfjM+PxxMaN0nk5ny91GrTM= 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-170-ImOQM7T8MpWlLrneaJjt_g-1; Mon, 09 Oct 2023 14:35:59 -0400 X-MC-Unique: ImOQM7T8MpWlLrneaJjt_g-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-323334992fbso3420585f8f.1 for ; Mon, 09 Oct 2023 11:35:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696876558; x=1697481358; 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=zsxGVSfsuhfbNcHVttLtmT7ohtovb+UILcIo39l8Suw=; b=jdsU08H8Bc34wn/5qz5/jZkDzMklArDm8iXctTNh8Ab4plUWrpsRBoZjQbBgoFaYaC ClP9c3IiRLgc1EMoYlx/ekiBAg9mAaPBSJeMvj1Qc42jGmg/kt+ldzQspbnFRTH9J1aO Le9yn7PefzP/3TXnMniFrQ+Ss9muFblFDKNMdc4ZZIEWppoQdodjBaWKIZdNGngwjOYW OZcXD0iTpUxBn8yuL5nP8EmUWL6ieovd5TnMS21cbjJ1SbvPk+fN1oqVpePFS8xzE7lf gf8Hi80vLvNSwTn/ioZwm5Xr47AJzDWZxYVorilmCi64j4CcgzA9GFo44WooO07+54hk gKyg== X-Gm-Message-State: AOJu0YzX6nxceVHzIxLjumv+Yf1cSkAOdtgSMMk2cKmj1V3Ihh3+wb4P 2pM6v1ofnw8NPtOiF5Imf1PbtnX/+5QZWDypKNidXDs5uxYHNXEsInHRf0V+o9szpiiPRI8RFhb FgTvMQCRcC/KQc1+K3YDg X-Received: by 2002:a5d:46cf:0:b0:31f:8e7c:6ebe with SMTP id g15-20020a5d46cf000000b0031f8e7c6ebemr13528781wrs.5.1696876557923; Mon, 09 Oct 2023 11:35:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+JcBXZXNGTEmKnDAtxnhtdraUNMsB+1F+EutebIzxSPaz9pa+gYUnBEZnCiXhnydilDCYXQ== X-Received: by 2002:a5d:46cf:0:b0:31f:8e7c:6ebe with SMTP id g15-20020a5d46cf000000b0031f8e7c6ebemr13528764wrs.5.1696876557507; Mon, 09 Oct 2023 11:35:57 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id f16-20020adfdb50000000b0031ff89af0e4sm10318981wrj.99.2023.10.09.11.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 11:35:57 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Maxime Ripard , Thomas Zimmermann , Geert Uytterhoeven , Javier Martinez Canillas , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Maarten Lankhorst , Rob Herring , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org Subject: [PATCH 0/8] drm/solomon: Add support for the SSD132x controller family Date: Mon, 9 Oct 2023 20:34:14 +0200 Message-ID: <20231009183522.543918-1-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org 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. The patches were tested on a Waveshare SSD1327 display using glmark2-drm, fbcon, fbtests and the retroarch emulator. Patch #1 renames the ssd130x driver to ssd13xx since it will support both the SSD130x and SSD132x Solomon families and at least the SSD133x family in the future. Patch #2 also renames the data structures and functions prefixes with the ssd13xx name. Patch #3 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 #4 changes the driver to use drm_format_info_min_pitch() instead of open coding the same calculation. Patch #5 adds a per controller family functions table to have logic that could be shared by both SSD130x and SSD132x callbacks. Patch #6 renames some SSD130X_* commands that are shared by both families and patch #7 adds the support for the SSD132x controller family. Finally patch #8 adds a DT binding schema for the SSD132x device nodes. Best regards, Javier Javier Martinez Canillas (8): drm/solomon: Rename ssd130x driver to ssd13xx drm/ssd13xx: Rename data structures and functions prefixes drm/ssd13xx: Replace .page_height field in device info with a constant drm/ssd13xx: Use drm_format_info_min_pitch() to calculate the dest_pitch drm/ssd13xx: Add a per controller family functions table drm/ssd13xx: Rename commands that are shared across chip families drm/ssd13xx: Add support for the SSD132x OLED controller family dt-bindings: display: Add SSD132x OLED controllers .../bindings/display/solomon,ssd132x.yaml | 116 ++ MAINTAINERS | 6 +- drivers/gpu/drm/solomon/Kconfig | 28 +- drivers/gpu/drm/solomon/Makefile | 6 +- drivers/gpu/drm/solomon/ssd130x-i2c.c | 112 -- drivers/gpu/drm/solomon/ssd130x.c | 1260 -------------- drivers/gpu/drm/solomon/ssd13xx-i2c.c | 126 ++ .../solomon/{ssd130x-spi.c => ssd13xx-spi.c} | 104 +- drivers/gpu/drm/solomon/ssd13xx.c | 1508 +++++++++++++++++ .../gpu/drm/solomon/{ssd130x.h => ssd13xx.h} | 63 +- 10 files changed, 1876 insertions(+), 1453 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/solomon,ssd132x.yaml delete mode 100644 drivers/gpu/drm/solomon/ssd130x-i2c.c delete mode 100644 drivers/gpu/drm/solomon/ssd130x.c create mode 100644 drivers/gpu/drm/solomon/ssd13xx-i2c.c rename drivers/gpu/drm/solomon/{ssd130x-spi.c => ssd13xx-spi.c} (54%) create mode 100644 drivers/gpu/drm/solomon/ssd13xx.c rename drivers/gpu/drm/solomon/{ssd130x.h => ssd13xx.h} (51%) -- 2.41.0