Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp229479pxx; Mon, 26 Oct 2020 07:21:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpRlacWpJGmLliN+A81v8kfu+vyFDUQGq7CJQM6TFzDO5cJU42q5iwLaV5AsdRYnSnFyt0 X-Received: by 2002:a17:906:3e1a:: with SMTP id k26mr16211687eji.96.1603722066813; Mon, 26 Oct 2020 07:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603722066; cv=none; d=google.com; s=arc-20160816; b=Qb4JjxDnZgK0yT/4gGkK89mJg37oesqjxL0cGrauz2DQySjXUgeUCyA7HSpP+9B1kb GzV8qWihqY0LZ+qU5B/cEi/v5kvofZNSPJ2ZbenZpyPrLgRbNmp5umozb0bUWxntcM6p c0UghHmRODSg/bmW0sFYwX3qLPBlnFQmdvxOS79ER1aigE3+sg6UfBD0Sa5rfig0yric C72U4OFsNu3ZrAqSr/69bslapdTCAILM4r89Yxm9bpjilXviToPgEeAOKulkHtb1RYWw eKApe5y6b+FUKQ3tgHNYkCDLZcun/s9XperDPBvfM9/cmJztLPlKWztIcQPZCsTKFS34 +yUw== 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; bh=b7baIeex9tBAg+HC/pCtQM4CcA9Yu/P2Kiz6rbkWWFQ=; b=WYLSEA4leoHtKZBnO/18meNBzIb8oo4Cl3TmvXbw+D6t/THJA50zusOseyW61u0uHH ktH9saXeqJLlO1iyLsqIb980YB1a3XYkhgdwGw4DV+T2M3j31HXBD6Sz4c+Z3JSHQeHM mLfdOJz/zjLwLxWN+chhgO5lqQeT0Hi9+E+6+SlHIY5UXo3Qn2vbgqDvKY+dizgT3NYs zVtGJHSM7+b25qCDSYiDYorl/it4gFEFUBpLevYznTvCNkpjCUxqgftKhyB9t/m4sC60 aDksKF1qK5AWp+aD3ABpURX66Ksj8jWKw6zNKT8RjfIVe7LRdCKzGvqZu1RAdRoRTyBW z1Og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si6465735edb.466.2020.10.26.07.20.44; Mon, 26 Oct 2020 07:21:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1780746AbgJZNyz (ORCPT + 99 others); Mon, 26 Oct 2020 09:54:55 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40076 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1780737AbgJZNyy (ORCPT ); Mon, 26 Oct 2020 09:54:54 -0400 Received: by mail-ot1-f66.google.com with SMTP id f97so8051861otb.7; Mon, 26 Oct 2020 06:54:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=b7baIeex9tBAg+HC/pCtQM4CcA9Yu/P2Kiz6rbkWWFQ=; b=MtYW6Ad6rR+kaOc5JUFmVJKy7bNon8ZWrlNEuTOe1QIEPgFd4JIQCS7cGdbPSJEPGL NC3/pf2WeY/quN4BSScvztd9/1/XroHjGgbg6/7pmTmYpl/W2bAZPcPllzdlmw0wovlN 7GL8sdPo0tdPERTb4ZO2x/T0fSA200sxicK15PBnFJQPIx1ph6IGRcgxYafimvT0y5B2 azMqZrKQ++Cc8t+n95kYTF8b//nTRogJ0+cwsND3lTZSCwUNdHtq+WFXmjm88U96Pw3n L3FFVUjqvm5EGEktMyQY090KD1qO0XgN20xc+POCuPK2dD/NfWTnmDlqjTsEHjSVj4ky hiDQ== X-Gm-Message-State: AOAM530xEmhrt1xGqMFE7ajQfxo/PNo7OnlhIqt4T0bDokO9F1QqBfE3 RVsbTDbHYkFJwQvIrvthbQ== X-Received: by 2002:a9d:2389:: with SMTP id t9mr10836030otb.329.1603720493673; Mon, 26 Oct 2020 06:54:53 -0700 (PDT) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id f9sm3903361ooq.9.2020.10.26.06.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 06:54:52 -0700 (PDT) Received: (nullmailer pid 65566 invoked by uid 1000); Mon, 26 Oct 2020 13:54:51 -0000 Date: Mon, 26 Oct 2020 08:54:51 -0500 From: Rob Herring To: Florian Fainelli Cc: Vladimir Oltean , Kurt Kanzenbach , Christian Eggers , Andrew Lunn , Vivien Didelot , Jakub Kicinski , Helmut Grohne , Paul Barker , Codrin Ciubotariu , George McCollister , Marek Vasut , Tristram Ha , "David S . Miller" , Woojung Huh , Microchip Linux Driver Support , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next 1/9] dt-bindings: net: dsa: convert ksz bindings document to yaml Message-ID: <20201026135451.GA57974@bogus> References: <20201019172435.4416-1-ceggers@arri.de> <20201019172435.4416-2-ceggers@arri.de> <87lfg0rrzi.fsf@kurt> <20201022001639.ozbfnyc4j2zlysff@skbuf> <3cf2e7f8-7dc8-323f-0cee-5a025f748426@gmail.com> <87h7qmil8j.fsf@kurt> <20201022123735.3mnlzkfmqqrho6n5@skbuf> <63bc70fe-30b3-43f1-a54c-b8c82bbdc048@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63bc70fe-30b3-43f1-a54c-b8c82bbdc048@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 12:17:26PM -0700, Florian Fainelli wrote: > On 10/22/20 5:37 AM, Vladimir Oltean wrote: > > On Thu, Oct 22, 2020 at 12:54:52PM +0200, Kurt Kanzenbach wrote: > >> On Wed Oct 21 2020, Florian Fainelli wrote: > >>> On 10/21/2020 5:16 PM, Vladimir Oltean wrote: > >>>> On Wed, Oct 21, 2020 at 08:52:01AM +0200, Kurt Kanzenbach wrote: > >>>>> On Mon Oct 19 2020, Christian Eggers wrote: > >>>>> The node names should be switch. See dsa.yaml. > >>>>> > >>>>>> + compatible = "microchip,ksz9477"; > >>>>>> + reg = <0>; > >>>>>> + reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; > >>>>>> + > >>>>>> + spi-max-frequency = <44000000>; > >>>>>> + spi-cpha; > >>>>>> + spi-cpol; > >>>>>> + > >>>>>> + ports { > >>>>> > >>>>> ethernet-ports are preferred. > >>>> > >>>> This is backwards to me, instead of an 'ethernet-switch' with 'ports', > >>>> we have a 'switch' with 'ethernet-ports'. Whatever. > >>> > >>> The rationale AFAIR was that dual Ethernet port controllers like TI's > >>> CPSW needed to describe each port as a pseudo Ethernet MAC and using > >>> 'ethernet-ports' as a contained allowed to disambiguate with the 'ports' > >>> container used in display subsystem descriptions. > >> > >> Yes, that was the outcome of previous discussions. > > > > And why would that disambiguation be necessary in the first place? My > > understanding is that the whole node path provides the necessary > > namespacing to avoid the confusion. For example, the 'reg' property > > means 100 things to 100 buses, and no one has an issue with that. I am > > not expecting an Ethernet switch to have an HDMI port, I might be wrong > > though. > > The disambiguation is more of a hint given to DT analysis tools to > validate a given node with little to no knowledge of the containing > node. I don't really have a dog in the fight here. A node name should mean 1 and only 1 type/class of node. 'ports' (and 'port') is for the graph binding. Rob