From patchwork Fri May 10 16:49:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 163901 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2619093ilr; Fri, 10 May 2019 09:50:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpKuQTPtTAUxCyE7GD39jBnKmD4K4KRiPs757QIYwJUmhrxEK+8Bgmta9peQtiKvWBzfWe X-Received: by 2002:a63:ca0b:: with SMTP id n11mr15212215pgi.442.1557507006424; Fri, 10 May 2019 09:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557507006; cv=none; d=google.com; s=arc-20160816; b=OcwQtfAth3N6lYi7pLFXwwQtDiKwJ80g4SfyfPg4qBrsWTMCKIZUoQwKnv6FLQKGtR 6YgnzTS2bLl0LJKxUn4rASb2eT/NajReP3Y1nHvvySGKYavgTGYXGUN6lqadf7LZW8h4 H4ADXeEPjltTDlmIprrpo2vNci65DA1sVmaRxmnuIVI6oZuEOWB9g9UIkjobBlvMgM/q oY/M5c5mAVu8YXdnyTUMGXqd8JQ/by8UYit/3u5GPHnagQ9KZPjpBKyJ4ydOh/I4TP6+ Ak45i7AmeWPDWIHU1BIX/l6+kF7K08OVyN2XvLZJciWvWFGasyfbit6RDIosmIELozE9 R2PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TYrasecq3jc5SZnbZyshnJpWQT7LH8WGclGzzSNZ9tw=; b=A+niS8XqHiZzlIO2Xjn21una89guFcyzurvx5r9KN6adhe9LVxGd1qbhk+AzsPhKpN 2AUYg1jKoy7JFujRVPtuDzsLTWJvCQcBL/k6cnkGBftXga2Lfnb+wzw9m+DUhbCIOLai 4CbQq9HrQw5ahs42EJWyVZ9Zb1+KK3uHkGD96MPgDKnnPIqFsGlV8X7FAk3fBt9kLzqn /GHBKK81JdeFHGQVFPimZrR64Pr7g5wv7Q5tJ1KFxG8J0EHKzcSuglIXhQ4vZbTCD5aq 9FwO8luMHCthu/0xXmnMLmpwE7FzJ/bIMH3bZ2iV4SQIDh0+rhqp8RsHIEBxn11WhE/s uKiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0LCy7Hgi; 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 36si8777567pgw.281.2019.05.10.09.50.06; Fri, 10 May 2019 09:50:06 -0700 (PDT) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0LCy7Hgi; 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 S1727945AbfEJQuF (ORCPT + 30 others); Fri, 10 May 2019 12:50:05 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33953 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727846AbfEJQtu (ORCPT ); Fri, 10 May 2019 12:49:50 -0400 Received: by mail-wr1-f68.google.com with SMTP id f7so8682373wrq.1 for ; Fri, 10 May 2019 09:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TYrasecq3jc5SZnbZyshnJpWQT7LH8WGclGzzSNZ9tw=; b=0LCy7HgiRFhJTPdSqVAy9EaF9UxWwcbZZxT3Vz1z7I9GsqwZsM4JHbOS7Z45l98M0P EPpLkH3mrVYZVR2Xmw/wSjwMLF/kI5uPrrEp/WbaJaSoRtYsfkLgtVjh9/i+XZQa4QRJ PdkHnAJfTyQ3fwB87gIepiUqJV79rlCG+Ulu/+y1+rfI7HkP8GnzsUqZdAVmfTWYq96k nHTbLplyrmUQOjYLxjMcsAY6q3RVzoKUNRBPOIeyu+TKpA8O5pkjjBuemVzGiSWyRkMU 0xZ2szPEf9UQk6UlGbaOC1edX02Siry30v/nPuCfOtOutFO5JM2tr+TLtw5q5ZKa1HzR 9DJA== 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:mime-version:content-transfer-encoding; bh=TYrasecq3jc5SZnbZyshnJpWQT7LH8WGclGzzSNZ9tw=; b=YknG1vT8jTRikcxLDho0a/RH/PddU33XJ6BQA9HpCAgB+yyE7tUTrlJFT0sTJ0ipOZ gN6ZH7/83aaDvXcV0ndGo6KSb+3mPRDVFkljowvDkTJAGJVmoaasMrHizRBtX3evIhyF yIhD+QZuPGKj3leFIw6I0+8l4GCHWVFA4/2pMA5UMQP2gh+uHK69+Ttz/cgQQcnfNjuQ X+khkmHFdWLZ6PN8iqrfPGWDYmlfa4eT17lSFs+b67iZ1NMIoye8gJ+m+ZPov4EWkgLq aRivJ350itQ/50q9HgPdMp6KF98SLsSfDHwyhDVh+UXJFdlMGfPxbTqRYwHbQbY9cNp0 MhKg== X-Gm-Message-State: APjAAAVXEJXqBuIEO7Xzv+or0snm/7O857dvOEYhYr/nF3ICrHPtkdVz T/82XO1w3SfFnAutNI3i+UnYlihhA9o= X-Received: by 2002:adf:f701:: with SMTP id r1mr9066096wrp.130.1557506988408; Fri, 10 May 2019 09:49:48 -0700 (PDT) Received: from boomer.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id q26sm5114308wmq.25.2019.05.10.09.49.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 09:49:47 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: meson: g12a: add mdio multiplexer Date: Fri, 10 May 2019 18:49:38 +0200 Message-Id: <20190510164940.13496-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190510164940.13496-1-jbrunet@baylibre.com> References: <20190510164940.13496-1-jbrunet@baylibre.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the g12a mdio multiplexer which allows to connect to either an external phy through the SoC pins or the internal 10/100 phy Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index fe0f73730525..6e9587aafb5d 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -460,6 +460,38 @@ assigned-clock-rates = <100000000>; #phy-cells = <1>; }; + + eth_phy: mdio-multiplexer@4c000 { + compatible = "amlogic,g12a-mdio-mux"; + reg = <0x0 0x4c000 0x0 0xa4>; + clocks = <&clkc CLKID_ETH_PHY>, + <&xtal>, + <&clkc CLKID_MPLL_5OM>; + clock-names = "pclk", "clkin0", "clkin1"; + mdio-parent-bus = <&mdio0>; + #address-cells = <1>; + #size-cells = <0>; + + ext_mdio: mdio@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + }; + + int_mdio: mdio@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + internal_ephy: ethernet_phy@8 { + compatible = "ethernet-phy-id0180.3301", + "ethernet-phy-ieee802.3-c22"; + interrupts = ; + reg = <8>; + max-speed = <100>; + }; + }; + }; }; aobus: bus@ff800000 {