From patchwork Sun Feb 23 12:18:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 183751 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4184233ile; Sun, 23 Feb 2020 04:18:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzzDUweuHYx+MKExgYm47j6PPZD8VShpGKPEhzAViDxFSEZ+RtkXsOlLdAM2CvixcujZp+s X-Received: by 2002:a63:1f58:: with SMTP id q24mr22900446pgm.334.1582460339670; Sun, 23 Feb 2020 04:18:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582460339; cv=none; d=google.com; s=arc-20160816; b=uGi79OfY4vN/mnZl81RcC1HluXhqk4cpxM+1R3NwsWAYDFl49NO9lPewFXUfXbExeY pQ04179GrYhNOaRNOzQkujGl8dBdJYYWQSm1NBPZS8zO4mMmTLVqne6ssrVIWa8Y6pKJ XRo+VWyUZoIU8d5EK3z3zqKRQ7tplpl7UuVDaVto6SuZytFxaRqFsxR2n1ke3kaHLfDk E/7BWHInXKxz6FN+/EJ9AEFc8HNcHSX0jBZGXz7gRfGg06Jk8vwS7ybt8NWag4DxXaPH 1qrrum4zjnIHm34T34Vo2NvxIZKEJg3WGjgrmjWtwjycmcIjEsrjFQ9KHkQr9TQGl1Mu cVUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=iEoh+lps/WZ8ITeCtbTVavfULhpI91lRZjli8/mYxu4=; b=smyw/6FVk9yzq98tHzQqbgFusguOJa2hZVJF9QWxN743zKbyP/o+X/AG+cLeskuwZC PP7GAn4E/3zE0CTIMFFPnXSZnxiwQdC01r/6Lljb+/Ow3ofO5k//4qYYRyIc2MIs2zn7 EhClfgFOeP5hIXVE00mAB1ddx5uh5tYB0A0O7gzb0mWIN2IYFmVuw6jT4Vp36LIlYV1E 7A2o3jScltEFrSbAshdkIlgaQ/dA+vySqdqm7jaUZcA6K+2V1WiGv4eVNZJ1wycTxoXg OlwCRpKDe9WirtsuMhSpa+BKUlehr53OS/vf74aVoPg+tl/vdhPqwyxqV/UAJfTnwKDY PnmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=emNMLzoW; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id a13si9789129pfk.111.2020.02.23.04.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 04:18:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=emNMLzoW; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BB6C26E178; Sun, 23 Feb 2020 12:18:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 99B326E178 for ; Sun, 23 Feb 2020 12:18:54 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id x14so6910056ljd.13 for ; Sun, 23 Feb 2020 04:18:54 -0800 (PST) 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=BXKksNkbkU6OrFeniHxIoTPEPDtrdEfi9fYOE86NNJw=; b=emNMLzoWBw1eL3Wr7KPh3+nmoIjK8h0PmEzCWejMB70d8JO+9Xx/SdqCGJ5vb3IMdu mLhp9cxMjOmmEuJqD6s+h1Ef3D7KqmY5rwgJ8a0NQZb0H2HQl8VzGCcKc2To0fnitxHf irnLaPZXlWA1vHntpz/cq2EagYVszc3Hqy6u7Gq2c3LAn8n4nwM6wqHLAqQsJCWtOJMg 4F0NppoVR8kJo5M6ekudUuE5JTouhst4uoJ1sYZRQZdRO/uyxBK8v/7+YfO2wcwBZhdr vYz8rCLXi9LtRghhWKFsd/gF4m5ASFHGaZ0YGys4rshVTt75TTyvvcBNiNjq7jHu3O7R ZnLg== 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=BXKksNkbkU6OrFeniHxIoTPEPDtrdEfi9fYOE86NNJw=; b=U6QoFpKI7o/nxwUy+wPHYlvUx3za1aSnrScFLncvDqym2BWqrr11IDrzE5Ba4nIyAw izY7W90Oz3LJE+403Xy4hZk1AKmuRdt6JVMYhxj9172TK6bco6UvYUUB/ZPn6/uuJ225 FqHZERQK7x6Kh3F1emlHGTUwdktxwc2bcPLVh9TFal+8aaPMUV5iuVk19HekRLmdTAsQ oEvz8QesPRKod/eudehzpEWprPQ7zKtLYVvotajlH4RDdifMK8zCjhl2qNWoKywxKs/M ndZ0DciP0BF3009EqnwwTZAlBe6WO+kWFtYo+oq+DmOv0O15nwyQ6a7WNVrlWpkskUj+ srgQ== X-Gm-Message-State: APjAAAUbMdeosB19LYx9MELJfwnKEOIq+UC/6Akun/e5evPrhp6jhnV/ pLjuNwB5Yjx7vUi/RJhOHJ9J4A== X-Received: by 2002:a2e:b5b4:: with SMTP id f20mr28395925ljn.112.1582460332906; Sun, 23 Feb 2020 04:18:52 -0800 (PST) Received: from localhost.bredbandsbolaget (c-5ac9225c.014-348-6c756e10.bbcust.telenor.se. [92.34.201.90]) by smtp.gmail.com with ESMTPSA id r10sm5458553ljk.9.2020.02.23.04.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 04:18:51 -0800 (PST) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org, Rob Herring Subject: [PATCH 1/3 v2] dt-bindings: Add vendor prefix for Hydis technologies Date: Sun, 23 Feb 2020 13:18:39 +0100 Message-Id: <20200223121841.26836-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.1 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: devicetree@vger.kernel.org, Stephan Gerhold Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This vendor has produced a number of display panels, including HVA40WV1. Cc: devicetree@vger.kernel.org Cc: Stephan Gerhold Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - New patch adding this vendor. --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.21.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 9e67944bec9c..95ef233dbb52 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -421,6 +421,8 @@ patternProperties: description: Shenzhen Hugsun Technology Co. Ltd. "^hwacom,.*": description: HwaCom Systems Inc. + "^hydis,.*": + description: Hydis Technologies "^hyundai,.*": description: Hyundai Technology "^i2se,.*": From patchwork Sun Feb 23 12:18:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 183752 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4184282ile; Sun, 23 Feb 2020 04:19:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzrckCUAICKnsLhvMrT1LB/lzV1MASNuyxnyHvDz4/kty07qNVtE7kEqSw/kVDz9OE5K3EW X-Received: by 2002:a63:e044:: with SMTP id n4mr46887844pgj.338.1582460342927; Sun, 23 Feb 2020 04:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582460342; cv=none; d=google.com; s=arc-20160816; b=V1gyZyQJRVVtEUxFFA96gyW9R/QWXG976uh9KO4OQK/aZe5OTojl1raJGkLImi4cMq jMYdMVFYlk0i/EZYlGBHiUtD58FYFTQnlBKVpJq+oqdtJ5nm+nY0bh3mn1mKVjKVSdBN 5qaKSW0lzfQmDNGefr2knrY8Kfikq419i4RAKxtXfPQrdJDPLeMR2U/k9wV4iq8ikvgT wVoLdXio049fkWaXu/BrjmWGQAWGvLhxK9S+OmHgPsf2lrsziZ3x16QiQzEV1J3GVJiq W6moMu9b+ZZ25qt+eKql2Ggwr0mVcGdszNYY301SCAHBPJv5B4g3IFdofF81/+UJ9obK ZWhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=A8XuOLcjlLMojCXZksOjOqG38qvAFVvSaCpP0p35kDg=; b=jNee7mReSiYrdRECqkXJNQIn3mHIot/fl1OZAs7UbbszklTG1n2nCuo6jN0BOioh+r RigX6uGkrvU2S1xTLdx+WRet770dT9IWCarKJbWp9FO8CCz2ESJ2BGcl3Lf9cYd0hveP XrDQgjAQjxiAYEUXEg6e3Mzr2p9UQ757hJnhLHXRCA4JvkGQX3u63TtrzO+y+5Z6MZrZ 8SGGn6VdKPnXEpxoEVv9hOqLPIcTlovw2i2POLJlpV21IShRVNid1ZJMjil76fPkIm+d aDshZDgJKyBwROJfjQTEyFfxayerhnx68WC4yC7HIyVs0t2ewGle4qPDRx7D2lBvf5Va KG5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dGguut1p; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id x22si9297781plr.171.2020.02.23.04.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 04:19:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dGguut1p; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 77A796E17A; Sun, 23 Feb 2020 12:18:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 91D216E17C for ; Sun, 23 Feb 2020 12:18:56 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id h23so6945471ljc.8 for ; Sun, 23 Feb 2020 04:18:56 -0800 (PST) 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=aRGzSkSHgczFsciecVAokfTdkPHn+AG3ECWjmVIUPgk=; b=dGguut1pzGDsUAgroOEop/ne3R93zfJLfz7iidgWLbPVomYfY7H+SH65RCkUKuMJLc BhaobR0xlOyDPyEfv3pF+S50xJjypcTH8M/bLrU+uH+Pdfq0ffWBGk+EIhGb1T/wkYZb fBw3s4e7aO8b9H3ZWxxvx4rl4QWLttro0YlKXHFnpkTa78q8bcVudm9vXtzhNEA1WEE5 /g2Y4U3AQTeqWz7AKJcIny0cPVWQmwT7aer46uUrxRJ20BaMsNdCoGXA6rmqbSe28Zr5 hxTZJjY44hKq3pvvU5/B1G0bDZ8S0sJhRADHi/C1niJNYt9LGk2yFqyHNEkSlTdbi6Y1 8dcg== 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=aRGzSkSHgczFsciecVAokfTdkPHn+AG3ECWjmVIUPgk=; b=t+afH2QUIVNW5GQwxyPqVgPHOFtjC+9+VfwOaFqoR3A3GYvFQS1aSKoybE0cwttswO k8Up25ELqp8TRpSanHTF3Cpdpf9H4D555JEhxRrxfpALvhubnPY3XVoUXx034fqjLa5m q7Fh89G2GOOzM/QI8fI37rUVIsVRKuIRVw9yV2rp6WGOnRgQiKeqz1Cw50zhLuvdZsEd xIeb7NBAW0xTGNF4GOWQHnU04e5mqlTUXKcQo1KaVpLAeaNXsaEjt0AVIVTv6NvFiHeM kxnSMI3nuKSyfRGqyotPuhJrrRTi+mIQUDAuR5iv+eqhfyr9Wybm4p7DxJXAexLWcssH y5ew== X-Gm-Message-State: APjAAAVYQL/Lr2BBIh8OmYmy86TL1NT/samrmZRRQpyQiQs5LF49upMs xVNQOLog2A+N3URJEzWulVBKPg== X-Received: by 2002:a2e:8e70:: with SMTP id t16mr27732613ljk.73.1582460335026; Sun, 23 Feb 2020 04:18:55 -0800 (PST) Received: from localhost.bredbandsbolaget (c-5ac9225c.014-348-6c756e10.bbcust.telenor.se. [92.34.201.90]) by smtp.gmail.com with ESMTPSA id r10sm5458553ljk.9.2020.02.23.04.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 04:18:54 -0800 (PST) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org, Rob Herring Subject: [PATCH 2/3 v2] drm/panel: Add DT bindings for Novatek NT35510-based panels Date: Sun, 23 Feb 2020 13:18:40 +0100 Message-Id: <20200223121841.26836-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200223121841.26836-1-linus.walleij@linaro.org> References: <20200223121841.26836-1-linus.walleij@linaro.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: devicetree@vger.kernel.org, Stephan Gerhold Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds device tree bindings for the Novatek NT35510-based family of panels. Since several such panels are in existence we define bindings common for all, and define the compatible string for one certain panel (Hydis HVA40WV1). As other panels are discovered and investigated, we can add more compatibles to the binding using oneOf constructions. Cc: Stephan Gerhold Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rename file to novatek,nt35510,yaml to match the first compatible. - Require both the specific display manufacturer compatible and the novatek,nt35510 compatible in strict sequence. --- .../display/panel/novatek,nt35510.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/novatek,nt35510.yaml -- 2.21.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt35510.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt35510.yaml new file mode 100644 index 000000000000..791fc9daa68b --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt35510.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/novatek,nt35510.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Novatek NT35510-based display panels + +maintainers: + - Linus Walleij + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - const: hydis,hva40wv1 + - const: novatek,nt35510 + description: This indicates the panel manufacturer of the panel + that is in turn using the NT35510 panel driver. The compatible + string determines how the NT35510 panel driver shall be configured + to work with the indicated panel. The novatek,nt35510 compatible shall + always be provided as a fallback. + reg: true + reset-gpios: true + vdd-supply: + description: regulator that supplies the vdd voltage + vddi-supply: + description: regulator that supplies the vddi voltage + backlight: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + dsi@a0351000 { + #address-cells = <1>; + #size-cells = <0>; + panel { + compatible = "hydis,hva40wv1", "novatek,nt35510"; + reg = <0>; + vdd-supply = <&ab8500_ldo_aux4_reg>; + vddi-supply = <&ab8500_ldo_aux6_reg>; + reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; + backlight = <&gpio_bl>; + }; + }; + +... From patchwork Sun Feb 23 12:18:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 183753 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4184305ile; Sun, 23 Feb 2020 04:19:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxN0O6y2L3mqeia/eYpMqcJs2wEFNuuPUs7nKM4GPQSK8NGBT8BasHQkjA1PastTJ7qa2eS X-Received: by 2002:a63:ba43:: with SMTP id l3mr50130372pgu.120.1582460345576; Sun, 23 Feb 2020 04:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582460345; cv=none; d=google.com; s=arc-20160816; b=CoQ/RbY3XPtMx5DczEGehzjsicNorX9UFIz5Qw+DM2S+TOiPk8nsMu1KKzA2Xeho3x 6P4coOCFXHNn9fD9roaMMLhiwCIINz/XIdIsypTdW3WQIpjCtDLNUVpRL4nCy6PxKRmZ 9TZ0++8SFSskUjkHYGb+fnBMpk8JJ+PgPK6qO4Aq5ok31VnUIU7cdn0EK1LMGwaROV1j UM0Pz30W5kq4UaUbknUiV+6W/ctrXGGh6dlOa5fgPILXg3TjLQJu8h95RlU4zEtds0a/ SGm8j7yZ61o0cG9E5/7ZcylTcAKverSaYhC3bYrnjQrOX8HKRbunD2VhTA8d0ALCtBEb +TvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=4RaRwNDBRyOmfogpZ0rBEAaBkG5ffl8DNoEzw99tG30=; b=hBivmF3ul15xKuU7PPMlgcqm2mm1o3K6KfT0qc8rGSGhUxEKrY4QZh4fQXtS/2ygwy JppAvz7/MT5CDDVgSp2r9sbHeL+4AktlwcH8KRFSpKaDydd5VJH2GKyLG/cvsDyc29sj Wiv5OBfZhXJkYA9YOSeVeddJGNCA6Az9vspu+/LMkPKLlS1yWw17ZOH0XgSjrmo9St7l vUZ1O2n5kcV2i4f8amWhYCS3A6I1OxTnoEqB9ikKVmnj9KY3O/yp2NhIAPU5vK4fGLbp r66cA5CApaq+7799wFd+QmREiUTlpaQqDXCOc5H2Q0Nmt90mWGMN08bGmolgTLiSlYca TrHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AfXixhpO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id p3si9857561pgh.93.2020.02.23.04.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 04:19:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AfXixhpO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E3E056E17C; Sun, 23 Feb 2020 12:19:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by gabe.freedesktop.org (Postfix) with ESMTPS id B2D9A6E17C for ; Sun, 23 Feb 2020 12:19:00 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id y17so1725028lfe.8 for ; Sun, 23 Feb 2020 04:19:00 -0800 (PST) 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=XlGo8wu9AKlFVr1dyScojmKDuiEk8agWM+O0u1l3f0M=; b=AfXixhpOCqJhgJJxMP+VZTd+plUh0CXFpAWTEF+JEqv8+eEDTIp6L4hY6thlYxx2+t dfygDNab4wijinH8bvTwdFo1YCjN7NXfrRAlu2dQcDQgZJpAhsJmKvd0N/4x026rQBRE 2KeBV+WlAfZw4m5nj47b92xJegA1B9VMW8LLiRi0rArXyyYu+THDn/eqig8lAmmJAJbT uAoKO+Bgil/nGLI7mlc7dvsKUaOoiDDEyQfBle9DOZNoNmR1AmFz7U55FYC+ox3k6uVR 0NKiqJ+SXppSsGBkMNf9xjkRZ4IuJ1SLvb2RNXBF+iiloPvcf5mUOf7dSuk/tjoCvvn6 5L/w== 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=XlGo8wu9AKlFVr1dyScojmKDuiEk8agWM+O0u1l3f0M=; b=sxKqBp9K50HZy+JyV7pIm0UO72y1kHwLCX1KjHe3YlNsIUZWyzqN7iW3Ms2lKZUQXg QjgGmiRJcx+fO9C8oCul+rodRJJ/X9IFrWEk8sAlA+YKC/L/FDM8dCTgVK890fxNfhOo dKjmwnrCb9PEiy13qisPAo7SVKUtIH6PkREf1JIRnNJ2UNBFg+8nrp89pFQXZPWMEigm aMDbeXXVSXwzvwKd7/YEx9KERbcC+A62leSEOiQndq7rET6C0LYT9Fj2ygCs2FNFWnZC le3fO3Ep8SDsjJiXsDoZh4pQBFDqmVKQCL6XKj8BBqm/q0ZpsNN0wvYH+cKCNdpZrBP9 rf2A== X-Gm-Message-State: APjAAAXafSaN3kadF8i0GlI4x/9YfHQaagSeXhSuRD8nQLYyNg7xImhW l6wjK4Xfa+mYe0QTVWnmoLj4WA== X-Received: by 2002:a19:c205:: with SMTP id l5mr24742375lfc.159.1582460338306; Sun, 23 Feb 2020 04:18:58 -0800 (PST) Received: from localhost.bredbandsbolaget (c-5ac9225c.014-348-6c756e10.bbcust.telenor.se. [92.34.201.90]) by smtp.gmail.com with ESMTPSA id r10sm5458553ljk.9.2020.02.23.04.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 04:18:57 -0800 (PST) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org, Rob Herring Subject: [PATCH 3/3 v2] drm/panel: Add driver for Novatek NT35510-based panels Date: Sun, 23 Feb 2020 13:18:41 +0100 Message-Id: <20200223121841.26836-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200223121841.26836-1-linus.walleij@linaro.org> References: <20200223121841.26836-1-linus.walleij@linaro.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: Stephan Gerhold Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds a driver for panels based on the Novatek NT35510 display driver IC, such as the Hydis HVA40WV1 panel found in the Samsung GT-S7710. The NT35510 can be used with both internal and external backlight (such as GPIO backlight) so we support both: if no external backlight is found, we register a subdriver for the internal backlight. Cc: Stephan Gerhold Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rebase onto v5.6-rc1 - Account for changes in the panel struct and get_modes() passing the connector as argument. - Use specific full filename for the panel driver. - Update to match rename of DT binding file. - Drop select VIDEO_MODE_HELPERS - Fix spelling errors and stray characters, call 4bit groups nibbles rather than nybbles - Alphabetize includes and order them as requested by Sam - Drop the surplus videomode includes - Drop any backlight handling from .enable() and .disable() callbacks and rely on the backlight handling in the DRM panel core, but still assign a backlight from within the driver if we don't find one in the device tree. --- MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-novatek-nt35510.c | 1098 +++++++++++++++++ 4 files changed, 1116 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt35510.c -- 2.21.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/MAINTAINERS b/MAINTAINERS index 17f502467c8a..8e7433d74530 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5322,6 +5322,13 @@ F: drivers/gpu/drm/msm/ F: include/uapi/drm/msm_drm.h F: Documentation/devicetree/bindings/display/msm/ +DRM DRIVER FOR NOVATEK NT35510 PANELS +M: Linus Walleij +T: git git://anongit.freedesktop.org/drm/drm-misc +S: Maintained +F: drivers/gpu/drm/panel/panel-novatek-nt35510.c +F: Documentation/devicetree/bindings/display/panel/novatek,nt35510.yaml + DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS M: Ben Skeggs L: dri-devel@lists.freedesktop.org diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 19eac3d799a7..b37495a5acce 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -149,6 +149,16 @@ config DRM_PANEL_NEC_NL8048HL11 panel (found on the Zoom2/3/3630 SDP boards). To compile this driver as a module, choose M here. +config DRM_PANEL_NOVATEK_NT35510 + tristate "Novatek NT35510 RGB panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the panels built + around the Novatek NT35510 display controller, such as some + Hydis panels. + config DRM_PANEL_NOVATEK_NT39016 tristate "Novatek NT39016 RGB/SPI panel" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index c4ca0e3b9b3c..7bc8a57ede2b 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -13,6 +13,7 @@ obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) += panel-leadtek-ltk500hd1829.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) += panel-nec-nl8048hl11.o +obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) += panel-novatek-nt35510.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT39016) += panel-novatek-nt39016.o obj-$(CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO) += panel-olimex-lcd-olinuxino.o obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35510.c b/drivers/gpu/drm/panel/panel-novatek-nt35510.c new file mode 100644 index 000000000000..b4c014126781 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-novatek-nt35510.c @@ -0,0 +1,1098 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Novatek NT35510 panel driver + * Copyright (C) 2020 Linus Walleij + * Based on code by Robert Teather (C) 2012 Samsung + * + * This display driver (and I refer to the physical component NT35510, + * not this Linux kernel software driver) can handle: + * 480x864, 480x854, 480x800, 480x720 and 480x640 pixel displays. + * It has 480x840x24bit SRAM embedded for storing a frame. + * When powered on the display is by default in 480x800 mode. + * + * The actual panels using this component have different names, but + * the code needed to set up and configure the panel will be similar, + * so they should all use the NT35510 driver with appropriate configuration + * per-panel, e.g. for physical size. + * + * This driver is for the DSI interface to panels using the NT35510. + * + * The NT35510 can also use an RGB (DPI) interface combined with an + * I2C or SPI interface for setting up the NT35510. If this is needed + * this panel driver should be refactored to also support that use + * case. + */ +#include +#include +#include +#include +#include +#include +#include + +#include