From patchwork Sun Feb 11 21:24:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13552624 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 CB9DDC4829F for ; Sun, 11 Feb 2024 21:24:57 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KgZs0nvNhd2OOjbLYTROjnRLKK2ARUYlLQBcCBRrzDU=; b=AJyJokK/7+R33K Qa0z5Z54tfhSB51CUo5s2RTXn5JMDSe64vWNVGvwVpnCmFgAe4lSoFJL6b3bqSVsyiayFRBps4tss WRgE/8zDFQg48dsnpJJpEaePwXW7XpIVVPLpnZ5Qt+cUcW1r44FHkMitEX8Ui+w6O5f+K5h8wl24I FptIXAmF6VMm3kpF5CIBPubCcx8s31pPkSu3HbSKFLyHH1LydihATDIVR2NKnqB9bppwNxxEluwGO SKwMEpivbsvc38C559flJbJ8NkeKCYCgc1ywU1OqJkb5s0BaoZEfcOxKphGC/ekwQn5RHtYV4EjJl QOaqmnsFo8eSI72ALdMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZHJX-00000003LCd-37ej; Sun, 11 Feb 2024 21:24:39 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZHJR-00000003LAH-1uOy for linux-arm-kernel@lists.infradead.org; Sun, 11 Feb 2024 21:24:35 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2d07ffa0a9cso29043111fa.2 for ; Sun, 11 Feb 2024 13:24:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707686671; x=1708291471; darn=lists.infradead.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=ZM1XIaD3ecrXLxEb1Gsx+3ajyZG58aa345Y2A9SVCU0=; b=uuUYoKVSV3J1iTvmhg9nBTPEt+Gh/W16xQXfCLiL7abk1OiaXUapx4vn9VQt99PldV dHj9ZYMR3HAqEUMwW7bTQL40o8VACTa/lwoOotwCI1QajN/Qb17EaR00139Bcl2uwaWc jCBPk7/ORyrDyQSYbGqKRr/RrSz94oII4t3ErBjpnGSrw0+rSDtSwACIR/w9azYZf/qd 7dqMwww+YExjKr3iI3htKn21rhxcVMAF9tLa8pQjqMOyZEh10m96satbI88V+9Hwg383 LtlpL8hlcC6Vn0q567DaknzVug2Fz9W/lJIQHz0R1pwgDPWzVfzN9SAkrwmbtNBCOYKz xAWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707686671; x=1708291471; 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=ZM1XIaD3ecrXLxEb1Gsx+3ajyZG58aa345Y2A9SVCU0=; b=fuZtDfVBBAhxQcCqTz7bCKx9+4p7/23iCt0DwIToQyb7LeCE1k+V9tt8xHXzNUOYqK KUhSH456tKf1FUXYd1z/lGTp0T31TdPvD59Utr3JAW0pmMKhDPcoXF+OTookZcUYNpZM aJ5+Bi5SUwYfdIdZ7TrCDgLeMFz4vfq3pZwRjzwrcYobGGTxiWj8zJatvMUncq3r44Xv TFT4balpIugHn3Lh4lv/ktnfNYoCO07sakD1QJ7cXhmXDcejtj/Dez02LOnkT4DhhCcd VmgXK+lfQ1Y1BKSUhOgEE7QSmndvs7Jjjhd5bdY5Vmk0vMh+wOoZr8byiAd/zwZw7uWm ubaQ== X-Gm-Message-State: AOJu0YxShJyzO2lXgeAN53cjv3GsZOV6GE1IZK6nKmAZKJIO0bfnPvwu 05JcqAs6hsnVcDEFUNpKCFmfxSfp3m+dXdUG8zn394CLJYPABi5alMacfgzLhLA= X-Google-Smtp-Source: AGHT+IFozJUWcdMIObw5s9xg8xEz4tg7IbyDH7wOa6wzeGpHQkxs7qISL4cpwNIfC1Ma4jngJPccbA== X-Received: by 2002:a05:6512:b95:b0:511:47ed:d744 with SMTP id b21-20020a0565120b9500b0051147edd744mr3944622lfv.12.1707686671313; Sun, 11 Feb 2024 13:24:31 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXIX8aGnTvZf0NC9xOJoKWeEuzl/ob3qL31m+DMzAo595IopD9Njz6Y1qbWu1Pg/G2QiEiSdlTrVS0/oZUf5nyPcJ804WUl6uxPN1EySzadF3XAKBFE433FCoU0EX7ZfHZUSoazEHgac2RIY/K9GqZG2uZ6RRKkD+15MNyLXXW/54+iSyFCcYgD+1ZqNrVPNIYI4aCBV0pIfzkO2rWyKdgfui/BVvD+2tuqdxng8HA1Mw== Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id h8-20020a056512220800b005115edd71c9sm623684lfu.165.2024.02.11.13.24.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 13:24:30 -0800 (PST) From: Linus Walleij Date: Sun, 11 Feb 2024 22:24:25 +0100 Subject: [PATCH 3/4] ARM: dts: gemini: Map reset keys to KEY_RESTART MIME-Version: 1.0 Message-Id: <20240211-gemini-dts-v1-3-6c09adeb4c2e@linaro.org> References: <20240211-gemini-dts-v1-0-6c09adeb4c2e@linaro.org> In-Reply-To: <20240211-gemini-dts-v1-0-6c09adeb4c2e@linaro.org> To: Hans Ulli Kroll , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_132433_541587_839DC95A X-CRM114-Status: GOOD ( 13.02 ) 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 This maps the misc "reset", "setup" and "facory reset" keys to the only key a standard userspace is likely to understand: KEY_RESTART. On OpenWrt this will simply restart the system under controlled forms. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts | 4 ++-- arch/arm/boot/dts/gemini/gemini-dlink-dns-313.dts | 4 ++-- arch/arm/boot/dts/gemini/gemini-sl93512r.dts | 2 +- arch/arm/boot/dts/gemini/gemini-sq201.dts | 2 +- arch/arm/boot/dts/gemini/gemini-wbd111.dts | 4 ++-- arch/arm/boot/dts/gemini/gemini-wbd222.dts | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts index 30c931415680..b4dbcf8f168e 100644 --- a/arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts +++ b/arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts @@ -27,10 +27,10 @@ chosen { gpio_keys { compatible = "gpio-keys"; - button-esc { + button-reset { debounce-interval = <100>; wakeup-source; - linux,code = ; + linux,code = ; label = "reset"; /* Collides with LPC_LAD[0], UART DCD, SSP 97RST */ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; diff --git a/arch/arm/boot/dts/gemini/gemini-dlink-dns-313.dts b/arch/arm/boot/dts/gemini/gemini-dlink-dns-313.dts index 138c47e1ac1b..8c54d3a5a721 100644 --- a/arch/arm/boot/dts/gemini/gemini-dlink-dns-313.dts +++ b/arch/arm/boot/dts/gemini/gemini-dlink-dns-313.dts @@ -33,10 +33,10 @@ chosen { gpio_keys { compatible = "gpio-keys"; - button-esc { + button-reset { debounce-interval = <100>; wakeup-source; - linux,code = ; + linux,code = ; label = "reset"; gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; }; diff --git a/arch/arm/boot/dts/gemini/gemini-sl93512r.dts b/arch/arm/boot/dts/gemini/gemini-sl93512r.dts index 91c19e8ebfe8..be06a3815e3a 100644 --- a/arch/arm/boot/dts/gemini/gemini-sl93512r.dts +++ b/arch/arm/boot/dts/gemini/gemini-sl93512r.dts @@ -43,7 +43,7 @@ button-wps { button-setup { debounce-interval = <50>; wakeup-source; - linux,code = ; + linux,code = ; label = "factory reset"; /* Conflict with NAND flash */ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; diff --git a/arch/arm/boot/dts/gemini/gemini-sq201.dts b/arch/arm/boot/dts/gemini/gemini-sq201.dts index d0efd76695da..05ef8b80f104 100644 --- a/arch/arm/boot/dts/gemini/gemini-sq201.dts +++ b/arch/arm/boot/dts/gemini/gemini-sq201.dts @@ -30,7 +30,7 @@ gpio_keys { button-setup { debounce-interval = <100>; wakeup-source; - linux,code = ; + linux,code = ; label = "factory reset"; /* Conflict with NAND flash */ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; diff --git a/arch/arm/boot/dts/gemini/gemini-wbd111.dts b/arch/arm/boot/dts/gemini/gemini-wbd111.dts index d4038930c70f..6a0c89e0c918 100644 --- a/arch/arm/boot/dts/gemini/gemini-wbd111.dts +++ b/arch/arm/boot/dts/gemini/gemini-wbd111.dts @@ -28,10 +28,10 @@ chosen { gpio_keys { compatible = "gpio-keys"; - button-setup { + button-reset { debounce-interval = <100>; wakeup-source; - linux,code = ; + linux,code = ; label = "reset"; /* Conflict with ICE */ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; diff --git a/arch/arm/boot/dts/gemini/gemini-wbd222.dts b/arch/arm/boot/dts/gemini/gemini-wbd222.dts index a503bcff5f4a..d8b34ebad4b0 100644 --- a/arch/arm/boot/dts/gemini/gemini-wbd222.dts +++ b/arch/arm/boot/dts/gemini/gemini-wbd222.dts @@ -27,10 +27,10 @@ chosen { gpio_keys { compatible = "gpio-keys"; - button-setup { + button-reset { debounce-interval = <100>; wakeup-source; - linux,code = ; + linux,code = ; label = "reset"; /* Conflict with ICE */ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;