Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1151283pxu; Thu, 17 Dec 2020 03:33:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQsq+NdSDS3GkKAqqehqZpvlDSV7yU9a1Q+ySBi8Q1b6a7ItfIXnIiMCLK6TUOuP6moj96 X-Received: by 2002:aa7:c3d3:: with SMTP id l19mr38942958edr.366.1608204785471; Thu, 17 Dec 2020 03:33:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608204785; cv=none; d=google.com; s=arc-20160816; b=sQa/G4KHannQez/VYj/pRPZyPsGIgrkYru/GZXUvtev3fJmQ6MjyiQMG1kuBJLLTYB 41rzzQds8QyWmucIR03TxGf9JNDpTHtZNvAYn73huRPKFLj9cCk+AfoAV3AiIUGQGXL4 V1JkztENY4BXdgBQ1o5vUpqnKBzqnuoVysWamnrFqHamM/Hm7OsH9ZxT+Rj+W/j2p2G/ S3oQ+0x7p3RZqyI0KgoUVLjd211+3ni8uKPgZY2gGn2mpzf7Leejx/UMxsLVj0tzIA8J xUjIc7lAIVxxrwm/fwtZRQIs1qa8z70oSTcsf51UMFGP6gJjUgDXFETxYE5lCpzBFi4G DQEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=8LXjb/Tc1qJnE8Xm7FKVy1Ycjgdxs5RwdN6mlYfTAMM=; b=Txanh656uUMfiQn5uBsfHgblC22jOWCEIi3jB6G1l+aO50Dhr70YwAoYySSKhL6NGJ NUD21K+WngpaUsv6cgFnuqRC85hqMMY0mdckP6D2rMp09pdVUIwNZl+PUJ4v5PA23/AM BZEtvRcmAMKSCKazAvGKhUrZfFcb36W3bJMXpwykMhzWI4ZpnpRMF5lKzLWb8K0jPQ6+ Gmgbl96IDh4/8wqu+aPaVk2qCX9NbDjq2aOzz2ykWhnnRSYR0KAMLR0yF8mft+NSxLZf oqCjAi9bf+SsoKQZP/F+uk+I6H+hsROLVr/hB1YGQkiUOwrI5YzKs4jlET++Oj8RwQux M4bQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si2431098ejb.157.2020.12.17.03.32.42; Thu, 17 Dec 2020 03:33:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbgLQLci (ORCPT + 99 others); Thu, 17 Dec 2020 06:32:38 -0500 Received: from mail-oi1-f170.google.com ([209.85.167.170]:35120 "EHLO mail-oi1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgLQLcg (ORCPT ); Thu, 17 Dec 2020 06:32:36 -0500 Received: by mail-oi1-f170.google.com with SMTP id s2so31795258oij.2; Thu, 17 Dec 2020 03:32:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8LXjb/Tc1qJnE8Xm7FKVy1Ycjgdxs5RwdN6mlYfTAMM=; b=rJGKQhZpy2iQZRTUkYhwOMgVFCGxdAVNAk1vYmg1XEMME+KsV1W7aL1GyhyGbDX4D8 2fWksSXL+sHqzXB4qW55tho4AGGgW65408buHasoKXGXeoqXud4jr5oDSa9EoRVJ2Yup uVV4g/zNbR1pCRFXBGDgovZeg/ki2D0JBKEA/lclMQPyCwdq15tUvw7kAawzdTHUXEk6 v1KqlohgPWmKBGQxYtVzXqrwrCo5Uobf+Zid70mRxBhxcRAC/dvorfUyTVFxIUbJeJ/M W6dqaa9gUlyLmRynb0ucPw1sf2h7ZyA4twNy/bhU2fZlJxwhG6riF1LVdnhOLnnvIqwc vpEA== X-Gm-Message-State: AOAM5335l5mEGWjIZxrrsWHrHv+y0dvYSTblTx3M0NOjgQEhgFKZs/Ba moDCA1xrCoIW2TNy1LUWf/Tvkxf/ztawJxHAf69lc5KA X-Received: by 2002:aca:ec09:: with SMTP id k9mr4396030oih.153.1608204715398; Thu, 17 Dec 2020 03:31:55 -0800 (PST) MIME-Version: 1.0 References: <20201213183759.223246-1-aford173@gmail.com> <20201213183759.223246-13-aford173@gmail.com> In-Reply-To: <20201213183759.223246-13-aford173@gmail.com> From: Geert Uytterhoeven Date: Thu, 17 Dec 2020 12:31:43 +0100 Message-ID: Subject: Re: [PATCH 12/18] arm64: dts: renesas: beacon: Better describe keys To: Adam Ford Cc: Linux-Renesas , Adam Ford-BE , Magnus Damm , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, On Sun, Dec 13, 2020 at 7:38 PM Adam Ford wrote: > The keys on the baseboard are laid out in an diamond pattern, up, down, > left, right and center. Update the descriptions to make it easier to > read. > > Signed-off-by: Adam Ford Thanks for your patch! > --- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi > +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi > @@ -40,38 +40,38 @@ hdmi0_con: endpoint { > keys { > compatible = "gpio-keys"; > > - key-1 { > + key-1 { /* S19 */ > gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; > linux,code = ; > - label = "Switch-1"; > + label = "Up"; > wakeup-source; > debounce-interval = <20>; > }; > - key-2 { > + key-2 { /*S20 */ > gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; > linux,code = ; > - label = "Switch-2"; > + label = "Left"; > wakeup-source; > debounce-interval = <20>; > }; > - key-3 { > + key-3 { /* S21 */ > gpios = <&gpio5 17 GPIO_ACTIVE_LOW>; > linux,code = ; > - label = "Switch-3"; > + label = "Down"; > wakeup-source; > debounce-interval = <20>; > }; > - key-4 { > + key-4 { /* S22 */ > gpios = <&gpio5 20 GPIO_ACTIVE_LOW>; > linux,code = ; > - label = "Switch-4"; > + label = "Right"; > wakeup-source; > debounce-interval = <20>; > }; > - key-5 { > + key-5 { /* S23 */ > gpios = <&gpio5 22 GPIO_ACTIVE_LOW>; > linux,code = ; > - label = "Switch-4"; > + label = "Center"; > wakeup-source; > debounce-interval = <20>; > }; Wouldn't it make sense for the linux,code properties to reflect this, and thus change them to KEY_{UP,LEFT,DOWN,RIGHT,ENTER} (or SELECT, or OK)? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds