From patchwork Wed May 3 11:31:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13230058 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 29302C77B78 for ; Wed, 3 May 2023 11:32:39 +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:References:In-Reply-To: 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: List-Owner; bh=l+By9ajRJ/ZamrX11nyDfdqTwl99IK83ZhLL/yVhdjQ=; b=YY12pSLXKKud1I JSK2+1wJsjBRYX9zKOx4ElZ9bfYhh4/3t8GBDdZqKEQxaFOsQ26kXuww9Ud4ZGqtKh+0RIir3EgDz yMi6JyUKUIXv/wBGSykFYDvgMXJ+vcKnbPF7nM0UdBTXHTO9HDd7IfdOnXr6P+H3HPAjrvSGwEZG6 J3tu46b6UpPcmqoTrqcjAlM74XZdLfuk0iHI1byLhVAbEnZh52hm+qglQY2BG6/MOsknL+0eaNth4 +hFvYX1aQWrmsukkMt3XzopheJm0wsQnDS0RwOCtlkH30EfpYrclLc9PUb2wvpeA9qT0quVbrXO7a 1+idPRH47rXCO6928sOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1puAhf-004NeN-3C; Wed, 03 May 2023 11:31:23 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1puAhc-004NcR-2a for linux-arm-kernel@lists.infradead.org; Wed, 03 May 2023 11:31:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1683113480; x=1714649480; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0UzE43ySqCPT254bw8f1OxQOLkvILAnqPlI1V0xt3OI=; b=JT4xvMQjCYOwQCEFABoQpOIQcQrj/BzklqYLe+m9sLI4Z1fwedjZH8dD C9vNGg+SiqAwf86VFKi7h1Yx48Ei9wXzKyscBwCz9X0jMK+QpAtyR4/2f h/WSjVHFLU3icd86c3VoDFYdH+P95VDhZdwKxYcKjaNQ9Q4aHgEbRtUAu ghsJ3N9mrqeJGh3Mt/sKuAB9V4oP8tx+Kd4bdQevxI+DFOz4Q2NTxTtB+ 7kfrmzw9sm0BBQfL/GpCbnMS/mmP8L204x/3CiXFgSi9lp+3xo7q9lOMT VpIRhbI+WMTjs8/9q//1nssYX2f1t+/sSdMA5LIE+lTMe1z0Q/5bg8+D2 w==; X-IronPort-AV: E=Sophos;i="5.99,247,1677538800"; d="scan'208";a="30692132" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 03 May 2023 13:31:16 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 03 May 2023 13:31:16 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 03 May 2023 13:31:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1683113476; x=1714649476; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0UzE43ySqCPT254bw8f1OxQOLkvILAnqPlI1V0xt3OI=; b=QVB6LgxCoPMcsUTEzt1nkM2DaPHsG+N1TRY5sVWm+yiKYuPRJ6sXJ0Df NdJycqVTJudGNRFvyQQ3h2pG4TkTHkH2PHicFQ1FYQfWCxM8G4aXPFg98 dqfvwe2Mn7ZI1NzJbLtDXoPumzgdevLYBnz9Sav2HQFIMUR9f0V3JJ++V 3PI9y4L+03F+cWQqJHCEv33830fn2mQpQhBrhmy7JjCJQu9AUkGnS47Mc hQX+gPCxP4jzIkUduC7QhwZJJwPDvVgBKwRkuxxXSzs4W2RMZ3v3rcTfl 0QmqrfofOOJi9ziFFpkCBK80rOwHeX83C0metMtgzyh7NIrzM28980BbS Q==; X-IronPort-AV: E=Sophos;i="5.99,247,1677538800"; d="scan'208";a="30692131" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 03 May 2023 13:31:16 +0200 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 02AF8280072; Wed, 3 May 2023 13:31:15 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam , Markus Niebel , Matthias Schiffer Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] ARM: dts: imx6qdl-mba6: add mac address for USB ethernet controller Date: Wed, 3 May 2023 13:31:11 +0200 Message-Id: <20230503113112.1751886-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230503113112.1751886-1-alexander.stein@ew.tq-group.com> References: <20230503113112.1751886-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230503_043121_140479_BF408D22 X-CRM114-Status: GOOD ( 13.07 ) 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 The mac address is stored in mainboard eeprom. Signed-off-by: Alexander Stein --- arch/arm/boot/dts/imx6qdl-mba6.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/imx6qdl-mba6a.dtsi | 6 ++++++ arch/arm/boot/dts/imx6qdl-mba6b.dtsi | 6 ++++++ 3 files changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-mba6.dtsi b/arch/arm/boot/dts/imx6qdl-mba6.dtsi index 7b7e6c2ad190..9d90d7647024 100644 --- a/arch/arm/boot/dts/imx6qdl-mba6.dtsi +++ b/arch/arm/boot/dts/imx6qdl-mba6.dtsi @@ -272,6 +272,22 @@ &uart5 { &usbh1 { disable-over-current; status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + hub@1 { + compatible = "usb424,2517"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet@1 { + compatible = "usb424,9e00"; + reg = <1>; + nvmem-cells = <&mba_mac_address>; + nvmem-cell-names = "mac-address"; + }; + }; }; &usbotg { diff --git a/arch/arm/boot/dts/imx6qdl-mba6a.dtsi b/arch/arm/boot/dts/imx6qdl-mba6a.dtsi index df8fa169e9f6..c3f3a25133ca 100644 --- a/arch/arm/boot/dts/imx6qdl-mba6a.dtsi +++ b/arch/arm/boot/dts/imx6qdl-mba6a.dtsi @@ -21,6 +21,12 @@ m24c64_57: eeprom@57 { compatible = "atmel,24c64"; reg = <0x57>; pagesize = <32>; + #address-cells = <1>; + #size-cells = <1>; + + mba_mac_address: mac-address@20 { + reg = <0x20 0x6>; + }; }; rtc0: rtc@68 { diff --git a/arch/arm/boot/dts/imx6qdl-mba6b.dtsi b/arch/arm/boot/dts/imx6qdl-mba6b.dtsi index 7d1cd7454c7f..85866cfed965 100644 --- a/arch/arm/boot/dts/imx6qdl-mba6b.dtsi +++ b/arch/arm/boot/dts/imx6qdl-mba6b.dtsi @@ -31,6 +31,12 @@ m24c64_57: eeprom@57 { compatible = "atmel,24c64"; reg = <0x57>; pagesize = <32>; + #address-cells = <1>; + #size-cells = <1>; + + mba_mac_address: mac-address@20 { + reg = <0x20 0x6>; + }; }; rtc0: rtc@68 {