Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp923967pxp; Wed, 16 Mar 2022 21:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoeHLOEP0NMs5r4uat+1+zADhLe3ldn7fWen+Az+Fli/DgqEuES/yqGzhKlIkDo9d3OihT X-Received: by 2002:a63:f923:0:b0:381:31b7:d914 with SMTP id h35-20020a63f923000000b0038131b7d914mr2195779pgi.121.1647491352707; Wed, 16 Mar 2022 21:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647491352; cv=none; d=google.com; s=arc-20160816; b=QXyp9dqrMd1m+pOh0vnkbVN4pW604PT1amfbdFXrD8ksEnXJuGcE62RR/DD+Iszd7I VWaZ7MPc91zc1IC2GRlQFtLKlIGU+uATCEfndM/NHC6Gf+zZgcg84HeOtpsVcTcEx+A/ nWWYLLehE0vi6J/fCD4nUlT1mOOCPhThfWlipSQFRtkd3jaOhddqLUx65NAOnH1dVGGX lzi6RlXnR9mhoLGxmgtKkAWh1qzGDDnmi8arDwaGc1QwSG8/2yW+tQwB/zKrUujp4iqq /2Xmr/bdxw+qmNQ68XcIz8vw8cMqRO86TgHNjaoYXQQuFkQXuYyCo8ROFuU7BIeWxzH6 i7OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BW2d8Dyp2cExpWVtXoA7gtuiOGkjmYFfLPkZZvWUWuE=; b=qBPHBZHQ8LLmHsYkU00PCjsS8ffHHwK6YnzQGP3d2lqq2wtHWFh+BQm04KFRcFfbmU X9KstE172EUqhgvaQF2bk/BUUkDVvKa0bQv3rCPIhaJHj6MwVaUDhX3Q1F2sepNt+f+m 3QsSDL3NlRhfe01LANDA6idygplJNgmrp0h9IpybBky2xX+AwhTL/mJ14Z0d9h9/SSGe nQmwH6EqMCv2Eq7tIhSJZvO3AxsD2w51x7ijSxqSX5qxqVaGIAugqICarz+4PAf6PkHa Tc/qBO0/SFGk0QCrNyzo7Y5eVwNYh5id687FyUUyRu3wLf7Jbe80x5iwWb8moaXczwxO 9boQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KTPQ3uR8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o36-20020a635d64000000b00381f727a284si951718pgm.423.2022.03.16.21.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 21:29:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KTPQ3uR8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0341FF8B8A; Wed, 16 Mar 2022 20:59:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234888AbiCPQoT (ORCPT + 99 others); Wed, 16 Mar 2022 12:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355976AbiCPQoM (ORCPT ); Wed, 16 Mar 2022 12:44:12 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5481DA19A; Wed, 16 Mar 2022 09:42:57 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id n2so2261510plf.4; Wed, 16 Mar 2022 09:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=BW2d8Dyp2cExpWVtXoA7gtuiOGkjmYFfLPkZZvWUWuE=; b=KTPQ3uR8oeOAQeb5ExlWZJScxO5hlkacl9opU8+ox5Jddua98cFnBMapXDGeqN7AkN /j4abslLcK+1h1QI8EqWclCxcmHVY0VE8vFQJjy3dbM8ihSDevc9bLzIJbhAVHUzCfvX iD0ZW0Mt7qxvC64oowDzxsc22nMuPkrEIEf32pk/yj4DQEVw9oWcp/5niCeuejTEGEH3 /Vi9J1E7nYZXK7tB9OVb/oDQqBr913EvSUfMpBT8x5fNq5upmuH4T8dO6ZoSnUiHkGzy FBiF6kWlU72k/jM0uVJLy89jT95HvLBO8VnM8p0WfYggGfXytUdIVrDYXLrGh8qD6mTf oCQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=BW2d8Dyp2cExpWVtXoA7gtuiOGkjmYFfLPkZZvWUWuE=; b=SLU9ZCdkz88367MptDP3V2M7kPDi1j3QdXOO+wAC2M7ZQx6cJWgyxS/gBwTMWh5n9f 6W3VLJqvpgMd/bCEdZDM9xiZ6DxFg8iK3TSQZjZ8OFg+wYZUqgvOjWuku0DlfHlhUtZE D2DVfojaleSdpfg5oJ6i0krzL12fAAdhVRUjbYWo4UPwRRXfQ1BOxhEVRCI10h+2IcvI zN9eTMywVMe8G2D83m4ixLduP7YktW2yG3nYAtzryNKm5a6oABwWQewH2Dhb+kxSovls Kq73EtHacgzfB8xmcgZdv0qG8mHYsWFsSzXNrU9ca9srhJLUCkiIBcAV3fu7BZ+wGs3N TW3w== X-Gm-Message-State: AOAM532a5DIy+YaNAmTRfEY2sRf59l6ughuMwyGU437qeBpKTW95QPzv IRoiTh5hsEjR0FYjQPQ/sIy9aqdxLick7kHLx04= X-Received: by 2002:a17:902:f686:b0:151:d866:f657 with SMTP id l6-20020a170902f68600b00151d866f657mr534723plg.112.1647448976845; Wed, 16 Mar 2022 09:42:56 -0700 (PDT) MIME-Version: 1.0 References: <20220316151327.564214-1-nfraprado@collabora.com> <20220316151327.564214-7-nfraprado@collabora.com> In-Reply-To: <20220316151327.564214-7-nfraprado@collabora.com> From: Maya Matuszczyk Date: Wed, 16 Mar 2022 17:42:20 +0100 Message-ID: Subject: Re: [PATCH v1 06/10] arm64: dts: mediatek: asurada: Add keyboard mapping for the top row To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Matthias Brugger , AngeloGioacchino Del Regno , kernel@collabora.com, Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 16 mar 2022 o 16:26 N=C3=ADcolas F. R. A. Prado napisa=C5=82(a): > > Chromebooks' embedded keyboards differ from standard layouts for the > top row in that they have shortcuts in place of the standard function > keys. Map these keys to achieve the functionality that is pictured on > the printouts. > > Signed-off-by: N=C3=ADcolas F. R. A. Prado > Reviewed-by: AngeloGioacchino Del Regno > --- > > .../boot/dts/mediatek/mt8192-asurada.dtsi | 29 +++++++++++++++++++ > 1 file changed, 29 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm6= 4/boot/dts/mediatek/mt8192-asurada.dtsi > index bd2730ab6266..1d1a4b9a989a 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi > @@ -525,3 +525,32 @@ &uart0 { > > #include > #include > + > +&keyboard_controller { > + function-row-physmap =3D < > + MATRIX_KEY(0x00, 0x02, 0) /* T1 */ > + MATRIX_KEY(0x03, 0x02, 0) /* T2 */ > + MATRIX_KEY(0x02, 0x02, 0) /* T3 */ > + MATRIX_KEY(0x01, 0x02, 0) /* T4 */ > + MATRIX_KEY(0x03, 0x04, 0) /* T5 */ > + MATRIX_KEY(0x02, 0x04, 0) /* T6 */ > + MATRIX_KEY(0x01, 0x04, 0) /* T7 */ > + MATRIX_KEY(0x02, 0x09, 0) /* T8 */ > + MATRIX_KEY(0x01, 0x09, 0) /* T9 */ > + MATRIX_KEY(0x00, 0x04, 0) /* T10 */ > + >; > + linux,keymap =3D < > + MATRIX_KEY(0x00, 0x02, KEY_BACK) > + MATRIX_KEY(0x03, 0x02, KEY_REFRESH) > + MATRIX_KEY(0x02, 0x02, KEY_ZOOM) > + MATRIX_KEY(0x01, 0x02, KEY_SCALE) > + MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) > + MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) > + MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) > + MATRIX_KEY(0x02, 0x09, KEY_MUTE) > + MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) > + MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) > + > + CROS_STD_MAIN_KEYMAP > + >; > +}; > -- > 2.35.1 > I'm honestly a bit confused about function of this. Does this change the reported key codes via evdev interface? Or is this just a hint to userspace? If yes, would libinput report key presses as F-keys or the custom function keys? Would users be able to use the usual key combination to switch between TTYs? Would programs requiring F-keys still work? Best regards, Maya Matuszczyk > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek