Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2614997pxb; Sun, 17 Oct 2021 20:34:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW24C2ON6w7lAclFObNWsqcsF3CnJUpAtUXpnmxyJYimHeAYoOxmiw/t9HGlIyjINk09Fi X-Received: by 2002:a17:90b:3b88:: with SMTP id pc8mr29540065pjb.93.1634528084385; Sun, 17 Oct 2021 20:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528084; cv=none; d=google.com; s=arc-20160816; b=Y5Fd1oEBgaEoc7054IFX8ZBkNQ7U7Diy/Phgm6B0g3v8R50ogYJZjm56MD5PyUZ0qF z7ADxRuWors+XZOCw/b/M/4FWa2IibP8vAHjAKyGOcxIDPzgubD082b+Ct2YH0R3Y0DT 7iXUeq8oO+/5etXVkoGC222uDUCrI0mECHJRBxsXy8Dtj7IRxe6oxPXVfh3YPCGjM84u K1vtiAPMoU/gAuPhUpxrkrZfrh75mdIUcDF9KGVJLbX/FoeSbejTWgKmDqHRPMfEuDsb 5BTLzwRi4QgIN2mWQUNqYdnHjyM4t6vMwChY6Qlbi864b7Sc6CxEfAkRoHEkFZfQKJSv 7nSA== 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=UpaN0+D4v6gZi4C1AIXdRvIf3e9k8TCo9M0Z0xiwZZA=; b=P+zXUXZAaoIDMQJc2KptQqp551FYnz6Paoz2BqSvnO5D50Qp4hjjOBtTHi8VtENwBg CreizVtH6x5D7nwg/zTqaZ+J0ybhpaL8Nc3IXeUNgJHWLeRQjNqy1VPvZ+inR7aBAgoo ZILVsH2gKIupb6dXuX2hxKRXYLHMPnB97nEAmAAMIe9fmvFB8BCLxbYf7oso+S0b693T MFUkc10H6BW6Q91g2LBYIVC8srtRcS5GXznKqXf3KkiUZl1KvglFetphjL7lYlBnnMnn +7lXLynR8KVU9QWJ3fo4PJTfZzFN1pTNMLm0Fx6sWoMZI62+IQ0dpp9tz9D4gamhCFGM g6RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bVpdXZI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si15149151pji.77.2021.10.17.20.34.32; Sun, 17 Oct 2021 20:34:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bVpdXZI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244124AbhJPKY4 (ORCPT + 98 others); Sat, 16 Oct 2021 06:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244127AbhJPKYt (ORCPT ); Sat, 16 Oct 2021 06:24:49 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBA22C061767 for ; Sat, 16 Oct 2021 03:22:41 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id ec8so48453578edb.6 for ; Sat, 16 Oct 2021 03:22:41 -0700 (PDT) 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=UpaN0+D4v6gZi4C1AIXdRvIf3e9k8TCo9M0Z0xiwZZA=; b=bVpdXZI2t1pu8Dq2bx9BYsDi8Jaxe8gZVC1bkUVLKjO3ibe87Ybbg1ab+UgLVeXDKb m7x45p0HDGuJDf0Dot9aQUuvAnr9q6DMYNrpiiE28WBMTzz7Cmre21wxkaJ8clgPhGeW nbd6brzazC4OFiSA9wHzwi0YsAqXfUKfE8qz4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UpaN0+D4v6gZi4C1AIXdRvIf3e9k8TCo9M0Z0xiwZZA=; b=Z43rbYT5h0iSh45NYtj39BhXZggDFpxMabXLqBURdIyQSrVlwQB8FqeiwNvLc5q/Ma XUDiA1v8ATRqfwg+dDjr5vw+18uWc0U01KuNUojpm0rnTcHg3FFAZwI9BmtXDdEF28VP H4T7B4YznWE1mP2yxsRDOA4X3UTkoicl9YY0RfYzcXh5aWjpFMisIJ+nWLM+y0KzAnKW 3e0T3XyMdnsMcw4fWVU3Hh6ysf+vPu+xgSVYioZClFr5/i/+nkb0E+w34O4yo1rAxBrN xB3aGF9bTdWKUWbsILBIBrEpj2xI/aCA5q/6na8vI1usRmw5P7/Xj1rsRFMcKEjnfzFS y49Q== X-Gm-Message-State: AOAM5315jXaCAkTvxtwYatiwEblQ2ltzclthdhX7V3k3xTkDxcoeQzWW UNnS9OikQb8jGnlHikz5F4PmnA== X-Received: by 2002:a17:906:838c:: with SMTP id p12mr13237355ejx.181.1634379760431; Sat, 16 Oct 2021 03:22:40 -0700 (PDT) Received: from panicking.lan (93-46-124-24.ip107.fastwebnet.it. [93.46.124.24]) by smtp.gmail.com with ESMTPSA id la1sm6117361ejc.48.2021.10.16.03.22.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Oct 2021 03:22:39 -0700 (PDT) From: Michael Trimarchi To: Thierry Reding , Sam Ravnborg , David Airlie , Laurent Pinchart , Rob Herring , =?UTF-8?q?Heiko=20St=C3=BCbner?= Cc: devicetree@vger.kernel.org, Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] drm/panel: ilitek-ili9881c: Make gpio-reset optional Date: Sat, 16 Oct 2021 10:22:31 +0000 Message-Id: <20211016102232.202119-5-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211016102232.202119-1-michael@amarulasolutions.com> References: <20211016102232.202119-1-michael@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Depends in how logic is connected to the board the gpio is not stricly required. Signed-off-by: Michael Trimarchi --- .../devicetree/bindings/display/panel/ilitek,ili9881c.yaml | 1 - drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml index 2d4a5643a785..07789d554889 100644 --- a/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml @@ -27,7 +27,6 @@ required: - compatible - power-supply - reg - - reset-gpios additionalProperties: false diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c index d1f20758ed08..103a16018975 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -883,7 +883,7 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi) return PTR_ERR(ctx->power); } - ctx->reset = devm_gpiod_get(&dsi->dev, "reset", GPIOD_OUT_LOW); + ctx->reset = devm_gpiod_get_optional(&dsi->dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(ctx->reset)) { dev_err(&dsi->dev, "Couldn't get our reset GPIO\n"); return PTR_ERR(ctx->reset); -- 2.25.1