Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4660582rwl; Wed, 28 Dec 2022 07:12:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXv9vlNjfTWe5Tsu9S51ZYjqbNwHO1IkpuufTYBUonWt70ZLz+TI1RiShoPFngZy51CeS6Wd X-Received: by 2002:a05:6a00:400e:b0:577:9807:543b with SMTP id by14-20020a056a00400e00b005779807543bmr29414205pfb.16.1672240333803; Wed, 28 Dec 2022 07:12:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672240333; cv=none; d=google.com; s=arc-20160816; b=b5QJPmh7SXkE2xb9prS2+JW82AjPb9hShLI1l0CD7JvmrzCpU8pOW/lS0uCYMvUHQQ 3JghyHRwqJThNvTqYTY/huXu8GOUr8WqPz+5WFRgTbP8q3wIo2K0p30cSyoi+QsDxoHs Pgwh0Wr8Ex69YrkaExuO+UziQ/fdASBTukVA0t/6RRMjKELokKBVV+XbwMFZOVMQNp9/ tZEEonbvOJJFl9n7R23HaYj6YRORmu83E0HYSF+yF2lBaMSSIufhzzfWgnvkQ84Mbn1p GdigzoyZRj+DoSat8mop3AP3i5gbTE3OijY8y5IQLiXctAUtiruxQB3iCmi7iOk5dvCI 1MZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=G7X5I37Wqlz1lzMJ3mdpNrFggiiHaWpWuH+NMxL853Q=; b=BERzNLSpNdw44pE+bzse0nHHvXjwaYhNmjdA487rGLDSoOXq6czgcJ+aiVGY6wzHIe K7RqaPbaK1gY5hL3LQC8AvjRg3QyzDwfYnffIo24EaREO44JvQvTYE4wmF9jgihBjXfW GGXIVJgrpf3C2ETen7Ywwfy2yanz+26jvRGgSzm1zXj6q76/nVw+2LFs3UVO3lcScKbC E4p+ZnSeqNYPUWGIaZi9y39OYSaXa3ih/T3E4xNfprIP2+LzFLgBeT0C9mTvVO+84PEX mDiFa8GXNGjn59PfcigyyLKU/8Ir6mhRFUJwwMVreG+wl7/PkjJvqtXnSra64Tb6kQYJ rxaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=QTJFGZr4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020aa78010000000b005786897553bsi15930221pfi.39.2022.12.28.07.12.05; Wed, 28 Dec 2022 07:12:13 -0800 (PST) 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=@walle.cc header.s=mail2022082101 header.b=QTJFGZr4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233392AbiL1PAM (ORCPT + 64 others); Wed, 28 Dec 2022 10:00:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233376AbiL1PAK (ORCPT ); Wed, 28 Dec 2022 10:00:10 -0500 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F71912ADA; Wed, 28 Dec 2022 07:00:04 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 396A61691; Wed, 28 Dec 2022 16:00:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1672239601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G7X5I37Wqlz1lzMJ3mdpNrFggiiHaWpWuH+NMxL853Q=; b=QTJFGZr4N5l37GryGQO0dE0UZSmqDUwyMUsGmGZ868uS8fDZMw7OB7oYvdEEHTH77X/TV8 uX4OMJO6L3wTTApqmFw33hUf5FCJZXw7uKYAk811opDw5KtTd0Ry6Cbg9KeNx/dxx0Nxoy quzawcv+3mkMwUUWXB1eMSskfAvDtyJZYPGfBpRdWSyvZLDJukrT4cGmmp5Lk/4C5JMufB Fjc3d7W3K0BitaC1/Wn9Bfe8YwbKbuEBcICoZWfnL0Km8+6YPWi3bx4t+YOM8t0MZaCetM OuH4kweutrU12UqnhopbmHUDEw/BsnlMGsmHCswfnBG1Cx3BkyUBWCseugna4w== MIME-Version: 1.0 Date: Wed, 28 Dec 2022 16:00:01 +0100 From: Michael Walle To: Rob Herring Cc: Xu Liang , Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next v1 3/4] dt-bindings: net: phy: add MaxLinear GPY2xx bindings In-Reply-To: <20221205212924.GA2638223-robh@kernel.org> References: <20221202151204.3318592-1-michael@walle.cc> <20221202151204.3318592-4-michael@walle.cc> <20221205212924.GA2638223-robh@kernel.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed 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,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 >> + >> + Affected PHYs (as far as known) are GPY215B and GPY215C. >> + type: boolean >> + >> +dependencies: >> + maxlinear,use-broken-interrupts: [ interrupts ] Btw. I'd presume that the tools will also allow interrupts-extended, but that doesn't seem to be the case. Do I need some kind of anyOf here? >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + ethernet { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + ethernet-phy@0 { >> + reg = <0>; >> + interrupts-extended = <&intc 0>; >> + maxlinear,use-broken-interrupts; > > This is never actually checked by be schema because there is nothing to > match on. If you want custom properties, then you need a compatible. I can add an unwanted compatible here, or skip the example altogether. But what puzzles me is that this schema pulls in the ethernet-phy.yaml. The latter then has a custom select statement on the $nodename and even a comment: # The dt-schema tools will generate a select statement first by using # the compatible, and second by using the node name if any. In our # case, the node name is the one we want to match on, while the # compatible is optional. Why doesn't that work? -michael