Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3862629rwr; Sat, 22 Apr 2023 13:51:24 -0700 (PDT) X-Google-Smtp-Source: AKy350buGdfb41FhLEmhp2sE6a/9HshC7Daq5elnX/ygSAO+BnErjfddXKqaDSyPcZeRCVLlxqZf X-Received: by 2002:a05:6a21:3384:b0:f0:251f:f099 with SMTP id yy4-20020a056a21338400b000f0251ff099mr12142630pzb.1.1682196683891; Sat, 22 Apr 2023 13:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682196683; cv=none; d=google.com; s=arc-20160816; b=EUa89Qld6pg9z2gnTWc0ChkWR/xXbiYpugKWJ61ZhP8tIO2bzjaM27RwmOINoxigTJ 4bxIrYZi+CxIb4FlZp/Icn1kCg3RF58WGSunRwN2UXNhewE2xmB8ykzKZ2LwePo5BWyj x0uW+5v4uLQf9vDlDbriJSG/Q3VErAMkDwfAwRF785+y17BCbWt+3blcmDI7iDHP2LT/ tna17ahZi8WG/esxoq4iyBw7EjBfc0C8c9/3040Vder4/AZLY51DVxJRX3Fh7pRTGANx pZs98AoRnwsu2vJl+gLphGhepohFR0WzSQoSO1Ue157Kw+CQ0QJHq+LIDX8CQ3d7xM5L DFAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d0s6MKRsU+TrGqbfb6eMsorgvV49Ujo04EbXQ+VSEY0=; b=lPRTUxMUQ03U0KIJ4/rEh9+cbN+szKCA0caIRqf2QPMjjy1P4e0cGuSzx9+Na/KaBI Fhm8ElSanU/fnb7a/5mEdZnZb0sL8n+OYLcR24jJG5hP4u+wKgD/m7FO0Hqw7Ovzz8Vb OJYyAkHdsdqCerkr6asHrxVw7NzS14jPVnlomX7lK0kAOltkd5g1gF2dI8AWiuLBLomK LaUx6XEjjEiv7BBELIK8PC7oKEIKZ600op0xVJPxGbp+Bd9Anq0c01GrCtTVj9nQlRZP Wv6E5F3ulHwdVGeTXANfHorFoHvhj+UKmFWwm8Ehjvb9UL168gWHC5tmIDDMikx2DEYb yHxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WR0Y2Gkj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s35-20020a634523000000b0051b784e64casi7206383pga.171.2023.04.22.13.51.09; Sat, 22 Apr 2023 13:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WR0Y2Gkj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230048AbjDVUur (ORCPT + 99 others); Sat, 22 Apr 2023 16:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjDVUud (ORCPT ); Sat, 22 Apr 2023 16:50:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CF0626B0; Sat, 22 Apr 2023 13:50:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0941961455; Sat, 22 Apr 2023 20:50:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48683C4339E; Sat, 22 Apr 2023 20:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682196630; bh=qSwlGWERs1iLO9M6K70WivJnuxc3M3Ft0dJO8xZoQJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WR0Y2Gkj8T3l8/g3V/e8fiXBUxcANbDupyE0B/Q659iKEKhTAQUZcsnarxo5od6si znbRTZLKLRJAY5+pyhzFutqtes/QWu1HbVXTrVIaEgsVq6n7tXtQLu+etq43fEJBEM j19RBI4qH8lknwNqM591bJGsClcnCr2TegH22VkgvW6XapB62heg1dP1UDQSvVT0wO bFAR2HdF67wIHIJoL51AWnF6UDK1EoCj6pGHTAopcp/DejPJL/sI3PkO3guXoDC9y8 nrwUDxYkCjCkGClsi6Boyau1iv5tCPXkOIKOWACSf2pOCbVMaETq0qk4ZTXqbdzYPS tcAO0YLp6nSyA== Received: by mercury (Postfix, from userid 1000) id 127C91066CC4; Sat, 22 Apr 2023 22:50:25 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel Cc: Gerald Loacker , Michael Riesch , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 05/13] drm/panel: sitronix-st7789v: make reset GPIO optional Date: Sat, 22 Apr 2023 22:50:04 +0200 Message-Id: <20230422205012.2464933-6-sre@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230422205012.2464933-1-sre@kernel.org> References: <20230422205012.2464933-1-sre@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The reset pin might not be software controllable from the SoC, so make it optional. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index f7566551b5e2..1d43b8cc1647 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -369,7 +369,7 @@ static int st7789v_probe(struct spi_device *spi) if (IS_ERR(ctx->power)) return PTR_ERR(ctx->power); - ctx->reset = devm_gpiod_get(&spi->dev, "reset", GPIOD_OUT_LOW); + ctx->reset = devm_gpiod_get_optional(&spi->dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(ctx->reset)) { dev_err(&spi->dev, "Couldn't get our reset line\n"); return PTR_ERR(ctx->reset); -- 2.39.2