From patchwork Sat Oct 26 09:48:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852175 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 0D9C5D10BF0 for ; Sat, 26 Oct 2024 10:04:04 +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:References:In-Reply-To: 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: List-Owner; bh=PrsNGdnAadfBwXP20jHuwSNguLn7fgbMCF6Ulkb1xdc=; b=RAkvkChbua6afY 9cTFLwMj/LmCwlQKUqLv2xFmkFRmtxiXw6LHPMklp0PTSO0/uOVDOgyvQpcf3Dfryasf0CkGMXstW UkiXteb7Tu2wpFK1uCYg/V/pn69tk7Hl3Hu2sDPLZ+zGjalT7ge4VzgWMgkrY5P4Y2f1LYZGD0IZb 1sogyS6d0ChBuhfO1luRZ4PdUHtrJYx2omUDZScGjfX/GH4cYOJitB3/029dXpnpmu7Ub9AzVDvl7 sRgHqYEW7IrwU+d9Jd9Y4hT1e+oRx7m1Q0sjn9spxeI4DgHyaRs4jObebBpUUA3Ds95/bLtens7Jy WZraYa/BisIes/tDlJnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deK-00000006L5e-0bex; Sat, 26 Oct 2024 10:04:00 +0000 Received: from mail-oo1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4deF-00000006L1m-4Ax0 for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:57 +0000 Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-5ebc27fdc30so1470187eaf.2 for ; Sat, 26 Oct 2024 03:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937035; x=1730541835; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j77KWwRpwdnVY3lCC0n6YIiNduwJAHFH4SxLmtm7q7M=; b=gP9hNHXcnBSIytzTyTbplJaGGT6djXiQeVpBE4huVWcfhASjfMSHUSgiSgUHj+xqKs rkAvQRbs8f8S5Xufcn+0Uwvgao59VRORNKsCgXmFIvWWYzyCpZr8xOYgKgg1QIsjXked tyCoSFUldaLOxa5kkQcnBZYKUktfkVnlKO9tJa0Wk5JsEGviGfgXT9ZtRz4kPIv60DLk rDApWibtNW5pBkrxxwla+mc0hrT82ZB0Xvw5KUKpGcQ9c9H9kVfDj5MHjCKB2vcz4z9h YL1+zpkbym3Vxz93FIRYFvHKDYxfxApFUeZMhGeb+S30BCRKyZ5MS0nss17fz7IzCwkx ovSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937035; x=1730541835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j77KWwRpwdnVY3lCC0n6YIiNduwJAHFH4SxLmtm7q7M=; b=HHyHXOfRSZMPzMlvl3HA9s2pyjV85CDUyYlE8LImvhU/xa0Nf075B1CZte1RaUdXIw igjLSufUCbr6JHvap4WLmzOsHXsZyHivi5NVF7oXqKQOE889l4nPbvGZ2i0EDAHHdnfa U29ux3CTVHzC4vg/12h6qLGhE7wehAboLbXRKbTCYPa7rRU5WCnBTXAF2u5L782P0ltM xf9C6kEtns68Z8lC/l50SXMZW/UNy4xmu8lmGy/kArHvu1c5y8pxQXOfJ2pxVzcuueYb Xd/Wn3GZyOgob1R5lPshAcWuToBPozymZNCyPHRPPHlBxLZH0Bua9M5t5E+HzwRPbQqT RO5w== X-Forwarded-Encrypted: i=1; AJvYcCU2qSTpkrxbqIkHTWm87DGNhj271ImGLUCh4O+sX3+RC7xEagWsTc4xaqmSrfzuI7L3Yk2XXb+HDvqjJ1qq1A==@lists.infradead.org X-Gm-Message-State: AOJu0YwbXX6AsoYq1+G894NInxnn4YeklQ2PwAcM1gzvbM1PKl88ycZI UBVQ5KfxBQtvo/3V1hpjGvKJb+rZk/o25cAaF93Hn5XMrh9FM6eJnl3B6hy0 X-Google-Smtp-Source: AGHT+IEAeskIPyT/zTUshOLEFJYmCv2iSXITusyenV7WUrE1LYyGFixIwD+ymSeTaAxnQ/YBcjs2Gg== X-Received: by 2002:a05:6870:390a:b0:270:7a7:eaa5 with SMTP id 586e51a60fabf-29051af0d75mr1684528fac.10.1729937034743; Sat, 26 Oct 2024 03:03:54 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:53 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 13/15] arm64: dts: rockchip: ADC button for opi5max Date: Sat, 26 Oct 2024 04:48:29 -0500 Message-ID: <20241026100310.52679-14-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030356_139987_D0D1B839 X-CRM114-Status: UNSURE ( 8.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Mask Rom button for the Orange Pi 5 Max Signed-off-by: Jimmy Hon --- .../boot/dts/rockchip/rk3588-orangepi-5-max.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 0cf0e30a503a..dc5de21cddd1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -3,6 +3,7 @@ /dts-v1/; #include +#include #include #include #include "rk3588.dtsi" @@ -20,6 +21,21 @@ chosen { stdout-path = "serial2:1500000n8"; }; + adc-keys-0 { + compatible = "adc-keys"; + /* BOOT_SARADC_IN0 */ + io-channels = <&saradc 0>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + poll-interval = <100>; + + button-maskrom { + label = "Mask Rom"; + linux,code = ; + press-threshold-microvolt = <2000>; + }; + }; + fan: pwm-fan { compatible = "pwm-fan"; cooling-levels = <0 70 75 80 100>;