From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3936B12C461; Tue, 30 Apr 2024 10:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714473922; cv=none; b=T7xuNmHsMZY7BLWAC/NAL8exVwq/Y0RNI5lvJ07dYB/zgnu4cGcwdqVjN59utSasyiEf5bD2j6mGphAUlt3u7UBBrXyqWBdKNCJLx7zC4OOnUWwC4CLiUx96NPrZN3CkscN3N+hYwGBrtuSELSY0wiVixXVbkh8+WniMi60v/Qc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714473922; c=relaxed/simple; bh=EHCuvdOpnLWkIyn4CbtMVFYnQXrS5Nlol9131yErSF4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rbp8rycj/IZOwRSrEigs5/IQTgAVewdcSCXPyU0hpnjNfE7UA8CGECN9JD+GNw0Ot8V49lnfhE20XtU3/3InNwne+x1F2zfFTjT4MCXYPEGLWM/OGjzGq7cbFU7wOW/e28LeW9mETnOjw6V1jxkhe6DVSgRXxTxfeJXctrt/IUM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lIwU5XAR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lIwU5XAR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB1F3C2BBFC; Tue, 30 Apr 2024 10:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714473922; bh=EHCuvdOpnLWkIyn4CbtMVFYnQXrS5Nlol9131yErSF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lIwU5XARWAx6xM07oSe8udkYH27YGFLdC2FewnBtZSgJ8aDXzXGb07pBFzOn0JTDr gRMt2OSBKpqtHh/t51pycnPXQQ6HQM9mDwIyGfv0761PiF3lv16p39qY7Hl5L+G9Xt q3FRF5A7x/ZgWjCcVwUA3GiZnKNghyPurkMVgCKw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Iskander Amara , Quentin Schulz , Heiko Stuebner Subject: [PATCH 4.19 63/77] arm64: dts: rockchip: enable internal pull-up for Q7_THRM# on RK3399 Puma Date: Tue, 30 Apr 2024 12:39:42 +0200 Message-ID: <20240430103042.998345183@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430103041.111219002@linuxfoundation.org> References: <20240430103041.111219002@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Iskander Amara commit 0ac417b8f124427c90ec8c2ef4f632b821d924cc upstream. Q7_THRM# pin is connected to a diode on the module which is used as a level shifter, and the pin have a pull-down enabled by default. We need to configure it to internal pull-up, other- wise whenever the pin is configured as INPUT and we try to control it externally the value will always remain zero. Signed-off-by: Iskander Amara Fixes: 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM") Reviewed-by: Quentin Schulz Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240308085243.69903-1-iskander.amara@theobroma-systems.com Signed-off-by: Heiko Stuebner Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -432,6 +432,16 @@ }; &pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&q7_thermal_pin>; + + gpios { + q7_thermal_pin: q7-thermal-pin { + rockchip,pins = + <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + i2c8 { i2c8_xfer_a: i2c8-xfer { rockchip,pins =