From patchwork Thu May 28 19:53:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 199806 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEB98C433E0 for ; Thu, 28 May 2020 19:53:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA3FE206C3 for ; Thu, 28 May 2020 19:53:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406740AbgE1TxQ (ORCPT ); Thu, 28 May 2020 15:53:16 -0400 Received: from lists.gateworks.com ([108.161.130.12]:57836 "EHLO lists.gateworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406687AbgE1TxP (ORCPT ); Thu, 28 May 2020 15:53:15 -0400 Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by lists.gateworks.com with esmtp (Exim 4.82) (envelope-from ) id 1jeOdH-0000tP-Cd; Thu, 28 May 2020 19:56:03 +0000 From: Tim Harvey To: Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Tim Harvey Subject: [PATCH] ARM: dts: imx6qdl-gw53xx: allow boot firmware to set eth1 MAC Date: Thu, 28 May 2020 12:53:03 -0700 Message-Id: <1590695583-1327-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The GW53xx has a PCIe based GbE as the 2nd ethernet device. The boot firmware will populate the local-mac-address field of the device aliased to ethernet1 thus adding the PCIe device to dt allows boot firmware to set its MAC address. Signed-off-by: Tim Harvey --- arch/arm/boot/dts/imx6qdl-gw53xx.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi index 8942bec..6601d07 100644 --- a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi @@ -8,6 +8,7 @@ / { /* these are used by bootloader for disabling nodes */ aliases { + ethernet1 = ð1; led0 = &led0; led1 = &led1; led2 = &led2; @@ -341,6 +342,23 @@ pinctrl-0 = <&pinctrl_pcie>; reset-gpio = <&gpio1 29 GPIO_ACTIVE_LOW>; status = "okay"; + + pcie@0,0,0 { + reg = <0x0000 0 0 0 0>; + + pcie@1,0,0 { + reg = <0x0000 0 0 0 0>; + + pcie@2,4,0 { + reg = <0x2000 0 0 0 0>; + + eth1: pcie@4,0,0 { + reg = <0x0000 0 0 0 0>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; + }; + }; }; &pwm2 {