From patchwork Tue May 3 20:42:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 569110 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BEC6C433F5 for ; Tue, 3 May 2022 20:42:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238125AbiECUpu (ORCPT ); Tue, 3 May 2022 16:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236592AbiECUps (ORCPT ); Tue, 3 May 2022 16:45:48 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D4AC2B19C for ; Tue, 3 May 2022 13:42:15 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id 15so14902735pgf.4 for ; Tue, 03 May 2022 13:42:15 -0700 (PDT) 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=9sH2w/vVTdfqCz9W7ywvi2pyU3dj2/u0WQnJwqpg8dQ=; b=TsVPkF5lorasvG1c2y3HR37wwKZGRSaeSe8PsNwNLlK2wi5Bosh8OI+CNya7EG9Y+u hlQIkf+UrhTi6GFmf6u+1ZfSEvNA1YPyjKpWKXYmIfdnnXqkNqVbZQR0YW6n2Vzg4Z8e ktwBeYTBB86K88SKuYlb7OF+aibShxishTBzs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9sH2w/vVTdfqCz9W7ywvi2pyU3dj2/u0WQnJwqpg8dQ=; b=cQ0ZvuPzmk50BPFx02G5B+W5B2fuSgKrmqWI89X3gkOuLfRnbFFPLWHk2NoMnO9nfn RqZ0M9wItNuysiDRko3beV1m1h62Kj5LgIwT5sitcYE3rGFuM7InElEnmqEggHVYaHdZ MngOdTT4pWjdjVso4pgNe5FJ0N4WlPl3zKMTtwvZHN+p9d0uV5YW8Izf1KvXXcFeE/NN w5x7UHFiv+nrzL8MiyrkmUQTPT2j2rEygusDNoRMI5JnVrwyTdOEyzVzmgPd2Etd/QF5 rrghQbZj7LSDtmDSaguKzADa310ULrgl6Cl+Sy3RAvOi3m6vM2ip6EYG6jBxMwHfebCf VZ9w== X-Gm-Message-State: AOAM532RT6J6CYpxNDC7JxMZGxSkxiVxGtOTbxT/QNgIua2/4XI1niJe 8jMDXfX9b+2QrwdP02AlP4u4LQ== X-Google-Smtp-Source: ABdhPJyjndjP6OpzigAn1DCQYecLfzQxzacZHA2QxQ7hTlGtc3urBMYgF3okwc7M7hDK8vnnYzwa4w== X-Received: by 2002:aa7:8258:0:b0:50d:d365:70c8 with SMTP id e24-20020aa78258000000b0050dd36570c8mr15890945pfn.50.1651610535103; Tue, 03 May 2022 13:42:15 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:15e:c760:9a04:7fbe]) by smtp.gmail.com with ESMTPSA id x18-20020aa79192000000b0050dc76281e4sm6702081pfa.190.2022.05.03.13.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 13:42:14 -0700 (PDT) From: Stephen Boyd To: Dmitry Torokhov Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, chrome-platform@lists.linux.dev, Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, Benson Leung , Guenter Roeck , Douglas Anderson , Hsin-Yi Wang , "Joseph S. Barrera III" Subject: [PATCH v4 0/2] Input: cros-ec-keyb: Better matrixless support Date: Tue, 3 May 2022 13:42:10 -0700 Message-Id: <20220503204212.3907925-1-swboyd@chromium.org> X-Mailer: git-send-email 2.36.0.464.gb9c8b46e94-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This is a followup to my previous patch[1] that skips keyboard registration when the matrix properties aren't present. This adds a compatible string for this scenario so we can ease existing DTBs over to the new design. Changes from v3 (https://lore.kernel.org/r/20220503042242.3597561-1-swboyd@chromium.org): * s/register_keyboard/has_keyboard/ * Pick up review tags * Indicate properties are required in example #2 in yaml file Changes from v2 (https://lore.kernel.org/r/20220429233112.2851665-1-swboyd@chromium.org): * Drop rows/cols check now that compatible schema handles it * Make binding require rows,cols,keymap for cros-ec-keyb compatible Changes from v1 (https://lore.kernel.org/r/20220427203026.828183-1-swboyd@chromium.org): * Better enforcement of properties in DT binding * Skip registration by means of adding compatible to device id list Stephen Boyd (2): dt-bindings: google,cros-ec-keyb: Introduce switches only compatible Input: cros-ec-keyb - skip keyboard registration w/o cros-ec-keyb compatible .../bindings/input/google,cros-ec-keyb.yaml | 87 +++++++++++++++++-- drivers/input/keyboard/cros_ec_keyb.c | 19 ++-- 2 files changed, 91 insertions(+), 15 deletions(-) Cc: Krzysztof Kozlowski Cc: Rob Herring Cc: Cc: Benson Leung Cc: Guenter Roeck Cc: Douglas Anderson Cc: Hsin-Yi Wang Cc: "Joseph S. Barrera III" [1] https://lore.kernel.org/all/20220425210726.3813477-1-swboyd@chromium.org/ base-commit: 4352e23a7ff2f8a4ff229dd1283ed2f2b708ec51