From patchwork Wed Jul 14 22:50:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 476846 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1006558jao; Wed, 14 Jul 2021 15:52:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/+9Q2Kgv/53xhAHnMFeMFMrS5ZS+GJt0arHVW737keSx/Au3WBKz/BOh32zcIRKX/8cwE X-Received: by 2002:a17:90a:28a3:: with SMTP id f32mr5841895pjd.166.1626303134069; Wed, 14 Jul 2021 15:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626303134; cv=none; d=google.com; s=arc-20160816; b=lR7g0mOJCwteXns/elyQBmo2DwHCeHwlPjDVQCFKfYWs7dKis0VPuxxVB0ZEx1LVxG +b5eSkrcqPWLzVGoElOhSLrRPwIObYRmVmrHBuAv7nhn/e1zlLKdYRHoF57/OjchgBtc 9ljRjG1PgLCZxy2YWhvucrH+PYkM/RUfeJjKEgFmkZMvzrMO8k+p0blut8T40DkBnsbz mXm82UlryHHsubBnhfnfgxDbTRdc3fboRn6igOC/fgYtzbXJN0/dVL/vaR3SlZq44zaD bJAzd4AAyjzsvFbV0z8E7o/re2kItDn8WjTIgItBYGp0HzHfagxPe6HirWL5rgjEOE6u RiyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=vc1795qvLpUqEdDnFv1A73y0n5CUCOk1ko3r9sb3Sx0=; b=JgoBxh2ZBEgVpCVd0ZM3NqJiWbJoaTYuoIjFf44vhayPPozwkKLe9yvlcwpxVV8xTS T45M69Xf1xxL0BSrSzNuFYcKPyn5LCfa1usO/++1j2LCYXLofiLL6YRPNv0ItW+THK3O olg7gSzMQh4sOeFMs6hGEE7HnevxQQsFAsR8wZGsYSsmC5jwPDvUw8thh8fJsGCERlHk lweueYe9c3alD4BYf4BMCHWyIq4+mf1swPRZ2os0AnwRz/DAc4Rn8Ku3rD5o4T7Kwugn syub2DTyztJJVuNlAfXP9+QfJbta1G37dr1o0I43rGD8aEEAwdFpxtGtOcWdtdBuxTQF 2cLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nxc0PfF+; 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 s22si4308141pfu.91.2021.07.14.15.52.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 15:52:14 -0700 (PDT) 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=fail header.i=@linaro.org header.s=google header.b=nxc0PfF+; 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 20D1D6E46B; Wed, 14 Jul 2021 22:52:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2A9AC6E46B for ; Wed, 14 Jul 2021 22:52:09 +0000 (UTC) Received: by mail-lj1-x232.google.com with SMTP id u25so5765352ljj.11 for ; Wed, 14 Jul 2021 15:52:09 -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=vc1795qvLpUqEdDnFv1A73y0n5CUCOk1ko3r9sb3Sx0=; b=nxc0PfF+vcpPyOd7wizP6Qq8XgwEGMvP+b0wo88UNeoTCIUvTu4QhMo2t7Yfw5pUdt WkLIfeTxJaOuf6Xi9NXmUM2+BPH07qole1NgZngPcaI0qRHcCI95amaJRsh9rk4mivV6 g8VQ5SHNrOIdqNEB3N9mXsZi3PQwHKm4UO4JeLWRAToht4FNhS8eq7mUIMUkvo23Cciz FPyHPl5qLuzw5YW0aKKroNZn6sc+EaHddghvNE/hFcEAk1rLFv0RECf7kKghA44lPE3d Ra9KaDIgRFONPbCvBdAVPH4AfVoLvtDqATNPZZ2cNfeODSBeer0EeUjbgN0W4aRqwiYS R9+Q== 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=vc1795qvLpUqEdDnFv1A73y0n5CUCOk1ko3r9sb3Sx0=; b=BZTpvUIUEgAUgJa3TeCa5zX5mA+pLQcL8rYA5y+gLu3yF+Kllegxb090DQQoTYkz1A 4Ixyy4h4HRBVHYa7n9cshGMNX9uJpi+F1lPrm4tZAw86TxWZa9igGOH4M15JKEyAOtMr LRcyefwOCdcOIAo8AooPIpTCo5Xi+JVFs3IQOC4/nzjVEwLLU9OZG9ukouJBVNj3psap RsFcyp4uvC0HgQuXQY56wwwgOm6aJk0y0sgXnbO8MMx5Yx7iVciKf+uKgHZSwFyrMN+F Fqa/oiv7SDol2eSgbhU1oUyK+3PEe2AYNB5h4dVHkFxMuaCAwkW2daIOCzKIeP8xyaKK R2KA== X-Gm-Message-State: AOAM530vKJe3SDQqpBn3Bf/SAiHMSFEvFLxXH/dwgD3OUqYPr0st8f3p bGcVRtbeZ7A0frdmHjxClK3Fng== X-Received: by 2002:a2e:80c2:: with SMTP id r2mr173089ljg.164.1626303127507; Wed, 14 Jul 2021 15:52:07 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id m4sm205984ljq.96.2021.07.14.15.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 15:52:06 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Subject: [PATCH 1/2 v4] drm/panel: Add DT bindings for Samsung LMS380KF01 Date: Thu, 15 Jul 2021 00:50:01 +0200 Message-Id: <20210714225002.1065107-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.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, Douglas Anderson , =?utf-8?q?Noralf_Tr=C3=B8nnes?= , phone-devel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds device tree bindings for the Samsung Mobile Displays LMS380KF01 RGB DPI display panel. Cc: devicetree@vger.kernel.org Cc: phone-devel@vger.kernel.org Cc: Noralf Trønnes Reviewed-by: Sam Ravnborg Reviewed-by: Douglas Anderson Reviewed-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v3->v4: - Collect a few Reviewed-by's - Mention that the node must be an SPI child. - Indent example by 4 spaces. - Resend with the driver updates. ChangeLog v2->v3: - No changes just resending with the series. ChangeLog v1->v2: - Expect SPI bindings to be pulled in for the client and state spi-cpha: true etc. - Make port a required node. - Update the example to use a proper SPI controller (spi-gpio) so we get full validation of the example. --- .../display/panel/samsung,lms380kf01.yaml | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml -- 2.31.1 diff --git a/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml new file mode 100644 index 000000000000..251f0c7115aa --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,lms380kf01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung LMS380KF01 display panel + +description: The LMS380KF01 is a 480x800 DPI display panel from Samsung Mobile + Displays (SMD) utilizing the WideChips WS2401 display controller. It can be + used with internal or external backlight control. + The panel must obey the rules for a SPI slave device as specified in + spi/spi-controller.yaml + +maintainers: + - Linus Walleij + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,lms380kf01 + + reg: true + + interrupts: + description: provides an optional ESD (electrostatic discharge) + interrupt that signals abnormalities in the display hardware. + This can also be raised for other reasons like erroneous + configuration. + maxItems: 1 + + reset-gpios: true + + vci-supply: + description: regulator that supplies the VCI analog voltage + usually around 3.0 V + + vccio-supply: + description: regulator that supplies the VCCIO voltage usually + around 1.8 V + + backlight: true + + spi-cpha: true + + spi-cpol: true + + spi-max-frequency: + maximum: 1200000 + + port: true + +required: + - compatible + - reg + - spi-cpha + - spi-cpol + - port + +additionalProperties: false + +examples: + - | + #include + #include + + spi { + compatible = "spi-gpio"; + sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; + miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; + mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; + cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,lms380kf01"; + spi-max-frequency = <1200000>; + spi-cpha; + spi-cpol; + reg = <0>; + vci-supply = <&lcd_3v0_reg>; + vccio-supply = <&lcd_1v8_reg>; + reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio>; + interrupts = <5 IRQ_TYPE_EDGE_RISING>; + + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; + }; + }; + +... From patchwork Wed Jul 14 22:50:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 476847 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1006885jao; Wed, 14 Jul 2021 15:52:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzxF51+OWTbHpMNsVCBozeJqsMHjTIOIfq2s8Ogi1X3AgEQ3iT0a1zjzCUejdHt6Z3orOu X-Received: by 2002:a17:90a:d58f:: with SMTP id v15mr5870793pju.117.1626303168390; Wed, 14 Jul 2021 15:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626303168; cv=none; d=google.com; s=arc-20160816; b=fI+ruDlo7qBgIR0VKAKodJ1h6o9ntzSsQC1H375GBwMELZW2HzZpzeOa+8G+DtcpHD 47d7M3P4hVQVxEO0sd4aWdkanxbC9lBIvEbabPUfBPVffI7K190SXq8V9XOKWlC+Bdcg trSUaVTWXxkyw1SFAWKYE+iOS7nrNxyIj0F4thK2bVhAt7RKmkjzc94bu/sWRMFP4Opu TovLpbKrz04KnuRGsnH7nITxp5l+mquxXYJs2NwEOy6s3cnH4X76cRZrUcDIJQCAdRBk KUQNFBEaa7vIO7AVAMec7/v5veK1qzM9zaGSCyD8/pmngGh9yA2/cYCU/bgbVpXpqzOf G7fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=OahZkQaqeiYzwSkxrV9luTYz50cV3ZmwGmxiY+e/Mi8=; b=xW+gIa16BTJ+AKkWyTieLoFpIvn1KoymM/SZV/jyEsb4JL5Y5lKrZjZ0x6MUBCEOjY LisFt3B2q4FDn7jmtBKEasZykjSNALv2rB1MN4OVDwm8A2v6WpImmCi9N9Xy7J0QDRj8 qq3TDLUDBf21HsWQHCSX+pX5OYWw1v3EWiTOjDSi+f2cZcWTBuy+Ik6UB6+oJNUm8POR kq9AYZ2uskXOlvpijL0ZYOYnupAvL04kqez7ccZKCcUOjvsN06KT4cUgZ4tnGbkmwZQ8 O6jhyta3b0MsZANHgb6GQDXbWq+tJTORgF8hGcV85IbtUtle/fdD2Ufz2HWDQIYATHyZ zJpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=l1X3wIv1; 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 i18si4434708pgg.232.2021.07.14.15.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 15:52:48 -0700 (PDT) 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=fail header.i=@linaro.org header.s=google header.b=l1X3wIv1; 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 E679F6E4AE; Wed, 14 Jul 2021 22:52:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 54ECF6E4AA for ; Wed, 14 Jul 2021 22:52:45 +0000 (UTC) Received: by mail-lf1-x136.google.com with SMTP id x25so6352617lfu.13 for ; Wed, 14 Jul 2021 15:52:45 -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=OahZkQaqeiYzwSkxrV9luTYz50cV3ZmwGmxiY+e/Mi8=; b=l1X3wIv1t857mDE6ZrK3lQMEm+b+oNLW9iMxxfjE7Flm+KgreNKJusW9Jby99jEoQR yzlZjsH4sVx/hDNnWJIdN7OWsbexNNyMT9uB0ffnbvxNhL/BTW4560X85t2gaBVr+yqa 5f1HparX4ZvIOvGJH15WvBECTbjLoqeDOauL5FFldEKyUbYhaatgoGuwrxIp9+qK0r62 UOZ80oz0WVQ3ckafP9ZW4anpgxzf36+EvF31FomfGitqFP/q3+A9482jX3h79CARrXZd 7j+Zo7DcssqD5SrRqNGFEO2DhgHHMI/FgR0G4dlmXIDIhq7SKXL/lEJp8CMwnFxVaupG 5T1g== 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=OahZkQaqeiYzwSkxrV9luTYz50cV3ZmwGmxiY+e/Mi8=; b=DCin2SwqHvdffVmf46aqnlMCcMETS+R6bz6lLPll58hx5Vc3DmTbdVqZcTL1PeYDQH zKw931cKz1LEIZ65iA389I+SIAuXwLj1KG4HORFaJa9kllaqa2vttBI2uy2Srrz+gyZ9 4k42bpkUVC8hqv6D1NrsdBRZ5qB7YngRVfEqp1+3HntUBBo/rVFZ54NDnLkCY9j8CiMR 2UAfgCsjF8LjY8qbeR7wzzJ8nEN8SUD05pnz9n7vlElxJO4Vw53u/YfGv0vCs1n731iE Ixvj5FOpGVcAlgnWPQtff+JbUmS9Vrs+w4wPkYvcrQ/sLHLwxFFtsa5dSkILlYRwscsH BIsg== X-Gm-Message-State: AOAM5309FwRBSimIpZczvfQg/JHGGf5O7LyXugri4cRZZ78wIn+bqDDz Tx2XIodffOm45MPR5RFKjMXEbA== X-Received: by 2002:a05:6512:2601:: with SMTP id bt1mr305267lfb.590.1626303163613; Wed, 14 Jul 2021 15:52:43 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id m4sm205984ljq.96.2021.07.14.15.52.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 15:52:43 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Subject: [PATCH 2/2 v4] drm/panel: ws2401: Add driver for WideChips WS2401 Date: Thu, 15 Jul 2021 00:50:02 +0200 Message-Id: <20210714225002.1065107-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210714225002.1065107-1-linus.walleij@linaro.org> References: <20210714225002.1065107-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: phone-devel@vger.kernel.org, Douglas Anderson , =?utf-8?q?Noralf_Tr=C3=B8nnes?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds a driver for panels based on the WideChips WS2401 display controller. This display controller is used in the Samsung LMS380KF01 display found in the Samsung GT-I8160 (Codina) mobile phone and possibly others. As is common with Samsung displays manufacturer commands are necessary to configure the display to a working state. The display optionally supports internal backlight control, but can also use an external backlight. This driver re-uses the DBI infrastructure to communicate with the display. Cc: phone-devel@vger.kernel.org Cc: Douglas Anderson Reviewed-by: Noralf Trønnes Reviewed-by: Douglas Anderson Signed-off-by: Linus Walleij --- ChangeLog v3->v4: - Add more talkative Kconfig telling which mobile phone has this. - Make sure to turn off the internal backlight totally if requested. - Alter the logic so that we assign the backlight handle to panel->backlight directly and save some code. ChangeLog v2->v3: - Drop the ws2401_command() macro - we enhanced the mipi_dbi_command() to print errors for everyone instead. - Read out MTP properly (used wrong variables) - Register internal backlight if and only if the panel->backlight field is NULL after trying to look up external backlight. ChangeLog v1->v2: - Disable the backlight in ->unprepare() before entering sleep mode. - If we are not using internal backlight, close the L2 access after initializing. - Depromote some talkative dev_info()s to dev_dbg(). - Power up and read the MTP values before we register the display. This works fine and is probably how MTP is supposed to work. - Fix the set-up of gamma values, this was found in the GT-I8160 HD kernel tree. - Bail out properly if drm_panel_of_backlight() returns -EDEFER_PROBE. - Drop OF from dependencies since drm_panel_of_backlight() has static inline stubs in the header file. - Sort MAINTAINERS properly. - Alphabetize includes - Use format specifier %#02x so we get 0x... output in debug - Drop unnecessary braces around if () in debug macro - Drop unused include. --- MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-widechips-ws2401.c | 441 ++++++++++++++++++ 4 files changed, 459 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-widechips-ws2401.c -- 2.31.1 diff --git a/MAINTAINERS b/MAINTAINERS index a61f4f3b78a9..a38ed6e5efd4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6060,6 +6060,13 @@ T: git git://people.freedesktop.org/~sroland/linux F: drivers/gpu/drm/vmwgfx/ F: include/uapi/drm/vmwgfx_drm.h +DRM DRIVER FOR WIDECHIPS WS2401 PANELS +M: Linus Walleij +S: Maintained +T: git git://anongit.freedesktop.org/drm/drm-misc +F: Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml +F: drivers/gpu/drm/panel/panel-widechips-ws2401.c + DRM DRIVERS M: David Airlie M: Daniel Vetter diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index ef87d92cdf49..0c880553ce64 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -553,6 +553,16 @@ config DRM_PANEL_VISIONOX_RM69299 Say Y here if you want to enable support for Visionox RM69299 DSI Video Mode panel. +config DRM_PANEL_WIDECHIPS_WS2401 + tristate "Widechips WS2401 DPI panel driver" + depends on SPI && GPIOLIB + depends on BACKLIGHT_CLASS_DEVICE + select DRM_MIPI_DBI + help + Say Y here if you want to enable support for the Widechips WS2401 DPI + 480x800 display controller used in panels such as Samsung LMS380KF01. + This display is used in the Samsung Galaxy Ace 2 GT-I8160 (Codina). + config DRM_PANEL_XINPENG_XPP055C272 tristate "Xinpeng XPP055C272 panel driver" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index cae4d976c069..d94c27df17aa 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -58,4 +58,5 @@ obj-$(CONFIG_DRM_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o obj-$(CONFIG_DRM_PANEL_VISIONOX_RM69299) += panel-visionox-rm69299.o +obj-$(CONFIG_DRM_PANEL_WIDECHIPS_WS2401) += panel-widechips-ws2401.o obj-$(CONFIG_DRM_PANEL_XINPENG_XPP055C272) += panel-xinpeng-xpp055c272.o diff --git a/drivers/gpu/drm/panel/panel-widechips-ws2401.c b/drivers/gpu/drm/panel/panel-widechips-ws2401.c new file mode 100644 index 000000000000..8bc976f54b80 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-widechips-ws2401.c @@ -0,0 +1,441 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Panel driver for the WideChips WS2401 480x800 DPI RGB panel, used in + * the Samsung Mobile Display (SMD) LMS380KF01. + * Found in the Samsung Galaxy Ace 2 GT-I8160 mobile phone. + * Linus Walleij + * Inspired by code and know-how in the vendor driver by Gareth Phillips. + */ +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include