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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEEB3C001DC for ; Wed, 19 Jul 2023 10:29:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbjGSK3x (ORCPT ); Wed, 19 Jul 2023 06:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231289AbjGSK3m (ORCPT ); Wed, 19 Jul 2023 06:29:42 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6DD30DA for ; Wed, 19 Jul 2023 03:29:10 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-991f956fb5aso828040966b.0 for ; Wed, 19 Jul 2023 03:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689762546; x=1692354546; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ExPK31B4ljf4lopgSPrp6SO4czwztEWUPRdEkb+8xNo=; b=w7AG3lT/hleVDVJWoBWR/9b30ZYcgiAULuogEcKrVjW4wsEyArMaNchv2LL1RE/bul oxRQq9r5JoHKtZz3Ow87qVBlQvLxaDs5scr8e6rhDfcHqJGArp/KOzfHikZkFn6qoa2b QrJGXKXtS1Ly9ogY7Xa26nRYk89lX3lCNq/42xKVeG5fZzeNeh+OExcIMIwvAlSI7vaA FwSYwz2naQtrWqw6hiikqFFDybDbeimBwPSbuib42ZynZ5VihrsiyrcfCs4VFdmU3Vjn sIq90rOss4+PUaa0mtoQcdK+tBflunFm2hRLQSNTQQclooMzQGj7Ot42nI8d5StaLtNu TN3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689762546; x=1692354546; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ExPK31B4ljf4lopgSPrp6SO4czwztEWUPRdEkb+8xNo=; b=kO83AuO+D1NoBunzknOP/GEbJbycHDSusJqdzRFOiI17/o0R2R4rtY2iAlDBCvRVSS m17aG/b09YRa1pE6IXUd249TRde1w/ItXqTsXE9B0hKJEfC6tlwxqkiL5hVwXfeUjymH 8YNvICKPqrHAPU022W64eR266Wjq4+c3N3bduLHDBDgggiPWvIr7GeYtNIkg1Tvi/jqX u07maRN8EimmZ+7BV2LpsPgIK7WwZ2rjAaVDcdILtY6QB0zbzNV95/HIfH5X/sA231U9 qv7pC0DJmhsuy2yK4XjVtmF88RY0sQ2WUFsMhHDWAh/9jeKJBp56jHk2EVSxRMyldwr1 hLhQ== X-Gm-Message-State: ABy/qLaIQYI+dpXrHby5P1Zr/aNmdotXzVxN1YmU9q3Ei306HZ+O+Ma9 URoFiDu2W9vetMYJihd6JFEtHw== X-Google-Smtp-Source: APBJJlFj1TXxAa83rkP3FsR6k80oE7zp7zFFP1kYWHxI2V2j3NwUp9HJ/acreyD3O7Q9i8cabhBYXQ== X-Received: by 2002:a17:907:3e99:b0:967:21:5887 with SMTP id hs25-20020a1709073e9900b0096700215887mr2368427ejc.40.1689762546292; Wed, 19 Jul 2023 03:29:06 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id w21-20020a1709064a1500b00982b204678fsm2124473eju.207.2023.07.19.03.29.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jul 2023 03:29:05 -0700 (PDT) Message-ID: Date: Wed, 19 Jul 2023 12:29:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] dt-bindings: add vendor-prefixes and bindings for pcd8544 displays Content-Language: en-US To: Viktar Simanenka , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230719102430.316504-1-viteosen@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230719102430.316504-1-viteosen@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 19/07/2023 12:24, Viktar Simanenka wrote: > Signed-off-by: Viktar Simanenka Missing commit msg, missing changelog, missing versioning - I already asked for the last two things. > --- > .../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: That's not 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 Not much improved here. What is it? > + > + philips,voltage-op: > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 127 > + description: Display liquid crystal operation voltage Voltage is in microvolts (or other *volts). Use proper unit suffix. > + > + philips,bias: > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 7 > + description: Display bias voltage system value In which units? Voltage is in microvolts. > + > + 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>; reg is always after compatible. > + > + 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. Isn't this Philips Semiconductors? That's what datasheet is saying. Best regards, Krzysztof