From patchwork Tue Oct 25 05:50:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 13018506 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56744C38A2D for ; Tue, 25 Oct 2022 05:53:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zq/W1BHhNOMzjwHvWB+GIhHxGti/SLW+KiKGrpgThpE=; b=LshSrqPzATUS5s ZXGfqSOQ4etaUplVkyGf7vyRKuU121iT5GybvUKxwTYYC4YnZgAoJPbmZREwnYIsaHEzGB8IY/Kq6 Ch3j5AMLN2LP7IGvf4ePPZ0dsZK03x0yqQ10FJtwXgcn/D3vKfY2hYI5SG/901WvtALYa8jAFLuba S42X5TynXXCZe6oIANHJl9s6S/CijeTQrq4qJLr+vuOIFvYtJNBgJ/bWnCNazediKSbF3qZrmyqOX U/yqR8BL3TJGj+z7ZlMmn41Mj/HHotIk/+5QgAI3v55ps5QU1gYKFEKQ1QP17EHmEJMWCZ23I3b8B s0i+eB+MlBWfhd5FZY5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onCrG-003x4E-P3; Tue, 25 Oct 2022 05:52:14 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1onCrE-003x3D-Ia for linux-arm-kernel@lists.infradead.org; Tue, 25 Oct 2022 05:52:13 +0000 Received: by mail-pf1-x42f.google.com with SMTP id g16so5467810pfr.12 for ; Mon, 24 Oct 2022 22:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hIosgv5purvdOHjHB0Bdm/xsYrKIRMZ14fsco2UYxnk=; b=Gi0LqGujeeIHDVQVa56iRgjW+CI3P/VaODt++d1WhDW+E0Ql+uw8P7QiLdb5EKVxtU /buJsSr4XGFfPVSn7bFH4r0seo1W1Y3V0D+O2p+hV4jFqX+NUK2d5zkFrFD+r0KKH0SC lAz8b3loolLsYJC277CGRf6khkO3AF9WYUoQPdv8JCpvx+PAGSa0YQ3hAaefocawFLIX h08NMopijzftxPlUZzLBC1fZmGjdZmsPmFOHFiiTWLPDmIjWAtOe8Y5ZvHap0MxIb7Zu KFG6TOPr5uyTE4Et8IeR4w/dbHdTx+foft5trYjehD0l5FSZBrGfAU+QzyfLNwOY64Dm rgMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hIosgv5purvdOHjHB0Bdm/xsYrKIRMZ14fsco2UYxnk=; b=vh4p4kcXPaEdExcU0ymhUoNj0IxFUiVtliToUik2/6ok3ihtmZ3lsmpfMxeNVc13po 2+cYjQabrmpKaOLXv9M5Jr9td9qtkFVHwqh+od124KK3QeZfHVEkK9flsD8e2dW/b49/ WCBwCFnn9QcMPeXErNqlla6mA205eTA5cCLgk9ZYW91+wPkimrtga/i2gKSf5fJzNqsw VudoAWCd7c1FLVDE12/vKgwFIi4wpwEVLj96x9+qtd1HVcs3eJVbYepUfwc3alFk99lU GTBE73ONbFEtShUtjOo76jbclQzrDLzd+JpiSCDS77f1OVAvPt+i3z8lnuoOh3wwBcMj +x7A== X-Gm-Message-State: ACrzQf0mbLZIPIkyyl94OZV3+sVkBPrrXR/XSDoO83n4RvRo+sAPMhr4 AhgCQ70JcSj1Ge416ui0p0s= X-Google-Smtp-Source: AMsMyM5Yrz5n05HNZztnB0pQdKPHsHmLKVkt2d8mYs8HXJ1l2cDamvLiDiMe7LXO+RQoeZk++Djq0Q== X-Received: by 2002:aa7:810a:0:b0:55b:674d:d123 with SMTP id b10-20020aa7810a000000b0055b674dd123mr38050507pfi.52.1666677122845; Mon, 24 Oct 2022 22:52:02 -0700 (PDT) Received: from localhost.localdomain.dhcpserver.bu9bmc.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id e126-20020a621e84000000b0056ba6952e40sm675644pfe.181.2022.10.24.22.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 22:52:02 -0700 (PDT) From: Potin Lai To: Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Patrick Williams , Potin Lai , Potin Lai Subject: [PATCH v2 1/1] ARM: dts: aspeed-g6: add aliases for mdio nodes Date: Tue, 25 Oct 2022 13:50:46 +0800 Message-Id: <20221025055046.1704920-1-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221024_225212_631317_527307B4 X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add aliases for mdio nodes so that we can use name to lookup the bus address of Aspeed SOC. For example: root@bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio0 /ahb/mdio@1e650000 root@bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio1 /ahb/mdio@1e650008 root@bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio2 /ahb/mdio@1e650010 root@bletchley:~# cat /sys/firmware/devicetree/base/aliases/mdio3 /ahb/mdio@1e650018 Signed-off-by: Potin Lai Reviewed-by: Patrick Williams Reviewed-by: Joel Stanley --- LINK: [v1] https://lore.kernel.org/all/20221025024145.1561047-1-potin.lai.pt@gmail.com/ change v1 --> v2: * move mdio aliases to aspeed-g6.dtsi --- arch/arm/boot/dts/aspeed-g6.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index 0cc92874caa8..6f159ef1efbc 100644 --- a/arch/arm/boot/dts/aspeed-g6.dtsi +++ b/arch/arm/boot/dts/aspeed-g6.dtsi @@ -36,6 +36,10 @@ aliases { serial4 = &uart5; serial5 = &vuart1; serial6 = &vuart2; + mdio0 = &mdio0; + mdio1 = &mdio1; + mdio2 = &mdio2; + mdio3 = &mdio3; };