From patchwork Wed May 13 13:57:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagar Shrikant Kadam X-Patchwork-Id: 11546415 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0C69259D for ; Wed, 13 May 2020 13:57:40 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 10F9E20671 for ; Wed, 13 May 2020 13:57:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sbHCprFp"; dkim=pass (1024-bit key) header.d=sifive.com header.i=@sifive.com header.b="dz8+Hioz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10F9E20671 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Type:References:In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OYTuzDsYVXlx1KZz3pNkMeyEk60Msi5G8+1GvtTBjLU=; b=sbHCprFp/g5Dtusb1BT4ZXKDC iM0RC2b4gm5/NV+FQgSZ0L8YBBAlZeiRKN0Uogv3KZho3n9/wb2Vs6j8zzZtnVV3M0TirBgU8WmIs mqmQnbPWum5VIrysu4ydJdR/KOwty7gHKX9SkFzb296JZylHWkhc14omzyi/+yRkEFDVqwlnYnLC0 Ci8FR2kdpPFXlBtYsIRpvhTWaZbz2Qca6TkgrTxO0ft4JqAWleNBWyAtXYo3vOEo99OIf8kITqjc9 EWPJLZC3Y7PW/RT5ZGgNw7AmNpsgWguXesruVXg6vAYlzHaMyaFcQYMGlL8eqS56hjNUQ1+/x98aw NdZvoZLEg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYrtA-0003Fr-O6; Wed, 13 May 2020 13:57:36 +0000 Received: from mail-bn8nam12on2058.outbound.protection.outlook.com ([40.107.237.58] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYrt5-00035g-Jv for linux-riscv@lists.infradead.org; Wed, 13 May 2020 13:57:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Je239+E+a2tQwfoTMyJzTHIBVTp5mVTTY8kE0o0IgqZc1tD92Frdb/PLqKPP23cWHftyrqsqDyF/eG8VmnF1nrB3bK+aWCq4nyX8K6USnMMakbkz+O3EKLTcP2hklE6FDXWZb8KOxVX2nP5v8doXVp0tNzk9l+czyQ/snxnUxFn7AwGIuLkOXT57Fx7v6SrQL+PN2YIm1P0gaARMaCuDfvyNKAUCqqvacT5AnB/agFkGJeRqjCskiDq1E5s9APk0vQPGFM0Ouz/rWoCAcTEFbnBaoDoen4bAbBKqLNorePEo+ZTeEThjdvwDyRquoOeOgH+1q3o1t6NhvOAp1OmM8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OYTuzDsYVXlx1KZz3pNkMeyEk60Msi5G8+1GvtTBjLU=; b=JlT1qWpfg6S5EjoR8Z0wY0c8rD5twrf6w1vBnJQaHvGjZGzwaf3/mca7gDmmbvBSqSTSEPCyMyLlfpF2JVHvLQdOE/ewhLf7q1E/ggZvc0r1+KD5wyuGl7xEBMLDV6jDvfp9ufMIcAfMZFHfzK+Agxm+rnwxH9rz7jccTDkQ4L8kqUfcgzLCXrwKKU5Q9KwfGexo+xozvZAe2BhkJpKVgV+pCOTe5D4uMg8c5sGmPULBXEW6htPncJ7YF9518I3BqMaZu8QGcEpMa+Nkga90fvBt4NNJte/62KR+Ruvm7jqhzX3/fHgjn8lwxB2Z/dinAY+2p7IhVoWCm+mSahX/yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sifive.com; dmarc=pass action=none header.from=sifive.com; dkim=pass header.d=sifive.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OYTuzDsYVXlx1KZz3pNkMeyEk60Msi5G8+1GvtTBjLU=; b=dz8+HiozmK0PTvvzRF0NawQA55tzgYXkup90b4f42SNoIyFPGUr0yqkmbxXppCBWnpp+cBB+aO6of5XWGqgpIDkGEf/SPzBFwq0+E1wFvHCofU6eeTG1fBaxua/FTzV8XfsbjHea+9DFAi47mr3OLYm69U4wAIYFSib9xwlTGh4= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=sifive.com; Received: from BYAPR13MB2614.namprd13.prod.outlook.com (2603:10b6:a03:b4::12) by BYAPR13MB2279.namprd13.prod.outlook.com (2603:10b6:a02:bd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.6; Wed, 13 May 2020 13:57:26 +0000 Received: from BYAPR13MB2614.namprd13.prod.outlook.com ([fe80::c0fc:30a3:5e5f:c2b6]) by BYAPR13MB2614.namprd13.prod.outlook.com ([fe80::c0fc:30a3:5e5f:c2b6%7]) with mapi id 15.20.3000.013; Wed, 13 May 2020 13:57:26 +0000 From: Sagar Shrikant Kadam To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org Subject: [PATCH v1 2/3] dts: phy: add GPIO number and active state used for phy reset Date: Wed, 13 May 2020 06:57:00 -0700 Message-Id: <1589378222-15238-3-git-send-email-sagar.kadam@sifive.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589378222-15238-1-git-send-email-sagar.kadam@sifive.com> References: <1589378222-15238-1-git-send-email-sagar.kadam@sifive.com> X-ClientProxiedBy: BY5PR16CA0005.namprd16.prod.outlook.com (2603:10b6:a03:1a0::18) To BYAPR13MB2614.namprd13.prod.outlook.com (2603:10b6:a03:b4::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from gamma07.internal.sifive.com (64.62.193.194) by BY5PR16CA0005.namprd16.prod.outlook.com (2603:10b6:a03:1a0::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3000.20 via Frontend Transport; Wed, 13 May 2020 13:57:25 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [64.62.193.194] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b9183ed3-9dd4-4b33-d712-08d7f745912d X-MS-TrafficTypeDiagnostic: BYAPR13MB2279: X-LD-Processed: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2201; X-Forefront-PRVS: 0402872DA1 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR13MB2614.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(366004)(346002)(376002)(136003)(396003)(39830400003)(33430700001)(2906002)(8676002)(956004)(6486002)(316002)(7696005)(8936002)(86362001)(36756003)(26005)(107886003)(66946007)(66476007)(2616005)(6666004)(52116002)(16526019)(66556008)(33440700001)(478600001)(5660300002)(186003)(4326008)(4744005); DIR:OUT; SFP:1101; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oL13haf04sYnckeKMERjgR7lPAyT6iOdx5PBZjQ3eRQ8GffGGI7NTNK9taDClNvGAt/jpgFF4mGaeO0Gk2SqMqVqTBei0kBUw1JvdO+y5i8Z/yKqIZxw/5illGtt661frtF+VWkMLamX6KvsfMwLSaUjwQ7LTs4uCGdBzRpRmdgmCuKttrp3p10LV47qkGDIVPpXN4f1dTNQ++NYfrk4tcMPoMXA2AeTsOV1GkzbIp1ADsRjK3ejA0FoXcxb7/4lleD91XZmacxNMzaBwN6hy8zm53grgXYJ/o4dCkLg0NAGIZ4RWkTQUVIL/mY1GpejnpcqwOLrWWzTC4m9rCEC5PGDkXWMJGw7c2zJxy+zo6i7eYiiftEzLI0qs/m4Zvq88S4A5e+FOX6uc4ovRP1LXJc3bjve9SYVDC6Jr2t8i7CHwvQyjb2dd5eBpqDWjg+l+/sgb0dqmzE6MTFNI3uvmjlHGtwGSJbkMzUDGVIG30MXm7j5bHmZMnQPpiVpoMKYC2BPNMXzaCTFCzQRL0iVSA== X-MS-Exchange-AntiSpam-MessageData: Y2Spm9L/7Nt4LOQEt2A5NH19/OluB6bsHtKa1dAlbtdOCrYZQzQyBlJel+sNeZVyMOlUR3MkSkQqTYwvoxmkQQh8elvqoiEchOKSypTNRskEamT02bh0vAGuFWH6lEplJmN8oWaX9S4dlnMd1WHzISDKjTYknUoPQWcjvsBJBIUGKWw2FcbcmyGuqB7jX0+4xecgH6Oa4VSCxRYMWM0v2e0ip1bl1ClwzoQBYyB3C7rozbjO+6tluF/0L/AS0zEVscyFTrZvYSdqRL3F85QSMi9NHiUsZDFGwCqIwwOR3RAGb/WDLOFw+hzQpfpfz9OhNX6fexJGmU1KSgmnWLlD43GRBzwskzplxuTXOtDpcHyr380qY/h2G+0dlQVyGLCGpVpCyWVXPVQzx0NQDy7cvtGH8ejXscw7cF4r4c+TL2puSnI/H2QrK5BZho48w/Yi5/ALMDHUt2LwuUoHuBBf5ZZp2G9jRdvRk9LEDy3FxaU= X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9183ed3-9dd4-4b33-d712-08d7f745912d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2020 13:57:25.9017 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: R8E+EWn3H7CWis32EKJo+A2z4TeJDkkZyhgobgGivbxE2GxAq870bOERfUHVgCFQNCVcWEBcUAHaFOfF8hd6KQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR13MB2279 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200513_065731_655225_7C1FC5BF X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.237.58 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.237.58 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: atish.patra@wdc.com, palmer@dabbelt.com, Sagar Shrikant Kadam , paul.walmsley@sifive.com Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org The GEMGXL_RST line on HiFive Unleashed is pulled low and is using GPIO number 12. Add these reset-gpio details to dt-node using which the linux phylib can reset the phy. Signed-off-by: Sagar Shrikant Kadam --- arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts index 60846e8..24d75a1 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts @@ -90,6 +90,7 @@ phy0: ethernet-phy@0 { compatible = "ethernet-phy-id0007.0771"; reg = <0>; + reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; };