From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796294018; b=dFFyILBCLwZjKEmIZ76iDphOW5GuvoCHt3XLIddxCwZU2zbDefEayv6ekgetbLf/yRHP 8aFzEYzRRGvfwdC8OWo96mh9+YXR+zUqydNr0qPKelc2rSvhDKWGPsF/e+75vgQXkHwgs KLIULTORnbb/XPAoX3gSjpTush0IYMBIlwFW3EsueYzZAqEBLSeF6pGtJ7/zH8q1BmUTB loEu5xbB++840tNUNNTRKvvGEjRRfrTYZA5/BbKqPN68sL1o82qNhjdfwpin7c4VOQLei mgtSHiyZsFYxrisVraUlgSdpECT4M5Cfv/EWQfCpbQEh1UPzDSRahLSN/016WdGJ81w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796294018; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:From:Reply-To:Subject:To:Cc: References:Content-Language:Autocrypt:Organization:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=gVtcGVh2k/IE3vo3/445s3T+3X7eWJ+Pp/L/nOKqgnA=; b=HGkQEcRPFbvMyv0w3kvKz/0kphhajRAsnY7rk/zpVk1rXlktYjzuRakoxRxN8pcFd6gK 2n5znk+zRW11Sefjl2vIabVQzBTUwYeupjVCtE4kI5Uj3gPg27PJz0LiAI3qSCatElVL0 n3P2ob5wVJj4jTQ5+UFAPjC5wGYrWs2lXpt3sfa3pKaNVbJTUpojKY0Bj/BWqhMKA27kv 30I5sqROTwccWE5W5BOoIG6bquBqjte6I3Kn8dcIZ46STah/uZtlJfEXtsnTG+edcjsE6 JDBpHRZG+jjBjvkITUJofqaYZnknL5gmxg+fABIZdHhlR0whXqFD0sLOzuXESzSLCsw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=KN73YjvB; arc=none smtp.remote-ip=209.85.128.54 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E5C6606A322 for ; Thu, 3 Dec 2026 10:33:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5E5C6606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=KN73YjvB Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4bb6886d30aso134637825e9.3 for ; Thu, 03 Dec 2026 02:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796294017; x=1796898817; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gVtcGVh2k/IE3vo3/445s3T+3X7eWJ+Pp/L/nOKqgnA=; b=KN73YjvBaMDEDzly1/8pI+AYvcLchCaZAmCbUqp4Z4vkLzElSlPaUMKhTavS0DKEdV w7vZZpIGyPSvcyYJRZ03mAgvWfnOL/2b4sAz44ZJc6M04hC2ZeejNxxFzkArBMXaVQ/T 7zjulPqKE2dDuxDPs5nNz1pfSVkmsvehRcKQBEF72w35RfjDr/pM4JNBYqpK6cMV5jNG VSZB2bjmz9A6MNmAAoeclXAyElSg7rvWbNP5SuQ5cISwByfpWHT6WRaHyX2iVZWeTEH9 PTKiiJTowLxFvusQNiKHjz+mf313T36MJ+dqVgY/TNbW4Vpbv3l2DRUeSWUOB+ggnldK MCKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796294017; x=1796898817; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to:content-type; bh=gVtcGVh2k/IE3vo3/445s3T+3X7eWJ+Pp/L/nOKqgnA=; b=HOdgaTb3B6oxkbnlrjA2jSZktgC6pe7dzlzmuuRaXTUS6JeDZ7avgMuOm3SoRYKLEE usGCCUY+z8m8VcsoxIqaxBm0jL7Hpq1tFRns0ffmn0bIPGCTGTAesWJ8nxlOMgRv4Ylw K4kiJ3CxAUdwXxD6Miq19d1hubcD1kAHwAnRC9mvpzLR6Lczneglg30CPHDuHexYxIrU d1XrjjDh1A8y73NXg5Tny3qSyhWwa7WUxjafMA1hQXLc+J4/UphUd/RXyhdxRoPdV8E+ OjhvpU0Tr3G/Y8DM1VU2HAkvsGOK23WIEvvosRNuJA1vwd/AIs2d1d3c/XhJM+VT+Fmj Z5Sg== X-Forwarded-Encrypted: i=1; AL+hErF4uLHaZw7gdehIAG1zt1E64jOU0xY0TH+kuk3r1ePEDpE57sdw10C4sWa3NWid8ALNjJzfsEkWR55C@vger.kernel.org X-Gm-Message-State: APuU4Z9ekd+yf6cJdfd94SCg5ACWmzggkp3qRdoLCQ5s3KRkv7R9mSTd ytAUwE61U1G39gLwZWvIzjKC7m8gRdObkqZTHofLvPs1KWw/7G6+TIi6CWs17MShIFE= X-Gm-Gg: AZFdTZeWE4ESSHh+fbS1znEj2pJQXIta/qilhCq27JqeEIp6M0OrjilH4TXQ/M8LQUz Bx9gQ/WIT28oIQ4YhflMX37l7H/Hp8ZmRPytCMlcPNPIg2NoMiW2UvMZ8SIDimBDQjfT0PyFjsm Qx9A292FxKTCdLo663D2BpsmGJLyrCQAyj5ZM/rOPMkTiN53IRi9HV+L3IqRHlck06SPZngn17C e34oWjLRJ8cHk4ZCEoa+dKS6kvyKGYOgEyYzw4S+RsPJuHFEQQXTergbwa2+X7rS+vGZEVqaIxX Y1WRhg0vdnPCKiqSVRdNaK9ne8gPi+HLCrNIwvcyElBli/iPyUDQEMbJdk2cJY/lMblKCLEoV2T qzC40m2NhLRYwS/01C/mgI503Vac8mmLqo43HxF8mi1LkQzzQg4Oi+mro6eABM7uLuqkNJIGyUj cFnvkAsMorhhq+1Omzy3tRilFt+PypN8aWCJBEGprxllQByCAkcSq+Z8pMgAFaiQukhSD3NuvUg wxxOg1KsEgGuLXYmYl6Y4JbqRFuOBwho/F//nsotfVCv/1eu29cM4NAsk5afZQrKOr3/jWwKdZr bRX/NNImn3FIimbHdcCZg0Dn3tpYdg5IzFc4RxCO38azNwz2TZzoakiN7E2oSa2GDTHTLu4huNT oqiJq+uJUvlAdh+A3l4Yhn8Viwras X-Received: by 2002:a05:600c:4e02:b0:4a4:4d57:8462 with SMTP id 5b1f17b1804b1-4bb88812b1cmr837173915e9.24.1796294016655; Thu, 03 Dec 2026 02:33:36 -0800 (PST) Received: from ?IPV6:2a01:e0a:106d:1080:7de3:fcb2:e184:4e7b? ([2a01:e0a:106d:1080:7de3:fcb2:e184:4e7b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe00792c9sm66309905e9.3.2026.12.03.02.33.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 02:33:36 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 11:33:33 +0100 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH v2 05/10] drm/panel: novatek-nt36672e: Support the bias enable GPIO To: Vladimir Zapolskiy , Jessica Zhang , Ritesh Kumar , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , dri-devel@lists.freedesktop.org, Conor Dooley , devicetree@vger.kernel.org, Abel Vesa , linux-arm-msm@vger.kernel.org References: <20261126134508.320700-1-vz@kernel.org> <20261126134508.320700-6-vz@kernel.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/mvqQtaTtZID2dos04 YqBbshiJbejgVJjy+HODcNUIKBB3PSLaln4ltdsV73SBcwUNdzebfKspAQunCM22Mn6FBIxQ GizsMLcP/0FX4en9NaKGfK6ZdKK6kN1GR9YffMJd2P08EO8mHowmSRe/ExAODhAs9W7XXExw UNCY4pVJyRPpEhv373vvff60bHxc1k/FF9WaPscMt7hlkbFLUs85kHtQAmr8pV5Hy9ezsSRa GzJmiVclkPc2BY592IGBXRDQ38urXeM4nfhhvqA50b/nAEXc6FzqgXqDkEIwR66/Gbp0t3+r yQzpKRyQif3OwE0ETVkGzwEIALyKDN/OGURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYp QTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXMcoJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+ SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hiSvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20261126134508.320700-6-vz@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/26/26 14:45, Vladimir Zapolskiy wrote: > Some NT36672E panel modules generate their positive and negative bias > supplies on the module, and expose only a bias enable signal instead of > the AVDD and AVEE supply inputs, add support of such bias enable GPIO. > > Signed-off-by: Vladimir Zapolskiy > --- > drivers/gpu/drm/panel/panel-novatek-nt36672e.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672e.c b/drivers/gpu/drm/panel/panel-novatek-nt36672e.c > index de070637c208..4836751b7d5d 100644 > --- a/drivers/gpu/drm/panel/panel-novatek-nt36672e.c > +++ b/drivers/gpu/drm/panel/panel-novatek-nt36672e.c > @@ -37,6 +37,7 @@ struct nt36672e_panel { > struct drm_panel panel; > struct mipi_dsi_device *dsi; > struct gpio_desc *reset_gpio; > + struct gpio_desc *enable_gpio; > struct regulator_bulk_data *supplies; > struct regulator_bulk_data *bias_supplies; > const struct panel_desc *desc; > @@ -377,6 +378,8 @@ static int nt36672e_power_on(struct nt36672e_panel *ctx) > } > } > > + gpiod_set_value_cansleep(ctx->enable_gpio, 1); > + > /* > * Reset sequence of nt36672e panel requires the panel to be out of reset > * for 10ms, followed by being held in reset for 10ms and then out again. > @@ -397,6 +400,7 @@ static int nt36672e_power_off(struct nt36672e_panel *ctx) > int ret = 0; > > gpiod_set_value(ctx->reset_gpio, 1); > + gpiod_set_value_cansleep(ctx->enable_gpio, 0); > > if (ctx->bias_supplies) { > ret = regulator_bulk_disable(ARRAY_SIZE(nt36672e_bias_supplies), > @@ -577,6 +581,16 @@ static int nt36672e_panel_probe(struct mipi_dsi_device *dsi) > if (IS_ERR(ctx->reset_gpio)) > return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), "Failed to get reset-gpios\n"); > > + ctx->enable_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_LOW); > + if (IS_ERR(ctx->enable_gpio)) > + return dev_err_probe(dev, PTR_ERR(ctx->enable_gpio), > + "Failed to get enable-gpios\n"); > + > + /* The bias is either supplied to or generated on the panel module */ > + if (ctx->enable_gpio && ctx->bias_supplies) > + return dev_err_probe(dev, -EINVAL, > + "enable-gpios and bias supplies are mutually exclusive\n"); > + > ctx->dsi = dsi; > mipi_dsi_set_drvdata(dsi, ctx); > Reviewed-by: Neil Armstrong Thanks, Neil