From mboxrd@z Thu Jan 1 00:00:00 1970 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.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 7FA20C433E0 for ; Thu, 28 May 2020 19:53:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6D5E72088E for ; Thu, 28 May 2020 19:53:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406751AbgE1Tx2 (ORCPT ); Thu, 28 May 2020 15:53:28 -0400 Received: from lists.gateworks.com ([108.161.130.12]:57843 "EHLO lists.gateworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406687AbgE1Tx0 (ORCPT ); Thu, 28 May 2020 15:53:26 -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 1jeOdU-0000tZ-A4; Thu, 28 May 2020 19:56:16 +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-gw54xx: allow boot firmware to set eth1 MAC Date: Thu, 28 May 2020 12:53:16 -0700 Message-Id: <1590695596-1462-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GW54xx 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-gw54xx.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi index c40583d..5527f95 100644 --- a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi @@ -9,6 +9,7 @@ / { /* these are used by bootloader for disabling nodes */ aliases { + ethernet1 = ð1; led0 = &led0; led1 = &led1; led2 = &led2; @@ -398,6 +399,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,8,0 { + reg = <0x4000 0 0 0 0>; + + eth1: pcie@8,0,0 { + reg = <0x0000 0 0 0 0>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; + }; + }; }; &pwm1 { -- 2.7.4