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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6AC9EC001DC for ; Wed, 19 Jul 2023 10:25:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4DE810E458; Wed, 19 Jul 2023 10:25:02 +0000 (UTC) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3446910E458 for ; Wed, 19 Jul 2023 10:25:00 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f122ff663eso11021708e87.2 for ; Wed, 19 Jul 2023 03:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689762298; x=1692354298; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=kzwI5VxEU3KMLKWKNIn2pwe7xkF7bK6X8n8zVQIr7Rg=; b=lLD7U78AvsWpQsA+ih7cP/XCaGmPFltne9MPqtHTzBQS+p3YpOfOb9o4wKgs/xstYd DEIg6DYTG6baWnMkZPF19uln0GPiAVPkMQd0xcJcHl0QTVOWWnzywdJ3+LxBPTdWiigC ja1haPZz7EVoWCD2gFGraRpHUOu5lEdVfMlxn7Mos+CMef5YpI6S5+JjiXn9n5bHvLME mFv3WPXKBN9SVVF38NgWnlciFJebgjOOztwxf/BVNOnPimAJcUEmO6yrgGLmvEIDgfvd bR/umRb2gHL+l7Ap2BhLXQxestuKJ2HmgK4Z/qqAqQQ8usmCkTtrlhDelbTpaw9zG0nV 8bmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689762298; x=1692354298; 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=kzwI5VxEU3KMLKWKNIn2pwe7xkF7bK6X8n8zVQIr7Rg=; b=jG5vRGknW6NXgJ/0kluYF1oQFh6L4nhbO83VMkdm1fO2xjb5Pwkd4s+j3iX8mnqIhw t3ahWyT2fH1oW2ZatBNZWarf6EMxj0+xq3Rgr1QJVxWkR98c7nMd2gccYzCDcCGYU0EE 0lX+WssNbo/LlhhYqUNkqCjpDRbH6DWmrcxI+PKXLpQL40K72GPJcuZnt/ointMcD8s1 2komQC0foLmg8p/6hSpizCSz3Y0cQLW8v8RPpI86jmVOR4mdK4lbLPLmj0r45nzWHfuk 3Qu0KSRAZ5qXkE5eDnyyArBRrzM4e+LPob+wFHgPgFVVkxmukb7JxGfMlvxbUZd8GGC7 X0YQ== X-Gm-Message-State: ABy/qLb/0Y8em540nmeA4rYHM/njgmdrNlnfVsimTzU3lUvsQLe09lbq zvnXKi8GDKFKgjAUrwOT4FY= X-Google-Smtp-Source: APBJJlGhm6Wd3ZSuA/ojzZSkRjGMNdf9Nw27UIw1oSG2HZPZKShGd2lhnbkd3lqo9fy+Xwkkw6MuAg== X-Received: by 2002:ac2:46f7:0:b0:4fb:c67e:b067 with SMTP id q23-20020ac246f7000000b004fbc67eb067mr1296369lfo.66.1689762297723; Wed, 19 Jul 2023 03:24:57 -0700 (PDT) Received: from localhost.localdomain (mm-94-245-57-86.leased.line.mgts.by. [86.57.245.94]) by smtp.gmail.com with ESMTPSA id q11-20020a19a40b000000b004fa4323ec97sm887786lfc.301.2023.07.19.03.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 03:24:57 -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 1/2] dt-bindings: add vendor-prefixes and bindings for pcd8544 displays Date: Wed, 19 Jul 2023 13:24:29 +0300 Message-Id: <20230719102430.316504-1-viteosen@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Signed-off-by: Viktar Simanenka --- .../bindings/display/philips,pcd8544.yaml | 89 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/philips,pcd8544.yaml diff --git a/Documentation/devicetree/bindings/display/philips,pcd8544.yaml b/Documentation/devicetree/bindings/display/philips,pcd8544.yaml new file mode 100644 index 000000000000..ac880d9d8cc1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/philips,pcd8544.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/philips,pcd8544.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Philips PCD8544 LCD Display Controller + +maintainers: + - Viktar Simanenka + +description: | + Philips PCD8544 LCD Display Controller with SPI control bus. + Monochrome 84x48 LCD displays, such as Nokia 5110/3310 LCDs. + May contain backlight LED. + +allOf: + - $ref: panel/panel-common.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + oneOf: + - enum: + - philips,pcd8544 + + dc-gpios: + maxItems: 1 + description: Data/Command selection pin (D/CX) + + reset-gpios: + maxItems: 1 + description: Display Reset pin (RST) + + philips,inverted: + type: boolean + description: Display color inversion + + philips,voltage-op: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 127 + description: Display liquid crystal operation voltage + + philips,bias: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7 + description: Display bias voltage system value + + philips,temperature-coeff: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3 + description: Display temperature compensation coefficient + +required: + - compatible + - reg + - dc-gpios + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + display@0 { + compatible = "philips,pcd8544"; + spi-max-frequency = <8000000>; + reg = <0>; + + dc-gpios = <&pio 0 3 GPIO_ACTIVE_HIGH>; /* DC=PA3 */ + reset-gpios = <&pio 0 1 GPIO_ACTIVE_HIGH>; /* RESET=PA1 */ + backlight = <&backlight>; + + philips,inverted; + philips,voltage-op = <0>; + philips,bias = <4>; + philips,temperature-coeff = <0>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index af60bf1a6664..0c3844af6776 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1037,6 +1037,8 @@ patternProperties: description: Pervasive Displays, Inc. "^phicomm,.*": description: PHICOMM Co., Ltd. + "^philips,.*": + description: Koninklijke Philips N.V. "^phytec,.*": description: PHYTEC Messtechnik GmbH "^picochip,.*": -- 2.34.1