From nobody Tue Feb 10 14:33:07 2026 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E39934C988 for ; Wed, 24 Dec 2025 15:22:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766589771; cv=none; b=Cmno6846F7YtOkC1wK2sRZRKiZcLA+6quUGYdu4Zc87zKPTdzORJn+6uiVa4bkBzqdyPq90miHxbr9jnh1jG/PhiRilB83rK1FtFL2vbQGq3aFgzJU+P0A9O8Up8nbpzIVd91mfyy4hNl6WCed4jGQ2Vu9GuOGRCt7d1r+M0u1w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766589771; c=relaxed/simple; bh=E76HtQ/wOlk/iTdKNvwcIKzGwEJiphG6wBguNie0bF0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LhVXGYhZg1IDH/xb8q+gQlZxtdFqxEOkUbF7HKQwW69xQ9RmVtNVSMPsnwJPGEkjbpa752a9FtR0Gps4fOPdC5o9zC0QrmAYcHV6QvGjcu/CJJiIkPorvJadm/h/QwMOfGKP6kvSE/Zxu0I93sGWhkcQWv0ADpS2cjzcI5MqlxA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=kT0VxBN2; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="kT0VxBN2" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-42fb03c3cf2so3163093f8f.1 for ; Wed, 24 Dec 2025 07:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1766589763; x=1767194563; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=broTySSYLTvfYQKOi4uFtvxxGHeRyXiGXlc1qJUuO3A=; b=kT0VxBN26z8X7X52pg/GlagL459ncI1WlyfiSnSCrOFlFky2GxHeGYxHbb7C9NhoyK 1i5uPjfg5hFSUzClqefPPWXeUb7BAISPWIs6M8s/NEUu3bQv1Af9Gu/QI5uw/iTqB7TY 3gPhYp8njMjC/UQ+n52XvnLx6qPgi+OD3Kfws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766589763; x=1767194563; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=broTySSYLTvfYQKOi4uFtvxxGHeRyXiGXlc1qJUuO3A=; b=oW2EowBLRmY7nNswH9qd4sjrS62SOWAW0GMa4lkhhAjlhjuXXJoV3RlMWeHa8mV7Ys lSjuOC9N8uiQvuXlVzftTciegjnu2JLlFVtMFOfr8BROHMfIgO2HDlZ9QWtFGYinScpo 2dblQMVaxxz6V9xQVVgseZQnqZTxiehYWvTkttV5ZEqrFnuF+FhUqV0sYVqrgK9dpWls AWJC7QVr/G8A+j1wJ/PCWAeXk5kL5xfxF7V5FeQqTm0ZNY48sS85zu41djgmab4GRXrd suUk+t+dH819z7DtcCGoO4WJ2CCMPKrmA0ERsUnYjFeRJDNHBLHVvuu/TR6sQiFu4Ros /l6Q== X-Forwarded-Encrypted: i=1; AJvYcCUP45erWZHqSy/daIM2TX1+iKptGu2F6uC79o4wE+K4RXH5XYouAVSF9VJ2iy9PuwM6M6vAUUVHV5A/IxM=@vger.kernel.org X-Gm-Message-State: AOJu0YxabqbV6FtR06XJB1ZwW+OQGpqezfiCMyh/3og8/7WdlQ/S19gF if3VvL7qToXoUkl6oQkqrqCuJoe2ZUyU86AwK0oTAcNWwHlT/c0woosuNLB9+zWC4Q== X-Gm-Gg: AY/fxX4BINsnQAJ6x7NJJamxxDEeNDmtg4EO/P5WnI0fs3Kk14K9Zb9VFWjWgOO+/5u SgFPrNnHYcMOB2cTg5SQvbdt7qqEZXKHlzU8sJ3UdZ7w9nU90Z6KUfNhOIrphHgBcUA2a82GLEe rJglW8Sx1uqNOxrQ2vsBAKqmfPFKNZwLnKzPnqlaASWMbuc+MR4GVtQyMzo2QsGrjjqDGYuQJGv wgM2+Ptmfa43vmRZOZocS+HFbP/kimUARVvpL0PqU8hxQixa35+mNJA4vKY4xMTpnGQ+IZ8HAcz mr95lkoREnL3jIEGbKbf0GxD7ykhmZhoLrxipq44m0/7dZFLouz9zyDmjpSzX/VPtezRURGCzOw uvzu66qXaAVFB07TgdaaC2Vn+W9cON0upk3arpP5WnmgaR92nd2gkwNMNzMXqaQ1xdrr5Ffyfx6 4Bx7SxFcbb/xqf760= X-Google-Smtp-Source: AGHT+IHB446KR9bbT+6fe4P8dhCXUz9efTM0RI8RQnUg/3RKKGMv4Zs6DxHZ83wur1VVBkRdUAUQzA== X-Received: by 2002:a05:6000:2586:b0:431:84:357 with SMTP id ffacd0b85a97d-4324e4fb143mr21280148f8f.29.1766589763244; Wed, 24 Dec 2025 07:22:43 -0800 (PST) Received: from balto-ws ([37.228.206.31]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324e9ba877sm34307363f8f.0.2025.12.24.07.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Dec 2025 07:22:42 -0800 (PST) From: Fabio Baltieri To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Benson Leung , Guenter Roeck Cc: Fabio Baltieri , Tzung-Bi Shih , Simon Glass , linux-input@vger.kernel.org, devicetree@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: google,cros-ec-keyb: add use-fn-overlay prop Date: Wed, 24 Dec 2025 15:22:38 +0000 Message-ID: <20251224152238.485415-3-fabiobaltieri@chromium.org> X-Mailer: git-send-email 2.52.0.351.gbe84eed79e-goog In-Reply-To: <20251224152238.485415-1-fabiobaltieri@chromium.org> References: <20251224152238.485415-1-fabiobaltieri@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add binding documentation for the use-fn-overlay property. Signed-off-by: Fabio Baltieri --- .../bindings/input/google,cros-ec-keyb.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.ya= ml b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml index fefaaf46a240..437575cdf352 100644 --- a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml +++ b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml @@ -44,6 +44,14 @@ properties: where the lower 16 bits are reserved. This property is specified only when the keyboard has a custom design for the top row keys. =20 + google,use-fn-overlay: + description: | + Use a function key overlay. This allows defining an extra set of cod= es + that are sent if a key is pressed while the KEY_FN is held pressed as + well. The function codes have to be defined in the linux,keymap prop= erty + with an offset of keypad,num-rows from the normal ones. + type: boolean + dependencies: function-row-physmap: [ 'linux,keymap' ] google,needs-ghost-filter: [ 'linux,keymap' ] @@ -132,6 +140,23 @@ examples: /* UP LEFT */ 0x070b0067 0x070c0069>; }; + - | + /* With function keys */ + #include + keyboard-controller { + compatible =3D "google,cros-ec-keyb"; + keypad,num-rows =3D <8>; + keypad,num-columns =3D <18>; + google,use-fn-overlay; + linux,keymap =3D < + MATRIX_KEY(0x00, 0x00, KEY_FN) + MATRIX_KEY(0x01, 0x00, KEY_1) + MATRIX_KEY(0x02, 0x00, KEY_2) + + MATRIX_KEY(8 + 0x01, 0x00, KEY_F1) + MATRIX_KEY(8 + 0x02, 0x00, KEY_F2) + >; + }; - | /* No matrix keyboard, just buttons/switches */ keyboard-controller { --=20 2.52.0.351.gbe84eed79e-goog