From patchwork Mon Feb 22 15:34:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengqiao Xia X-Patchwork-Id: 386396 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2230C433DB for ; Mon, 22 Feb 2021 15:35:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5416864E20 for ; Mon, 22 Feb 2021 15:35:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbhBVPfu (ORCPT ); Mon, 22 Feb 2021 10:35:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230302AbhBVPfq (ORCPT ); Mon, 22 Feb 2021 10:35:46 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 708E4C06178A for ; Mon, 22 Feb 2021 07:35:02 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id a24so7936698plm.11 for ; Mon, 22 Feb 2021 07:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=2U8z9Rh9hQENfZBHEjdzikqpHVnTZc9rkP25ytLoLPU=; b=f5b0xj9I7Q2Tdl970OI1nAueN9gZ9C/8xSu7nxLdEu37PQanoVd6pG9SLWKaVCs3zo RebudpQ7qZ95dPitRY/WfCM/UhkBTkD9BIDVSiilPneUXbeSmb4yFHv6L/1qxMH8uEGS hqHbrmIJFNTtaRoMb08qGRnuySLIkuc1nlNRs+qXz8EjLTTbc4p0KthZ/a7GeZKwNB3t IXasK8dqli+nFMMwrmmFbuBujHR8oWfp0ezeGEce5fMZC2kDcNaOFygWyRCUrpV1AAJ/ UNKNK7T4cc+R6AL2VfrxxdNz1Ave33xHISD6aribpFnjVjCAx93ovzYqVUanCsKOfz66 4ZHQ== 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; bh=2U8z9Rh9hQENfZBHEjdzikqpHVnTZc9rkP25ytLoLPU=; b=RQwya8QuQ8nOAnaEC2eQSwatS3g+Dwn38Gs+yxB+Ijuz1xMlwi9eh2yiYW2jsrcGHo uYZYqJV1xBXl1NU5ltOCH/Gelo08UdqPoZ8qVAL8gRNPqjv2DZA6c/jPIueW8rvoOVqf hanXoN22uZpouHv0UOllrIRWm2XRsitSa9N94V6bxRMm1Y8MeU2vYQsLdDuFlTF0LpCK xB77AupSqwhReO/JTvJq9QZ4B+/vO7iv7+50NrDSUdjfgemJrdPdbBG40MWS+CBSLzOn yqKVAeboQ7vx4rdoN5ROx4UkxwZAQrZJu0Vz6MhsMqvFbzJ8D0zA/fF47CTGC8bnJXvr 3UNQ== X-Gm-Message-State: AOAM532uDrjI+Vl5zHW0p+jybFsLqKRKIxPBdDja23A8FtP5ne3rFLN0 vbfTXnC4OkwifppQ6VXQIoyyaw== X-Google-Smtp-Source: ABdhPJx5RtOzgQKUgQ8ekAvGjECJ4YXFYw0+bp7A8XgvPW7G4TLCBTqESYK3dBHLMVlpG4t8tCf9NQ== X-Received: by 2002:a17:90a:fb4e:: with SMTP id iq14mr24519817pjb.18.1614008102050; Mon, 22 Feb 2021 07:35:02 -0800 (PST) Received: from ubuntu.huaqin.com ([101.78.151.214]) by smtp.gmail.com with ESMTPSA id s62sm11692837pfb.148.2021.02.22.07.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 07:35:01 -0800 (PST) From: Zhengqiao Xia To: pihsun@chromium.org, drinkcat@google.com, marcheu@chromium.org, jitao.shi@mediatek.com, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Zhengqiao Xia Subject: [PATCH 1/2] dt-bindings: display: Add STARRY 2081101QFH032011-53G Date: Mon, 22 Feb 2021 23:34:54 +0800 Message-Id: <20210222153454.20198-1-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add dt-bindings for 10.1" TFT LCD module called STARRY 2081101 QFH032011-53G. Signed-off-by: Zhengqiao Xia Reviewed-by: Rob Herring --- .../display/panel/innolux,himax8279d.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,himax8279d.yaml diff --git a/Documentation/devicetree/bindings/display/panel/innolux,himax8279d.yaml b/Documentation/devicetree/bindings/display/panel/innolux,himax8279d.yaml new file mode 100644 index 000000000000..ae2d6d39fed5 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/innolux,himax8279d.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/innolux,himax8279d.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: INNOLUX HIMAX8279D DSI Display Panel + +maintainers: + - Zhengqiao Xia + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # STARRY 2081101QFH032011-53G 10.1" WUXGA TFT LCD panel + - starry,2081101qfh032011-53g + + + reg: + description: the virtual channel number of a DSI peripheral + + enable-gpios: + description: a GPIO spec for the enable pin + + pp1800-supply: + description: core voltage supply + + avdd-supply: + description: phandle of the regulator that provides positive voltage + + avee-supply: + description: phandle of the regulator that provides negative voltage + + backlight: + description: phandle of the backlight device attached to the panel + + port: true + +required: + - compatible + - reg + - enable-gpios + - pp1800-supply + - avdd-supply + - avee-supply + +additionalProperties: false + +examples: + - | + dsi { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "starry,2081101qfh032011-53g"; + reg = <0>; + enable-gpios = <&pio 45 0>; + avdd-supply = <&ppvarn_lcd>; + avee-supply = <&ppvarp_lcd>; + pp1800-supply = <&pp1800_lcd>; + backlight = <&backlight_lcd0>; + status = "okay"; + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + }; + +... From patchwork Mon Feb 22 15:40:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengqiao Xia X-Patchwork-Id: 385897 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81BCDC433E0 for ; Mon, 22 Feb 2021 15:41:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1E93364E61 for ; Mon, 22 Feb 2021 15:41:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230441AbhBVPlr (ORCPT ); Mon, 22 Feb 2021 10:41:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbhBVPlm (ORCPT ); Mon, 22 Feb 2021 10:41:42 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23080C06174A for ; Mon, 22 Feb 2021 07:41:01 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id kr16so8826383pjb.2 for ; Mon, 22 Feb 2021 07:41:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kmHiiR8Sm2gVle5nX5QEaApT2DBt9Joorn+NKWHvhzM=; b=jdDRaS67TvxVX95vl2zF9ZNuVp7UyF56ZKKCFV6LFPickt5BN9OZOGnYN43wPnCcTQ Ngm7xcx8ncWrJKgaAHxYAjdFiS0BU/r9NvbXgODeTLTw0XrZsaWpe8syVzHBjbHv/rMA L0dVH6BDwFpVAk7L2d0dZv9dSnmB0rBL+tFqS6a7oT0L3M85bf9BCoPRv+ITZpOheM/N Ki24Ek193xcV28hnhqxKxyt3FK041fx81wORONfRE/8xOsEERJk5OxPq6qKumc/3x0c6 p5/lI8ji8U6EP0a8/0g1zLniU1QbXvr9BR6awP3eJu1VjptGfr5vd7/7rB+FpUtYZ4GN IpYw== 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; bh=kmHiiR8Sm2gVle5nX5QEaApT2DBt9Joorn+NKWHvhzM=; b=OB/wQGZwhG4SE6+1XGP/TZksAtEFgl3d1cCyeuyOjMeTQBBA1+bIRUWL9yIeiJ4AsH McQmDBKr28p3TVcl7dfbea0y0nV0QVAGSfkPFtBp47KnROVTNnxiPRncW6JAA8gguyWK dZuI7Xm8K9fJB3yMNq0pYW8HURzTC6bLOyHMD9+hLVTcv+QSgdss2ZGvSCmB5rubRUtJ DGQpcgE+98xio4YODWPigjDpmx2Jdu5ja0/vZTfZbD3drZSABjmjbTOxTxifVjSEWTUE JZ/++hJZNWg9AQIdWH54rruQGb1JD0IX9DhWQepTFUkUmgFblad4fdeJCBfVm+tG8Sg1 CX0A== X-Gm-Message-State: AOAM532ZlkX3aOuwhUHtAoLe61vUUvDISJXGkfpEqg0F2bU8unNmHCJm 9mnSOGutuIqNbSLrPryulrzQNw== X-Google-Smtp-Source: ABdhPJxzB5YK5a4OPGTVtshWjWIp5qh1uXNeuV8KJB5e7Ke+iexTLKZaY3zkfDCb6sxyLm+vdz7eWA== X-Received: by 2002:a17:902:124:b029:e3:fe16:fdf5 with SMTP id 33-20020a1709020124b02900e3fe16fdf5mr4147244plb.1.1614008460407; Mon, 22 Feb 2021 07:41:00 -0800 (PST) Received: from ubuntu.huaqin.com ([101.78.151.214]) by smtp.gmail.com with ESMTPSA id m6sm581318pfc.56.2021.02.22.07.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 07:41:00 -0800 (PST) From: Zhengqiao Xia To: pihsun@chromium.org, drinkcat@google.com, marcheu@chromium.org, jitao.shi@mediatek.com, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Zhengqiao Xia Subject: [PATCH 2/2] drm/panel: Add inx Himax8279d MIPI-DSI LCD panel driver Date: Mon, 22 Feb 2021 23:40:53 +0800 Message-Id: <20210222154053.23638-1-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210208162453.7319-1-xiazhengqiao@huaqin.corp-partner.google.com> References: <20210208162453.7319-1-xiazhengqiao@huaqin.corp-partner.google.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add STARRY 2081101QFH032011-53G 10.1" WUXGA TFT LCD panel Signed-off-by: Zhengqiao Xia --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-innolux-himax8279d.c | 520 ++++++++++++++++++ 3 files changed, 530 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-innolux-himax8279d.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 4894913936e9..288d9268cead 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -132,6 +132,15 @@ config DRM_PANEL_ILITEK_ILI9881C Say Y if you want to enable support for panels based on the Ilitek ILI9881c controller. +config DRM_PANEL_INNOLUX_HIMAX8279D + tristate "INX 2081101qfh032011-53g 1200x1920 video panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to support for inx 2081101qfh032011-53g + 1200x1920 video panel. + config DRM_PANEL_INNOLUX_P079ZCA tristate "Innolux P079ZCA panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index cae4d976c069..06be76db0a5b 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -12,6 +12,7 @@ obj-$(CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02) += panel-feixin-k101-im2ba02.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o +obj-$(CONFIG_DRM_PANEL_INNOLUX_HIMAX8279D) += panel-innolux-himax8279d.o obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o obj-$(CONFIG_DRM_PANEL_KHADAS_TS050) += panel-khadas-ts050.o diff --git a/drivers/gpu/drm/panel/panel-innolux-himax8279d.c b/drivers/gpu/drm/panel/panel-innolux-himax8279d.c new file mode 100644 index 000000000000..4420303ec709 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-innolux-himax8279d.c @@ -0,0 +1,520 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2021, Huaqin Telecom Technology Co., Ltd + * Author: Zhengqiao Xia + */ + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include