Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5657790pxj; Wed, 23 Jun 2021 06:19:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGH0DRzZUIMChC/PpG1pM7Yjq1USPpvz2sEOWaDqEowi6HmlG1nmZFSduu3mxM2rx+Mg9K X-Received: by 2002:a17:906:60d3:: with SMTP id f19mr10134327ejk.413.1624454393031; Wed, 23 Jun 2021 06:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624454393; cv=none; d=google.com; s=arc-20160816; b=P2H/wUQVMEeQfdBEdEAAAs0w/NLiouii0Jhv8/aXjUdXhX9F8Vg7LK4D/kVPh/3C3j nUgcU0qRWBSuL4xtc5FZOTlyLWjk0/dG3kzPnXqmh2LyvTMxaEhUdeh3yCongL+6gWz+ wxNMbQ1E1vhLm7cDt0vPozWQNBXodaRbo2uBIkCWfBIhZJuZjuwtRq46KWEZjHyblDy5 xuwI9+6+PXs1bWS/hnP7kfx4nQVitPM1+ZJ4FXZcxzRfP5JQHiuSX7K8+e3Ff0EZG1Ej VsQx+heXOOxLDhYUYRXdGD1pF3orQFOlwBXhhJ5SZtfXZUcCEA5a/QbiocFPgRPLzT6f AL6g== 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=l3Mdl37ptulzi/amZuYMo3pqLMLTnrhN/xeuh+SnyY8=; b=1LblyT+Jd+NUYIUizuryur0yb8P9qPyJUlOtd/qbi01LG/pPJ00dwIBAKJHGR2Hq76 bQcLnMSVS9bVvoy9DNpktKxneeK5QN3cAz32OfY4JnXj8FnmYaW+Y37T2TunZ8VxHDZR 1ItvEdJFYCCNiPMpLOBqX78pVqO3lc8ShFofWCXeD281Dq63fLwgdXbcuqf/dLBvoNeM eVuo8Ojhq2z6FQg0LH6JuTZwm7CvR4cbeeLfxRNqMbKzpph1GjToreZlcIgnR0SMFrHr tZnctIJ+c+ygaN/AAyb+0OepV562kOCXjaUbfFyO3y0zze2LIe+ti8yGlbC5Wc9HA0rO lPkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kj1EEQcN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si10880742eds.557.2021.06.23.06.19.30; Wed, 23 Jun 2021 06:19:53 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kj1EEQcN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbhFWNTs (ORCPT + 99 others); Wed, 23 Jun 2021 09:19:48 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:51750 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230163AbhFWNTs (ORCPT ); Wed, 23 Jun 2021 09:19:48 -0400 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=l3Mdl37ptulzi/amZuYMo3pqLMLTnrhN/xeuh+SnyY8=; b=kj1EEQcNerDvoNaOpZPQx+HRzu ebWZrS0pOrocIWAhBnbn+/i9T/S82Fkb/O7sg09rffUiVIKuoX+Zc+31QPNK7RtOY5dg1pSvTtUtb RvMknfGRuDsyiMjxY8xUILT+kRu7/kjp+8x1m18gJHxERyA00gi+wzWL2deEobmxqkYU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lw2kl-00AqVp-2V; Wed, 23 Jun 2021 15:17:15 +0200 Date: Wed, 23 Jun 2021 15:17:15 +0200 From: Andrew Lunn To: Lukasz Majewski Cc: "David S . Miller" , Jakub Kicinski , Madalin Bucur , Nicolas Ferre , Joakim Zhang , Florian Fainelli , Vladimir Oltean , netdev@vger.kernel.org, Arnd Bergmann , Mark Einon , NXP Linux Team , linux-kernel@vger.kernel.org Subject: Re: [RFC 1/3] ARM: dts: imx28: Add description for L2 switch on XEA board Message-ID: References: <20210622144111.19647-1-lukma@denx.de> <20210622144111.19647-2-lukma@denx.de> <20210622225134.4811b88f@ktm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210622225134.4811b88f@ktm> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 10:51:34PM +0200, Lukasz Majewski wrote: > Hi Andrew, > > > On Tue, Jun 22, 2021 at 04:41:09PM +0200, Lukasz Majewski wrote: > > > The 'eth_switch' node is now extendfed to enable support for L2 > > > switch. > > > > > > Moreover, the mac[01] nodes are defined as well and linked to the > > > former with 'phy-handle' property. > > > > A phy-handle points to a phy, not a MAC! Don't abuse a well known DT > > property like this. > > Ach.... You are right. I will change it. > > Probably 'ethernet' property or 'link' will fit better? You should first work on the overall architecture. I suspect you will end up with something more like the DSA binding, and not have the FEC nodes at all. Maybe the MDIO busses will appear under the switch? Please don't put minimal changes to the FEC driver has your first goal. We want an architecture which is similar to other switchdev drivers. Maybe look at drivers/net/ethernet/ti/cpsw_new.c. The cpsw driver has an interesting past, it did things the wrong way for a long time, but the new switchdev driver has an architecture similar to what the FEC driver could be like. Andrew