Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp110151iob; Tue, 3 May 2022 12:43:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx97n2MU1TCMaxbPTQqEwZtaFx7SxkH9BwwQ1MP0gR7d57pHqk5IH/04DqymZwQGXIc6pwP X-Received: by 2002:a05:6a00:15d1:b0:50d:a464:eb6f with SMTP id o17-20020a056a0015d100b0050da464eb6fmr17350280pfu.23.1651606988445; Tue, 03 May 2022 12:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651606988; cv=none; d=google.com; s=arc-20160816; b=hBry9Bkg4p8eTAkCRbgomUZjLKJjTOYVNKsZ06EYu2/e5eMiPdnqzxhol6KA9jwfwJ hRIuQXkYGsBnt1ES68Ija8Ab0gXgw+uhI40e34LtXGbhGY3mzayk8oXezykgib+FlsB2 QHHlt2MaloAOoZJa6qiQz6++7XJr08IJlQXrUBVE7/okJ0lvYIGSXOu3nIV6cAxg/pnl Aa8J3yxjJIU9rBdRBn2F84H0vfnQL48ToTrJepPEZJTY+CuU8T/fNxsZfPR06jBH4MAS 9wqlzxX+pQKHLqCpVzCKY1WgGbr/eyx4L6vQcJLtUXFGSPuWcHvAzqtjmdAHRMRgG3ID 1oew== 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=o/QG/CmlXL06pXpQbUM9RwsCSB8UxZ1v2gRKZDqfZJ4=; b=aNdbtpk4tkWxmqZMNw3qiZjbC2MMe11zmrn35YOu/pVFUwO8lnkbKoM3KToKKcLUek wDCD4ZgfLrOGC2uNoZhMjUNp5sk8UWOZV7RuC+0vt/1Cia8/Wfni3hyjJceGdBjH638o ThYCpfRv6D3mDRVP7/mls65rauxcvh7xYh8kOU37suPc9fhSTOezCUoVDW+i6q7MEYwO xK9F4nXIIT+dy8mePw7JXJ58Ne3WJnF1aR5tgWZNf7hMWlJbEgL/WgNu+XuqMPjncl57 vuSo/0A1nWkuFNE7XO4TpmpxYUR9VgHnJQA+BaC24ppHoz7fzMZ2tp+qh0FUqH9R1z1s Lmfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YKZhP6/c"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m126-20020a632684000000b003ab6ae4fc23si20099819pgm.474.2022.05.03.12.42.52; Tue, 03 May 2022 12:43:08 -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=@kernel.org header.s=k20201202 header.b="YKZhP6/c"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239015AbiECP6O (ORCPT + 99 others); Tue, 3 May 2022 11:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233721AbiECP6L (ORCPT ); Tue, 3 May 2022 11:58:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 499C63BFA2; Tue, 3 May 2022 08:54:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D8BB1616A9; Tue, 3 May 2022 15:54:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 640C0C385A9; Tue, 3 May 2022 15:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651593278; bh=ttsYKdHya8NFXXbpmd6fMc2IdK8j16P+tIaA6ZRYEJU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=YKZhP6/cj6nXuDCQplf5MJzZX47V3EfzWI1JWpqVcz/TlzZRqtuSzHI3PZLDTRGkR bjYJNLzIDHlznEONfhTSsbs+toXqgkD0IbOB4HzqM4pd1bmbPYT8CG9bslmNC/Y0Gu v+HbfvzzZanrlzM/OXZcf8bNhySw6gmKvqDG4+VRcftXJLwufqtMPW0j6KQFdnL16/ grfIs+NTsBa5HQX/6eIyBd/Em4snBZq+KXnN0H8xobMuIl4+o6cAyePSyVkf1+nhGA 17xrEUG5Xx68FDlvB9K+x7F+SbSjUSc8SFcIO+yDpJPZrLdEtYhMEkzAGKUDX1Tr9r yTLbuHSTg0iWw== Message-ID: Date: Tue, 3 May 2022 17:54:30 +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: Doug Anderson , Krzysztof Kozlowski Cc: Stephen Boyd , Dmitry Torokhov , LKML , patches@lists.linux.dev, chrome-platform@lists.linux.dev, Krzysztof Kozlowski , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Benson Leung , Guenter Roeck , Hsin-Yi Wang , "Joseph S. Barrera III" References: <20220503042242.3597561-1-swboyd@chromium.org> <20220503042242.3597561-2-swboyd@chromium.org> <2280875f-fbd8-0dfd-5a0a-1d7fceb856e4@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 17:46, Doug Anderson wrote: > Hi, > > On Tue, May 3, 2022 at 8:42 AM Krzysztof Kozlowski > wrote: >> >> 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? > > Isn't that implicit because this file has `unevaluatedProperties: false` ? But they are evaluated here, aren't they? Best regards, Krzysztof