Received: by 10.223.185.116 with SMTP id b49csp4778257wrg; Tue, 27 Feb 2018 02:24:48 -0800 (PST) X-Google-Smtp-Source: AH8x227YLsMylgl2DrONM4MvMWZEgBbW/ERE8xKc8pNZMXWuUmrCV5NzD9LePKuJPWUNLU7OoPmt X-Received: by 10.99.100.67 with SMTP id y64mr11117628pgb.145.1519727088260; Tue, 27 Feb 2018 02:24:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519727088; cv=none; d=google.com; s=arc-20160816; b=Q84HS5gG45j+aFAXRgEdwspqPubtyYjcPhEKcV1BajJrmwJsVLs5V4FBdld6XqlOia TRMe87RmRsruP/w6Xv0mUjRUv1GZVH2+0Pwvba2J2qZf91YRpIhfdQkNnYal8k8iEzeu d4iN48Njw88tvs155JaN34dGk8HiEI6bBOm/IGb97lRxe80GRlwlAt4aJlqVaXsTcDJq 5rP7V9sXhMwq8JXRI9fbso5Cl3FQQ5MNI33vomwFfyxEk4FLS+uAw+L1YCNF6rOO7a8r EPKBp4hWaHOn6PiFFXhDlL15Wh7lI/kaTUyv4CZaLrrzgsdrLS9u/jd7vCteqReXliat hZ4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=nAzZPXmAo6gwcUg+9ptgUGQN0gBE3fXLVBWon4ooEI8=; b=ZxvEdCDUAfyAX+51tVgrq4xfXw6dU59FuMk1V+0gaFmoJn3QEG0fma5BRYTtZe1q2F k6u/n9zmxHiYwtavM/UKcPQKH8UpADxH95+BIWMoXnrcqaF6T9Y9pIrZP3RN4w2YMz8y DumsV2DPBjbVfxuT3GehqutP6ejxs99JZbfuQr30uCTA4zgHIkl4BzJHBeoGO6U3e1gE lRWr6HTo3B5yd/m+hc6TtLJ9GDFwOrYAlgcLC7+kXq2T0lxLBow/oD4nfAx/NWTDEtU6 OHHrSgtK1n2PNxVhADAHQnA5MP913XD5zKqYqIAJ1uKPCtHLSIYtC8HsMhOWOu8VLSJ0 lX5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15si8369354pfn.111.2018.02.27.02.24.33; Tue, 27 Feb 2018 02:24:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752744AbeB0KXW (ORCPT + 99 others); Tue, 27 Feb 2018 05:23:22 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:40839 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752676AbeB0KXU (ORCPT ); Tue, 27 Feb 2018 05:23:20 -0500 Received: from w540.lan (unknown [IPv6:2001:b07:2e0:f265:b1a6:a124:afcf:59d5]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 93B03A80D3; Tue, 27 Feb 2018 11:23:14 +0100 (CET) From: Jacopo Mondi To: geert@linux-m68k.org, horms@verge.net.au, sergei.shtylyov@cogentembedded.com, magnus.damm@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: Jacopo Mondi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Date: Tue, 27 Feb 2018 11:22:44 +0100 Message-Id: <1519726974-23160-1-git-send-email-jacopo+renesas@jmondi.org> 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 Hi Simon, Geert, in this second iteration I have dropped iommu dependencies for EtherAVB and have changed "phy-mode" for all mainlines Gen-3 boards, this time including ULCB, Draak, Eagle and V3MSK. The series add phy-mode as a board property to the following board files: - salvator-common.dtsi - ulcb.dtsi - r8a77995-draak.dts - r8a77970-eagle.dts - r8a77970-v3msk.dts And reset the EtherAVB phy-mode to "rgmii" in the following SoC DTSI: - r8a7795.dtsi - r8a7796.dtsi - r8a77995.dtsi - r8a77970.dtsi And finally, I added EtherAVB device node for M3-N on top. I have verified with scripts/dtc/dtx_diff that the only difference compared to the previous version for all DTS files is the newly introduced EtherAVB node for r8a77965 Salvator-X board. ------------------------------------------------------------------------------ $ for i in `ls dts-new/*.dtb`; do dt=`basename $i`; echo $dt; ./scripts/dtc/dtx_diff dts-old/$dt dts-new/$dt; done $ r8a7795-es1-h3ulcb.dtb r8a7795-es1-h3ulcb-kf.dtb r8a7795-es1-salvator-x.dtb r8a7795-h3ulcb.dtb r8a7795-h3ulcb-kf.dtb r8a7795-salvator-x.dtb r8a7795-salvator-xs.dtb r8a77965-salvator-x.dtb --- dts-old/r8a77965-salvator-x.dtb +++ dts-new/r8a77965-salvator-x.dtb @@ -413,10 +413,17 @@ ethernet@e6800000 { #address-cells = <0x1>; #size-cells = <0x0>; + clocks = <0x6 0x1 0x32c>; + compatible = "renesas,etheravb-r8a77965", "renesas,etheravb-rcar-gen3"; + interrupt-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6", "ch7", "ch8", "ch9", "ch10", "ch11", "ch12", "ch13", "ch14", "ch15", "ch16", "ch17", "ch18", "ch19", "ch20", "ch21", "ch22", "ch23", "ch24"; + interrupts = <0x0 0x27 0x4 0x0 0x28 0x4 0x0 0x29 0x4 0x0 0x2a 0x4 0x0 0x2b 0x4 0x0 0x2c 0x4 0x0 0x2d 0x4 0x0 0x2e 0x4 0x0 0x2f 0x4 0x0 0x30 0x4 0x0 0x31 0x4 0x0 0x32 0x4 0x0 0x33 0x4 0x0 0x34 0x4 0x0 0x35 0x4 0x0 0x36 0x4 0x0 0x37 0x4 0x0 0x38 0x4 0x0 0x39 0x4 0x0 0x3a 0x4 0x0 0x3b 0x4 0x0 0x3c 0x4 0x0 0x3d 0x4 0x0 0x3e 0x4 0x0 0x3f 0x4>; phy-handle = <0x12>; + phy-mode = "rgmii-txid"; pinctrl-0 = <0x11>; pinctrl-names = "default"; + power-domains = <0x1 0x20>; reg = <0x0 0xe6800000 0x0 0x800 0x0 0xe6a00000 0x0 0x10000>; + resets = <0x6 0x32c>; status = "okay"; ethernet-phy@0 { r8a7796-m3ulcb.dtb r8a7796-m3ulcb-kf.dtb r8a7796-salvator-x.dtb r8a7796-salvator-xs.dtb r8a77970-eagle.dtb r8a77970-v3msk.dtb r8a77995-draak.dtb ------------------------------------------------------------------------------ As per the previous version, this is based on what Simon already picked in his development branch. Branch for testing available at: git://jmondi.org/linux m3-n/renesas-drivers-2018-02-13-v4.16-rc1/v2-simon Thanks j v1 -> v2: - Change rgmii mode in ULCB, Draak, Eagle and V3MSK - Reset rgmii mode for r8a77970 - Drop iommu dependencies and associated patches Jacopo Mondi (10): arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode arm64: dts: renesas: ulcb: Override EtherAVB phy-mode arm64: dts: renesas: draak: Override EtherAVB phy-mode arm64: dts: renesas: eagle: Override EtherAVB phy-mode arm64: dts: renesas: v3msk: Override EtherAVB phy-mode arm64: dts: renesas: r8a7796: Set EtherAVB phy mode to "rgmii" arm64: dts: renesas: r8a7795: Set EtherAVB phy mode to "rgmii" arm64: dts: renesas: r8a77995: Set EtherAVB phy mode to "rgmii" arm64: dts: renesas: r8a77970: Set EtherAVB phy mode to "rgmii" arm64: dts: renesas: r8a77965: Add EtherAVB device node arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 43 ++++++++++++++++++++++-- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 1 + arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts | 1 + arch/arm64/boot/dts/renesas/r8a77970.dtsi | 2 +- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 1 + arch/arm64/boot/dts/renesas/r8a77995.dtsi | 2 +- arch/arm64/boot/dts/renesas/salvator-common.dtsi | 1 + arch/arm64/boot/dts/renesas/ulcb.dtsi | 1 + 10 files changed, 49 insertions(+), 7 deletions(-) -- 2.7.4