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 BAFF612C491; Tue, 30 Apr 2024 10:54:41 +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=1714474481; cv=none; b=u4Wrk4QrzxQ7rbI/kMrnqiaOOtQu8J5Y4YUhqTaAmYSW0b81InSEwUw9CQuWPBEYJS5MjJ5zfOo6RA8PPhIpjiI0t0IMu5lz/L9wlr/6TJz/EqcaXkahtFVMJfjZ42ixUq6ROSqYNpqqa4pJyGQ0gjtg8UFYPxAaVMP0HS3mKo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714474481; c=relaxed/simple; bh=aO5yhu/keSGpdx7StUbeWklnTY1Wj9V4f2HjGf/FLRw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AqgJ2TCV/bOkhUEMC3wgoKB68kIXOFEqKWBQSP8NcI0oYA9ZVeG2Et2Q2Z1gi0TO0/LbAb8I65i8ujB6yY99zPo1FXsRBUVqWymLkHEoJh8dLNF9T1879qR0m/rP+LY0RdDyaBy2G5FQAMCZFk4iWTFA+ie4CwtuVpTHBwXcrkI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d+eUkElO; 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="d+eUkElO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43E2AC2BBFC; Tue, 30 Apr 2024 10:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714474481; bh=aO5yhu/keSGpdx7StUbeWklnTY1Wj9V4f2HjGf/FLRw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d+eUkElO2LDVHYOXGX4DV8NNRVudxH88zXUDsWbLu+78RK79JN8ypiyk+6N/XdyQh NZLJn+EEmdk/nap2OHn6Saha9O75Y8e5656Jw1QkIvSybhb8iwi2XEpAQnWBQ2txbK fhM3nAXddXyC7YTfLv2Ig9GDRi5rtirwpngHERK8= 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 6.8 169/228] arm64: dts: rockchip: enable internal pull-up for Q7_THRM# on RK3399 Puma Date: Tue, 30 Apr 2024 12:39:07 +0200 Message-ID: <20240430103108.682138029@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430103103.806426847@linuxfoundation.org> References: <20240430103103.806426847@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 6.8-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 @@ -422,6 +422,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 =