Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp173805lqb; Fri, 15 Mar 2024 22:01:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrydWDjceLnG73TQQcdSWNgBGPoKB9JMRw72dmvgxjzoIkrHVEL+DfhnBrVd4gN+pEX+2vTT2eRKSKGLrfHrjb0/DdygxyMmQi/tBniQ== X-Google-Smtp-Source: AGHT+IHK5cVfUCESdnciNkm36LM5g/5uKX/Fx+4sSnSyC2GwqZQWcSUNoUV+80WBsYWZr1UjNmuI X-Received: by 2002:a05:6402:2486:b0:566:1127:4bb5 with SMTP id q6-20020a056402248600b0056611274bb5mr5125746eda.1.1710565298097; Fri, 15 Mar 2024 22:01:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710565298; cv=pass; d=google.com; s=arc-20160816; b=oLVsqR657/KqHOCyaMb1uyXF+FR9F6t0WY18Outbroic7WXaXi+b6bwGPxJU20kl7/ 52vQWcO47YxDFe+tbtC+fqrdYYoKC6uQnyjzle3gMw4fNYnZzEM4rx1VFh2hH7yd1apT WQOv8tMEJdQmrebyN6KToSV/hsMyKBIah/D1yHaeYdypYDnIAVbMUcXSENJyPHyYSWnY G80qG8Niy4miqm3ef5RgRq2QkgPp7Jde9rBzeftlnBiv5wnwz5Fv2Fp6+IntTaCkQpMg by6K4DHyMqxQ6pnQnnc1fbp6UJTg4KdMaTts4t+4Oz3C/tFiO5PBZgz5ROYy9C13Dx+P ElGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ZLLKXiDuf/ZV7h8cTO2GqsnzYRx41EMWrLmnpm0TLqo=; fh=Cdsx/KuQHxF90JhTIDh8H77Ed1cjqMRWAJPnZDXi86A=; b=Hk39NX1jjHL8KuUhK2SQU24tR2eryqK7tozm1lN6rV1oXn4MGl3YctBLFvYm2Kix+3 8UxM1OHzhsmDkrZr1ge6xyN4zedAZxjotJ1NYiqubN61PIONFAe4owuaxaTlIAE3bC/Q yk90Bd6irza0z2Oj8Q3p4/4F7jOWr04ORDK3OYpggZD+ie4bWmubxCcjxgReZgn2IAx7 dnqnP9BCtjaGE0HETWS31ObQ/rZNbGsF2pTn7YEHBxRUEHrcg3JLMjj14acU9j5YRYvo ZcLO5QVZc7BX2wwWxSWjE7ur2FTUaE7nZf0QZ19xdUi7ElC86rRCEvQmtzsunvM4Uugl LaLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@risingedge.co.za header.s=xneelo header.b=CnmyI4Xk; arc=pass (i=1 spf=pass spfdomain=risingedge.co.za dkim=pass dkdomain=risingedge.co.za); spf=pass (google.com: domain of linux-kernel+bounces-105088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105088-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b20-20020a0564021f1400b00568b645390bsi876686edb.405.2024.03.15.22.01.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 22:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@risingedge.co.za header.s=xneelo header.b=CnmyI4Xk; arc=pass (i=1 spf=pass spfdomain=risingedge.co.za dkim=pass dkdomain=risingedge.co.za); spf=pass (google.com: domain of linux-kernel+bounces-105088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105088-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A62C11F215EC for ; Sat, 16 Mar 2024 05:01:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59D97DDC3; Sat, 16 Mar 2024 05:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=risingedge.co.za header.i=@risingedge.co.za header.b="CnmyI4Xk" Received: from outgoing4.flk.host-h.net (outgoing4.flk.host-h.net [188.40.0.90]) (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 5CF875C89; Sat, 16 Mar 2024 05:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.0.90 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710565279; cv=none; b=SMA+hjGOpibd0tm6Yx+6XRb8bICjKmziw0SKJfDicH1o7UL3cv9bBx80ZAy+83RKaezdxYB5FZX5HmbeWMYgpObvWBBmqjshhT4glfBF95mhtQbAVSd816dKsnotKeggKhAOyq7HGVvWUXm885T1atBeTpU2YXjTBV5fkzy2LLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710565279; c=relaxed/simple; bh=nnkElslWgHa6V5Tt4oBUS12hPxibs3pTYN8GKJ11cok=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SGIqWwZa9VYeRBRWGFjYCcKpKU1CXi21CCtiRgUdskSHIzt0170Yot2qivyeWRqdZs/6R7Qr+2rDfJfuTdgn8sOBwql8WZXyLZ90OaXd7ZFmp7SRhT8Ynm3eVjvuO14L/998LFGuGhFd31IvWuOjwwIx1Aiyc6AqMFawK+dXpkE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=risingedge.co.za; spf=pass smtp.mailfrom=risingedge.co.za; dkim=pass (2048-bit key) header.d=risingedge.co.za header.i=@risingedge.co.za header.b=CnmyI4Xk; arc=none smtp.client-ip=188.40.0.90 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=risingedge.co.za Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=risingedge.co.za DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=risingedge.co.za; s=xneelo; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:reply-to:sender:bcc :content-type; bh=ZLLKXiDuf/ZV7h8cTO2GqsnzYRx41EMWrLmnpm0TLqo=; b=CnmyI4Xks4x mVnG2ZzgYAdh/m+pnL2OiE0X6XJY6jRL2qGjKUYThqYBq7Hg9z3QMkQSCQlyLgPYTdBlEeUqAbUdD KOFDO4qwyWsG7U7FIX78MusTUuB3FIdypI4ySNtOAPayoDdA2fptUHsWIUET3duNz6kp1zDGEK04y mQeGuct0WI0y6DVWhSfIQotYryWUWRVinYrCIErMoviUViVz3KAY86bOaU0XgE1yxrZM1GYTm11dn CqPVtrN0HbNRRpwRBwvVyCdiP+Rgf6RdP6Bhjn6s969QzeKorAJKgbtArYoxiAh4wXkzaJP8xrLZf pRD/6ZeCBYCbZ2eILV4n51w==; Received: from www31.flk1.host-h.net ([188.40.1.173]) by antispam1-flk1.host-h.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rlMAS-00C0SF-Lr; Sat, 16 Mar 2024 07:01:13 +0200 Received: from [41.144.0.193] (helo=localhost.localdomain) by www31.flk1.host-h.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rlM4m-00048C-TN; Sat, 16 Mar 2024 06:55:21 +0200 From: Justin Swartz To: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Sergio Paracuellos , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Justin Swartz Subject: [PATCH 12/14] mips: dts: ralink: mt7621: reorder pcie node attributes and children Date: Sat, 16 Mar 2024 06:54:40 +0200 Message-Id: <20240316045442.31469-13-justin.swartz@risingedge.co.za> In-Reply-To: <20240316045442.31469-1-justin.swartz@risingedge.co.za> References: <20240316045442.31469-1-justin.swartz@risingedge.co.za> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: justin.swartz@risingedge.co.za X-Virus-Scanned: Clear X-SpamExperts-Domain: risingedge.co.za X-SpamExperts-Username: Authentication-Results: host-h.net; auth=pass (login) smtp.auth=@risingedge.co.za X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.01) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9pM7yBTW3/qtGz5nSS82YvPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5wPY5yY5vX9MqMW2dd4bQescfggEolMHSR1Me+1tLQd/4/M 684FXPwRt/ItN/QGHZWwYVP/cCt8Z7AC3QZraAAXGOt0uV2bCpZmMTDaVY6o43+4/UA7yKh3fsRx FRwz3BBjyk7zbazyOxi/UqYNqAkRRGBP0VCgd4sTxz5Nt/DkcKfPy9Occ20k9TJ7Nj73O0V9NPjB nDE1daoPH54M/DHR5hr5ConJQfcb9SHvDRICkaHkmqj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Nbf0lrvssY+k7AHGi1NevGWTo2+h8 Lhk4HCeZR7ymlGVRtthBJ2y8A5arx6JItKpFaUNPGMMlvbMX0nyK1NiAJ0y2Qvvn6ds6mor35w4f SfHzQbABJfgy21HclcZkPRq7NhoxyMwqi8Q23Rgadfh5T5n5D4OHHpbEIgsllZKWnzc5M5WlNtVJ qo05MS+4ayUpOtEhdxekWDmK9g== X-Report-Abuse-To: spam@antispamquarantine.host-h.net Reorder the attributes and child nodes of the PCIe Controller node to meet the DTS style guidelines. Signed-off-by: Justin Swartz --- arch/mips/boot/dts/ralink/mt7621.dtsi | 68 +++++++++++++++++---------- 1 file changed, 43 insertions(+), 25 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ralink/mt7621.dtsi index f6418201b..aa06d12ac 100644 --- a/arch/mips/boot/dts/ralink/mt7621.dtsi +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi @@ -495,70 +495,88 @@ pcie: pcie@1e140000 { <0x1e142000 0x100>, /* pcie port 0 RC control registers */ <0x1e143000 0x100>, /* pcie port 1 RC control registers */ <0x1e144000 0x100>; /* pcie port 2 RC control registers */ + ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>, /* pci memory */ + <0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */ + #address-cells = <3>; + #interrupt-cells = <1>; #size-cells = <2>; - pinctrl-names = "default"; - pinctrl-0 = <&pcie_pins>; - device_type = "pci"; - ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>, /* pci memory */ - <0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */ - - #interrupt-cells = <1>; - interrupt-map-mask = <0xF800 0 0 0>; - interrupt-map = <0x0000 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>, + interrupt-map-mask = <0xf800 0 0 0>; + interrupt-map = <0x0000 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>, <0x0800 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>, <0x1000 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>; - status = "disabled"; + pinctrl-names = "default"; + pinctrl-0 = <&pcie_pins>; reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>; + status = "disabled"; + pcie@0,0 { reg = <0x0000 0 0 0 0>; + ranges; + #address-cells = <3>; + #interrupt-cells = <1>; #size-cells = <2>; + + clocks = <&sysc MT7621_CLK_PCIE0>; + device_type = "pci"; - #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>; - resets = <&sysc MT7621_RST_PCIE0>; - clocks = <&sysc MT7621_CLK_PCIE0>; - phys = <&pcie0_phy 1>; + phy-names = "pcie-phy0"; - ranges; + phys = <&pcie0_phy 1>; + + resets = <&sysc MT7621_RST_PCIE0>; }; pcie@1,0 { reg = <0x0800 0 0 0 0>; + ranges; + #address-cells = <3>; + #interrupt-cells = <1>; #size-cells = <2>; + + clocks = <&sysc MT7621_CLK_PCIE1>; + device_type = "pci"; - #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>; - resets = <&sysc MT7621_RST_PCIE1>; - clocks = <&sysc MT7621_CLK_PCIE1>; - phys = <&pcie0_phy 1>; + phy-names = "pcie-phy1"; - ranges; + phys = <&pcie0_phy 1>; + + resets = <&sysc MT7621_RST_PCIE1>; }; pcie@2,0 { reg = <0x1000 0 0 0 0>; + ranges; + #address-cells = <3>; + #interrupt-cells = <1>; #size-cells = <2>; + + clocks = <&sysc MT7621_CLK_PCIE2>; + device_type = "pci"; - #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>; - resets = <&sysc MT7621_RST_PCIE2>; - clocks = <&sysc MT7621_CLK_PCIE2>; - phys = <&pcie2_phy 0>; + phy-names = "pcie-phy2"; - ranges; + phys = <&pcie2_phy 0>; + + resets = <&sysc MT7621_RST_PCIE2>; }; }; --