From patchwork Tue Oct 15 08:28:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 176374 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5584194ill; Tue, 15 Oct 2019 01:28:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+gbU5wKsTFMY2fMiSHDObc7i7oSpk26P+XF2cfybRr2I5tenb2AzKJacPFeq9it+UHReI X-Received: by 2002:aa7:d908:: with SMTP id a8mr32334096edr.49.1571128099551; Tue, 15 Oct 2019 01:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571128099; cv=none; d=google.com; s=arc-20160816; b=EPPGhfrDglnoroLQm+6JEiHYxOqBkSb0Tw6qtsWSbale2zXUf1QJG4bwo15bUEmi7n EErlgCIzo9yaRkxLaIVhWBclNt83BWgi5luYEc+oH5W82gdXajbgEhQdofEkZcvBxNm1 zPfyjOwF1rqy/UNFsfigvw9MdviMvgPs+2T5TrkzKDvCrOF3XTYlFLds/27OvqwzOl8X zRJiL3b33A6hMLFiueo+SKEjo0bX98cwtHqB6xnDGCeQhLhq7eV506L0IOWj7oRivhSY vjsgvOd/NMMxK9+P3zP77rl6UHTg72CdEhNWWqmiQLGRWONl4cwawV4cParXPXlZl8Ol Tzcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3e4wGHkKDRH8I24Is4pDzwzrCPwhPGcWqf5noRqU7Cw=; b=PevKAaP5U9kPTyicdTHBH5Kxi63mgTOwU+WgWhn3nzJdZrnszaF0Zgn6/38QYtlfKk dTUjVvRgSM7TyiF1JuD35NdMFTLhYcJwCy0zfxpH4gNB6BEAXNhPlkC4fSXPvmp64P8g 3YSDAzy2pvlU3/nwiXHFcbGRTDRTM0XeBzS3aBPW5OuL1NW8qFPUCyuQBV1BN2RDWLr/ ZNUuAU9zdjsEeVfqQYz5mKEockW4IELatkxP6JAxVnqKh67vtsZS3+ZvM1hXGefC/H78 qC+ITdBjp4OntViLw8TZR4JdkU7bG2Z5lrTijDNkxVTUQXinR4OMKSjgxPEE7F9v1QZk C8bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lGu2KQCB; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si12332476ejt.173.2019.10.15.01.28.19; Tue, 15 Oct 2019 01:28:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lGu2KQCB; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbfJOI2S (ORCPT + 8 others); Tue, 15 Oct 2019 04:28:18 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41261 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbfJOI2S (ORCPT ); Tue, 15 Oct 2019 04:28:18 -0400 Received: by mail-lf1-f67.google.com with SMTP id r2so13753655lfn.8 for ; Tue, 15 Oct 2019 01:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3e4wGHkKDRH8I24Is4pDzwzrCPwhPGcWqf5noRqU7Cw=; b=lGu2KQCBiaXwnAgxjn2XnQyZ29VvWDTfwyj851G8PR7/zGv+5q2Nb0meitSa/yPavC 5UP9jjecA1XSqKtKpA4uv9RzVqYV00H+W/svuhcGSLkjA2KoZIfev2NzXdLV0+6THABP K3Qi1CaiQ1WRYVSDuehnYYX7/xrlpbcHrTYnfPUDkr2L9LPhKtL7oioCT0H8/+DtMYxn ydTJdH9gptFk+yY7Q+MTQIrtTU/d7chqngxsySdZl8lmbo2IRbT2PcFXcIMQYXpN3ejt LUcHDOYM827MBHAjZnBgesbQZiwZmGuOF0PXnbEnj407rGcZNErbM1lxMAdznFjXlmlq 0upw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3e4wGHkKDRH8I24Is4pDzwzrCPwhPGcWqf5noRqU7Cw=; b=jYYRsvTjEQXPoTdhh05deqTm8UP5fH1YrQfjZBbfNrudgTJ1RXcMU+2OsJDEB25A4Y Brr99pngD+9Z5Ps66L5Ru/VarAPybrdtaBFjXTPZqMhfifh/vMpyCJXoVZv67FJcjIqb xVhl6Ad+amXEzcjJqVCgUbtFQLLaJNvXz2SI/EkDvv9z/xAu/0/tYWSJSOf5qqJWYarQ gqEC48Nba7+sWK20rSudoND82fKwdQv9UVlavWkOV6Qa3LAlBtyV3nHtLQgP0UXVScOb WFrqQSV/JEbQuC0tG8bSCcrzU6/9Elst8VAsGAcWie2nrlmdOJ73OH1/v8I5l/H6B3fC HcyQ== X-Gm-Message-State: APjAAAV51yKd7vLM7g7gt8Oe16108meCVlfT0SnHLc+ak80+RpfHPtoV X9FQVrbwS/DOg5k/lvOTJ80Y7I2ICPA= X-Received: by 2002:ac2:46d9:: with SMTP id p25mr7820952lfo.174.1571128096556; Tue, 15 Oct 2019 01:28:16 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id y3sm4795141lji.53.2019.10.15.01.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 01:28:15 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Cc: Linus Walleij , devicetree@vger.kernel.org, Rob Herring Subject: [PATCH 1/3 v2] drm/panel: Add generic DSI panel YAML bindings Date: Tue, 15 Oct 2019 10:28:09 +0200 Message-Id: <20191015082811.29497-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a starting point for processing and defining generic bindings used by DSI panels. We just define one single bool property to force the panel into video mode for now. Cc: devicetree@vger.kernel.org Suggested-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - New patch after feedback. --- .../display/panel/panel-dsi-common.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml b/Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml new file mode 100644 index 000000000000..4242dc25c917 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/panel-dsi-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Properties for DSI Display Panels + +maintainers: + - Linus Walleij + +description: | + This document defines device tree properties common to DSI, Display + Serial Interface panels. It doesn't constitue a device tree binding + specification by itself but is meant to be referenced by device tree + bindings. + + When referenced from panel device tree bindings the properties defined in + this document are defined as follows. The panel device tree bindings are + responsible for defining whether each property is required or optional. + +properties: + + enforce-video-mode: + type: boolean + description: + The best option is usually to run a panel in command mode, as this + gives better control over the panel hardware. However for different + reasons like broken hardware, missing features or testing, it may be + useful to be able to force a command mode-capable panel into video + mode. From patchwork Tue Oct 15 08:28:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 176375 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5584225ill; Tue, 15 Oct 2019 01:28:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPeJbzPq5xfG95gU7CzZ0CP3KqhAq10WvlJxfb0Telxn57GsOCq3bqxdrL4syIY57Lr4EG X-Received: by 2002:a17:906:2ada:: with SMTP id m26mr32648530eje.87.1571128102206; Tue, 15 Oct 2019 01:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571128102; cv=none; d=google.com; s=arc-20160816; b=whACkFmGiycVCvbFYwrnDOaDm81imbQXENVyOMPFTzVAtPzrfnpJIDR4ZfWuQyUEdn MMZYRyvt09EUS8Xhsc7z2mivTkF5P5MGnQCbtxlx/q+b0pbuOn16mEZopiTy6hD/7mW/ iHLo8MI5yvzMl5OhnR5IiJWsG2Nl5Z3tzooFFVqGQf3BtQCKlg22ieSafzezWA+Jn2Lr +nXYC46MRErwqH8gDY44E3uoT/5UfAZNXv9MS+wN1um+EfW6DRB0ToGMIDBox+CwsjSr h7ENa9ARf3XYjqpcVlZ7e0EDvKiULwDeWepNqxKIvDd0eS6ar5z6VtCSFIJwUF4mcmhe kOiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ojxDAKRAwmMHLlwEWcHkwv5aBgxTmWdQ8UAjvDvF2+E=; b=RlI1y71x/onsoTAwYE8MpeBN2CfZndRSE9hR5ElN2SKliO/RTR34OwsVHgC166f+kz xbdH/n1v8ZRmLCE2zfVuA3UTddPL7byoSVJ689y44p2PIz3MmQJwJDEhI/dKDf0rXfsf Am/O2IPUt8WDvmbvcA2b7NMQLdx1AGUx2qCuabbbvlA2B6K5DWkI7wFj6LOxMM212bdC 92wlZGxwrsyhCFIYBYVs7CaryTHqjDoEKqcd9Py7z+hokMyUVD3GhPsFkF02jp/wK7tR azRXBi1gEbJiydVHiwzejk8GYmjVXVHhl2cZvNKKMFzQDE/LcNm9hwbiIwYrm6roADs5 9uJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gucr4GXf; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si12332476ejt.173.2019.10.15.01.28.22; Tue, 15 Oct 2019 01:28:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gucr4GXf; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726632AbfJOI2V (ORCPT + 8 others); Tue, 15 Oct 2019 04:28:21 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:37580 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbfJOI2V (ORCPT ); Tue, 15 Oct 2019 04:28:21 -0400 Received: by mail-lj1-f193.google.com with SMTP id l21so19317804lje.4 for ; Tue, 15 Oct 2019 01:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ojxDAKRAwmMHLlwEWcHkwv5aBgxTmWdQ8UAjvDvF2+E=; b=Gucr4GXfE5GksBaj71VaqL02FNvfq8GV9MZqWq1LQ+47lkJrmOaL9yIlB2gNTmg/RH A9BcR/eSA7g95P/LmFhnWRVK0e0CiAsXdusG1bjZRPq/znw4CLeCLe/PUXfSx2QtK8/7 hf7C2ukdXYrVbb1DCwDtUWximRzWiTuepJ9hwLfHTe44cZ8Bqt/IJgzMZVSdQbgew3mE xp++urW+WtYSWs21i1X8H135FP9ueyv9ftdj1hJPXzE5CFI8TzjPKlR8PZG2TK4w/fLA 7WBQGSPDqoKuFTgFOlbpA3JiRi6Dqo0FEvh9VSZAdM3QOdBD0Rox9RZRLJuBeqrFuBNb 27ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ojxDAKRAwmMHLlwEWcHkwv5aBgxTmWdQ8UAjvDvF2+E=; b=VI1GutnL1WCXXwu2G+LANCYngGAXQmwo2UEdDiFC+fZltJsQ/rk3qgNk0nBoQRTPFr XpOPcI4lyj1xAChvQkstdwS3CJRFdv0qhU19fbpM/r2CpQAu5DI9TKWuV3SlxA3997dO 7aFZmUh4nJbWywP3wmlqScdXrvnguUO9+vEr88vZ/huyL6a+u83zVmn6ni2arvt7QsPI ESDw8/nMCQvo/TU4G2QJ3qv9l7B2inCGNtPE8uWFbUAIb4BoH2jveZxanWljpafcruNh IcuCCs/ZtnLTVG5yQhCVaLY5AQdIaxoM+o4fqvEUwMY0mFyxYDOnZhVzQV30otYy/kw3 wneA== X-Gm-Message-State: APjAAAUakAGSgNophYIKBxj17ZDSoHwfN1xqEv45FVqXYJERrIo/8iSW ii7fAAHG99Mi8X16v02tdPhgHg== X-Received: by 2002:a2e:81cf:: with SMTP id s15mr1954918ljg.99.1571128098821; Tue, 15 Oct 2019 01:28:18 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id y3sm4795141lji.53.2019.10.15.01.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 01:28:17 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 2/3 v2] drm/panel: Add DT bindings for Sony ACX424AKP Date: Tue, 15 Oct 2019 10:28:10 +0200 Message-Id: <20191015082811.29497-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191015082811.29497-1-linus.walleij@linaro.org> References: <20191015082811.29497-1-linus.walleij@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the Sony ACX424AKP panel. Let's use YAML. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Suggest a stand-alone YAML bindings file for DSI panels in a separate patch, and use that to reference the boolean "enforce-video-mode" attribute for DSI panels --- .../display/panel/sony,acx424akp.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml b/Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml new file mode 100644 index 000000000000..844665b0c953 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sony,acx424akp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony ACX424AKP 4" 480x864 AMOLED panel + +maintainers: + - Linus Walleij + +allOf: + - $ref: panel-common.yaml# + - $ref: panel-dsi-common.yaml# + +properties: + compatible: + const: sony,acx424akp + reg: true + port: true + reset-gpios: true + vddi-supply: + description: regulator that supplies the vddi voltage + enforce-video-mode: true + +required: + - compatible + - reg + - port + - reset-gpios + - power-supply + +additionalProperties: false + +examples: + - | + panel@0 { + compatible = "sony,acx424akp"; + reg = <0>; + vddi-supply = <&foo>; + reset-gpios = <&foo_gpio 0 GPIO_ACTIVE_LOW>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + +... \ No newline at end of file