Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14265280pxu; Mon, 4 Jan 2021 18:25:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxetlshmYJL5UF0dC9B8ZK3rcxT2+ctqWkDhFss+r0xGuiyLbIdyrTvDagJtIsBetcz+aOK X-Received: by 2002:a17:906:7215:: with SMTP id m21mr58719105ejk.248.1609813531862; Mon, 04 Jan 2021 18:25:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609813531; cv=none; d=google.com; s=arc-20160816; b=XkjCf9YY8YuZYg4CEXjzmjp1P3iOgpyzRJKy568oBTiI5rijKdQVosZ2YIgu8UBXih iS9YXz/Ga3s62FWq/yvHNPS+widaeGa4x/CGNSs6AJMgwBYfA8IkctuEtohDDhV/U5Oz nowoVRZOHhhiX77gQNfFo3LWn/i6DF4RfK2JFbRVJc/n5zWb+t0x92XQfquT3Gnmo0pK qNP4iZNUnU/eUhrRvcFdOfmkgM+Ft8SVSMHii61QBYlxtyBEpHMQBEishNIq5QrQphfx KYEe8A1bAelKRaXvRzw+I/R+yIjn8dZGlYmcUxfuaB5dowpirrgFoMrwkigQuzfoul5t Zu5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=F5v4P5OpFzV6txdYAKpaZWpOyrHHIe3zcVp3Rukxxyc=; b=icZO2iIG0uBaXlgSBQVCwGaZI8R8aeK3vvK0/FcTEh/p8XA/BDdmBldzb/QJTqtG7x 3r7+lDHDNBt2Cs+Lj1+v6jqzNKvW7vHjq5vPM4FV5regx1Lo3chlMA1k19oL3aOz7Yp7 ZoAYlmSmg14TKf3y/pbR+daJeImTo5YS+B3+F5KJwxYHHtbFioD4kA7vqtOJKrJ0+7W5 FnIsBvdf5NrA3pirvpn1GqjphZJCQKMkinLpGy5n8MBlVXyz/vdmuaK1L/qi2Uu/+uLS Ca0aNWQZZw6M15mItGWLqJzPjugCR6BsIK/r4D6xDnVxyLXnwBPvLl9s5+jrHCKDB74p QwbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Fd9C5eh1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si29016533ejk.273.2021.01.04.18.25.08; Mon, 04 Jan 2021 18:25:31 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Fd9C5eh1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728061AbhAECXV (ORCPT + 99 others); Mon, 4 Jan 2021 21:23:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728047AbhAECXU (ORCPT ); Mon, 4 Jan 2021 21:23:20 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69D0AC061795 for ; Mon, 4 Jan 2021 18:22:40 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id x18so15571440pln.6 for ; Mon, 04 Jan 2021 18:22:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F5v4P5OpFzV6txdYAKpaZWpOyrHHIe3zcVp3Rukxxyc=; b=Fd9C5eh1l5XGQUug3JLCx6bXUXKY2FUOKpd6xlqkQRS4CPI390Ko/dfC8c7+vc+ZCB 8LRQiiZclIEgvq2hT9O1puypOipuNsqJg3xHYYFMfBXXj6OYTmYqXk4UNMPP8vIfNzbd MvNlgkR593pRrJ5kR/GRGLiJPzW26BDErirJ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F5v4P5OpFzV6txdYAKpaZWpOyrHHIe3zcVp3Rukxxyc=; b=EZsyGGSpAgH6LObCybk7Gl9NuMl0sOMN5boXYflBqPkmzaZsKnwYiAtbu0oyYjgnoH we6GUri/xAbxqd4Slz25QcdIkWLQBHCRwDMJOi5P31AztrM+rlm8lIAB3IfMP3XvqTNa U3AVcUjLXOzeYIfNgVrUS7g/5fn5ehNp4mmWTlLlUKyGQuTtZmrOSMMciulQHvtAqmso Jbv8tzmyPwTqbRbfbxhxBRcX2GGCwusRdfCHCvVYETWCMy76/Rh8B/XDXqSZ2wwUfScO UL1VI+Nsm9ISdcrL7VBpj5K3DsuztxAMFTpgFtD6t/5Zl0sfOUOQLnvLmBbaNugA65jS BIwg== X-Gm-Message-State: AOAM53124RU6/7RAmY6le9oUbLrDHy6HURjZtmkjq7rUCe2EEXJFEbzY 3zKEA9hoihg7zJsfN4DtmZy1a80/8nhhfQ== X-Received: by 2002:a17:902:778e:b029:da:feef:8f2d with SMTP id o14-20020a170902778eb02900dafeef8f2dmr74759358pll.25.1609813359737; Mon, 04 Jan 2021 18:22:39 -0800 (PST) Received: from philipchen.mtv.corp.google.com ([2620:15c:202:201:a6ae:11ff:fe11:fd59]) by smtp.gmail.com with ESMTPSA id t23sm56732903pfc.0.2021.01.04.18.22.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 18:22:39 -0800 (PST) From: Philip Chen To: LKML , dmitry.torokhov@gmail.com Cc: dianders@chromium.org, swboyd@chromium.org, Philip Chen , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Rob Herring , Simon Glass , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: input: cros-ec-keyb: Add a new property Date: Mon, 4 Jan 2021 18:22:33 -0800 Message-Id: <20210104182154.v3.1.I025fb861cd5fa0ef5286b7dce514728e9df7ae74@changeid> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a new property `function-row-physmap` to the device tree for the custom keyboard top row design. The property describes the rows/columns of the top row keys from left to right. Signed-off-by: Philip Chen --- (no changes since v2) Changes in v2: - add `function-row-physmap` instead of `google,custom-keyb-top-row` .../devicetree/bindings/input/google,cros-ec-keyb.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml index 8e50c14a9d778..7acdb33781d30 100644 --- a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml +++ b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml @@ -31,6 +31,16 @@ properties: if the EC does not have its own logic or hardware for this. type: boolean + function-row-physmap: + $ref: '/schemas/types.yaml#/definitions/uint32-array' + description: | + An ordered u32 array describing the rows/columns (in the scan matrix) + of top row keys from physical left (KEY_F1) to right. Each entry + encodes the row/column as: + (((row) & 0xFF) << 24) | (((column) & 0xFF) << 16) + where the lower 16 bits are reserved. This property is specified only + when the keyboard has a custom design for the top row keys. + required: - compatible -- 2.26.2