Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2167789iob; Sat, 30 Apr 2022 01:00:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMwbpDqMRxpxlPYoNIJjsaG/K1Mclp5g8DjiIgWzwKCQkJFM+i5W52bboEvcRLuTRKk9HF X-Received: by 2002:aa7:9557:0:b0:50d:b868:4798 with SMTP id w23-20020aa79557000000b0050db8684798mr2879358pfq.84.1651305607423; Sat, 30 Apr 2022 01:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651305607; cv=none; d=google.com; s=arc-20160816; b=NiyUEgVJJPIKGVGpW+TfcJRpFYta9x7HuBkQCRDgizZXbgoIoiG8lJKydRegkglJua LbZB2D27BT/JEyRcLbbkQcyz/eZ88PvWdAPU7nlaQeUSvEmktTMjm2Gbk3p2LRAQRBZK CvHVD/+PPVfoXXDvRKG5kJ0PQywgttrJlXfFRf/UueLf+cDf9yG6JHjKqy7rggekHzYw 5ZdxTd8nNNwh1YF+eZaZwMrG/8ICBRjVcbaL2aMIM2Kzc9qemBF7kXTZfevdVXQMsImA 6DWgks+pJFZCFY0eEMyrNSbr+GljXPSP6r550yvgTFdlV7izjoSD3l4kHII03tW7Gqas k7SQ== 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=s1clNq5BQBXHMi5yLCKb4UG59pVLMf7WbijCi7/Lbvw=; b=JVir9SA2fqb5c2sV4BhOdFjIjmUm45kCJv2ZyYH+Q7eWDQ77hwuEsrxQ1Txq/WOGPp 8rCxGUIPJaY+P37qEY3EiMQs0LI2hB6k7V29vataC9bVHEQuAVzDg+U7dB0yKDAc5tvb D0dBsm6SF7dN4BUt/6ACKV+g3m4PeDWKOyAT4reLFgKhO8JZlmAOllTw2JVWSNAYRyp9 Hv3voURhflbCCOdPpJkBOLYLmDPsceNa7epdGyuXICddbVVo9QdRbHObl86sTbf+qVL+ oyAIh//k6JxE/+Pe50zExPHl9Q77kOPwDEwlI+gub7YK2DpiPmS+3SftZ7aO7yzKZYWv zg3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yiP2cQfA; 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 f14-20020a170902ce8e00b00158bb144100si9718384plg.572.2022.04.30.00.59.53; Sat, 30 Apr 2022 01:00:07 -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=yiP2cQfA; 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 S1354464AbiD2GeL (ORCPT + 99 others); Fri, 29 Apr 2022 02:34:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349962AbiD2GeG (ORCPT ); Fri, 29 Apr 2022 02:34:06 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EEC86AA42 for ; Thu, 28 Apr 2022 23:30:49 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id k27so7924400edk.4 for ; Thu, 28 Apr 2022 23:30:48 -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=s1clNq5BQBXHMi5yLCKb4UG59pVLMf7WbijCi7/Lbvw=; b=yiP2cQfA0EiqXcNCGaC4mEFsX+LYRnv6XmBjLC4bLupo8UKkiWETvAQDXdAACSvQCG wW6o/4Y4rB4ldjI+cVQ/c03GAIXcEhma+QdncoqL36X9hRq9OkZrucsJDqjhV4wQBnE2 A2YWxzIhvFf+5Xq9Er/zkQOq9i/2rXIvVIYRgdk/aCYSzjtrvGruMIN5T+an4gJ9ZBsX dsE+ITqfuyQZXyh9YNSjVUs3HfAeTmV2f4FkKj0DE5t7TqMMqc1+TrZZbT2ylPXKSyI+ pp728qnS8TqjH2uTealBlfJ7ifY4Y0h+awWOMtda+tKh8gcAWG7hrqzYBQ4MFpuG9Nf9 N4LA== 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=s1clNq5BQBXHMi5yLCKb4UG59pVLMf7WbijCi7/Lbvw=; b=jQ3tlm0nrzsi+ST9oGppHZBsPt4Ra3JUZzyMFAkZfobSvc1tbjJ5gxkRLBIKuVpv6E JB5k4UhMkF1R5f64F+PojeQQpdLqkJJNDeTNy+KR9rkZHk6UmzPZniHfIjPPBzoOQHKg +pAacPY4G51b7sJ9EpMfclnatnL33vD/oN1hbmlV1vaMCyL494bhBo5dSLpB3DpW2Eaf IuVgvqw9Bi26DVTpO81JEMp5m6MySXA0wl0SLTMXakKtRiARiWhq0NdWf1yb6YetH6VN 82IunQExvzF9Bga4ZlZ4YSVo+iD9xbogAzgq9HNRFby1Y2uefK1ZQtZKSjqqjFeBdeKd 4MJQ== X-Gm-Message-State: AOAM533+m79yfZvNxX94yygGpyLOmxByXdeKgMvkIQ8eghH99vOFU8kB 1BhVtq/oHQT0rwSa6g5fePc9Cg== X-Received: by 2002:a50:e696:0:b0:419:998d:5feb with SMTP id z22-20020a50e696000000b00419998d5febmr40180413edm.122.1651213847683; Thu, 28 Apr 2022 23:30:47 -0700 (PDT) Received: from [192.168.0.168] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id co8-20020a0564020c0800b0042617ba63c6sm2562278edb.80.2022.04.28.23.30.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Apr 2022 23:30:47 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2022 08:30:46 +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 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, Rob Herring , devicetree@vger.kernel.org, Benson Leung , Guenter Roeck , Douglas Anderson , Hsin-Yi Wang , "Joseph S. Barrera III" References: <20220427203026.828183-1-swboyd@chromium.org> <20220427203026.828183-2-swboyd@chromium.org> <9248da4f-ca04-82f0-2840-a20797c25d2a@linaro.org> <29cc62aa-2995-ea96-0e7e-242f9ddaa87e@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 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 28/04/2022 18:01, Stephen Boyd wrote: >> >>> Given that none of the properties are >>> required for google,cros-ec-keyb it didn't seem necessary to make having >>> the google,cros-ec-keyb-switches compatible deny the existence of the >>> matrix-keymap properties. >> >> Maybe I misunderstood the commit msg. Are the >> "google,cros-ec-keyb-switches" devices coming with matrix keyboard or >> not? I mean physically. >> > > The answer is "sometimes, physically". Sometimes there are switches like > volume buttons and power buttons and also a matrix keyboard (convertible > and clamshells). Other times there are volume buttons and power buttons > and no matrix keyboard (detachable). This device node represents both > the keyboard and the switches. > > Unfortunately the EC firmware on older Chromebooks that don't have a > matrix keyboard still report that they have some number of columns and > rows. I was hoping to make this fully dynamic by querying the EC but > that isn't possible. OK, then it's indeed slightly different case. Let's skip my comment. Best regards, Krzysztof