From patchwork Mon May 16 18:34:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12851348 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 C473D1377 for ; Mon, 16 May 2022 18:34:54 +0000 (UTC) Received: by mail-pf1-f170.google.com with SMTP id bo5so14798488pfb.4 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=y3g52E+vKau2siFWIVMFQaHwSN70bmkGISuDc4IVwgAS3ygZtOe/Zc9LX4hH5jFiyk miUDyduBdXNSVJ2fcVZ/vjTOmo3grg0TVXS8bZ5F+GcxBs6/+dG1edGumLN6ZQgT6Bz1 fEeR16FPmNRj9taDzVzwYrhlzu2cDA7Gs79gocGx/Unp4SRnz+VGGh4oLzF42DWldr1V dgZQTJrRGXtdeg0H9mUHlvA8+SDMJhWjoCFeJvdCoWB39fW2EmfWAmwRXAv1tQ0QWXMd csb7luDQp8bG7jVncRhSAot4A+WE2MoJOAVkc1SEI/uPSvu2dOT+4tU6/o92VTWQRYVW BoGA== X-Gm-Message-State: AOAM533UfPux48K3GqHS77PPqClBJ2BEae3jWacBF9yaO1udlAoMzc4U x5mN0NPAAhAKT+SiI/IgE8yoSw== 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 Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reported-by: Douglas Anderson Signed-off-by: Stephen Boyd