Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3035514rdg; Tue, 17 Oct 2023 02:33:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlRtbBSvjKgPib2kZ8LtwiXREitejlw9uoGEb6VzMEFlRWG8X7Hj2sk+ZdtQ2TyLRkJI3E X-Received: by 2002:a05:6a21:798a:b0:15d:2bff:77b with SMTP id bh10-20020a056a21798a00b0015d2bff077bmr1294287pzc.34.1697535221068; Tue, 17 Oct 2023 02:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697535221; cv=none; d=google.com; s=arc-20160816; b=uWs3TAOLShy4mW+gnK79+QEe5UwXJpWPY7CxJDwo5hzVg8nVZpPwNd1gonMW8TW1cy SHhofh7tOqdHjBMTjzaBzvxmAkykgsYgC2ZwRGPBIHrcQ/hXijZH0DtPOyMgTFqUWTE+ 36hAUJ4wlfMFgK+RGlzOifJ3j4Nz3diFLoUzX2FRCLOFGh1sfMTDbG+i1nTiR1XdR/++ yJNG05vd2P14v4I1spdG1aOCOxUxJYhFVfcED9woOOplqkXy52N93zcIYOp4rEJ8gUNe JupaAIJNBqFVZ0xCGG63MdPQfSAGaDCrvGam+cry2DA1dkeKzrsPHKdNLH2aGc8QQWFJ HAOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xOqbqZUu//HMsDtmlOc6eburKLLaOWxAZ4a81kXORAc=; fh=NFX24y58V1R47YeBQdzgf+OY4YuzsZJ8HZFl3uSM6Pw=; b=y1aA2y+pJmvzN7WC02X7SvWvuaec0oELibH3qx8qwXZ7LraCSdxziWKCgzeUgVoOp4 65aSxSAXVksUJn/xCXzC2wzAv9sCBcVtVdPBS7IkAIJpVqr6Kp26jj3u0+oluRTMrvCj dpnCvb4vXitSH+BcTVSG3X6FYt3h0YeNfbQUN9c8im57Er3LZ4C5jPAB4D+pNMhQIlYb tqPmz2bWVdz0P3/6ssgd3QamosZKTZJCbpuyibIKrSkMpu8YuoOx8NQoMNvh5jK3eXTs u33vpBv6eFcwD1zjF3UJ/dRkg6CTSj+zZlXpKH2ZgW8yr3OmAGT68TaR+FXDPFpjNdvx MkXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ELddAi28; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id pf2-20020a17090b1d8200b0026b502223cbsi1418362pjb.10.2023.10.17.02.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 02:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ELddAi28; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 67AF4802B01B; Tue, 17 Oct 2023 02:33:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234976AbjJQJd3 (ORCPT + 99 others); Tue, 17 Oct 2023 05:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234806AbjJQJdM (ORCPT ); Tue, 17 Oct 2023 05:33:12 -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 60E472106; Tue, 17 Oct 2023 02:31:42 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99de884ad25so883617666b.3; Tue, 17 Oct 2023 02:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697535100; x=1698139900; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xOqbqZUu//HMsDtmlOc6eburKLLaOWxAZ4a81kXORAc=; b=ELddAi287gwjFMdIZNVdt6nhnCInRY0JljUlcPOy3GaxkwVqeXEhPYBG+nQax0lZPn 0+cKYmUfNS3p6CRr7LSx6BMPqjmH0Jyit06ATaQxwIbnMx/yFRlgJ5f3331dHM6p7/9n xmEhMFCjzNdS4OqOo2wUYP2N+0cjzhS5nTJP5pSqyZdeI+uJazkb2GEQtIfOQSOeMZQg aZT3qELP5Bja8FNikoHGPDYHFieMxU32pYDjiJWkV09+PRiVHAW2YRqjjJ0EZAE6gKLP TgCZGuUgkF6bHJ89j+F30JU43b+b6aY9XbRFk4NagRwGY+yOF2oTvT3ovKFUks4ekUjS FwWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697535100; x=1698139900; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xOqbqZUu//HMsDtmlOc6eburKLLaOWxAZ4a81kXORAc=; b=kMfFL0BQGU84MTadbfbuonlI9oE5ZJ192bT7SqBp8qBSeKysO380izFKZanQhZujil 0WeLySd+9k3XStP4xzJLVYFM8HSKbyLn2Hs5yBzLdyDbLJkKKa3JJPAeiGqnS1KotnLQ Vm+ieO3jHYvlxOQQSu8k+rPfCVbc/kCaoixRVjZkUQdDDnCBY91TUamQKepCmqZOZWaE E7mbhskdljvDMmb+rg4B8dGYi8SofLp+KxaBH20exYt6Gdj8A9V8HshKybhXRdiMnLZ5 hw3tU6aZLjjW9xd07xs4vDR5nQo6XyxIZ0ofW5PpoA0h1dcekypSnkmw0G68U4ls6R3a MmnA== X-Gm-Message-State: AOJu0YzgchU93iHRgHFEGhBJhaeW2A3lEJ2kje/Gmuxs3L/p6zXgjmYq iNiRB0303OSDLlAy9MxdZIY= X-Received: by 2002:a17:907:ea2:b0:9bf:4915:22ca with SMTP id ho34-20020a1709070ea200b009bf491522camr1303059ejc.45.1697535100453; Tue, 17 Oct 2023 02:31:40 -0700 (PDT) Received: from skbuf ([188.26.57.160]) by smtp.gmail.com with ESMTPSA id i18-20020a1709061cd200b009b2b9af0784sm869947ejh.110.2023.10.17.02.31.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 02:31:40 -0700 (PDT) Date: Tue, 17 Oct 2023 12:31:37 +0300 From: Vladimir Oltean To: Conor Dooley Cc: Ante Knezic , andrew@lunn.ch, conor+dt@kernel.org, davem@davemloft.net, devicetree@vger.kernel.org, edumazet@google.com, f.fainelli@gmail.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, linux-kernel@vger.kernel.org, marex@denx.de, netdev@vger.kernel.org, pabeni@redhat.com, robh+dt@kernel.org, woojung.huh@microchip.com Subject: Re: [PATCH net-next v2 2/2] dt-bindings: net: microchip,ksz: document microchip,rmii-clk-internal Message-ID: <20231017093137.qag7xcjuklekn3ef@skbuf> References: <20231016103708.6ka5vxfkdatrjvdk@skbuf> <20231017073548.15050-1-ante.knezic@helmholz.de> <20231017-fading-retrial-7faebda79ebb@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231017-fading-retrial-7faebda79ebb@spud> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 02:33:38 -0700 (PDT) On Tue, Oct 17, 2023 at 08:48:27AM +0100, Conor Dooley wrote: > On Tue, Oct 17, 2023 at 09:35:48AM +0200, Ante Knezic wrote: > > > > + microchip,rmii-clk-internal: > > > > + $ref: /schemas/types.yaml#/definitions/flag > > > > + description: > > > > + Set if the RMII reference clock is provided internally. Otherwise > > > > + reference clock should be provided externally. > > > > + > > > > +if: > > > > + not: > > > > + properties: > > > > + compatible: > > > > + enum: > > > > + - microchip,ksz8863 > > > > + - microchip,ksz8873 > > > > +then: > > > > + not: > > > > + required: > > > > + - microchip,rmii-clk-internal > > I think this bit can become the slightly simpler > then: > properties: > microchip,rmii-clk-internal: false This looks better. I don't understand how the original formulation worked ("not: required:" when the property was never "required" in the first place - does that do anything?), but I understand how this one does. > > > I think that what you want to express is that microchip,rmii-clk-internal > > > is only defined for microchip,ksz8863 and microchip,ksz8873. > > > Can't you describe that as "if: properties: compatible: (...) then: > > > properties: microchip,rmii-clk-internal"? > > > > If I understood you correctly you are refering to a solution like > > if: > > properties: > > compatible: > > enum: > > - microchip,ksz8863 > > - microchip,ksz8873 > > then: > > properties: > > microchip,rmii-clk-internal: > > $ref: /schemas/types.yaml#/definitions/flag > > description: > > Set if the RMII reference clock is provided internally. Otherwise > > reference clock should be provided externally. > > > > This was already suggested in v1, but was not a satisfactory solution > > according to Mr. Conor Dooley: > > Yeah, we prefer not to have the property definitions inside the > conditionals, but rather constrain or allow/disallow them there. > > Cheers, > Conor. Ok, now you know I didn't open the discussion on v1 :)