From patchwork Fri Apr 12 11:58:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 1084659 X-Patchwork-Delegate: eugen.hristev@microchip.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="AIBVsxLc"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44gbyk08ztz9s55 for ; Fri, 12 Apr 2019 21:58:53 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 2B6EFC21E75; Fri, 12 Apr 2019 11:58:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BF538C21D72; Fri, 12 Apr 2019 11:58:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EB89EC21CB6; Fri, 12 Apr 2019 11:58:46 +0000 (UTC) Received: from esa4.microchip.iphmx.com (esa4.microchip.iphmx.com [68.232.154.123]) by lists.denx.de (Postfix) with ESMTPS id 10E90C21CB6 for ; Fri, 12 Apr 2019 11:58:45 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.60,341,1549954800"; d="scan'208";a="29797474" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Apr 2019 04:58:43 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.107) with Microsoft SMTP Server (TLS) id 14.3.352.0; Fri, 12 Apr 2019 04:58:43 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CIb5jZWoY9LiQ+YqZFfpVrZltSKHmhWXzq57G88VwlY=; b=AIBVsxLct0W88VjqRJiWiSLJVC9Wg6PLW2CHX2WeRrCBOKjeK7G1W82oW5FqqSofUprCSAgkD6AtpQTOrznfD4rPoMk7TMCUX25BbKt7gMbi7bdm/TxLZK66/jpvxUKsz6iwAeaI8t5s3KCmcVq4W1kBcDCiK4tOr92tU1v8cd0= Received: from DM5PR11MB1242.namprd11.prod.outlook.com (10.168.108.8) by DM5PR11MB1642.namprd11.prod.outlook.com (10.172.38.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Fri, 12 Apr 2019 11:58:41 +0000 Received: from DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::e0e3:1d51:9e3e:6dc]) by DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::e0e3:1d51:9e3e:6dc%3]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 11:58:41 +0000 From: To: Thread-Topic: [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node Thread-Index: AQHU8ScRGZINxZlZl0ebD5eiBNUd2Q== Date: Fri, 12 Apr 2019 11:58:40 +0000 Message-ID: <1555070011-16814-1-git-send-email-eugen.hristev@microchip.com> Accept-Language: ro-RO, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR10CA0110.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:28::39) To DM5PR11MB1242.namprd11.prod.outlook.com (2603:10b6:3:14::8) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Eugen.Hristev@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9b4f65fc-8d39-410f-9d59-08d6bf3e3445 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:DM5PR11MB1642; x-ms-traffictypediagnostic: DM5PR11MB1642: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(39860400002)(346002)(376002)(366004)(199004)(189003)(50226002)(105586002)(8676002)(316002)(6512007)(25786009)(4326008)(72206003)(99286004)(52116002)(86362001)(54906003)(53936002)(6116002)(3846002)(6436002)(5660300002)(2906002)(5640700003)(2501003)(256004)(14454004)(6486002)(107886003)(6916009)(478600001)(71200400001)(71190400001)(476003)(486006)(97736004)(2616005)(6506007)(386003)(68736007)(66066001)(8936002)(186003)(102836004)(81156014)(305945005)(7736002)(2351001)(26005)(36756003)(106356001)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR11MB1642; H:DM5PR11MB1242.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 1HHSCWB10j5+vR/ep2FjXJuX2teAq8EKSYDpTJJ3HG4Q3RpcFi4ODQMCQlzQxq8l1L+pHo57Kotd3/lt/n6K8VBUKadJ8Nmwyl3MRqQAmYVGGUuSggJQOVHFvz8kMTCaWqi88LM9AppmQQQHGSRCXc+94JY98Ffum3o0w8z2ctlFXnnEubFO7OGrf00yH2f2WQDspsylj9XzLp04KmIHVS4T3nT4ceXvNMi5tOEwBjhYA7mEf8PEwnTJ6+VcpL6HmVeqJdRgqNg9uoUfVFjLwA9Zu6NBDiASqQbEBAoGdRBLa7846qu/zwAYkgH+swjYSsrcrhQ8NYBJBEjgtC8fN9XxE2P2Afr1rqh5OjmRoLQ5WSdb9dKrE74/QLAAuc44pYm5h3O4Rpkp2PtlSVazBQcdUybcmS8/jrNly/vYaG0= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 9b4f65fc-8d39-410f-9d59-08d6bf3e3445 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 11:58:40.8561 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1642 X-OriginatorOrg: microchip.com Cc: Razvan.Stefanescu@microchip.com Subject: [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Razvan Stefanescu MACB has a fixed link connection to KSZ8563 switch port. Signed-off-by: Razvan Stefanescu --- arch/arm/dts/at91-sama5d2_icp.dts | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/at91-sama5d2_icp.dts index e777754..cae8748 100644 --- a/arch/arm/dts/at91-sama5d2_icp.dts +++ b/arch/arm/dts/at91-sama5d2_icp.dts @@ -39,6 +39,13 @@ status = "okay"; }; + macb0: ethernet@f8008000 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq &pinctrl_macb0_rst>; + phy-mode = "internal"; + status = "okay"; + }; + i2c1: i2c@fc028000 { dmas = <0>, <0>; pinctrl-names = "default"; @@ -72,6 +79,36 @@ bias-disable; }; + pinctrl_macb0_rmii: macb0_rmii { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + bias-disable; + }; + + pinctrl_macb0_phy_irq: macb0_phy_irq { + pinmux = ; + bias-disable; + }; + + pinctrl_macb0_rst: macb0_sw_rst { + pinmux = ; + bias-pull-up; + }; + pinctrl_sdmmc0_default: sdmmc0_default { pinmux = , , From patchwork Fri Apr 12 11:58:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 1084660 X-Patchwork-Delegate: eugen.hristev@microchip.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="3x43qQeJ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44gbzM6kSvz9s55 for ; Fri, 12 Apr 2019 21:59:27 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 80D01C21E12; Fri, 12 Apr 2019 11:59:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 40262C21E34; Fri, 12 Apr 2019 11:59:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CACCEC21E2F; Fri, 12 Apr 2019 11:58:53 +0000 (UTC) Received: from esa6.microchip.iphmx.com (esa6.microchip.iphmx.com [216.71.154.253]) by lists.denx.de (Postfix) with ESMTPS id 99505C21E29 for ; Fri, 12 Apr 2019 11:58:49 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.60,341,1549954800"; d="scan'208";a="27290323" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Apr 2019 04:58:48 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.107) with Microsoft SMTP Server (TLS) id 14.3.352.0; Fri, 12 Apr 2019 04:58:47 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4ETpPbPqNLfH3JK1uKcUElluH0AeP/4VVULxxGaH2hQ=; b=3x43qQeJs5Eslr3XPBsy7EEmujxe1RJ/7PB7PdTSOvvQaewCYLFTqMufzQLBWIzLSnYE/NlZIOG+nAdpTOXwsygXNYNETRW1ZGLAPSEontoAT2R8t/wkA9tkuznVgddwZmUQFIBqOtRFw/W/GVOcealPdrTzTUwpWiXLLHsHJSc= Received: from DM5PR11MB1242.namprd11.prod.outlook.com (10.168.108.8) by DM5PR11MB1642.namprd11.prod.outlook.com (10.172.38.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Fri, 12 Apr 2019 11:58:46 +0000 Received: from DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::e0e3:1d51:9e3e:6dc]) by DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::e0e3:1d51:9e3e:6dc%3]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 11:58:46 +0000 From: To: Thread-Topic: [PATCH 2/2] board: sama5d2_icp: Enable MACB driver Thread-Index: AQHU8ScV7z+mjrdOXU6UWTRKAeV2uQ== Date: Fri, 12 Apr 2019 11:58:46 +0000 Message-ID: <1555070011-16814-2-git-send-email-eugen.hristev@microchip.com> References: <1555070011-16814-1-git-send-email-eugen.hristev@microchip.com> In-Reply-To: <1555070011-16814-1-git-send-email-eugen.hristev@microchip.com> Accept-Language: ro-RO, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR10CA0110.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:28::39) To DM5PR11MB1242.namprd11.prod.outlook.com (2603:10b6:3:14::8) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Eugen.Hristev@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: be918360-a00e-4e5b-2ea9-08d6bf3e37a9 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:DM5PR11MB1642; x-ms-traffictypediagnostic: DM5PR11MB1642: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(39860400002)(346002)(376002)(366004)(199004)(189003)(50226002)(105586002)(8676002)(316002)(6512007)(25786009)(4326008)(72206003)(99286004)(52116002)(86362001)(54906003)(53936002)(6116002)(3846002)(6436002)(5660300002)(2906002)(5640700003)(2501003)(256004)(14454004)(6486002)(107886003)(6916009)(478600001)(4744005)(71200400001)(71190400001)(76176011)(476003)(486006)(97736004)(446003)(2616005)(11346002)(6506007)(386003)(68736007)(66066001)(8936002)(186003)(102836004)(81156014)(305945005)(7736002)(2351001)(26005)(36756003)(106356001)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR11MB1642; H:DM5PR11MB1242.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ZCUcBUx+HKKtEtwtyBdIbI81ThbxvhhgBk5VFp6KLH5AuKK4+Il7mW1try8cIBLtuXhbYplNweMZDwpl1lUj0ZwlFd6v6CB/QRlx4RuknM/DbRHFjL3QMT3d1FJirXbLjQBaAGqL4NuPPNgLexXDL4Y9CYtwlQcJpcBeerYbml6NkgaTpYbPukq7A0wdt/9YRvdLX8wE3/9SN+fJUv2HmcqW+xgKTj2L0r4MtuKEe6VrItp8HgewIycUWDzJdpArxNRgaHFw/dO8/D6uKU2iTGZqPcfQuEbRaDFTAgPHn6om9/trInWS85xoWllQR4k3N7WsjZhsO9Ib2n8/RaxdQEYKvLMj4VI109vcNx460Z2vQDZf3hFRtbg4ClqzZ9gZsWomaCqSz86Fvv+D3r5T7fVBM1Ku0ZUs+18RIWQpCBM= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: be918360-a00e-4e5b-2ea9-08d6bf3e37a9 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 11:58:46.6109 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1642 X-OriginatorOrg: microchip.com Cc: Razvan.Stefanescu@microchip.com Subject: [U-Boot] [PATCH 2/2] board: sama5d2_icp: Enable MACB driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Razvan Stefanescu Signed-off-by: Razvan Stefanescu --- configs/sama5d2_icp_mmc_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/sama5d2_icp_mmc_defconfig b/configs/sama5d2_icp_mmc_defconfig index 203b869..6d4d199 100644 --- a/configs/sama5d2_icp_mmc_defconfig +++ b/configs/sama5d2_icp_mmc_defconfig @@ -61,6 +61,8 @@ CONFIG_I2C_EEPROM=y CONFIG_DM_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ATMEL=y +CONFIG_DM_ETH=y +CONFIG_MACB=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_PINCTRL_AT91PIO4=y