Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp446643ybx; Wed, 30 Oct 2019 18:04:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJ4NXFH59Omr2ZtWm1sZmp85wvVylk23pZFrErGGcL80+ZhToqZ9GStZWm+opGjyAvWN3R X-Received: by 2002:aa7:cf05:: with SMTP id a5mr2941469edy.255.1572483858582; Wed, 30 Oct 2019 18:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572483858; cv=none; d=google.com; s=arc-20160816; b=UrI0ifdiWAb+BADBdgUJtPUSEu/7rembcWaEhFeXGEUOaZAc6gWVErCMSgwYoiPaXB 2jYta6zgl8ni85QhVhuoElNSMmIroo8fOcdwy224uBIGzp0dBkrBoRGIKpoZ05DKVWC1 g1BZ/pafH0E7elp26DhqktjAwL/bavN8/znvnf5k9Io3x/AMrSeYGk2iVmWNM7Xvyn7g ZzPzmtrjyZOk7iQXpVxfObG1/a82aJTkcZI79LyDCFF9y56w3Zb5pQhxN5uye8yaeP4U 7MC1XiNofXaQX835BCb+q9PCiPy9WNd5lgbNlpUwH1eO9n01ZHDKpMkNjXfIYfvbNxft T1Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=xPtd4XvDvd62hfTGjUNo7H2JnIYd89hVqNAIqvYCFVI=; b=tbnVN4A64gleBTNOFh/lFMtRnNXUy/N4y6uNUtqQl+lIqsX5V8E7xsgDNNI0EnFQQK QnD9rb5IKmWCqbsquxAARIXlqmClhxcUbC9obkJWG9DubH46fqS2LropHg70z+8AdM6H SI4FZM6XLEe/V0OhxBeTfyt5y0zInNahKsDKvOew6hrArHFBFCt7iEmhUPozbYqmd8jC 7krx6OFZ5eDXjErWvtyx5XcyWw4GIsuqorWX7aIHiri/WEvmm/2cay83Ybt/u3tlL9Az A/XvRuKfMqHFupGG3X2fl6EDJX2y8hY/iYAyyC/MuSheQQE3UW311JtcuaWlyi3ncu3w uDXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@walle.cc header.s=mail2016061301 header.b=AYMx7ysW; 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 4si2777606ejc.382.2019.10.30.18.03.48; Wed, 30 Oct 2019 18:04:18 -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=fail header.i=@walle.cc header.s=mail2016061301 header.b=AYMx7ysW; 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 S1727841AbfJ3Xgb (ORCPT + 99 others); Wed, 30 Oct 2019 19:36:31 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:50453 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbfJ3Xgb (ORCPT ); Wed, 30 Oct 2019 19:36:31 -0400 Received: from [IPv6:2a02:810c:c200:2e91:e1c6:7ce1:572b:20f1] (unknown [IPv6:2a02:810c:c200:2e91:e1c6:7ce1:572b:20f1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id D5BA622178; Thu, 31 Oct 2019 00:36:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1572478587; bh=xPtd4XvDvd62hfTGjUNo7H2JnIYd89hVqNAIqvYCFVI=; h=Date:In-Reply-To:References:Subject:To:From:From; b=AYMx7ysW3/vYcP4eraRkeirr/686UuYJM5R+pH34CrTjappSz7K2XZk6/8JY6akc1 sFab5UvkC7oy0LXd1cqdZx3HIXocUWRv1YLiNN8l4fvTPyfPQ2tma7P0PLPZyqXNmG srG/xMxx4MRrPdxOxlCqhm/CsN9X0zg8Fxhj+PMA= Date: Thu, 31 Oct 2019 00:36:26 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <408bb56b-efe9-21c4-0177-2d433a7c20ce@gmail.com> References: <20191030224251.21578-1-michael@walle.cc> <20191030224251.21578-3-michael@walle.cc> <408bb56b-efe9-21c4-0177-2d433a7c20ce@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [RFC PATCH 2/3] dt-bindings: net: phy: Add support for AT803X To: Florian Fainelli , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org From: Michael Walle Message-ID: X-Virus-Scanned: clamav-milter 0.101.4 at web X-Virus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 31=2E Oktober 2019 00:28:47 MEZ schrieb Florian Fainelli : >On 10/30/19 3:42 PM, Michael Walle wrote: >> Document the Atheros AR803x PHY bindings=2E >>=20 >> Signed-off-by: Michael Walle >> --- >> =2E=2E=2E/bindings/net/atheros,at803x=2Eyaml | 58 >+++++++++++++++++++ >> include/dt-bindings/net/atheros-at803x=2Eh | 13 +++++ >> 2 files changed, 71 insertions(+) >> create mode 100644 >Documentation/devicetree/bindings/net/atheros,at803x=2Eyaml >> create mode 100644 include/dt-bindings/net/atheros-at803x=2Eh >>=20 >> diff --git >a/Documentation/devicetree/bindings/net/atheros,at803x=2Eyaml >b/Documentation/devicetree/bindings/net/atheros,at803x=2Eyaml >> new file mode 100644 >> index 000000000000=2E=2E60500fd90fd8 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/net/atheros,at803x=2Eyaml >> @@ -0,0 +1,58 @@ >> +# SPDX-License-Identifier: GPL-2=2E0+ >> +%YAML 1=2E2 >> +--- >> +$id: http://devicetree=2Eorg/schemas/net/atheros,at803x=2Eyaml# >> +$schema: http://devicetree=2Eorg/meta-schemas/core=2Eyaml# >> + >> +title: Atheros AR803x PHY >> + >> +maintainers: >> + - TBD >> + >> +description: | >> + Bindings for Atheros AR803x PHYs >> + >> +allOf: >> + - $ref: ethernet-phy=2Eyaml# >> + >> +properties: >> + atheros,clk-out-frequency: >> + description: Clock output frequency in Hertz=2E >> + enum: [ 25000000, 50000000, 62500000, 125000000 ] >> + >> + atheros,clk-out-strength: >> + description: Clock output driver strength=2E >> + enum: [ 0, 1, 2 ] >> + >> + atheros,keep-pll-enabled: >> + description: | >> + If set, keep the PLL enabled even if there is no link=2E Useful >if you >> + want to use the clock output without an ethernet link=2E > >This is more of a policy than a hardware description=2E Implementing this >has a PHY tunable, possibly as a form of auto-power down > >> + type: boolean >> + >> + atheros,rgmii-io-1v8: >> + description: | >> + The PHY supports RGMII I/O voltages of 2=2E5V, 1=2E8V and 1=2E5V= =2E By >default, >> + the PHY uses a voltage of 1=2E5V=2E If this is set, the voltage >will changed >> + to 1=2E8V=2E > >will be changed? oh=2E=2E yes of course=2E=20 >This looks like a possibly dangerous configuration as it really can >lead >to some good damage happening on the pins if there is an incompatible >voltage on the MAC and PHY side=2E=2E=2E of course, you have no way to te= ll >ahead of time other than by looking at the board schematics, lovely=2E correct=2E=2E although the standard mode of 1=2E5V has a max high voltage = of 1=2E8V so this seems to be safe=2E But I guess no one has ever really th= ough about how to really configure that safely=2E >Does the PHY come up in some sort of super isolatation mode by default >at least? not that I'm aware of=2E also=2E=2E the rgmii mode just works without any = setup (apart from the delay and voltage settings)=20 -michael=20