Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp374400rdb; Mon, 22 Jan 2024 07:01:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IH93sC4+XO+TK40qvh5QDcvuD4tKlfMTZUKB722ylBO1+v2AJ3hop2on30G7irF86zU1K19 X-Received: by 2002:a17:90a:df12:b0:290:1f9c:16f4 with SMTP id gp18-20020a17090adf1200b002901f9c16f4mr1341502pjb.79.1705935682840; Mon, 22 Jan 2024 07:01:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705935682; cv=pass; d=google.com; s=arc-20160816; b=nfmwEIfqF0Ibr7+kejH4Fc1B+4f63BhSahO02JdQKboW+VyTohxUlczeNlQmHIb963 IYHkqIeEiCGBOqSHnhELgQbGTgE5NBCa3jmacIDKxqt1YntH7Gs4vLJIfLNfWcXcA0wI AHwzpEsVg0ftJkUEsFGCm0XUZ4/FHn5zEqShBOtUTDNY0QrGgG7NcY2H5tOy6TjFpXXA GgCkaZFS/+NazzJQqBvMDGf/d33TYCplG9peCGanou6CDQQ15mlj1EhcXQmJlns/Acw6 vTaqw390j2z484PMkCMq2b6cy7LNwdfGPDr0iwu9gpnzX8oXeMY1fvz9IZBvTSbNA9YM KQSg== 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=ZgpoVOQM8qrxQhdVveMCPFTkIxUppA0Pw9b82iO99kI=; fh=fgPL1zRtcqPuWhNAmrzjF/GVsDDqiwotX+SOL12KJVs=; b=x6zUy5XkVFDD11frflepAMN+AYLvNHbEpLZY0Kpn3ZmH+XC+S9oHBNr0C0oaQW6u07 4k53gXJV4d5XXPNT+0WGtW+wtmhHyG4u6BaCb9bNXN9I/LxgVRErhGWPc1GygAOo3PE8 +JVgrK4/cFvCUsK2DEwQD+0ZDaHc3OwjNVB1N5DujuWnLqN/16dsUEERbxxgFHELTMFB 2bL+5/p5Yk9bhr9zFo367jofFX+8vjDHPfopmG1VgmjyKPKKlPIucB15dBNFe+YJKmyB 2LgnkVaGGg/92z7L3dUwCZI7yHbLAT27SoKIlHKKjZXy5dMJdtMsO+yGG+4sc8E6dFiH 2HTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=jr1UCVj1; 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-33154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t24-20020a17090aba9800b0028d30acfe16si8144249pjr.47.2024.01.22.07.01.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:01:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=jr1UCVj1; 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-33154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33154-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9E689B28E3E for ; Mon, 22 Jan 2024 14:26:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B9F13D570; Mon, 22 Jan 2024 14:26:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="jr1UCVj1" 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 EB5623D550; Mon, 22 Jan 2024 14:26:01 +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=1705933564; cv=none; b=joOAZ8IW9nB+o62ZONNKy/AnSQhOflERtW0RiYzcxwnPSbAI9j5CPAIcc+xBCW9pxQbQGjdSBFcDreWE4xth/UIFQfEQi/1kkP+bVax5usQHO+AoN6h6ICnMIvSJ/LEWzef3sIS8kVDxnp9SJJTunxU8S+hdeJiyCJJPHFy6DLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705933564; c=relaxed/simple; bh=pjnm2lVqgNCInFj28zDKIV7ML2AgLtVB+44YgPff9vM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YUyT/JMxaOszL0D5bp2zsUK+DDoX+QzxRJC+MNOnSDz04/ACLJCLQdyPAhZ607iJ/1u6F2twvXpw0V/V3o3kw33IfA3pKV/lryz5CnRURrDh9Fcza4uBtAnJ8ckjen148HDykE6zG5cdkH4qEsaP1xRrct4S97waok44hDHo8mU= 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=jr1UCVj1; 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=ZgpoVOQM8qrxQhdVveMCPFTkIxUppA0Pw9b82iO99kI=; b=jr1UCVj1Q4Bptbe9SGYAU94oiy +J3vFXfAUmclOcNEKiS/+8BISG6iv9l4K7FuRewcUy5Q4BfmJFtWoYCTxooiqKP6+NnNQNfyb2kTq S5M9atD4TW+8KRdWxeJUAqi4r+hRuUjIeD9Qm5yNjNBe3hPRt48tN5yplKPrGtyTTUAM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rRvEz-005jLv-Qg; Mon, 22 Jan 2024 15:25:33 +0100 Date: Mon, 22 Jan 2024 15:25:33 +0100 From: Andrew Lunn To: Jie Luo Cc: Krzysztof Kozlowski , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, catalin.marinas@arm.com, will@kernel.org, p.zabel@pengutronix.de, linux@armlinux.org.uk, shannon.nelson@amd.com, anthony.l.nguyen@intel.com, jasowang@redhat.com, brett.creeley@amd.com, rrameshbabu@nvidia.com, joshua.a.hay@intel.com, arnd@arndb.de, geert+renesas@glider.be, neil.armstrong@linaro.org, dmitry.baryshkov@linaro.org, nfraprado@collabora.com, m.szyprowski@samsung.com, u-kumar1@ti.com, jacob.e.keller@intel.com, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ryazanov.s.a@gmail.com, ansuelsmth@gmail.com, quic_kkumarcs@quicinc.com, quic_suruchia@quicinc.com, quic_soni@quicinc.com, quic_pavir@quicinc.com, quic_souravp@quicinc.com, quic_linchen@quicinc.com, quic_leiwei@quicinc.com Subject: Re: [PATCH net-next 02/20] dt-bindings: net: qcom,ppe: Add bindings yaml file Message-ID: <6fbfc205-fffa-42bd-8019-368559db77ac@lunn.ch> References: <20240110114033.32575-1-quic_luoj@quicinc.com> <20240110114033.32575-3-quic_luoj@quicinc.com> <1d1116da-9af3-49e4-a180-cff721df5df5@linaro.org> <749136bc-3db9-4b2d-a9ca-e5fb5985f639@quicinc.com> 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: <749136bc-3db9-4b2d-a9ca-e5fb5985f639@quicinc.com> > > > +++ b/Documentation/devicetree/bindings/net/qcom,ppe.yaml > > > @@ -0,0 +1,1330 @@ > > > +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/net/qcom,ppe.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Qualcomm Packet Process Engine Ethernet controller > > > > Where is the ref to ethernet controllers schema? > Sorry, the title above is not describing the device for this dtbindings > correctly. It should say "Qualcomm Packet Process Engine". The > reference to the schema for PPE is mentioned above. I think you are not correctly understanding the comment. within the PPE you have a collection of Ethernet interfaces. All the common properties for Ethernet ports are described in Documentation/devicetree/bindings/net/ethernet-controller.yaml so you are expected to reference this schema. > > > +description: > > > + The PPE(packet process engine) is comprised of three componets, Ethernet > > > + DMA, Switch core and Port wrapper, Ethernet DMA is used to transmit and > > > + receive packets between Ethernet subsytem and host. The Switch core has > > > + maximum 8 ports(maximum 6 front panel ports and two FIFO interfaces), > > > + among which there are GMAC/XGMACs used as external interfaces and FIFO > > > + interfaces connected the EDMA/EIP, The port wrapper provides connections > > > + from the GMAC/XGMACS to SGMII/QSGMII/PSGMII/USXGMII/10G-BASER etc, there > > > + are maximu 3 UNIPHY(PCS) instances supported by PPE. I think a big part of the problem here is, you have a flat representation of the PPE. But device tree is very hierarchical. The hardware itself is also probably very hierarchical. Please spend some timer studying other DT descriptions of similar hardware. Then throw away this vendor crap DT binding and start again from scratch, with a hierarchical description of the hardware. Andrew