Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14178839pxu; Mon, 4 Jan 2021 15:18:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAnZgbyfjXpnu84/NQdetgLN8FhiqzHQAfNeUAH4+DEhV1U4J+OfDuJ7L5kQd0CuFrVMq9 X-Received: by 2002:a17:906:6a92:: with SMTP id p18mr3473761ejr.308.1609802331654; Mon, 04 Jan 2021 15:18:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609802331; cv=none; d=google.com; s=arc-20160816; b=Dc1zFGEau6h4iCMKfH5XUzGo8tW5LOJCnRBO9VG554WGMXReDaa9r2l2Ej9Y6vZhvA jVj/wOoPdpQ/qEX+K/nLek0KiEu4IIW6Or+31mRHWaLCe906j7Cah6c67lBepZZ9cz/K qiIEWAIeRGYdVnmuaLXgL2S/gV+SMNnVt3n5KIAUygOx7ln9qgKv8RowqgydxxEPfakk 9EUp7EXmVVKpNpPdgt6txafvoFcG3SlzrmGYUwhd5x2Ci8A1uvXMS/kGI8NCI8TE3T+d LpkQSp9hjViO8pMVE933MN4id+zHrG9EuaU3LEh1H8de0L1tH3vizztue6KOljoc1pWZ p5jg== 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=xliuBhcuCe3LSKs+KrKKbN9fo/wqGAuOpx2UNrHRZkk=; b=LfvCPlHTacX/RHkN//6WUY6XoP4VQl+K6r0iJDWGBROv5MGW+1hneZXUbSFFMY3AXg sC0aPD2/bu+ycQp8nUEgYQpL6F2pkQ8C5cl5x4i+qRTkWvRjhZPuZ4xzvrNAYojEy9bh qqcRE7nsy5m9JdcTqp0VglV640DGz5TcpTkOFourQdlwKs8EkySPzg4lBx+UCzwUSCYo 0myL+1cbq/L6W/+pKQfOcwxowCYMSOhfvz9FN991qOdrks9DINgOfJjlr3Ewj3efq/yd g0RgoHTsZRcgGbsjarr3aULBNHQe9qgh/8W6MZ0Tc6gkcOAVkjqiLAxk3zhON1EzochE Lgog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JOnWYsRK; 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 w5si33521506edf.510.2021.01.04.15.18.28; Mon, 04 Jan 2021 15:18:51 -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=JOnWYsRK; 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 S1726163AbhADXRs (ORCPT + 99 others); Mon, 4 Jan 2021 18:17:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726026AbhADXRs (ORCPT ); Mon, 4 Jan 2021 18:17:48 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A889C061796 for ; Mon, 4 Jan 2021 15:17:07 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id c12so17294006pfo.10 for ; Mon, 04 Jan 2021 15:17:07 -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=xliuBhcuCe3LSKs+KrKKbN9fo/wqGAuOpx2UNrHRZkk=; b=JOnWYsRK4bSbUHEcEXNRkoDq9Fi70xM4vQ4N/H8RPYf5vGK1gSLM9RVTDbV63eyynl 6/Gts371aMJTQifFdsTT0+GBUW6Gx+CBHSMj7gCO5hCvWExi2ZMWIZ1EUqzdomzwnBVM EEZb9bMVpaRXARkzuAx1qXMRtJEbYStZuuxRI= 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=xliuBhcuCe3LSKs+KrKKbN9fo/wqGAuOpx2UNrHRZkk=; b=A6AIupG9z/sH58Tr6SK2nHYxFYEMgjNQ/JvZPxdHGmte3Pf4lvDmyfRSkU7X0DnJMQ VPJb0IzbEjIzlVFy4Gd0Tlz5A4Nbwu20+5NtxKQPEFlF8LBUZHvEeXjc1/xmbWQ+teWU voDxkEqo0s6thrKkOmnJ1+Bn3bMijOXv1p/Pu8z50T9nzge8IE8AGUbR69rHV2Mo0Pbw kKoSv0PyFHSmhlpJ6dyvpG46jpTzk0d5pXnGltgYIFHnNYboINRpZ9QdpnTCngLCynBs e4HeAo0Z4W/1KTuT4vg8swoYwEET1q/JeFJHmkk7XCB3mXUBYLFCfD0C+8LhVGwFjKLi bvtQ== X-Gm-Message-State: AOAM532z/SGlRUv0Vgi67Fdb98plLaFzjp3ZlECbeqVjrZ3QcaEaFpgp rzr50uYTedt0TBEbw/41d5nbY+wJjseVNQ== X-Received: by 2002:a65:458d:: with SMTP id o13mr34537142pgq.450.1609800938587; Mon, 04 Jan 2021 14:55:38 -0800 (PST) Received: from philipchen.mtv.corp.google.com ([2620:15c:202:201:a6ae:11ff:fe11:fd59]) by smtp.gmail.com with ESMTPSA id c18sm54951051pfj.200.2021.01.04.14.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 14:55:38 -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 v2 1/2] dt-bindings: input: cros-ec-keyb: Add a new property Date: Mon, 4 Jan 2021 14:55:31 -0800 Message-Id: <20210104145523.v2.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 --- 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