Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1101610rdb; Fri, 2 Feb 2024 13:51:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkLpvBoFxPUnG3ECu31Zl08uH+CXTR5w50YjeQgWiqCwh9N1COH5Ns88tku6QgOwwh8MrZ X-Received: by 2002:a17:903:32c2:b0:1d9:855a:3128 with SMTP id i2-20020a17090332c200b001d9855a3128mr1622684plr.33.1706910666964; Fri, 02 Feb 2024 13:51:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706910666; cv=pass; d=google.com; s=arc-20160816; b=filRu4N4O2KKUwIz8mln6CgLTx2DCI+Wqzz2ClSJXHrGPXPGLDQaGEuCusg3yBC2ag wp+8SF8rLAT4ELJnPUnJ9auo94snNfu2faT2+ljdgj7kMHw4Mq+ahALwbby1nqeiokss dTEm8A8O/LUOi664TD0S0QGOFBI3MWINxjQjJaUBP3pHLNecjOyiFeap/+zGmkUkQSl0 aJMpC4KXx4LIyJdiqnMJqFWXzcIxTGJoGQ3vNDAh5rpH+OiyYzIu2NBJfrncfOd96a4A tPFQhDzGjDaBQUnHweQKMOOYUMsGOTvsC6kiGPS3C7KnCkWI9Uk4dpPlnO/dYyB72JNy e5/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NcIRGxju6SMTFH2+BO670Y4r/6YmRM2psDzw/RSO4YY=; fh=awB20/AAEsyEIO5X5O+e0ltvYUsvhhgtR3IIoua111Y=; b=edwgW/4c9ZuopZ5gNnjG7PVyHZGE9iZG2Z7PraWUx/fnU9HwpreMZFWac49iS2mqeN fM+H+Bs92lG0UKZ9rYXhCC9dVDSYdOVckd6Dcb4q6LM0c1M9gykERkUWnytc94Ah5+88 BQmUdiSZakwYydI3DmYB55DWI2dATk6uiC+dnR0HZ2TC1q6g70sL5Y4Ao+xVL58mRsh3 Ggpt5F+er+DWWq2tgime2AV2/n7H5NQ1eqpI8Lp5jr9rvE1/1oDyel0marksyIMUNafy fjj9ljPQ8vDOTrOdHtS1VE4qRkye/L4P+nPSmLb9kc4BUHcEJH0hGSZCn24m+4LAzEgZ +8FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=bTySsv6t; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-50623-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=1; AJvYcCUCrjmesh66dv6r8dVz4E6Axw2tSurgQR6rIam6MNoLyGhLNx0p9zp7B1Qg3fOmrHCYYaJCOhoPphM/Cxv4xadRCYxO4JjYB5QjtNinKQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n8-20020a170902e54800b001d8f08c259bsi2308587plf.613.2024.02.02.13.51.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 13:51:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50623-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=bTySsv6t; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-50623-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A065C2882C4 for ; Fri, 2 Feb 2024 21:51:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7414185931; Fri, 2 Feb 2024 21:50:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="bTySsv6t" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D117D8060D; Fri, 2 Feb 2024 21:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706910649; cv=none; b=uDcQQrT/XhQI6NcwPyUOiVEICiMoFxLGLtp5fcWY7URVZ8DrUAXDpaX9wVLtLrJIKjuDZFvQwxxWxviWOg7y+5gbu+lMfiduIyfqXeYlCNw3onvxXXRb9aWiTmmz2vTNs3CKARNw4oqL4E7I4teFJ9t6QKcbDt6F4ucx8fj9JAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706910649; c=relaxed/simple; bh=O2Lsa5KL5GxKg5QnRfDjyLpIoTIAQCOszwP8LJlqAuo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZdBTb7pNAdYN+DyevOmnU585XBVZmbEXvnevtnIEkEByPA4Anf74lMeV2u0v/nvRnW1Rgr/BEnbVT+GzPWRaSEmoywxHD61vxnF8vojRzCJ4kgEKVS4xgUkoNNXcZyoFhAdJd9GP9iELAnh9JZqdUWMqgjBy7nRyqJ+ipuJ0NIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=bTySsv6t; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=NcIRGxju6SMTFH2+BO670Y4r/6YmRM2psDzw/RSO4YY=; b=bTySsv6tAo2nG6vDjflCwLCzzg yyvGGwyvsWA1nZv7jr0L+Z5cxITNBEfZnfIvqV2Nr4YrI6qzGDTXw0/NMRruC5rMV+GrriWFcPjRZ KlpeVRrQnE08zfUuj/mM+SBMTrT0CAiFfRwbXZNACfPssDVvML9oPinHV4a8Gt9TSbJ8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rW1Qh-006qsK-Dp; Fri, 02 Feb 2024 22:50:35 +0100 Date: Fri, 2 Feb 2024 22:50:35 +0100 From: Andrew Lunn To: Rob Herring Cc: Christian Marangi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Frank Rowand , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH v5 6/9] dt-bindings: net: Document Qcom QCA807x PHY package Message-ID: <9e6298ad-a0c9-4c3e-b94b-13dec8c253c6@lunn.ch> References: <20240201151747.7524-1-ansuelsmth@gmail.com> <20240201151747.7524-7-ansuelsmth@gmail.com> <20240202204536.GB1075521-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240202204536.GB1075521-robh@kernel.org> > > +patternProperties: > > + ^ethernet-phy(@[a-f0-9]+)?$: > > I don't get how an address is optional. Its pretty unusual, but for example: arch/arm/boot/dts/nxp/imx/imx6q-novena.dts &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet_novena>; phy-mode = "rgmii"; phy-handle = <ðphy>; phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; status = "okay"; mdio { #address-cells = <1>; #size-cells = <0>; ethphy: ethernet-phy { compatible = "ethernet-phy-ieee802.3-c22"; rxc-skew-ps = <3000>; rxdv-skew-ps = <0>; txc-skew-ps = <3000>; txen-skew-ps = <0>; rxd0-skew-ps = <0>; rxd1-skew-ps = <0>; rxd2-skew-ps = <0>; rxd3-skew-ps = <0>; txd0-skew-ps = <3000>; txd1-skew-ps = <3000>; txd2-skew-ps = <3000>; txd3-skew-ps = <3000>; }; }; }; There is no reg property, because its optional. If there is no reg, there is no address. When phylib finds a DT blob like this, it enumerates the bus, and then assigns the nodes to the devices it finds in the order it finds them. Its old behaviour, from before the times of yaml validation, and current best practices, etc. But because it works, it still used in new bindings. Andrew