Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp18397pxb; Wed, 13 Jan 2021 21:51:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/OSCrblDiBF3MVUCHRJDZMwVtMFANvz7jk3ltxF667rVyIO1XOmL5GkDsvAzoQwpy16du X-Received: by 2002:a50:8b61:: with SMTP id l88mr4608906edl.250.1610603482735; Wed, 13 Jan 2021 21:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610603482; cv=none; d=google.com; s=arc-20160816; b=QBugEXVHpdpRS3sEElKhWZtRnph/9m7954hIQcwHAJqxUym2ctfuKyebqUBtp+lWsR gCsUqv0DmoiBGRfwHRUN2uktRr86zXvM59+A8AmFXy1hx4KrEExjIRUluW7+lnEkybFX 9KnuELlXxvpm7HHZF8Y3eQ0w1hhVtUkROkz4+OCEfbShagjV07VSK0NWGjZmRtN5ssar uKl13H4NtEhKl0n4M4VwuQRLI1JeHRkkkrUC6jxfnsU6OcXPRGUbumZfnU07PSDh3XuD ekrVBBdlzcOyWQ8F8SGdWSPGNaN/7mpCAlFWCZLAmCFXf1V7V6QsA6KpMAlIObbPFbNn J/9Q== 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:dkim-signature; bh=Vol3zGubhfmNLDPSAvceCN5gTPtshg95eaji0lDtBVU=; b=MLaZmNVO9SiJ3s7ksj9b9vIxm0dnHzKFMMhUp7Dbnfqk/Vrn0ZdJ94P25r9ED7+Te/ 0gu3xoAc4eb6guVJdkEN8xTahrKIlnskq7ZYnh0gFtDiYfGjNN0yaqPO5W40/tJl8CRf Y0lOeHezp3FhOV3hDWv/oohOpYslP4zYlkFFHS7gt1AKbaCmNTx1TYwqp6TOa5HGZXMU lsE0sps6TMDNQUVPRet2lAtN0f5rY5UCGqBE9uM3uhGXl4xPs06bd2KMNwpou/o9o8pA ljHqcF9Aq8n5hooyfE57IYNjHdkmqai0m6Qu3HhpjFUw6ScfXtdTF/YeKyLILVSNNCP0 0veg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PEu80fRt; 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 y1si1924840ejg.277.2021.01.13.21.50.57; Wed, 13 Jan 2021 21:51:22 -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=PEu80fRt; 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 S1725997AbhANFsk (ORCPT + 99 others); Thu, 14 Jan 2021 00:48:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbhANFsk (ORCPT ); Thu, 14 Jan 2021 00:48:40 -0500 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B591CC061795 for ; Wed, 13 Jan 2021 21:47:54 -0800 (PST) Received: by mail-qk1-x72f.google.com with SMTP id w79so5856411qkb.5 for ; Wed, 13 Jan 2021 21:47:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vol3zGubhfmNLDPSAvceCN5gTPtshg95eaji0lDtBVU=; b=PEu80fRt0DlVSLPvQ9uU/MxFhm0chePgZxfehQ7zMqCkR69L1+9YqLG0tnnuZ0FN88 Iw5B6tFTTeL8t3/CCQYHHwi8Y8u1c4vgdYYKlAYg0Du1KvksA0AHzTl9LhW9eWZ8iF/k rp+koUyN3zIEqAPbngOhbOsPu3TvAFl0Sqd80= 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=Vol3zGubhfmNLDPSAvceCN5gTPtshg95eaji0lDtBVU=; b=GGKeF+Dnlb/M0hEABk8SaKgkB/i+ijC9OQfiuX84hG15x9ixAVaf9vGE/J4Q+cZdrA bmD3+OyE6o0tW8PB/I/nNDVB31eQnCJgVtggHtjQ7eqeAvh0mRfqCP1wm+mf919iUth2 IKXJbSitKXsBLfZnnZRQU/gQ3LdyRnwojIikqOM72jjJj2or79/NJhvxeoOBUox1LJbG UmPgf4dcf/uvUkqLZz3N3TWIDLePXnFNZd4LMHfpe+8Mm+5XrWlSWga0hL1ufrPgm8ED cjkEDzSb/aaPHpgKKEL1nGd89eXme4uFkvpLo4qHQnEqMCQZ+ecqxE19ZbLRbVEG3t4Y ymMw== X-Gm-Message-State: AOAM5303+FgB6bMyuYOT/l5oWcMghUER7pf/z5N+YwzXPVPwNZYFCdJv aDnWy0hahFdZ849PhJWf8ZsZHQOTZx7s3NzKI1yKAw== X-Received: by 2002:a5b:54a:: with SMTP id r10mr8688410ybp.250.1610603273848; Wed, 13 Jan 2021 21:47:53 -0800 (PST) MIME-Version: 1.0 References: <20210113172450.v5.1.I025fb861cd5fa0ef5286b7dce514728e9df7ae74@changeid> <161058782774.3661239.6435895454078235399@swboyd.mtv.corp.google.com> In-Reply-To: <161058782774.3661239.6435895454078235399@swboyd.mtv.corp.google.com> From: Philip Chen Date: Wed, 13 Jan 2021 21:47:43 -0800 Message-ID: Subject: Re: [PATCH v5 1/2] dt-bindings: input: cros-ec-keyb: Add a new property To: Stephen Boyd Cc: LKML , Dmitry Torokhov , Douglas Anderson , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Rob Herring , Simon Glass , devicetree@vger.kernel.org, linux-input@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 5:30 PM Stephen Boyd wrote: > > Quoting Philip Chen (2021-01-13 17:25:12) > > This patch adds a new property `function-row-physmap` to the > > :) Sorry, I'll make it imperative tense. > > > 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 > > --- > > > > Changes in v5: > > - add minItems and maxItems for `function-row-physmap` > > > > Changes in v2: > > - add `function-row-physmap` instead of `google,custom-keyb-top-row` > > > > .../bindings/input/google,cros-ec-keyb.yaml | 12 ++++++++++++ > > 1 file changed, 12 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..e573ef3e58b65 100644 > > --- a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml > > +++ b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml > > @@ -31,6 +31,18 @@ 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' > > I'm not sure this is needed if min/max items is there. > > > + minItems: 1 > > + maxItems: 15 > > + 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. > > Can you add it to the example so it can be tested? Then you can prove > out if the ref is needed or not. Sure, I'll give it a try. > > > + > > required: > > - compatible > >