From patchwork Tue Oct 12 06:48:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12551569 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4517C433EF for ; Tue, 12 Oct 2021 06:54:28 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BFF66103D for ; Tue, 12 Oct 2021 06:54:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9BFF66103D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B17FA6E58A; Tue, 12 Oct 2021 06:54:22 +0000 (UTC) Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 166D589F49 for ; Tue, 12 Oct 2021 06:49:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634021344; x=1665557344; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LEsOShHi53FwhvjjCf5twbUdvETtYuAw3EERG3UwX5A=; b=WzOVgRZm9vgQgYHLFG7BNL22Xus668vdoePwOWiXI//m8YBm5KP2hNse 4yLHaKce0C3MVakSXlMqr2Czm09PUnkSAUEypu6OlBPYhpw0AZB1XAFpq Z5lxQFp5m7qmVsTIfIRADMwPrxooZqdg7WcGxum0LRpWQbvLj9BB8gEtS bJ1iQoZpBLAUP+8AI8szjUyyu2CwLNCaab/ZE168zAuucqnYcYnxhtI50 /D7T5519r+MjUGKastvknTUS+e/yb9weDhcyC2PfMDZ9K7X3qRZ2cB4iR OVuZ1dF5LQPwHqGEgL70MqveZ+Xit9Pj2wDhOcvy0/My5/Qu6L+49KOy/ Q==; X-IronPort-AV: E=Sophos;i="5.85,366,1624312800"; d="scan'208";a="19985092" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 12 Oct 2021 08:49:01 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 12 Oct 2021 08:49:01 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 12 Oct 2021 08:49:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634021341; x=1665557341; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LEsOShHi53FwhvjjCf5twbUdvETtYuAw3EERG3UwX5A=; b=pwImc4xHEbbwZcptvNYao78PgJDfIJF6zGwX5gm+vXQkFT88dED2uJD8 GIm0vLIH1kEB5j/su7odZmiXXsBNTEbo8jT9uJK7JbEi9VhFXyRVw31Lm 9J5KIMTlcArciYEBbOqyG4ZcPuClgq91YYzFCjH2rdnMDffIL4aclAPjF 7ysYqMFjSnBVCQxNIa7CUPQh2yXmMyEerX4Ocsqufa3SNLTbk4obfu/LX XNLmXp9pdkMrH1LFN6zPTl+5LnoelWtmr/NCeokCOtsgfHXqFiJJqttoB 1KFqKwrNSrE4/Lr4NGZ5X63WUdYDZeoc7qBU5CaAoEAifhaqhO9PftXX9 w==; X-IronPort-AV: E=Sophos;i="5.85,366,1624312800"; d="scan'208";a="19985091" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 12 Oct 2021 08:49:01 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 70881280075; Tue, 12 Oct 2021 08:49:01 +0200 (CEST) From: Alexander Stein To: David Airlie , Daniel Vetter , Rob Herring , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: Laurent Pinchart , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Alexander Stein Subject: [PATCH v2 1/4] dt-bindings: display: bridge: sn65dsi83: Make enable GPIO optional Date: Tue, 12 Oct 2021 08:48:40 +0200 Message-Id: <20211012064843.298104-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211012064843.298104-1-alexander.stein@ew.tq-group.com> References: <20211012064843.298104-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 12 Oct 2021 06:54:21 +0000 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Laurent Pinchart The SN65DSI8x EN signal may be tied to VCC, or otherwise controlled by means not available to the kernel. Make the GPIO optional. Signed-off-by: Laurent Pinchart Signed-off-by: Alexander Stein --- .../devicetree/bindings/display/bridge/ti,sn65dsi83.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml index 07b20383cbca..a5779bf17849 100644 --- a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml @@ -93,7 +93,6 @@ properties: required: - compatible - reg - - enable-gpios - ports allOf: From patchwork Tue Oct 12 06:48:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12551575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25233C433EF for ; Tue, 12 Oct 2021 06:54:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E67C3608FE for ; Tue, 12 Oct 2021 06:54:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E67C3608FE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 855FB6E5A4; Tue, 12 Oct 2021 06:54:28 +0000 (UTC) Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id EB69989F49 for ; Tue, 12 Oct 2021 06:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634021345; x=1665557345; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OexUDrCO45DT7y8Xa3ppCIZxrceYdrcYeP4z6z7CHck=; b=i+TSyePC+y2c3l7nyTGM72mNdCKwkcP7vYEGYmF1hV91b6lSUQf2BQXg 6gz9dK6pT+4eIIFt3C2cN3M1SdtNkE22HhhzBqPdYOub8fo++r72l7eDA tipugfyYT5X+TFB1d4ZdmOih470IXK2poGxOHoYHaNmNiaTrR8XVU79vv wpnQxl6n0aQ3vKRxkazjF788cZiGyzCPOH3Bh5c5L/WH1KNYuwqPOYKAc G0j9fucV+MLZ9FRF3EIOwqJGuI8dkdDYLiUO6/mqa0suyLGlV4CFEUniL VCTcq2Ovff3WmyUx5tMotJJ8RNF1eWGYQLyRJaXqv+n8sN5KEeAd9rLEp g==; X-IronPort-AV: E=Sophos;i="5.85,366,1624312800"; d="scan'208";a="19985094" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 12 Oct 2021 08:49:01 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 12 Oct 2021 08:49:02 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 12 Oct 2021 08:49:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634021341; x=1665557341; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OexUDrCO45DT7y8Xa3ppCIZxrceYdrcYeP4z6z7CHck=; b=M7aAq7a5Tda+vba+hvUILc33Luj3ItHwGyn3qmts0nBBmfpo6NcKKuFr Bxy2Ze3Gn1XBMk7MU3LMsGq7TuFoGxC4lM1Ws7Zlkb0hQ9kFkAytf1t4p umAzeaTrin9PpkktrB/caVPyGHi9q4tzQEKfSIoZe5pvH3yst8pBdAXZy IElSmJkzuIYH5TRkpFlgw85ua+fcckKXxq13+rnknGK2zdQK0BImeNt9i QZqxtOdQl2ruYzawCctiHQ4+Xx2HpO423yAlrkgXy4Hrf/69vq4hHyT3k kcVdeC9Ot7oHsLFNxZ/nT0R6eqDuh0lfTMGlgYoDh8GlrJfQvfu3npBJu g==; X-IronPort-AV: E=Sophos;i="5.85,366,1624312800"; d="scan'208";a="19985093" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 12 Oct 2021 08:49:01 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id ACDBF280065; Tue, 12 Oct 2021 08:49:01 +0200 (CEST) From: Alexander Stein To: David Airlie , Daniel Vetter , Rob Herring , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: Alexander Stein , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Laurent Pinchart , Sam Ravnborg Subject: [PATCH v2 2/4] drm/bridge: ti-sn65dsi83: Make enable GPIO optional Date: Tue, 12 Oct 2021 08:48:41 +0200 Message-Id: <20211012064843.298104-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211012064843.298104-1-alexander.stein@ew.tq-group.com> References: <20211012064843.298104-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 12 Oct 2021 06:54:21 +0000 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The enable signal may not be controllable by the kernel. Make it optional. This is a similar to commit bbda1704fc15 ("drm/bridge: ti-sn65dsi86: Make enable GPIO optional") Reviewed-by: Laurent Pinchart Reviewed-by: Sam Ravnborg Signed-off-by: Alexander Stein --- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c index a32f70bc68ea..9072342566f3 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c @@ -671,7 +671,8 @@ static int sn65dsi83_probe(struct i2c_client *client, model = id->driver_data; } - ctx->enable_gpio = devm_gpiod_get(ctx->dev, "enable", GPIOD_OUT_LOW); + ctx->enable_gpio = devm_gpiod_get_optional(ctx->dev, "enable", + GPIOD_OUT_LOW); if (IS_ERR(ctx->enable_gpio)) return PTR_ERR(ctx->enable_gpio); From patchwork Tue Oct 12 06:48:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12551571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47759C433EF for ; Tue, 12 Oct 2021 06:54:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0AB10608FE for ; Tue, 12 Oct 2021 06:54:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0AB10608FE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0932B6E5A3; Tue, 12 Oct 2021 06:54:22 +0000 (UTC) Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 667DE6E54C for ; Tue, 12 Oct 2021 06:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634021345; x=1665557345; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VRR0se0nChPPCwlnAT8ZDDTNztxvzoMjgIcwUmvsRbk=; b=mubyBgMxWZp4HSueBvx2YcRUdxBBRJK0svB0qGorI41Y7Hcs+/lhZkFA PmW1wml+3jE9XQUKYbLpts+la2M2yWH8lnRbagEa9+xNE+1v1HRvrvn51 SKE+9PEVKtyRGyw4rkjbw8eme7nupIwO3IeFugm91zoIqDVxZsggyyLTN cIfanheiMI8SDj8k9IwHQEZfdI+yc6gTlpxwo9VGk4whqdeMHzmJUElO7 4HKipnLgBYWjARf4QA+GqQR2bijUEU1j7fXEyqFAtVdtcu6dhhwlZt7+U BQaZTy0CMUVIZj4mWFSiAzEwzuth+NaMFXLY7rUkZhKSoz6l10ELikYJu A==; X-IronPort-AV: E=Sophos;i="5.85,366,1624312800"; d="scan'208";a="19985096" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 12 Oct 2021 08:49:02 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 12 Oct 2021 08:49:02 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 12 Oct 2021 08:49:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634021342; x=1665557342; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VRR0se0nChPPCwlnAT8ZDDTNztxvzoMjgIcwUmvsRbk=; b=iST/7KGJAtbpzbJjH8XRjGIJeVauikGvq7EZhNuyohQRUtQQ39w/fkXO UQFOS/ZB/0+cxrykKds/b9zVIgVY+IWksBGzATUYcAgOuuW4GYNbe37VN ooArTguanV5Sfiyvw2jQgGeGA2WvcbC6dsCfxixFexLvJ/oVNWR6wt4rC y2c2Oj2NixskTfDiiPBFfbhtYaPRrMSv+GA572yjVv+YsXHZcSzNOlw4F u4LSiA5ZdkIlZX7gJajQIshmtPQxtTUbOx84gp0oIciL4esIcIy8dBMxE 9R49ZfI2mXPq+9Z1yZH1DvnaNGBz6zCpov6QmR9JhNxKxqlX1HTf3qHiH A==; X-IronPort-AV: E=Sophos;i="5.85,366,1624312800"; d="scan'208";a="19985095" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 12 Oct 2021 08:49:02 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id E804A280075; Tue, 12 Oct 2021 08:49:01 +0200 (CEST) From: Alexander Stein To: David Airlie , Daniel Vetter , Rob Herring , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: Alexander Stein , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Sam Ravnborg Subject: [PATCH v2 3/4] dt-bindings: drm/bridge: ti-sn65dsi83: Add vcc supply bindings Date: Tue, 12 Oct 2021 08:48:42 +0200 Message-Id: <20211012064843.298104-4-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211012064843.298104-1-alexander.stein@ew.tq-group.com> References: <20211012064843.298104-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 12 Oct 2021 06:54:21 +0000 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add a VCC regulator which needs to be enabled before the EN pin is released. Reviewed-by: Sam Ravnborg Signed-off-by: Alexander Stein --- .../devicetree/bindings/display/bridge/ti,sn65dsi83.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml index a5779bf17849..49ace6f312d5 100644 --- a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml @@ -32,6 +32,9 @@ properties: maxItems: 1 description: GPIO specifier for bridge_en pin (active high). + vcc-supply: + description: A 1.8V power supply (see regulator/regulator.yaml). + ports: $ref: /schemas/graph.yaml#/properties/ports @@ -93,6 +96,7 @@ properties: required: - compatible - reg + - vcc-supply - ports allOf: @@ -134,6 +138,7 @@ examples: reg = <0x2d>; enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; + vcc-supply = <®_sn65dsi83_1v8>; ports { #address-cells = <1>; From patchwork Tue Oct 12 06:48:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12551577 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35307C433EF for ; Tue, 12 Oct 2021 06:54:40 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 02926608FE for ; Tue, 12 Oct 2021 06:54:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 02926608FE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C4B6A6E5BE; Tue, 12 Oct 2021 06:54:28 +0000 (UTC) Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id CC01B89F49 for ; Tue, 12 Oct 2021 06:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634021346; x=1665557346; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PRVemg1TCgZgqoh2zDWu0Su4fQCkOIKQ3XhFew+ehD8=; b=R+gcHYNPK6v5kCDMgMt3wKALrtha9jDRINJiggIp77niapB4YuiAwYxJ eiWEZqwFcQzAuOE9Qr8uGC3Tt2aNKJ0b+EcTLS2wlVNxJ53r8GDrnAzUi ZSr7MLWEr5g234MyaIICVTWcu8lj1fPxcEx/un4PythuTi14/7uiiQ/KR zaePDjyS3rbfaomoYEOc1zmwldOS2slRYSyPqz9woeyOcTh1nN5SsYQCG 4yJteVjo3vwLUnjSXixajo4O2hEQXjEQp2Fdnf0OvaC9KnawzADaGKPP1 fU1rnvphDJgl+0vUY1Bex3OjIXxlPpb1POTWq74zDqcGzeftNCbGhn0oG A==; X-IronPort-AV: E=Sophos;i="5.85,366,1624312800"; d="scan'208";a="19985098" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 12 Oct 2021 08:49:02 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 12 Oct 2021 08:49:02 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 12 Oct 2021 08:49:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634021342; x=1665557342; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PRVemg1TCgZgqoh2zDWu0Su4fQCkOIKQ3XhFew+ehD8=; b=kx3Z9JCGDK89LGpC+sHjVIDPofRGv5NGqipgpbJFW+YFIH58R87/lkb8 tJHMLeGISZlBJ125b1XBPS4TXfXITxYHLoQ2fU6BesVKuflHRuWPPVLl8 JE3CcM49YT7w0LjXbdfmW20PwGUvoFXvOmqCHV9LiZLHiVP/El1x1f/0K 5cWCGuPz8UQVhl4n2bEHBbPBvmPlNqVP5CxtPA7NMl9OLWedg6xqjWD37 ae3D7XWb2UuznVrMH3U1KM5roMCOrymmHw22EJYtMynaHQ0dPsPUNt9Oc OUvjrg46WUFZlJC+GvfPhnVH+5rOOhlcn9YLRVaZbdHGsp6KWG9vMHCcs A==; X-IronPort-AV: E=Sophos;i="5.85,366,1624312800"; d="scan'208";a="19985097" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 12 Oct 2021 08:49:02 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 30EA0280065; Tue, 12 Oct 2021 08:49:02 +0200 (CEST) From: Alexander Stein To: David Airlie , Daniel Vetter , Rob Herring , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: Alexander Stein , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Sam Ravnborg Subject: [PATCH v2 4/4] drm/bridge: ti-sn65dsi83: Add vcc supply regulator support Date: Tue, 12 Oct 2021 08:48:43 +0200 Message-Id: <20211012064843.298104-5-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211012064843.298104-1-alexander.stein@ew.tq-group.com> References: <20211012064843.298104-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 12 Oct 2021 06:54:21 +0000 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" VCC needs to be enabled before releasing the enable GPIO. Reviewed-by: Sam Ravnborg Signed-off-by: Alexander Stein --- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c index 9072342566f3..a6b1fd71dfee 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -143,6 +144,7 @@ struct sn65dsi83 { struct mipi_dsi_device *dsi; struct drm_bridge *panel_bridge; struct gpio_desc *enable_gpio; + struct regulator *vcc; int dsi_lanes; bool lvds_dual_link; bool lvds_dual_link_even_odd_swap; @@ -647,6 +649,12 @@ static int sn65dsi83_parse_dt(struct sn65dsi83 *ctx, enum sn65dsi83_model model) ctx->panel_bridge = panel_bridge; + ctx->vcc = devm_regulator_get(dev, "vcc"); + if (IS_ERR(ctx->vcc)) + return dev_err_probe(dev, PTR_ERR(ctx->vcc), + "Failed to get supply 'vcc': %pe\n", + ctx->vcc); + return 0; } @@ -691,7 +699,11 @@ static int sn65dsi83_probe(struct i2c_client *client, ctx->bridge.of_node = dev->of_node; drm_bridge_add(&ctx->bridge); - return 0; + ret = regulator_enable(ctx->vcc); + if (ret) + dev_err(dev, "Failed to enable vcc: %i\n", ret); + + return ret; } static int sn65dsi83_remove(struct i2c_client *client) @@ -702,6 +714,7 @@ static int sn65dsi83_remove(struct i2c_client *client) mipi_dsi_device_unregister(ctx->dsi); drm_bridge_remove(&ctx->bridge); of_node_put(ctx->host_node); + regulator_disable(ctx->vcc); return 0; }