From patchwork Wed Jun 14 12:32:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Leonard_G=C3=B6hrs?= X-Patchwork-Id: 107945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1231286vqr; Wed, 14 Jun 2023 06:03:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6gevI5+aBBiP+dyk+n57b+m60bOa/Aft35AdOeNMWwN5DrRFEaE0zGA8uSSmhr2QeNd8JV X-Received: by 2002:a17:907:7e9a:b0:966:335a:5b07 with SMTP id qb26-20020a1709077e9a00b00966335a5b07mr16999314ejc.62.1686747791896; Wed, 14 Jun 2023 06:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686747791; cv=none; d=google.com; s=arc-20160816; b=I2k8R8aRHjc6Uk0ODC6VbaKdD1sw5TZRmwm2EOqxb0ZF6dwkA/3BZ5c0Ba7lyxx5H6 FSkfxUUuteEeEqPymGNwcIB/tXfYqXFjm7Pd132v/tmA8qRTaxVTpE0mh5Y9gUz7qEab Pr9cHDYNzJ0BIVnLFA9G69+7WmEyBMAe9N9RnkzjhaLZgio4pkCftHKOYWMDpoN/+0lC znLoeq9MHyKACcY9x8HXovMq9LQsWQbQu7j+QAVX6h6yGPywQi1JBZOiUPKV7SJZvuEA IGZTRTBg5Zv9KH9P+flSQPu5XsyOBWOhbhKfrgYgltogehTwFX9PBsd1kZhZ9NOcXMkU LM0g== 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; bh=zgbPE9vFkk7w8t+8ZEx2vCCf089GPpIBh70f7qEqKYI=; b=wiG4S4uvGjR/kWgQlG95ZdMw6hXdwaDjLcICNUD9FHVRZyuhc/VWiS+kRXs52XpLmz jcolraswbvum7KEU98Y9QfEdBsSNOIPaBzSOwpHzFcLbVyV3bpg33PRZsu86IJwxwx7L sO4M1vktM+eaOtNySMjTUDWT3MvTH6i6k9gPkdi3f3FNoLyMPd+oCop7LOa7Z/JrFAyL apeaeFuNi7kRx5oo8s/POLrrQ90eOEFO6X/J8ZuO3Tw3oX+KDRxCQV7qLNPAYZ8OlkTm TVS+Xh53jEL2uRXGFzJqMBREpCSgXr7zvUBGSlG/soGuuDyYOeCcIkaYblE0A8z3Jyc9 SI+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xo19-20020a170907bb9300b0096f6c947d69si8309399ejc.356.2023.06.14.06.01.51; Wed, 14 Jun 2023 06:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244612AbjFNMdZ (ORCPT + 99 others); Wed, 14 Jun 2023 08:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244601AbjFNMdW (ORCPT ); Wed, 14 Jun 2023 08:33:22 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B862AC for ; Wed, 14 Jun 2023 05:33:05 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q9Pg8-00017G-2F; Wed, 14 Jun 2023 14:32:48 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q9Pg6-007LpO-DZ; Wed, 14 Jun 2023 14:32:46 +0200 Received: from lgo by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1q9Pg5-00HUJe-Iv; Wed, 14 Jun 2023 14:32:45 +0200 From: =?utf-8?q?Leonard_G=C3=B6hrs?= To: Conor Dooley , Rob Herring , Alexandre TORGUE , Krzysztof Kozlowski , =?utf-8?q?Noralf_Tr?= =?utf-8?q?=C3=B8nnes?= , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter Cc: kernel@pengutronix.de, =?utf-8?q?Leonard_G=C3=B6hrs?= , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/8] dt-bindings: display: panel: mipi-dbi-spi: add shineworld lh133k compatible Date: Wed, 14 Jun 2023 14:32:16 +0200 Message-Id: <20230614123222.4167460-3-l.goehrs@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230614123222.4167460-1-l.goehrs@pengutronix.de> References: <20230614123222.4167460-1-l.goehrs@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: lgo@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768683252813632083?= X-GMAIL-MSGID: =?utf-8?q?1768683252813632083?= The Shineworld LH133K is a 1.3" 240x240px RGB LCD with a MIPI DBI compatible SPI interface. The initialization procedure is quite basic with the exception of requiring inverted colors. A basic mipi-dbi-cmd[1] script to get the display running thus looks like this: $ cat shineworld,lh133k.txt command 0x11 # exit sleep mode delay 120 # The display seems to require display color inversion, so enable it. command 0x21 # INVON # Enable normal display mode (in contrast to partial display mode). command 0x13 # NORON command 0x29 # MIPI_DCS_SET_DISPLAY_ON $ mipi-dbi-cmd shineworld,lh133k.bin shineworld,lh133k.txt [1]: https://github.com/notro/panel-mipi-dbi Signed-off-by: Leonard Göhrs Acked-by: Conor Dooley --- .../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml index 9b701df5e9d28..c07da1a9e6288 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml @@ -67,6 +67,7 @@ properties: items: - enum: - sainsmart18 + - shineworld,lh133k - const: panel-mipi-dbi-spi write-only: