From patchwork Mon Jul 24 09:07:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viktar Simanenka X-Patchwork-Id: 1811619 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Y06cROcc; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4R8Z7Y0pyTz1yYc for ; Mon, 24 Jul 2023 19:07:52 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231824AbjGXJHu (ORCPT ); Mon, 24 Jul 2023 05:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231527AbjGXJHa (ORCPT ); Mon, 24 Jul 2023 05:07:30 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6989B10C3; Mon, 24 Jul 2023 02:07:28 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4fdd515cebcso5993327e87.0; Mon, 24 Jul 2023 02:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690189647; x=1690794447; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=GW4IPYVW8Zq83RgacffHLZpPhSAB6bm+nS5zZOv0Rrg=; b=Y06cROcc4tgb+taRDoEcqWhvsTgl4WBCVaMm7ygcueZwYD2OR93/MLkAjw4wengjI5 QtVj9aHllNyWwfAnEArDZIpxcGcF6j3oodzLQ4jVNl3xCw6JtamGfqJK7a8U8IS+iJMY VmP8pmgTw3QOpqbeB0MOLvTpG7i+2HR10OYdNyz9E3ghFyfkLPN9qdINi3VKK14WsUGN 3NEGD3gppPf63+4tprut9Vn7Z+zf9TeCZduciU1prQsAIhDKz3kDmAgfFXy6GKyoOAW3 umBNTAC2mtYesW55NVMxeLGe5VNrNGLJq0EzhITVbkvwpxXuBOvSwRrg2+5PvlPfgeLK h5BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690189647; x=1690794447; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GW4IPYVW8Zq83RgacffHLZpPhSAB6bm+nS5zZOv0Rrg=; b=VTz6H2b3y2TZA4CNFvr5MvCqqp8VR0gCE/vVj7PlGslGqqhqm4NeiXFMWt2wdk+TMt 2S1khUSWmvTgoPxOIo3QXZwKmJGyI2AW81M9NUQkmMpAtRoxm0ezYGJMm/CCJP2Ed5wr bTrhbqLT03a4Z26LM83DYOboYpvYWU9Fn4liEczFJGgP7175VQaOikdpU8j+mQ8wMdBi GKx8QTEJ0CDOTY4h0AayZhzuwh2VoIrHOTclNe3cN0lTAklWRk2uw3pDmFb06AnbMfKO NRI8mF9hJEPSo01fqYM5cUcvnh1WcSr6iU+3JndYWpFIkxjg+py0HYr8DaezPyrTMqhH rGgA== X-Gm-Message-State: ABy/qLZqIl2c4MxIs7TktPVpxm8ZotrSZgca5S/K78dgalHHc59L7zb9 jdO4B6mKY5bb+EzEtzicmVs= X-Google-Smtp-Source: APBJJlFz15rC9PKvoxHO9kL9YanMvNfktF9sIkGqfiEwJoZLoBD5zaOA6orVATYdTLeT76gAdlSS8w== X-Received: by 2002:a05:6512:2345:b0:4f8:7772:3dfd with SMTP id p5-20020a056512234500b004f877723dfdmr4817005lfu.11.1690189646339; Mon, 24 Jul 2023 02:07:26 -0700 (PDT) Received: from localhost.localdomain ([86.57.157.184]) by smtp.gmail.com with ESMTPSA id j14-20020ac2550e000000b004fc863a0bf6sm2092473lfk.223.2023.07.24.02.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 02:07:25 -0700 (PDT) From: Viktar Simanenka To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Viktar Simanenka , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] dt-bindings: display: add bindings for pcd8544 displays Date: Mon, 24 Jul 2023 12:07:12 +0300 Message-Id: <20230724090713.1489-1-viteosen@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: devicetree@vger.kernel.org Add device tree binding documentation for PCD8544 LCD display controller. Signed-off-by: Viktar Simanenka Reviewed-by: Krzysztof Kozlowski --- v4:remove reference to panel/panel-common.yaml add optional backlight property v3 link: https://lore.kernel.org/linux-devicetree/20230720124026.356603-1-viteosen@gmail.com/ .../bindings/display/nxp,pcd8544.yaml | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/nxp,pcd8544.yaml diff --git a/Documentation/devicetree/bindings/display/nxp,pcd8544.yaml b/Documentation/devicetree/bindings/display/nxp,pcd8544.yaml new file mode 100644 index 000000000000..236eb4f4b3a8 --- /dev/null +++ b/Documentation/devicetree/bindings/display/nxp,pcd8544.yaml @@ -0,0 +1,100 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/nxp,pcd8544.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Philips Semiconductors PCD8544 LCD Display Controller + +maintainers: + - Viktar Simanenka + +description: | + Philips Semiconductors PCD8544 LCD Display Controller with SPI control bus. + Designed to drive a graphic display of 48 rows and 84 columns, + such as Nokia 5110/3310 LCDs. + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - nxp,pcd8544 + + dc-gpios: + maxItems: 1 + description: Data/Command selection pin (D/CX). + + reset-gpios: + maxItems: 1 + description: Display Reset pin (RST). + + backlight: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + Phandle of the backlight device. The display may have an LED pin that + controls the backlight through GPIO or PWM. + + nxp,inverted: + type: boolean + description: Display color inversion. + + nxp,voltage-op: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 127 + description: | + Liquid crystall voltage operation coefficient. Determines the LCD + controlling voltage on display segments. Should be adjusted according + to the ambient temperature. Adjusts the contrast of the display. + + nxp,temperature-coeff: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3 + description: | + Display temperature compensation coefficient. Increases LCD controlling + voltage at lower temperatures to maintain optimum contrast. + + nxp,bias: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7 + description: | + Display bias system coefficient. Should only be changed if an external + oscillator is used for the display. + +required: + - compatible + - reg + - dc-gpios + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + display@0 { + compatible = "nxp,pcd8544"; + reg = <0>; + spi-max-frequency = <8000000>; + + dc-gpios = <&pio 0 3 GPIO_ACTIVE_HIGH>; /* DC=PA3 */ + reset-gpios = <&pio 0 1 GPIO_ACTIVE_HIGH>; /* RESET=PA1 */ + backlight = <&backlight>; + + nxp,inverted; + nxp,voltage-op = <0>; + nxp,bias = <4>; + nxp,temperature-coeff = <0>; + }; + }; + +...