From patchwork Wed May 11 09:52:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1629532 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=CHxFy3GQ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kyqyb4VdJz9sG0 for ; Wed, 11 May 2022 19:55:03 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B8018430D; Wed, 11 May 2022 11:54:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="CHxFy3GQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2B9A2842FA; Wed, 11 May 2022 11:53:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AD988842DF for ; Wed, 11 May 2022 11:53:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x630.google.com with SMTP id g6so2963133ejw.1 for ; Wed, 11 May 2022 02:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5sAzUjplIuyh3am5ubNnYi/MYeL4yKXyr+NDj9YCyBw=; b=CHxFy3GQnuYpUmEM9T3sy2BP2CQ6mJvp/4jJ7VaqqKdVY6kfh10S0RCrLAp7TfecWr FnrJm9bm1xgxMvPLp0axIMZSMpAkBsjMGSEVn+2Un4RCkB8KuOXZw5bdVPrey6kOhUlQ XusoJs2hywiqhnFtPfD1I+BY0CqB8EN/ra6qjOqTpVPHCvR1NY6Kw5ZxFOezMcVsWAEd m3RbWoOoRS1V3sxQfsN+/ONuAXw5gfGCf8Vmwk/ARfTEJ62jlrY2Z9Ih8EHMIAxouuAm DUp78/dmMvlDpF505UqnCvsyAoqpi+myzDWlcCuMP0vYTTrsxmfZP4LdOiEiKW7xRckz ChYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5sAzUjplIuyh3am5ubNnYi/MYeL4yKXyr+NDj9YCyBw=; b=svmq7b6ivqkPmDtDVlnmZdyMA2xAa4qu0GMWLeYUMDedpbpkv/5x2loRphIFtsi9P1 7Z8HFppYMUsf5mYoF3+mNzhalkQS9qV1pMyQBdchAkNzYyl+UVFdFBH/9k5f0Kc/3EUN ZajllitpGkq2DkR6Xfphtw45jXXz2ztM2/9GB3f7pZsbEopMW8wnI71EffOTwSSAtczR 4ZWDfZ5T2hxFdg6lkC/ch7WI+N19NVjOyZiq3et6XsWjohBu/qbUX/nAVS24pHLAOY0+ FQy87XbSoNr8918miXUIkUwL/MGEsoo0603DArhidMaGkEZW+6ie/XpFyuikAORU+/ah vKZQ== X-Gm-Message-State: AOAM530b6kGAQ6KdeBWn1FTy+rKIlgdLyUgsMdckZD+cLO6h5yP7mJw7 yMfTdN6iMUgXhMNTSnZOU4XIwxf/9zaxXQ== X-Google-Smtp-Source: ABdhPJzVX5naG7nyeVCH3c6KSrelo5tZh3udIQJEeKLZeDwP3ugBLpRj2P5ujN8FkhVdGcxrInjVJQ== X-Received: by 2002:a17:907:d0c:b0:6f4:a5b9:3799 with SMTP id gn12-20020a1709070d0c00b006f4a5b93799mr23564250ejc.732.1652262788687; Wed, 11 May 2022 02:53:08 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id l20-20020a170906645400b006f3ef214e45sm777287ejn.171.2022.05.11.02.53.08 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 May 2022 02:53:08 -0700 (PDT) From: Michal Simek X-Google-Original-From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Radhey Shyam Pandey Subject: [PATCH 09/10] arm64: zynqmp: Add linux,code for fwuen button Date: Wed, 11 May 2022 11:52:53 +0200 Message-Id: <7f6d627473632c3c3036ec9f6aaa36e00f4615e2.1652262769.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean BTN_MISC looks like the most reasonable option for this button. Button is used by firmware to indicate (after reset, power up) that user wants to do firmware upgrade via firmware update utility. For bootloader or OS is this just user button which is worth to have it mapped. Also button can be used as a wakeup source and pressing it for more time can generate more chars that's why also adding wakeup-source and autorepeat properties. Signed-off-by: Michal Simek Reviewed-by: Radhey Shyam Pandey --- arch/arm/dts/zynqmp-sm-k26-revA.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/zynqmp-sm-k26-revA.dts b/arch/arm/dts/zynqmp-sm-k26-revA.dts index 35fab915172b..7c2bfa395da7 100644 --- a/arch/arm/dts/zynqmp-sm-k26-revA.dts +++ b/arch/arm/dts/zynqmp-sm-k26-revA.dts @@ -56,6 +56,9 @@ fwuen { label = "fwuen"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + autorepeat; }; };