Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp451693iob; Tue, 3 May 2022 23:40:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvkiGwWkeA6JTOZo0JoMXk+j44EePMiFY44eyuwBDHI2qImFKatyvIizUCXozbwLv+EtrH X-Received: by 2002:a05:6402:1c93:b0:428:1818:4fe7 with SMTP id cy19-20020a0564021c9300b0042818184fe7mr550510edb.129.1651646421331; Tue, 03 May 2022 23:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651646421; cv=none; d=google.com; s=arc-20160816; b=vAjvOJU9hvDHi/IY67iFXL74CSS5dEv/OrmWpGaaO4KO0iVtLQC6nQssDzLl41Ct0F YuTiGXexDHsaCafIijVktTNyEsHAB4IxNq1y/hvlr+oscD2H3GOWej9gJaoANJOdvIRa G2hRrWRwSXCERxAUtrjR5wjdfE6C/xpyFF/FjKI0fN+iEJ/bVwX+OdDr37BWKoQGdORz yb6fqRxZ/D4zcIo38BZj9E1KTCcW0TTAJpvZKhidpEMo1QMIe6cfEPsQMx9tJEPFl+u3 cgCbuw5KtCkV0ErCKBCA6Um17SXnX+d5neAHE7z8s5Bbhr4HNapbhqj076vIv6YHCOU2 H6Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=11jXtpnvRUPC/KRRG8tH2eowrbQgqPMtLwttUsKdEBs=; b=Jrkt9Wn39/D5zPFDisYi1Ql3ryWyYnp9hmAx6Apub1jde9cf/Pr4GvpNgCHEqM2HQD VHlylXKh9yOcczDO8C/0NY/4DTt2MI49q6zKs7knf+N6cqDXYz13s4MHHb+vII14wOKI 6JO+2t03yLFjn3zn3v5j8vFkUV4BfXbCMqLWn1MP9lMQz7+LnICCfhBp9r85WiOfo0e2 dv8FAvbyeFC+8H+KUtha5tA6rdxsou86r6XvgNt/iCCvWujEhmRIz7w+In/Qz5MnB7bl sqimfjrcxGkMR6LUzC4AAIZP/SpIYFoAgglhfvBcrtFYqACQCOmr4LqvGrZr+N8b6AZC v+wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l0UWrpYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn24-20020a0564020cb800b0041d983f82a3si13782843edb.46.2022.05.03.23.39.57; Tue, 03 May 2022 23:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l0UWrpYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238690AbiECPqR (ORCPT + 99 others); Tue, 3 May 2022 11:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238471AbiECPqP (ORCPT ); Tue, 3 May 2022 11:46:15 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3368A2CE02 for ; Tue, 3 May 2022 08:42:43 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id dk23so34221842ejb.8 for ; Tue, 03 May 2022 08:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=11jXtpnvRUPC/KRRG8tH2eowrbQgqPMtLwttUsKdEBs=; b=l0UWrpYiK6HwDKRByqNJ3y2uZFFdvaV8ANIW3JNVAItsVDKpa35XU0bfLvkTASkMBv +OYfZwDZEyVjpC/rnG1E3dCdtsJ6zJWvIaU0QLAnRYlpGYiWBnv2HGA3bsT55oCtJ8j+ si18E5OWo0BZ5uAJgB2CIAbB7q9eW9rt7IrK8WmwCeyf+uhQw8rU1BfsSAVEAvmqSACZ n/jivP9CyFypRShQX6hr40Kcj2DOzb9bcGMYJgqD+hWAq7Jx/zOVyavrysS920ixUVSs cnuasOnTDWOLizp4EDGrpvpTtfKHYNzcFvMk62KyA1/QE0bJJbiGLbg/gNkO/Q4NtPqz KH1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=11jXtpnvRUPC/KRRG8tH2eowrbQgqPMtLwttUsKdEBs=; b=G/F+BbYWlhuyy2Oq2gh3iJucdcDtiFFSlYk+vEmsBO981Ww6yL4oH++cGEE/z8BQyI 5aLUqK5YwQmZ4SC+rDvL2C1ZpjAf+KwHQwfMe7FwcUb0GQJtFMjnXMURk27d3R95xapH dOWISSCJq/XsxwKl7+PGT6NxXmnvVv7WIOXFjMckb1RDYm2a8qEScNqKUqhwwX/2aebh 6sVFH9irz4yeT8tWzZEdpr1O20nh+Y8IBc5qfvTHBQPEW7JSrmF/syZ2TfxmEhzS5ZEm ssDb56NFzAPuZ2XVGbn7Ua+gBxjhUgqlG3ZhCZVdKStpMoquq20R7x2VRUKRbhKBEZnV RkNg== X-Gm-Message-State: AOAM530EqAf5J8AmRLFjUbexOSp5crgrNjBaPUWnGWyXKp+YrIIDPgIG KfUl54/lVrR98eecweSqn9qbww== X-Received: by 2002:a17:907:3da2:b0:6f4:78d8:7c23 with SMTP id he34-20020a1709073da200b006f478d87c23mr5396961ejc.233.1651592561803; Tue, 03 May 2022 08:42:41 -0700 (PDT) Received: from [192.168.0.205] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id jl26-20020a17090775da00b006f3ef214dbdsm4701696ejc.35.2022.05.03.08.42.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 08:42:40 -0700 (PDT) Message-ID: <2280875f-fbd8-0dfd-5a0a-1d7fceb856e4@linaro.org> Date: Tue, 3 May 2022 17:42:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v3 1/2] dt-bindings: google,cros-ec-keyb: Introduce switches only compatible Content-Language: en-US To: Stephen Boyd , 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" References: <20220503042242.3597561-1-swboyd@chromium.org> <20220503042242.3597561-2-swboyd@chromium.org> From: Krzysztof Kozlowski In-Reply-To: <20220503042242.3597561-2-swboyd@chromium.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/05/2022 06:22, Stephen Boyd wrote: > If the ChromeOS board is a detachable, this cros-ec-keyb device won't > have a matrix keyboard but it may have some button switches, e.g. volume > buttons and power buttons. The driver still registers a keyboard though > and that leads to userspace confusion around where the keyboard is. (...) > > +if: > + properties: > + compatible: > + contains: > + const: google,cros-ec-keyb > +then: > + allOf: > + - $ref: "/schemas/input/matrix-keymap.yaml#" > + required: > + - keypad,num-rows > + - keypad,num-columns > + - linux,keymap else: properties: function-row-phsymap: false google,needs-ghost-filter: false Because these are not valid for the non-matrix-keyboard case, right? Best regards, Krzysztof