From patchwork Tue Oct 18 07:22:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13010089 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D69E0C433FE for ; Tue, 18 Oct 2022 07:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=frhZYqsBLTVh3WyMmWuiB8kmvF13xcW5YoRHRJh4j0c=; b=Hn5zzamHYI0Nu1 jzIJ0wWNjSx/M6E7QIG3L3ZnuhbCcrwo/2k1evB7BV7c1ZaPGNK+UjpjUyDo1vLJtSLAVr6zK5yCV hrMyPQa1HaU9Dtia3Cnop1IpHhKoGHdEr9xCezxQGeUkAYc1IZyGAJQ/udwdjOqEVCOA4yWbNVdvl mwplqywIDtuAjIrNkazNBlHR3/jwCCe8EhdDSdrDf6aUV/EBvniNISEeAjCUBI5H92i3xRZpkAeuZ vtobupTb7HKdfuKQmuarUidQOXLrZEqyMFAU1JgeoqnfwyflE/uW4VK7766pg8Vsqh+T2YWTjGz4q umIaQPBBKMFR2jmYew5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okh0e-003oaM-IZ; Tue, 18 Oct 2022 07:27:32 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okgzp-003o8t-AV; Tue, 18 Oct 2022 07:26:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=j2x/tukiTdgK7QI1z5/TEZ5O0oUzKNoDQjvjoeexNhA=; b=G16NfY/nvw6dIjAL12LRhjM7KC ZIHJGy3yYaafQ2/Xb5ohr5cNsoi47QVxhu/pXbvV37zhlYrPsVU93oA5OL2OwaF/GM8lNzV5qBbDJ eHi5HnqRqCnHmQOdjQZzMYj63J7gr+ITecS01RtNq4hgv2jllrROcVqz2n8LtuVoNebRDiIXcAaYD iNOPrnhOPsz47HL05NItDskaQ2EcBXgQrDog6/8zNOu0nrSNYZIr8VvgwvJKv9tzCLVp/uUuzioA9 CPUpWvK/1dVYgvhrOfLJ33WroScnxmywm4XfT9Pj9dei+bB3ObgGuQqiRamNZjECE6pA82RMc+Cfw fMcLFm4Q==; Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by casper.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okgzn-00ASgr-ID; Tue, 18 Oct 2022 07:26:43 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 29I7N8bU032567; Tue, 18 Oct 2022 16:23:09 +0900 From: FUKAUMI Naoki To: heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH 1/2] arm64: dts: rockchip: enable tsadc for ROCK 4C+ Date: Tue, 18 Oct 2022 07:22:42 +0000 Message-Id: <20221018072242.2348995-1-naoki@radxa.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221018_082640_208118_5FA47CD5 X-CRM114-Status: UNSURE ( 6.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org add and enable Temperature Sensor ADC for Radxa ROCK 4C+ Signed-off-by: FUKAUMI Naoki --- arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts index f9884902f874..309c35d7fca8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts @@ -601,6 +601,12 @@ &tcphy1 { status = "okay"; }; +&tsadc { + rockchip,hw-tshut-mode = <1>; + rockchip,hw-tshut-polarity = <1>; + status = "okay"; +}; + &u2phy0 { status = "okay";