From patchwork Thu Mar 21 13:59:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10863569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4782A1390 for ; Thu, 21 Mar 2019 14:00:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2512828D0D for ; Thu, 21 Mar 2019 14:00:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 191BE2A22A; Thu, 21 Mar 2019 14:00:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 82BA528D0D for ; Thu, 21 Mar 2019 14:00:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A2FD6E0D7; Thu, 21 Mar 2019 14:00:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by gabe.freedesktop.org (Postfix) with ESMTPS id 63D936E0D7 for ; Thu, 21 Mar 2019 14:00:21 +0000 (UTC) Received: by mail-pg1-x543.google.com with SMTP id y3so4242267pgk.12 for ; Thu, 21 Mar 2019 07:00:21 -0700 (PDT) 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=JgtWdTWVjfeKR1PN/KvKupfZGywfb4JTp1dgED59nGs=; b=uFZGJ/X8q96ZjgIGGXDLleUPrm/ywwrLkVIJizOoj3crajCR9Q3YBFs6VgJzg09kWL 8MY7tynpGA9PZI1ChGfgHXUAL75F6j6NcwKAKUCbvNcnAC+HCnSyDPU+KBx/EYDQGWoz 4MSkx6Os5/1MIt2iLFg9zMndGmt3r1W8x32LPu9yFkcTw9y/1v0OwqaPD9EJteLpL++c SNC6Sr1wu3W/wtdA8iuE7Lajn0aXyq/SmHdE4R65hczwApb+8aBnhJZOgX3uLlPnywMO vtJ+wpDsa6sdkXosagYieRJ+Mu+DcdgFuQjDxfI8RL+MzAMxSwbQohmggCgE/LZTLO1N alGQ== X-Gm-Message-State: APjAAAUDB57YDx15ck2je4+qATtw/FufFSmTT16SHqdGJ2rCwrnKKD80 9HGjoHem9jsMLk7TPRX/Ue7bqA== X-Google-Smtp-Source: APXvYqwb7UIUPqGyhpq7jSNuZ+q1L8fYioAxtNYZpyppKx9HJzYzAJgd/VhQoqYeJCv6h+w6pYJRiQ== X-Received: by 2002:a63:124c:: with SMTP id 12mr3430720pgs.86.1553176820755; Thu, 21 Mar 2019 07:00:20 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id i126sm7985158pfc.101.2019.03.21.07.00.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 07:00:19 -0700 (PDT) From: Jagan Teki To: Thierry Reding , David Airlie , Daniel Vetter , Sam Ravnborg , Rob Herring , Mark Rutland Subject: [PATCH v2 1/4] dt-bindings: Add vendor prefix for novatek Date: Thu, 21 Mar 2019 19:29:52 +0530 Message-Id: <20190321135955.25661-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321135955.25661-1-jagan@amarulasolutions.com> References: <20190321135955.25661-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JgtWdTWVjfeKR1PN/KvKupfZGywfb4JTp1dgED59nGs=; b=ZRX4XRSYbPI8so0NuF+gTK2ZV70Fk49z4391/fChIH2T9jv9kbUI6WsBTaNhK6PZhy FCYJFumSM1v8Av5Fhvq+d7EH9P2RUVe4z4xAiA1OPb+UJbzitZW4U5B5pa5Fn4YUsZMa WgJNelMlEX/4cpf13Y5phivvw1PrFR/GJ8OGw= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ryan Pannell , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add vendor prefix for novatek. Novatek Microelectronics Corp. is a leading fabless chip design company specializing in the design, development and sales of a wide range of display driver ICs & SoC solutions. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index e32d460408dc..caa7dbae750b 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -281,6 +281,7 @@ nintendo Nintendo nlt NLT Technologies, Ltd. nokia Nokia nordic Nordic Semiconductor +novatek Novatek Microelectronics Corp. novtech NovTech, Inc. nutsboard NutsBoard nuvoton Nuvoton Technology Corporation From patchwork Thu Mar 21 13:59:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10863571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD2611669 for ; Thu, 21 Mar 2019 14:00:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE1922855D for ; Thu, 21 Mar 2019 14:00:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD9E02A0C6; Thu, 21 Mar 2019 14:00:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4A2CE2A11F for ; Thu, 21 Mar 2019 14:00:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 134D36E0D5; Thu, 21 Mar 2019 14:00:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0EBD36E0D5 for ; Thu, 21 Mar 2019 14:00:27 +0000 (UTC) Received: by mail-pg1-x543.google.com with SMTP id u9so4250159pgo.7 for ; Thu, 21 Mar 2019 07:00:27 -0700 (PDT) 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=027hMzfKYQEQdfMu8qZkppGAvGQRPJuwDJK4s8kel0A=; b=RSEeeUUexzLcBfMp/ClJmm2nw80ro+O43XBTc8sz59jEWMX5h3foDgrjnbRC24UKiz 4/YXk8uthIdd0FJfV/17xvqeK7/xO9PyCc9i2Ap+C+2GCq7CpMkzGfXJKZ3SH6/hxfO3 h/YYYHkOFtKXSYv/1T8vA+19c/6ttA8u52tAZAF4MNavCEDSGBVT2Ddaig0m5QZE3CBK nbUz5q92WnAGTYHJjPzpovZ4R/DGlENmtQEDXhiHIQ7ZWuLRGKjy4WRh8mEJoWfzmB7g rPs1e21Txq4AN32nzlBFe6khi7WPCpbp1vwcSvRFy2Nld0ftLLJ5ng8JI4Y/gajkri/L f8hQ== X-Gm-Message-State: APjAAAXTOpFSwg9QQ+KYhjlCgC0rUtUi4beJmDNSH752u1OYfJKDApxK 7eM4817QIcQyb+CpzAHO9N263A== X-Google-Smtp-Source: APXvYqwRefcyhunLuH0FJ74yh5WPdBS3rYU0zw08zoDkm/w58d3u9fXtcQlKPjyNy/vORVxcDYqW+g== X-Received: by 2002:a65:60c1:: with SMTP id r1mr3435155pgv.137.1553176826663; Thu, 21 Mar 2019 07:00:26 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id i126sm7985158pfc.101.2019.03.21.07.00.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 07:00:25 -0700 (PDT) From: Jagan Teki To: Thierry Reding , David Airlie , Daniel Vetter , Sam Ravnborg , Rob Herring , Mark Rutland Subject: [PATCH v2 2/4] dt-bindings: Add vendor prefix for microtech Date: Thu, 21 Mar 2019 19:29:53 +0530 Message-Id: <20190321135955.25661-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321135955.25661-1-jagan@amarulasolutions.com> References: <20190321135955.25661-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=027hMzfKYQEQdfMu8qZkppGAvGQRPJuwDJK4s8kel0A=; b=HQrpCn3UrwnzowF+4LyPfiO40tX7VWFT05bQmpD5hJ3HVNKfhwjfBryesqDNt7hY3v MSEh+5dXRMXZcKNfZEKdNtki+yUQyUMGzruteGV8+N5Mn+vdhkdBIE6bAit+hpQVgOpa CXSa8CUnerBjx+XWusyWfD8bilXKr2idnikkw= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ryan Pannell , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add vendor prefix for microtech, known as Microtech Technology Company Limited. a known producer for Liquid Crytal Display modules and Touch Panels. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index caa7dbae750b..9e0b83e61414 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -249,6 +249,7 @@ micrel Micrel Inc. microchip Microchip Technology Inc. microcrystal Micro Crystal AG micron Micron Technology Inc. +microtech Microtech Technology Company Limited mikroe MikroElektronika d.o.o. minix MINIX Technology Ltd. miramems MiraMEMS Sensing Technology Co., Ltd. From patchwork Thu Mar 21 13:59:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10863573 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1EB1415AC for ; Thu, 21 Mar 2019 14:00:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 052212A01C for ; Thu, 21 Mar 2019 14:00:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED27D2A065; Thu, 21 Mar 2019 14:00:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9C9072A0BF for ; Thu, 21 Mar 2019 14:00:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EDA71891F9; Thu, 21 Mar 2019 14:00:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id EF96D6E0DB for ; Thu, 21 Mar 2019 14:00:31 +0000 (UTC) Received: by mail-pg1-x544.google.com with SMTP id l11so4240238pgq.10 for ; Thu, 21 Mar 2019 07:00:31 -0700 (PDT) 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=EGGHspTL1AIJtuP770nUWGJPVBGGHW+ZSIayJnPakGk=; b=OVRsT0X47g7EW1Xiqp6RvZaIioGetGqYHyzOvssa6QGSmX6TJd8IbShQapRnnJwKVe vrV/GjCwXHVeVx6CQ/ND0jCZv5S/vA+7kbl4BHjmcFOi/TVTr0bDgN2rlUYj2xDak4DQ 5C6F5z6tb++31vFYTLf2+ejcT7v2Y21VUJ9Vy1DVaah7UVsLqH9Ko9aY5Y4UT1t2xskh +MccenXrFnpBqxn3YsruFfenE8RJc/42RSHxGEyZVjS5oNB2DPIHTHtEoHJb2RAdcv0e vknmEjIx04Pki494lw2SXenteGsqZz3lsI3mRrKhocdMy5KijDpmRa5j2Fsz4wV+oa81 f4JA== X-Gm-Message-State: APjAAAVEkUqUlAVadCuNhyaIA2trpYGs4NU2jflM8XwlzRUzpADggLBL vRuDBfu2qSpM8rDZ4sIIGd873A== X-Google-Smtp-Source: APXvYqxBVT1T+cSaycOpg3OqXINzHfC0gYNsgEc8Bm78ofSJQ1xeUC+JCutXxRG9KlhrsAIHFWeBbg== X-Received: by 2002:a17:902:9341:: with SMTP id g1mr3757998plp.80.1553176831542; Thu, 21 Mar 2019 07:00:31 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id i126sm7985158pfc.101.2019.03.21.07.00.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 07:00:30 -0700 (PDT) From: Jagan Teki To: Thierry Reding , David Airlie , Daniel Vetter , Sam Ravnborg , Rob Herring , Mark Rutland Subject: [PATCH v2 3/4] dt-bindings: display: Add Novatek NT35596 panel documentation Date: Thu, 21 Mar 2019 19:29:54 +0530 Message-Id: <20190321135955.25661-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321135955.25661-1-jagan@amarulasolutions.com> References: <20190321135955.25661-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EGGHspTL1AIJtuP770nUWGJPVBGGHW+ZSIayJnPakGk=; b=Xrbvs5sOFt541ehl5sjgoVnsee+LKE/rChnIbNU4vxoQgm88hDUSxQ0c2GYSztL62C QsXLcctYp8kohCy6h0jD9/mjSvrjS4X42zj5oz00EVBNjtEhsgr7/yw95udigGlTMgt3 C5x8Ne6pyjJAq2ztvbxgseN8j/jc9TXX5PYiQ= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ryan Pannell , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Novatek NT35596 is a single-chip IC solution for small or medium-sized LTPS TFT LCD panels. NT35596 provides several system interfaces like MIPI/SPI/I2C. Microtech MTF050FHDI-03 is 1080x1920, 4-lane MIPI DSI LCD panel which has inbuilt NT35596 IC chip. NT35596 support several regulators on the chip, among those only 4 regulators like VCI, VDDI/DVDD, AVDD, AVEE are used during power-on sequence. Out of four regulators MTF050FHDI-03 panel do support 3-regulator based power-on sequence, so this patch documented these 3 needful regulators and rest can be add while supporting new panels on the similar chip IC. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- .../display/panel/novatek,nt35596.txt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/novatek,nt35596.txt diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt35596.txt b/Documentation/devicetree/bindings/display/panel/novatek,nt35596.txt new file mode 100644 index 000000000000..d336cd41e177 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt35596.txt @@ -0,0 +1,32 @@ +Novatek NT35596 based LCD panels + +Novatek NT35596 is a single-chip IC solution for small or medium-sized +LTPS TFT LCD panels. NT35596 provides several system interfaces like +MIPI/SPI/I2C. + +Microtech MTF050FHDI-03 is 1080x1920, 4-lane MIPI DSI LCD panel which +has inbuilt NT35596 IC chip. + +Required properties: +- compatible: must be "novatek,nt35596" and one of + * "microtech,mtf050fhdi-03" +- reset-gpios: a GPIO phandle for the reset pin + +Required properties for microtech,mtf050fhdi-03: +- reg: DSI virtual channel used by that screen +- dvdd-supply: I/O system regulator +- avdd-supply: analog regulator for MIPI circuit +- avee-supply: analog regulator for MIPI circuit + +Optional properties: +- backlight: phandle for the backlight control. + +panel@0 { + compatible = "microtech,mtf050fhdi-03", "novatek,nt35596"; + reg = <0>; + dvdd-supply = <®_dldo2>; /* VCC-MIPI */ + avdd-supply = <®_dc1sw>; /* AVDD_5V0 */ + avee-supply = <®_dc1sw>; /* AVEE_5V */ + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; +}; From patchwork Thu Mar 21 13:59:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10863575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 632371390 for ; Thu, 21 Mar 2019 14:00:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4779C28FDA for ; Thu, 21 Mar 2019 14:00:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BAE02A0BF; Thu, 21 Mar 2019 14:00:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 949D728FDA for ; Thu, 21 Mar 2019 14:00:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AA72889A5D; Thu, 21 Mar 2019 14:00:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 00A9589A5D for ; Thu, 21 Mar 2019 14:00:37 +0000 (UTC) Received: by mail-pf1-x443.google.com with SMTP id c207so4356846pfc.7 for ; Thu, 21 Mar 2019 07:00:37 -0700 (PDT) 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=3gXGdlDzdRXtDwr4Q13yZTOX7irOoHmFxBuPaaIRyEg=; b=s+qa2RlNxZLxfGYd7KLcdp0GKy8WnJaN8VzQZ+XtfNMd/sltUgZKGpFOgKNtdRknJk MlmjW/Uhpr2TkzSourYoWo880KuywccYuBKzpYBdSMFtYZII/1+l8rkr6nP6B1IEJTUa Vba8k8aaQVphcXBarzJ2BGcLLK4BUjVkumo3Pq4DiktKSn4CMmvgNR7nL/ohq+1yDlGE Zw+jYP7GUT8k+D3KnmaRW1z83NB5t2TCWbd5GzGPmz7GWehvH/BaJG68g8dI4vzp0wSa ZAv043j5ydjTXp4HrFohcZMgbgbNlXVi7jjndmCEs5aRxkNjusKZ4mqNa2SjGWzFUKCS FLng== X-Gm-Message-State: APjAAAVFKTkCWotQusL8eoLPMAVPfpXMu+s1h/gbtaPnG6W1hS/p3x78 b05WISUWbbVQlhLLKmFIgXJjyA== X-Google-Smtp-Source: APXvYqzKHJzgarrIt3te9RhwDbscTYZePKz0MnU+7D6wm7/mbkhSEBOdwAZgbsVzZFORujRnkxSEGw== X-Received: by 2002:a17:902:9b98:: with SMTP id y24mr3706457plp.167.1553176837101; Thu, 21 Mar 2019 07:00:37 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id i126sm7985158pfc.101.2019.03.21.07.00.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 07:00:36 -0700 (PDT) From: Jagan Teki To: Thierry Reding , David Airlie , Daniel Vetter , Sam Ravnborg , Rob Herring , Mark Rutland Subject: [PATCH v2 4/4] drm/panel: Add Novatek NT35596 panel driver Date: Thu, 21 Mar 2019 19:29:55 +0530 Message-Id: <20190321135955.25661-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321135955.25661-1-jagan@amarulasolutions.com> References: <20190321135955.25661-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3gXGdlDzdRXtDwr4Q13yZTOX7irOoHmFxBuPaaIRyEg=; b=BWW28I9spDBlo4OTVl/EVlkRXxQlYmXR2pALz4hkbBd0OEQiRgx0kIPJ8Z5VsPNk/O OhnA4utckC25+Jl9QpCusafokN86aBDAcyodir2ovz4Cr07tNv60TnObwCho3RyGVfdV Zmi8EGLS141tybAkM4QdjyUtC5zdiQE5ldB1E= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ryan Pannell , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Novatek NT35596 is a single-chip IC solution for small or medium-sized LTPS TFT LCD panels. NT35596 provides several system interfaces like MIPI/SPI/I2C. Currently added support for Microtech MTF050FHDI-03 is 1080x1920, 4-lane MIPI DSI LCD panel which has inbuilt NT35596 IC chip. NT35596 support several regulators on the chip, among those only 4 regulators like VCI, VDDI/DVDD, AVDD, AVEE are used for power-on sequence. This driver added code for 3-regulator based power-on sequence as of now since MTF050FHDI-03 panel support it. This power-on sequence may be moved to panel_desc in future, if any new panel would come up with other type of sequence. Signed-off-by: Jagan Teki --- MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-novatek-nt35596.c | 895 ++++++++++++++++++ 4 files changed, 915 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt35596.c diff --git a/MAINTAINERS b/MAINTAINERS index a6d18acda78a..4de80222cffb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4922,6 +4922,12 @@ S: Maintained F: drivers/gpu/drm/tinydrm/hx8357d.c F: Documentation/devicetree/bindings/display/himax,hx8357d.txt +DRM DRIVER FOR NOVATEK NT35596 MIPI-DSI LCD PANELS +M: Jagan Teki +S: Maintained +F: drivers/gpu/drm/panel/panel-novatek-nt35596.c +F: Documentation/devicetree/bindings/display/panel/novatek,nt35596.txt + DRM DRIVER FOR INTEL I810 VIDEO CARDS S: Orphan / Obsolete F: drivers/gpu/drm/i810/ diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 5c2c7e8e6ade..c39aaf40445c 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -119,6 +119,19 @@ config DRM_PANEL_LG_LG4573 Say Y here if you want to enable support for LG4573 RGB panel. To compile this driver as a module, choose M here. +config DRM_PANEL_NOVATEK_NT35596 + tristate "Novatek NT35596 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 Novatek NT35596 + panel controller driver. + + Novatek NT35596 is a single-chip IC solution for small or medium + sized LTPS TFT LCD panels. NT35596 provides several system interfaces + like MIPI/SPI/I2C. + config DRM_PANEL_OLIMEX_LCD_OLINUXINO tristate "Olimex LCD-OLinuXino panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 3a853ea5cff9..05bc93348345 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -10,6 +10,7 @@ obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) += panel-kingdisplay-kd097d04.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o +obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35596) += panel-novatek-nt35596.o obj-$(CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO) += panel-olimex-lcd-olinuxino.o obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35596.c b/drivers/gpu/drm/panel/panel-novatek-nt35596.c new file mode 100644 index 000000000000..433508330321 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-novatek-nt35596.c @@ -0,0 +1,895 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2018 Amarula Solutions + * Author: Jagan Teki + */ + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include