From nobody Wed Dec 17 12:25:15 2025 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A738195F28 for ; Wed, 10 Jul 2024 17:05:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720631123; cv=none; b=mfL24QKNqx4ufmUrFY47AH2s1DTgJd5la+LH+/4OQhRzdzccrjludB7JjJthZvtaQhO9GqB6q8Z0DCTYz38MffpBZ9WxSLVHzuwGjNwLVL6D8W9EUFOgRwsCrjyoKvTjCx2NuHYR0OS265/3LlkAHxK0ksV3khppkDKlUmUcVM4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720631123; c=relaxed/simple; bh=UtGbOemBnLSiS/SSxde0/IPn7E11HeciK/KMJx5zgzg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r3wYq7rOmuSLBYoPvyKwRd0sLqWRb+kGfnOf8au7tzL+LRRjvVVjT8ODlvPU7qpMQYLKb/bJpKPlI2s1fPtvFbXmBB1tm2fKa1wl3bxPaH/OvPoNcvcEBP3a8Q0el4pqVVl1uE7HicEaXUzfB7cmgVamjjFj1GDwkbgQIN6FVnM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LsLq3ko0; arc=none smtp.client-ip=209.85.167.51 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.b="LsLq3ko0" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-52e9fe05354so9666219e87.1 for ; Wed, 10 Jul 2024 10:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720631118; x=1721235918; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ejuDXxzDzIH7zcxYcOPWRk3uTUuzsIoqRWToUCtONmU=; b=LsLq3ko0dEzIxVV03b/Sxfq0ohjNb7DdPmSl2uFnq3WU8jJ13/fccWpT/ATmUPgcuK k+Csu+TO8PGmCRyBNyasjp2FDjQ6cdZ0QWIkNL+nE6vkuo8WHimXlRTY/p1FfcfgJw77 56F45oodFpoGj+RMHwrm/oso9eAwGI7HNKdFS04ZzT1Dl6LYrSiPlCI+Tu9v6AdfNo01 MG8DlqovWQHyPCVAoIFBCM4aZsHPWJFf19TJQodeKj9G7fN94BMGYuwI7ekFHJ7b9GXa LmcUNCVAjfqLIVOmox8yTG6IhYL5ef86ZbR/j/j8VUUohaZxhlaRGoG8deaQXsplmYTt Sc2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720631118; x=1721235918; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ejuDXxzDzIH7zcxYcOPWRk3uTUuzsIoqRWToUCtONmU=; b=JL2YeMEeJ9RyHmkaP9Tn96kvD13dkESMC3XeUlY9PiDKYiNO1f/m/RID+g0BKnbgvx FIGibk/R/t080RQ5ZIo4pZDTFbtYl99pSJPfO4c/uYLmMhjaJRO7zfhQBIC1AY53T60t b3ELJFuN6uKWKy881pF6DXWwZXNfq75bMf/CGJ/zC0am0jk+E6tCDBLSPgA4cO9t7sBz t3qTX891jzcGjbfsIwZuCRp3LqA/g19Lih8m5P8OYC24jVuA7RCibHxHd6EUIsdKhipS kDMorUVtn4kHRVUlMia7CW46PFc4O+GA5VMruuY45gODX/TM2AQmPTFfuryBTHM5mqHd 0etg== X-Forwarded-Encrypted: i=1; AJvYcCWwt3lYqsB+CvoNO3UdMPFfxhWsxQozLBX3FNC7UE3ulQHqECn/ZARkrEJ/ckX1nhICbzezjiH8FDudJEaAKDEI3rrT8dEBS0XAOF0Y X-Gm-Message-State: AOJu0YxgOrufICjlJAgf+zsepH8YGZy1NhZqC61n79bdN3w3yNf7pYMV ES9aWD8EU1NyKpqy459DAWodOCnYgxyGRhG53r9srwyND4Z4GP3h0G+Kui4nRb9WC8sU7ZSkL+V v/OPTrw== X-Google-Smtp-Source: AGHT+IEdzDMqSpFrgPIKMoDSkhiU2e+ql+AL5vU9wurvK32RxWDhsTOWJlgEkSrVCpO+E3+Am+YAjQ== X-Received: by 2002:ac2:4281:0:b0:52e:9471:e533 with SMTP id 2adb3069b0e04-52eb99d5fb9mr3803124e87.66.1720631118372; Wed, 10 Jul 2024 10:05:18 -0700 (PDT) Received: from [127.0.0.2] ([2a02:2454:ff1f:b240:65e6:93ca:5f80:ea9b]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-367cde7dedfsm5838446f8f.24.2024.07.10.10.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jul 2024 10:05:18 -0700 (PDT) From: Stephan Gerhold Date: Wed, 10 Jul 2024 19:05:00 +0200 Subject: [PATCH 4/5] arm64: dts: qcom: x1e80100-crd: Fix backlight Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240710-x1e80100-crd-backlight-v1-4-eb242311a23e@linaro.org> References: <20240710-x1e80100-crd-backlight-v1-0-eb242311a23e@linaro.org> In-Reply-To: <20240710-x1e80100-crd-backlight-v1-0-eb242311a23e@linaro.org> To: Neil Armstrong , Bjorn Andersson , Konrad Dybcio Cc: Jessica Zhang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Douglas Anderson , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Abel Vesa , Johan Hovold X-Mailer: b4 0.13.0 The backlight does not work correctly with the current display panel configuration: It works after boot, but once the display gets disabled it is not possible to get it back on. It turns out that the ATNA45AF01 panel needs exactly the same non-standard power sequence as implemented by the panel-samsung-atna33xc20 driver for sc7180-trogdor-homestar. Switch the panel in the DT to the new compatible and make two more changes to make it work correctly: 1. Add the missing GPIO for the panel EL_ON3 line (EDP_BL_EN on CRD and enable-gpios in the DT). 2. Drop the regulator-always-on for the panel regulator. The panel does not seem to power off properly if the regulator stays on. Signed-off-by: Stephan Gerhold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dt= s/qcom/x1e80100-crd.dts index 6152bcd0bc1f..7d6800dd9b8a 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -268,7 +268,6 @@ vreg_edp_3p3: regulator-edp-3p3 { pinctrl-0 =3D <&edp_reg_en>; pinctrl-names =3D "default"; =20 - regulator-always-on; regulator-boot-on; }; =20 @@ -724,9 +723,13 @@ &mdss_dp3 { =20 aux-bus { panel { - compatible =3D "edp-panel"; + compatible =3D "samsung,atna45af01"; + enable-gpios =3D <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>; power-supply =3D <&vreg_edp_3p3>; =20 + pinctrl-0 =3D <&edp_bl_en>; + pinctrl-names =3D "default"; + port { edp_panel_in: endpoint { remote-endpoint =3D <&mdss_dp3_out>; @@ -785,6 +788,16 @@ &pcie6a_phy { status =3D "okay"; }; =20 +&pmc8380_3_gpios { + edp_bl_en: edp-bl-en-state { + pins =3D "gpio4"; + function =3D "normal"; + power-source =3D <1>; /* 1.8V */ + input-disable; + output-enable; + }; +}; + &qupv3_0 { status =3D "okay"; }; --=20 2.44.1