From patchwork Tue Oct 31 08:19:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 10033729 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 93918600C5 for ; Tue, 31 Oct 2017 08:34:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E035289A0 for ; Tue, 31 Oct 2017 08:34:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 713D1289BB; Tue, 31 Oct 2017 08:34:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1C481289A0 for ; Tue, 31 Oct 2017 08:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=R633nHL+8HJL8d7SEjJbRze8gqFVS/EDpm98n237dhA=; b=FZIgBam1mzDX0I3Wr2IbflFSJX M/Fyo2J4vQOJZsSXz6Y5YO//bBPAxGXTQscLxoOdaIvaBnthP1OZ5x4g669q0EAUUL9rVgW4OnHvT YBEFuSTfM45hRsleq8x+uIJFs3RxgVSCm0+Ihhj5+Jx8LDQlaxVssORS2BVlYeDEW4B8OluhdEWow KomgCxGknuFPr7jQTNpw9/ISLZiE/Ph5QiEb0Wfijpp2vqT8f//glN2Z6fl9h97d4U4vA/u1JnKjE b4xyyRmsDUAIRtkBXqX2AXW46IJNdcqweETlCNQHca1P+ALhgMTlANu813pNH2S8+xO8UJBm2Bhgm eIEnIUlQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e9Rzd-00012d-MO; Tue, 31 Oct 2017 08:33:53 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e9Rnu-0002HS-Os for linux-arm-kernel@lists.infradead.org; Tue, 31 Oct 2017 08:21:49 +0000 Received: by mail-wr0-x241.google.com with SMTP id k62so15074369wrc.9 for ; Tue, 31 Oct 2017 01:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nNZjkm5Junn5P5OvaA3soZ4C9o/4dyUFCrOJhgrmhNM=; b=H/E52Q+91Yrj2l3NA5a1V77KbGCjURZMprDGCUzmi/zJxfbj4wkVaXu1bGLIzD91L3 n8q+szNCSUsH+Vg6KH9qXboH1GoF4BCQCxtbP+jMAn8/zjNrQj5dU6fanAcWIGnq1FXW o04KYMcQAgTtOzRTdzWmDc3tObRX/60y4pmaqejyvLjQvJYxoo3fsMB0g4y43PZV2JXg /+j/v0ZNrGMJwvAKlwplxRNSQrR5fAH9qf19D6wspxrD0vymH6qtZL7fcohzlS5TsE9Q C5Sv1CLqnGunI7EVd211LA4kXc2W+3pQn8Wkimk2orAthg1v+b4YpN/HPS3K1l8c9x8e snTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nNZjkm5Junn5P5OvaA3soZ4C9o/4dyUFCrOJhgrmhNM=; b=BzKvB06DyZQORuijBxMbiGLdGQ9fCzX4Q3XSSb1v7L7fk4eKAxLKNO7J1omqW4BTFw VorZ36DjM58UeM/uTt/bsBPdParxoDCHem2JrG0eEqmS9GQw1r46OfSARpYiEdOEZndy u0PsiPCPGfAIzxDYBzUAvbP6Sv0cVqMfxTdOCPcLNzgy+DSrGuHW4U0DX6KrRunk/a2L GJ+JPsS//f2f3flZd40pMIZxW9U4yUTpvhsqVAqx/4VGDLP/SVqtDgSl15qePLQyyo5I 1x4IPBR7zyEvAV78vuMdHZbu6fwNh4M4fl9FlQtcjesgB5hMiBqXcPzzUrN23r/awcw9 BMlQ== X-Gm-Message-State: AMCzsaVpvIIwvCIsBYIfzkkpnJx6l0MWSPinj5j3wvUT1/xxnwbW4/iN /GuvjUkcQGfPQr95rvWmiwE= X-Google-Smtp-Source: ABhQp+RAmGQDp5tntSnNIHOkutikbp7xmrObRk977cNdzi0DNO5Ga54fMBF4XO/v1G2swQszXBW76A== X-Received: by 10.223.184.125 with SMTP id u58mr942115wrf.8.1509438084862; Tue, 31 Oct 2017 01:21:24 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id d18sm796423wra.50.2017.10.31.01.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:24 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com Subject: [PATCH v10 3/8] arm: dts: sunxi: h3/h5: Restore EMAC changes Date: Tue, 31 Oct 2017 09:19:10 +0100 Message-Id: <20171031081915.18960-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171031_012147_012752_6C659DCC X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Corentin Labbe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore sunxi-h3-h5.dtsi This reverts partially commit fe45174b72ae ("arm: dts: sunxi: Revert EMAC changes") Signed-off-by: Corentin Labbe Acked-by: Florian Fainelli --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index c1bd09dab3da..d762098fc589 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -408,6 +408,32 @@ clocks = <&osc24M>; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-h3-emac"; + syscon = <&syscon>; + reg = <0x01c30000 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + int_mii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + clocks = <&ccu CLK_BUS_EPHY>; + resets = <&ccu RST_BUS_EPHY>; + }; + }; + }; + spi0: spi@1c68000 { compatible = "allwinner,sun8i-h3-spi"; reg = <0x01c68000 0x1000>;