Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4618464rdh; Wed, 29 Nov 2023 06:29:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IELonw+HZlNigQtP7DR7lfVCxzeKW4b6LOT8ubit2a28h/G95q1a1QiKrxvEu9HG1kFA/Jt X-Received: by 2002:a17:902:c40d:b0:1cf:9790:f244 with SMTP id k13-20020a170902c40d00b001cf9790f244mr19568791plk.47.1701268175180; Wed, 29 Nov 2023 06:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701268175; cv=none; d=google.com; s=arc-20160816; b=Nc+TMgGpsQz22bIn9IYi1ewX7/5A2sOV+99LgiYcS+uat0+v+3nwXXZp76NHvHm9eF PWSgL2k5hKXGdpW4xzG0DofvWCS34f3tM8nNRUaKBQqPt+h56zbDIC2+v2OL7A68l3I4 duTBFAEl1y6UIh4RsoSV84UzSivnuYB8ZsCYwHB7+/9v92BREuuKMPk359EMv1ds6n7q Y1sx3Zs5GEeqQUGx29WgWITk3yRRj7REN/5laDfNTaMu2hds0nyTjXgSXqiAOK/jCE/x Zs97qvHCqw++xWd+3nJ2tEsi5dBYasze0EMrAZd7Uuqkaau/qgDpmO2YApGPKTd3f+Sd KtrA== 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=FBe4Dzvbp9G6y5FdkNNaW8c1rBGR1yDYU7Bf04zl9co=; fh=eVYzzA+Wx+nXli7AFPj6oaeNw5LrrhL+KVyieT3UyYc=; b=PxWJh32wjF6ItVvCYSmJmbCAr7ykX60iuxRs0ufc8i6fwlUBW9s9xcQE4jWfWFyAne ZJXJeJrQyoiU4syx5ZnbcGDbZ//s9A5M30WGCJZK0f9rtIyk/L14XR6yJuXyBFeJUr1c hqwATlci5cHKT6ukeeqY5GmvaANmj7s4u7/9TNPqXjyEhjin8J4r0b1uuZJnOiWfuwRn AOQvYlUiEo4iwnkEqNJv0XIqkjeAvFellksgpKHTVavvTiWQZixRd/VQwTPW6SMhqLO1 KU3Cv1OasTfEVG036nnKfpJMoD7GN5PEehENCEnEGnSImpyD3PeCM/RxOU6x+CJ7Zrsz EGoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=D3+fsK8P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h4-20020a170902f54400b001cfd057098dsi6902360plf.418.2023.11.29.06.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:29:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=D3+fsK8P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D935C808577A; Wed, 29 Nov 2023 06:29:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234314AbjK2O3J (ORCPT + 99 others); Wed, 29 Nov 2023 09:29:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234233AbjK2O3I (ORCPT ); Wed, 29 Nov 2023 09:29:08 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C4FF197; Wed, 29 Nov 2023 06:29:14 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id E9F0DFF806; Wed, 29 Nov 2023 14:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701268153; 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=FBe4Dzvbp9G6y5FdkNNaW8c1rBGR1yDYU7Bf04zl9co=; b=D3+fsK8PuCZ+x5Brl5D2kD+/MRaCPqjrL47+jeHSJzpbBIOcDEWwr9G8KQYnH8KlIno5E3 IP2/s10jfrs+LW38zVGmGjjwkn5cnm7uBNWoRcumD8tISBsbA74JXM6AG6I6DD53wr7AHq lmrgE2NUAcBqdQ+Xf5xNqb8KRaYkz4qQra7tueBpZGSEjhp9RLN9B1o+oy9dEqQgb1vJPR 0A0ovsicJanfwhodeSyPAT4l7eE7DNs30pYAF+RL3ovfIpbEQesQF14WjLO9JM/U/8vghF 1XTRJLRZYmCwRc8xU9Ku40fXIWZlRMlDoAZlgVxbhacdvDSVO0GRw9xFFMhNFg== From: Mehdi Djait To: mripard@kernel.org, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, luca.ceresoli@bootlin.com, paul.kocialkowski@bootlin.com, dri-devel@lists.freedesktop.org, geert@linux-m68k.org, Mehdi Djait Subject: [PATCH 0/2] drm/tiny: Add driver for the sharp LS027B7DH01 Memory LCD Date: Wed, 29 Nov 2023 15:29:08 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: mehdi.djait@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 06:29:28 -0800 (PST) This patch series adds a DRM driver for the sharp LS027B7DH01 memory display: a 2.7" 400x240 monochrome 1 bit per pixel display SPI device. This controller uses SPI both for control and for pixel data. Pixel data can be sent either as one line per SPI frame or multiple lines (up to the entire picture) in a single SPI frame. This driver implements the latter. The Sharp Memory LCD requires an alternating signal to prevent the buildup of a DC bias that would result in a Display that no longer can be updated. Two modes for the generation of this signal are supported: - Software, EXTMODE = Low: toggling the BIT(1) of the Command and writing it at least once a second to the display. - Hardware, EXTMODE = High: the alternating signal should be supplied on the EXTCOMIN pin. the Hardware mode is implemented with a PWM signal. The driver announces the commonly supported XRGB8888 to userspace and uses the drm_fb_xrgb8888_to_mono() function to convert the format. Mehdi Djait (2): dt-bindings: display: Add Sharp LS027B7DH01 Memory LCD drm/tiny: Add driver for the sharp LS027B7DH01 Memory LCD .../bindings/display/sharp,ls027b7dh01.yaml | 71 +++ MAINTAINERS | 7 + drivers/gpu/drm/tiny/Kconfig | 8 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/sharp-ls027b7dh01.c | 411 ++++++++++++++++++ 5 files changed, 498 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml create mode 100644 drivers/gpu/drm/tiny/sharp-ls027b7dh01.c -- 2.41.0