From mboxrd@z Thu Jan 1 00:00:00 1970 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 78713C433EF for ; Mon, 16 May 2022 18:34:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344910AbiEPSe5 (ORCPT ); Mon, 16 May 2022 14:34:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344906AbiEPSe4 (ORCPT ); Mon, 16 May 2022 14:34:56 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B2F32EFB for ; Mon, 16 May 2022 11:34:54 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id h186so12233167pgc.3 for ; Mon, 16 May 2022 11:34:54 -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=ND8PT1JbEK9sNH8l0vjUc9ivWP9q6grqcaLrqiHd17w=; b=aTih4suD01GOEGOHwQsrDkW85JkMwe1FJcwfcvDvngb4WWWw+0R+L8L5R8u2MXSqgz wCmXeepWtdzQyrBAzJrQx+umSW7wgVVtad9nT4mFpm+yzsT2lPkuCUEsOWIvqlGlDc/u +M3cYdBEygDR4d+8o1Q/08O2j986Jxmg9pgM0= 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=ND8PT1JbEK9sNH8l0vjUc9ivWP9q6grqcaLrqiHd17w=; b=YHSw0buvppoVXlfmAbzUIdaltOQm6KMRQzwN1ksTHiDTsYQTIIMy1md6a+CCL+7Kob RiNJmYdyX6yHSSm2j20vbB33ymyH0354JShUzcKBeT5amX+f0jOkBkRpJQiFUcr/WDt9 NY2NXH7qaWLUhwuYmZyA05ua/OMyhrMo6KSWE2ECLscwkSt00yBoVjr5F2MC/xY7TOWe 5uuoAFnocxys/TBFWsjHtW3M3ps0pJGPqpDVmO/j/lrSSaxLRNFRhgbWQyG/Opu3lznM emZWEboqSBvX5Lgx2hcLqKaLma3v5DBMJV2JCZ1Z/njgKJM7vC27/uCCWcwX2XpaGOVa Uypg== X-Gm-Message-State: AOAM530FoZv4U6iTz530XTctQdlhATvkUtjx7DQHEU1aJg0nxmI8NHG/ vOy12+pqXwQRZkA+R3FPaOdAZQ== X-Google-Smtp-Source: ABdhPJz6CmiuPrfYudzJKS4y8hS8jwFnUVEBC5Zu6nO9STUk+y6bjDsVybZ5mlT/a0AGoMiNT+8EbQ== X-Received: by 2002:a63:2048:0:b0:3db:7de7:34b4 with SMTP id r8-20020a632048000000b003db7de734b4mr16508794pgm.105.1652726094158; Mon, 16 May 2022 11:34:54 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:7d0d:b8ac:a3e3:757a]) by smtp.gmail.com with ESMTPSA id w16-20020a1709026f1000b0015e8d4eb24fsm7331090plk.153.2022.05.16.11.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 11:34:53 -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 v5 0/2] Input: cros-ec-keyb: Better matrixless support Date: Mon, 16 May 2022 11:34:50 -0700 Message-Id: <20220516183452.942008-1-swboyd@chromium.org> X-Mailer: git-send-email 2.36.0.550.gb090851708-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 v4 (https://lore.kernel.org/r/20220503204212.3907925-1-swboyd@chromium.org): * Make switches compatible fail probe if no switches present * Add description to compatible list 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 | 91 +++++++++++++++++-- drivers/input/keyboard/cros_ec_keyb.c | 26 ++++-- 2 files changed, 101 insertions(+), 16 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 -- https://chromeos.dev