Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4618658rdh; Wed, 29 Nov 2023 06:29:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMjbyBJa8jvOiCQLp16knLP0FGDngb7sIdooQUaQrKV2ak2SG8/qazgGv8A0FLddyyUtG/ X-Received: by 2002:a17:90a:d482:b0:280:4af4:1a41 with SMTP id s2-20020a17090ad48200b002804af41a41mr32137549pju.15.1701268187867; Wed, 29 Nov 2023 06:29:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701268187; cv=none; d=google.com; s=arc-20160816; b=sn+ax+plI5F1u8MynChXBUdNeBykkhnbF0QdiEftoyRSCXi2511tGYUKY1/MBZLFex 7pQEUgqowio3FnTZoEbXIhO9JAJL3bfIMONSNhZvVtp9naIV0nK+GAjEszzETYc9YlB4 cH/bQbw13SJxuTz/C8J4SzRnaoms7ji3rhG7zO6hy7E1ugOadVs9Rcn8EloeKqjp1o6h 7ZAFHIhVi7c0Kn0V4R1ImFhZxUnC/5L0AmkHG3tq7rxLFm7ieEMzlzRFgO0qnDSFIDQZ 9KVel1767Rvefrk1lN/PqESGSXP4A5RCgtO9tdVsYjPx76PysNVkxmVlFKcIjfAM4foY zoHg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xnTl0XPyqiqU2xPwgUkjG+5IdvlMrK5STEuXwsT5Ey4=; fh=eVYzzA+Wx+nXli7AFPj6oaeNw5LrrhL+KVyieT3UyYc=; b=NpyLF5OW+rkM+HiGyhiIXBmlPyOBbDJlhDXykL7T19yoRarnwQ/InQz4tNhNyDl2Jq U7J8ZQbJVzQKgttCTK1gtLkNC87DD/tzqVEDrex2s/z303NLiPbUDdYe8GWU0Uixvu7M VZs4Gq/3K/xuwW9+iYblRWoeUUu6pQvelR5ZVoj1oDypBTpVP96N797UakyRt/vvFJhO KbR8M7v9qPlFJQZrxMr9JvJd6iVEVEXN+g9AnjJDkAbXrnAX1QPcPYwK6BbVSlQVyY5i eF8Pz036AF3yX6bbG/fGeWbTGWnszHmF5RzfamP9G0R5HSzHVdXrmvsD+VCNXKdXuZYq 5hVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SfDBdmGn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id 21-20020a630c55000000b005b8ececd69esi13991058pgm.670.2023.11.29.06.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:29:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SfDBdmGn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 7C36A80219C5; Wed, 29 Nov 2023 06:29:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234392AbjK2O3Q (ORCPT + 99 others); Wed, 29 Nov 2023 09:29:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234333AbjK2O3K (ORCPT ); Wed, 29 Nov 2023 09:29:10 -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 142CDD4A; Wed, 29 Nov 2023 06:29:15 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 31EC6FF80F; Wed, 29 Nov 2023 14:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701268154; 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=xnTl0XPyqiqU2xPwgUkjG+5IdvlMrK5STEuXwsT5Ey4=; b=SfDBdmGnqTUFsDaI8Hqke1mnU0OkaXRoNaKcmpM+bZtDNGbZ598i+pwPdTKxo38AAz/mIv tk71lTBRZ99mlKv1eI3XHkSdgw85WUK9myCyjmWBqLIWqPBVtuoehsUoj3wQgJzKpTPYYx Jo/48Va6G15qufhZEYdwhZoETwT9ZmHvoBJYuYNIS5ihNNMx5yQYPH2n2E0fAz3cswXEco vTWFXPLxeK8f65Uo2JtcyIGkuYNrj9Br7whVh6H76uAFHjmkC3W1/xqo5p+2COlwmCVPJ6 rC1gGJu8RFHkWkC9PD0T5DISgAsDoDRM+hMBCYwWYMQYs7csQtb/JOhvwis3tA== 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 1/2] dt-bindings: display: Add Sharp LS027B7DH01 Memory LCD Date: Wed, 29 Nov 2023 15:29:09 +0100 Message-ID: <2a7c51b6e619c02ec175a5c219b0a0fd7a24499d.1701267411.git.mehdi.djait@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 29 Nov 2023 06:29:42 -0800 (PST) Add device tree bindings for the Sharp LS027B7DH01: a 2.7" 400x240 monochrome display connected over SPI. Signed-off-by: Mehdi Djait --- .../bindings/display/sharp,ls027b7dh01.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml diff --git a/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml b/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml new file mode 100644 index 000000000000..d0a4efae2827 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sharp,ls027b7dh01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sharp LS027B7DH01 Memory LCD Display + +maintainers: + - Mehdi Djait + +description: + The Sharp LS027B7DH01 is a 2.7" 400x240 monochrome display connected over a + SPI bus. The display requires an alternating signal to prevent the buildup of + a DC bias that will stop any update. Two modes can be used for the generation + of this signal Software by writing to the display or Hardware by supplying the + External COM inversion signal. + +allOf: + - $ref: panel/panel-common.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: sharp,ls027b7dh01 + + reg: + maxItems: 1 + + spi-cs-high: true + + spi-lsb-first: true + + spi-max-frequency: + maximum: 2000000 + + enable-gpios: + maxItems: 1 + + pwms: + maxItems: 1 + description: External COM inversion signal + +required: + - compatible + - reg + - spi-lsb-first + - enable-gpios + +additionalProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + display@0{ + compatible = "sharp,ls027b7dh01"; + reg = <0>; + spi-cs-high; + spi-lsb-first; + spi-max-frequency = <2000000>; + enable-gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>; + pwms = <&pwm 1 1000000000 0>; + }; + }; + +... -- 2.41.0