From patchwork Wed Apr 8 19:51:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 11480805 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C998D112C for ; Wed, 8 Apr 2020 19:52:36 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A5BAB2075E for ; Wed, 8 Apr 2020 19:52:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ioDaWnCB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5BAB2075E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 210BB6EAEA; Wed, 8 Apr 2020 19:52:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6F1EF6EAED for ; Wed, 8 Apr 2020 19:52:20 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id w145so6125693lff.3 for ; Wed, 08 Apr 2020 12:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VJCCkRIdQYZizf3lrj9PmXMBXsnQM3CNWOz+i68b5qs=; b=ioDaWnCBdekR5Uypkvp87fPf4bKJMGHIPurqS6rJwzGNrZtdwBS7Zxch4a7PKgxkXN t1oeMHRrRDQmNJVweBUgYnMyupHxdidXPOR7CDTnvp0GAdNIg2Wm9mevleve2AT2kq7i 8QWozhl+s4iO1DXIjUDYnwYKNa5RVgNmLba+rBweF4aQb7s07wDXbKqJJhPY37EMeoqX yF9f6tdGZ0yS6m3cIUZFk7uJIftWEtiqRHZ6LiYFWm7Fm9hvjRPEB/qH5Ch1wgtueALA deT9tGAZprpHlRFhXk9O/TiCh1m9PPE9h3jQ0puWydDuBDcpsgzjgrA489O/r/oAltMR DQ8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=VJCCkRIdQYZizf3lrj9PmXMBXsnQM3CNWOz+i68b5qs=; b=aYZM9jaAcRr0dU00o+G9foG/q/KYZBgactQtTyVC/Vz3Tpr/2HDwrEuwxaeZpzF32n ii8Llo1AxyCBjWiG8+7iyd5tdUR4FlgR2X/ojqrIrmVz49KSG0PUbxX/I3HpHE4Vt3/P MEKNPl4fDLLKwYCWjupvZMoZXqhwapFS5d1lDEAowR95fliqYau2K+psBV3qnnayIkLs sp85Dbtfw7RFUlsP6hV8T+lpmbJNt8l9qrK1HebhsOQdeOPv4VXAdSJULC32nGHbuh7g TGmxh/F6lQ6gxrt4rqPvROik+CTD8P1vj27z3LawQ1Uc/6quth2jEpV9zNqUsgaqB03m P05g== X-Gm-Message-State: AGi0Pub2NDldgEh4aKI/S1Bcml2MQIdl9/Ept2Hch4c1QI9NfLAIGW1j mRAB50NxluHT34uqm9JY/OD63OmCTX8= X-Google-Smtp-Source: APiQypL2DbbPq8gMuU8zl3cgNaQitOS0YkG5vNPE+/UUfphZWIW1fa7PoalWduD5LbMTKMGom2c0ZQ== X-Received: by 2002:ac2:489b:: with SMTP id x27mr5601399lfc.60.1586375538493; Wed, 08 Apr 2020 12:52:18 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id i20sm3961304lfe.15.2020.04.08.12.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 12:52:18 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v2 35/36] dt-bindings: display: convert olimex, lcd-olinuxino to DT Schema Date: Wed, 8 Apr 2020 21:51:08 +0200 Message-Id: <20200408195109.32692-36-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200408195109.32692-1-sam@ravnborg.org> References: <20200408195109.32692-1-sam@ravnborg.org> MIME-Version: 1.0 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: , Cc: Sam Ravnborg , Stefan Mavrodiev Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" v2: - use "ic2" node name in example (Rob) Signed-off-by: Sam Ravnborg Cc: Rob Herring Cc: Stefan Mavrodiev Cc: Thierry Reding Cc: Sam Ravnborg Reviewed-by: Rob Herring --- .../display/panel/olimex,lcd-olinuxino.txt | 42 ----------- .../display/panel/olimex,lcd-olinuxino.yaml | 70 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 71 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt create mode 100644 Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml diff --git a/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt b/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt deleted file mode 100644 index a89f9c830a85..000000000000 --- a/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt +++ /dev/null @@ -1,42 +0,0 @@ -Binding for Olimex Ltd. LCD-OLinuXino bridge panel. - -This device can be used as bridge between a host controller and LCD panels. -Currently supported LCDs are: - - LCD-OLinuXino-4.3TS - - LCD-OLinuXino-5 - - LCD-OLinuXino-7 - - LCD-OLinuXino-10 - -The panel itself contains: - - AT24C16C EEPROM holding panel identification and timing requirements - - AR1021 resistive touch screen controller (optional) - - FT5x6 capacitive touch screnn controller (optional) - - GT911/GT928 capacitive touch screen controller (optional) - -The above chips share same I2C bus. The EEPROM is factory preprogrammed with -device information (id, serial, etc.) and timing requirements. - -Touchscreen bingings can be found in these files: - - input/touchscreen/goodix.txt - - input/touchscreen/edt-ft5x06.txt - - input/touchscreen/ar1021.txt - -Required properties: - - compatible: should be "olimex,lcd-olinuxino" - - reg: address of the configuration EEPROM, should be <0x50> - - power-supply: phandle of the regulator that provides the supply voltage - -Optional properties: - - enable-gpios: GPIO pin to enable or disable the panel - - backlight: phandle of the backlight device attacked to the panel - -Example: -&i2c2 { - panel@50 { - compatible = "olimex,lcd-olinuxino"; - reg = <0x50>; - power-supply = <®_vcc5v0>; - enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; - backlight = <&backlight>; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml b/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml new file mode 100644 index 000000000000..2329d9610f83 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/olimex,lcd-olinuxino.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binding for Olimex Ltd. LCD-OLinuXino bridge panel. + +maintainers: + - Stefan Mavrodiev + +description: | + This device can be used as bridge between a host controller and LCD panels. + Currently supported LCDs are: + - LCD-OLinuXino-4.3TS + - LCD-OLinuXino-5 + - LCD-OLinuXino-7 + - LCD-OLinuXino-10 + + The panel itself contains: + - AT24C16C EEPROM holding panel identification and timing requirements + - AR1021 resistive touch screen controller (optional) + - FT5x6 capacitive touch screnn controller (optional) + - GT911/GT928 capacitive touch screen controller (optional) + + The above chips share same I2C bus. The EEPROM is factory preprogrammed with + device information (id, serial, etc.) and timing requirements. + + Touchscreen bingings can be found in these files: + - input/touchscreen/goodix.yaml + - input/touchscreen/edt-ft5x06.txt + - input/touchscreen/ar1021.txt + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: olimex,lcd-olinuxino + + backlight: true + enable-gpios: true + power-supply: true + reg: true + +required: + - compatible + - reg + - power-supply + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + panel@50 { + compatible = "olimex,lcd-olinuxino"; + reg = <0x50>; + power-supply = <®_vcc5v0>; + enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; + backlight = <&backlight>; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index eec316171b5e..22e63341006e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5356,7 +5356,7 @@ DRM DRIVER FOR OLIMEX LCD-OLINUXINO PANELS M: Stefan Mavrodiev S: Maintained F: drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c -F: Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt +F: Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml DRM DRIVER FOR PERVASIVE DISPLAYS REPAPER PANELS M: Noralf Trønnes