Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp221175iob; Mon, 2 May 2022 17:38:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHL4Zd+QGbziTyfHhirFQUhgGcXW4QpJH3oOSswuv9z2WoP1yEYqN4BQYr8bzFNcb/y/Ep X-Received: by 2002:a17:902:a712:b0:158:9e75:686c with SMTP id w18-20020a170902a71200b001589e75686cmr14966183plq.56.1651538287701; Mon, 02 May 2022 17:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651538287; cv=none; d=google.com; s=arc-20160816; b=SFnDHsDU6ZLbvbQsIWPaW4jIymRpkdtIePjP2faJR1G8aITop81jDCZJRg5+Uvcl8X GagaEOY4lmeLa63gsgG1e+pKEBTkskqRb3eVOWPXlBoO+IJWFAIHgnFjjl5XtyvcKB8O a3xYaw8Z68zI/a4mmp1qFjraG6VPmuz0yIalAgVoIKraX8TxyPlVOyb/ZD64VHtm+ufB UFFL+viTPQftng0gGuilTitdv0DZ/TA9GdM69eibgDtxifGX/3IdoKa1aRWn3qGCC0nn RuLVjMciDQgaxWe9pVhnfJDG2eolDUSR70DxVfnWXTMzU1ALhLE+Whf6BgeCsMmFgHI9 Mrqg== 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=wMBr/Ha777HaIbEu803wdwqITrFG+WWGyH6HK0RFoZU=; b=mpHpirTqDeSQPl8jLmkilQQOF1Dzz1g9xWr7N3kTOiuPEYiRvcZA3oJTiV7L/Yw3k1 +Ip3XdULSBcAjx0AJJ1mH52NoFrSGv+3yJziq1HtHWcgr7gKu8VZr9KT1rfx8hIA9OF+ +L7OUuzQZXZI4ihI6hKPtPsA+TVNxYD2/lDtjUb/lrDIO2nUtCCvb0gMVWBBJf2IJQi4 7fzI1U2FjDm5xXpYMMTIcM7VyLzOA8WyCae24BAbH0QsyOcB/5BVa0J4Kwx5wVG2UuaL 6/jM0WdrRWo8u5ikD9EAPxOBbQJO7flsvYUlIMucItaQ+dWaLbi+GV/rZVU/1BElALyP kRrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lrhoj4+V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g11-20020a656ccb000000b003816043f089si16197118pgw.638.2022.05.02.17.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lrhoj4+V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1BF6B39804; Mon, 2 May 2022 17:29:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235245AbiD2Qj2 (ORCPT + 99 others); Fri, 29 Apr 2022 12:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234707AbiD2Qj0 (ORCPT ); Fri, 29 Apr 2022 12:39:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 188778FFA4; Fri, 29 Apr 2022 09:36:08 -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 ams.source.kernel.org (Postfix) with ESMTPS id D163DB83697; Fri, 29 Apr 2022 16:36:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4B65C385A4; Fri, 29 Apr 2022 16:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651250165; bh=ipkf+ZH0ZPZLHN4KtiziSBzjvehaBnJOxAJA9ZluiQ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Lrhoj4+VwPFjgaVnmorGXwTlx8a7yh9CgR4l3rolG7SL0HZPr076d24lzYgKeKjaC NVzuDInFTAr0qvQEBN3Kt8UW2Zbr61FVdU6A+gjYG/fM2tzoJJmqMur6iVPGGH4jhY zVl5Nstua0m+CTSMok0OEHbq7zHP61HAzz8JBHyGWpbOvo/C6xsgetf/oiasBCfku2 bWrdHx2zgPMAFGetnboIc54f1YFa+9GSOHP7575tDqpeUZ5l8FEGRfEuq/dNoFNT41 3boRKsTyWM6nZpdWvRNtP9jmB7v4IPCak1Ap9doU1/wrN2ZdhlGMA+fZKmKoMq9KKf OXAsSCk+qTSWw== Message-ID: Date: Fri, 29 Apr 2022 18:35:58 +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: Doug Anderson , Stephen Boyd Cc: Dmitry Torokhov , LKML , patches@lists.linux.dev, Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Benson Leung , Guenter Roeck , Hsin-Yi Wang , "Joseph S. Barrera III" References: <20220427203026.828183-1-swboyd@chromium.org> <20220427203026.828183-2-swboyd@chromium.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 29/04/2022 18:31, Doug Anderson wrote: >> - $ref: "/schemas/input/matrix-keymap.yaml#" >> >> properties: >> compatible: >> - const: google,cros-ec-keyb >> + oneOf: >> + - items: >> + - const: google,cros-ec-keyb-switches >> + - const: google,cros-ec-keyb >> + - items: >> + - const: google,cros-ec-keyb > > nit: if I come back and read this binding later I'm not sure it would > be obvious which compatible I should pick. Can we give any description > here that indicates that the first choice is for devices that _only_ > have buttons and switches (the google,cros-ec-keyb is just for > backward compatibility) and the second choice is for devices that have > a physical keyboard and _also_ possibly some buttons/switches? > > I could also imagine people in the future being confused about whether > it's allowed to specify matrix properties even for devices that don't > have a matrix keyboard. It might be worth noting that it's allowed (to > support old drivers that might still be matching against the > google,cros-ec-keyb compatible) but not required. +1 > > >> google,needs-ghost-filter: >> description: >> @@ -50,7 +56,7 @@ examples: >> - | >> #include >> cros-ec-keyb { >> - compatible = "google,cros-ec-keyb"; >> + compatible = "google,cros-ec-keyb-switches", "google,cros-ec-keyb"; > > Feels like we should create a second example? +1 as well, because it really would confuse what's the difference between them. Best regards, Krzysztof