Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp950661pxk; Mon, 31 Aug 2020 06:04:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5d6q6krOKMf9aJEudR4MkxQL4YwFN/XEvLk5tDz6KQrDdD3fnfPt/db1/NvUJQ8Ur3QAI X-Received: by 2002:a50:f418:: with SMTP id r24mr1149250edm.295.1598879055449; Mon, 31 Aug 2020 06:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598879055; cv=none; d=google.com; s=arc-20160816; b=X/+RJkF6Ds79EOFVAern3WIPvqkoHzExIgQ3jypO5uuncKnCuj0fmyrV2I8Uo9JGf8 mzaxF+J140Zu5kMKUEIDmHAqKGx2q4hw+AwOUksWBOalTuJspk2/6OIJXvwzmnJ64rSi b6r6LBqkyYhKoiRfo1XfzM6HLFQuwd4Y4g6qhAz6RaoC+71GLO1dFI9rCMh6otygjJnZ yw2kI+pkaN5MfsYvLXMlwp+m3QdKH/6HmApSJm69HCN7xXqE4eIdMc3sQeMm2lEoijtQ WP5PGJyeq3/iBEPrEvujZ0eR2lq/5gCqiU8Lt+FQr54yumAzh5fZbdXe/FxbRbDZFsyO ZOYw== 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=PKVQa7mFyShxE7bXpbdQpBbN4ieHP/7X9mNZXJlFeWE=; b=YEIZlxr62dhLim19Q0Syue3k4fLDT87K611bvKRTf246N/nazDqH/5uLQ77KEEiB/F k7qq3+oWzuBEVpfmAMhp+fIunoBanuNnQG9GF462olMK1Zbjs//mOYewxDm7Qi6j7438 wDOZZk+wF97SB0PIRFzEx0+uqNAfHivlOuwBnny2us+xjpWPb+ytds/05VjsJiN6Fc/6 C/nSSh+a4vKzinfVG680Qvx/0GTjPvr72mhAKKubkimRw9LjX9mDa+SZyc7XmHYTxMP5 cojYOfOc7i+cTESOAtO7MGI6kmV0CsQHIOnlBpt1CIkF9ZEsWJjYCNbyFwghORfPwq1P 2Yfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZTh04aeL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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. [23.128.96.18]) by mx.google.com with ESMTP id bl4si5394602ejb.579.2020.08.31.06.03.52; Mon, 31 Aug 2020 06:04:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZTh04aeL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726167AbgHaNDP (ORCPT + 99 others); Mon, 31 Aug 2020 09:03:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgHaNDI (ORCPT ); Mon, 31 Aug 2020 09:03:08 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84D50C061573 for ; Mon, 31 Aug 2020 06:03:08 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id x18so1770106pll.6 for ; Mon, 31 Aug 2020 06:03:08 -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=PKVQa7mFyShxE7bXpbdQpBbN4ieHP/7X9mNZXJlFeWE=; b=ZTh04aeLyTXBjqrgPnzQoGcbpZAWJxcuVmTqa97tyD3iSVLa9D9tl8OqiaiIiaIsSw 1jB5SijOIYwwcLoAZFGGFAai7EXY6/xvtiak6imDLdhGg/L9fQ0lkRZpai2ojqfWn9SY TLXLGW9wHCQJ5IlfZl6RErRDzTrN7WvYJhvNU/GDrnXD8Ak2nVldfg3WPWreEqudgaIK vAVrTviYuq66P3T0pW8YYUM6kfp2tgFADfPSA/8eYbjHWoGYVTIXcK1hNSc8OAiwCwnd qbHbGZyOT75kbes6mt0RHjzxohKylCyaApQqKXQp5BXCwXcAKtYoui+sHjg2Mvlwm0HP x0CQ== 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=PKVQa7mFyShxE7bXpbdQpBbN4ieHP/7X9mNZXJlFeWE=; b=YxrffQTdywiYqut/hiOFswl07CN6enQpkd/1YUc9TMxpRhi6BCh65P7r3iMgG9FYop GjKP0/lxBQ/9r9rxXVv545aMsvFUp5UZnntaitNp4upT4FaFGgYBVVbITTmW/BeFMN9a rcxRgxqqZjr9d67rfnK+oySN5R3o/OT7zj8i3FgYUcTptx509T345VaL8WiOz6VpTZ4J 3vp27ATLTyuPEWwiAh21kWWRH/9Qy13eDZM0IoEJt+WcMuEHjtZqygPkvE4DTgtTYv2p wcDOPlc+lBWElXWCg63BtdpV7yL77fcrcWfXlfvu9MjsiVlnKRJDhgKKgVoh1JV37XKe DS5A== X-Gm-Message-State: AOAM533lmE4NVprBMoVwkfPP6AQlbqoCSYE+RiojMZfGqzXoCdMX6DQ3 0Cx3y7LpuFn0E5YEBWh20kPJUw== X-Received: by 2002:a17:902:8489:: with SMTP id c9mr971255plo.82.1598878987999; Mon, 31 Aug 2020 06:03:07 -0700 (PDT) Received: from nagraj.local ([49.206.21.239]) by smtp.gmail.com with ESMTPSA id l21sm7400580pgb.35.2020.08.31.06.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 06:03:06 -0700 (PDT) From: Sumit Semwal To: Thierry Reding , Sam Ravnborg Cc: David Airlie , Daniel Vetter , Mauro Carvalho Chehab , "David S . Miller" , Rob Herring , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Bjorn Andersson , Sumit Semwal Subject: [PATCH v6 1/2] dt-bindings: display: panel: Add bindings for Novatek nt36672a Date: Mon, 31 Aug 2020 18:32:50 +0530 Message-Id: <20200831130251.19769-2-sumit.semwal@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200831130251.19769-1-sumit.semwal@linaro.org> References: <20200831130251.19769-1-sumit.semwal@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Novatek nt36672a is a display driver IC that can drive DSI panel. It is also present in the Tianma video mode panel, which is a FHD+ panel with a resolution of 1080x2246 and 6.18 inches size. It is found in some of the Poco F1 phones. This patch adds the display driver for the IC, with support added for this tianma fhd video mode panel. Signed-off-by: Sumit Semwal Reviewed-by: Rob Herring --- v2: remove ports node, making port@0 directly under panel@0 node. v3: updated to replace port@0 to just 'port'. v5: renamed to novatek,nt36672a, since the binding is for the IC and not the panel. v6: v5 review comments incorporated. - added enum for the compatible part, since it can be extended in future. - few cosmetic updates. --- .../display/panel/novatek,nt36672a.yaml | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml new file mode 100644 index 000000000000..d2170de6b723 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/novatek,nt36672a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Novatek NT36672A based DSI display Panels + +maintainers: + - Sumit Semwal + +description: | + The nt36672a IC from Novatek is a generic DSI Panel IC used to drive dsi + panels. + Right now, support is added only for a Tianma FHD+ LCD display panel with a + resolution of 1080x2246. It is a video mode DSI panel. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + - tianma,fhd-video + - const: novatek,nt36672a + description: This indicates the panel manufacturer of the panel that is + in turn using the NT36672A panel driver. This compatible string + determines how the NT36672A panel driver is configured for the indicated + panel. The novatek,nt36672a compatible shall always be provided as a fallback. + + reset-gpios: + description: phandle of gpio for reset line - This should be 8mA, gpio + can be configured using mux, pinctrl, pinctrl-names (active high) + + vddio-supply: + description: phandle of the regulator that provides the supply voltage + Power IC supply + + vddpos-supply: + description: phandle of the positive boost supply regulator + + vddneg-supply: + description: phandle of the negative boost supply regulator + + reg: true + port: true + +required: + - compatible + - reg + - vddi0-supply + - vddpos-supply + - vddneg-supply + - reset-gpios + - port + +unevaluatedProperties: false + +examples: + - |+ + #include + + dsi0 { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "tianma,fhd-video", "novatek,nt36672a"; + reg = <0>; + vddi0-supply = <&vreg_l14a_1p88>; + vddpos-supply = <&lab>; + vddneg-supply = <&ibb>; + + reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; + + #address-cells = <1>; + #size-cells = <0>; + port { + tianma_nt36672a_in_0: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + }; + +... -- 2.28.0