Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp42205pxb; Tue, 12 Jan 2021 19:28:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+lGFLVg1XRPRehU6Vk1dJMycsr2wT3RqAB49duh+tJmFNHqWMkHRBQ6KVuB8PoGuAZ+kE X-Received: by 2002:a17:906:94d8:: with SMTP id d24mr72879ejy.264.1610508486945; Tue, 12 Jan 2021 19:28:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610508486; cv=none; d=google.com; s=arc-20160816; b=0oUhBxviQBC95vK/CgBz7mv69asCc1r7vDyAe1zcP/4JKISXZ4gv0NISu7h+3X2it1 kKr3m7+YUpelRYDmYucW0KMkxhAk66gf1/2/aCjAeHhT23iAj4yfzkG0iy2qItDR1t9d wVYJowp1NXWXjFjxTEDrwVnWwB31Z8m5DtTWzlbBSp0STXNDqngR/k8QUFRQAx3LUqOU RfWGbBGKiBsuej94nIbbVHwAIAvG0Qe/z0ztIMz1Mt67nz5QI/9uVy+9cYuPu6cDXFti mrpCyXRaKxNeycVzNHGZb8SJsGYdptoFntaHV8ASrd2Rv4beDcFyV9kgmOo0Zpq1Zqgr Bdvw== 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=x1seuFAYIbhLRjf8D0C4ZsKHbwGrH6A/TbShGVmd5uo=; b=kizwKZERP+DZQJFbn5RmSyR6pNTWeiNEXhT2pqB7RLrlx2e8Zh7dhYr0gBpw4t86zg D6ZIrg2MMQrcQOj15MQd5yFPOqP4sih0IjC7yUk1CUOR6BHqK/y7hem6sN/Ov1UGOwDs 33wNWboMqARW7O/iuyek+QkmFz95tdioi6ryVwLasvz70KWMYlYxe6Nu057XOIhd5z2e rCK0EVXkovZjeO1ldFgGlt10wZ/22WRR4qNvUh/sN/6WD/PXEPWSUZECmzhgpAsMpSnE z5AZeHwHZxlcHSVqJeP1c+YxqHUk2/pW0Eiw5y8kIbr8YpAGeMk0rmMrzR0XXdfu/aj2 +lOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cwO1sEjV; 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 jw12si334876ejb.176.2021.01.12.19.27.43; Tue, 12 Jan 2021 19:28:06 -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=cwO1sEjV; 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 S2388984AbhALXaD (ORCPT + 99 others); Tue, 12 Jan 2021 18:30:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731617AbhALXaC (ORCPT ); Tue, 12 Jan 2021 18:30:02 -0500 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A230C061786 for ; Tue, 12 Jan 2021 15:29:22 -0800 (PST) Received: by mail-yb1-xb2b.google.com with SMTP id r63so410237ybf.5 for ; Tue, 12 Jan 2021 15:29:22 -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=x1seuFAYIbhLRjf8D0C4ZsKHbwGrH6A/TbShGVmd5uo=; b=cwO1sEjV1h4NVsOFaISyMfdqqMJfHtXNPyvxr2Gfm6mPYBRO60Zb6pTcwmWCwdT+pb OZNRny2bvukSOjPndOUrsEa68XCe/6fEMIfz2/RJmzym5RtuLTIM+weqi9KiEA3B6U63 aIU0VGwFrZ9XKZdofR8gP8ukAmIvjGvwrUszo= 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=x1seuFAYIbhLRjf8D0C4ZsKHbwGrH6A/TbShGVmd5uo=; b=noywChv3dPYB2RduaXOrxUxsBgi7uDZwgaqH9TlTvCnT+tY3Bz1xiNAJng6r7+4XjA jDnIr8iMeCvYGwaCP2CuZZ1Kr6+qInAaMm690skIx6uv2+tmPYjTsBfv9V+he5bKe6gR 8UzNxhWO28hTUg61xloIBRY9G3hLu4mtt6BUrOhOLhM4dU6ZTAIHJxrZazIs4btg5hYk guH40A1q8HFOMMVrhYcCwPAnZzZWSzAX1siDmSugdSy3asoOjmlG8TUUhQMrc+MeOcY5 Lc1XBIk3cwJ68C7BdFRDxcXVKMjjH52x8oleHwv72chPNKqJ6spafL7dNU8ap4t87fz2 s8uw== X-Gm-Message-State: AOAM531alCSj7LtFXN4bY8b4Ip+v+mXtk7B+tlOekjdLTbF+0e7E1e4n ZRxbCGKKJaZmPnbhHRfxOMNrGoUxxupUfHOnSCgd0Q== X-Received: by 2002:a25:3a04:: with SMTP id h4mr2589314yba.285.1610494161587; Tue, 12 Jan 2021 15:29:21 -0800 (PST) MIME-Version: 1.0 References: <20210107154200.v4.1.I025fb861cd5fa0ef5286b7dce514728e9df7ae74@changeid> <161041741167.3661239.13546059654424804588@swboyd.mtv.corp.google.com> In-Reply-To: <161041741167.3661239.13546059654424804588@swboyd.mtv.corp.google.com> From: Philip Chen Date: Tue, 12 Jan 2021 15:29:11 -0800 Message-ID: Subject: Re: [PATCH v4 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 Mon, Jan 11, 2021 at 6:10 PM Stephen Boyd wrote: > > Quoting Philip Chen (2021-01-07 15:42:08) > > This patch adds a new property `function-row-physmap` to the > > From Documentation/process/submitting-patches.rst > > Describe your changes in imperative mood, e.g. "make xyzzy do frotz" > instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy > to do frotz", as if you are giving orders to the codebase to change > its behaviour. I was aware of this guideline, but I thought it only applies to the summary line. I'll apply the guideline to the whole description. Thanks! > > > 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 > > --- > > 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: > > Is there any minimum/maximum number of elements possible? The maximum is 15. There is no definition for the minimum - we can probably say the minimum is 1. > > > + $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. > > +