From owner-svn-src-head@freebsd.org Sat Apr 7 22:28:44 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34712F8B179; Sat, 7 Apr 2018 22:28:44 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCE8C83DD2; Sat, 7 Apr 2018 22:28:43 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D3A4F26D71; Sat, 7 Apr 2018 22:28:43 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w37MShEM049959; Sat, 7 Apr 2018 22:28:43 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w37MShU5049956; Sat, 7 Apr 2018 22:28:43 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <201804072228.w37MShU5049956@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Sat, 7 Apr 2018 22:28:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r332260 - head/sys/dts/arm/overlays X-SVN-Group: head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: head/sys/dts/arm/overlays X-SVN-Commit-Revision: 332260 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 22:28:44 -0000 Author: kevans Date: Sat Apr 7 22:28:43 2018 New Revision: 332260 URL: https://svnweb.freebsd.org/changeset/base/332260 Log: Add a83t overlays for sid and emac The sun8i-a83t-bananapi-m3-emac overlay technically doesn't match what will be coming from upstream. The tx-delay and rx-delay should be specified in terms of allwinner,tx-delay-ps and allwinner,rx-delay-ps respectively. The values are still technically correct for what we write in if_awg, and support for the new bindings will be coming soon. Added: head/sys/dts/arm/overlays/sun8i-a83t-bananapi-m3-emac.dtso (contents, props changed) head/sys/dts/arm/overlays/sun8i-a83t-emac.dtso (contents, props changed) head/sys/dts/arm/overlays/sun8i-a83t-sid.dtso (contents, props changed) Added: head/sys/dts/arm/overlays/sun8i-a83t-bananapi-m3-emac.dtso ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dts/arm/overlays/sun8i-a83t-bananapi-m3-emac.dtso Sat Apr 7 22:28:43 2018 (r332260) @@ -0,0 +1,29 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "sinovoip,bpi-m3"; + + fragment@0 { + target = <&mdio>; + __overlay__ { + rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x1>; + }; + }; + }; + + fragment@1 { + target = <&emac>; + __overlay__ { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-handle = <&rgmii_phy>; + phy-mode = "rgmii"; + rx-delay = <0x7>; + tx-delay = <0x7>; + status = "okay"; + }; + }; +}; Added: head/sys/dts/arm/overlays/sun8i-a83t-emac.dtso ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dts/arm/overlays/sun8i-a83t-emac.dtso Sat Apr 7 22:28:43 2018 (r332260) @@ -0,0 +1,44 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-a83t"; + + fragment@0 { + target = <&pio>; + __overlay__ { + emac_rgmii_pins: emac-rgmii-pins { + pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", + "PD11", "PD12", "PD13", "PD14", "PD18", + "PD19", "PD20", "PD21", "PD22", "PD23"; + function = "emac"; + drive-strength = <0x28>; + }; + }; + }; + + fragment@1 { + target-path = "/soc"; + __overlay__ { + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-a83t-emac"; + syscon = <&syscon>; + reg = <0x1c30000 0x104>; + interrupts = <0x0 0x52 0x4>; + interrupt-names = "macirq"; + resets = <&ccu 0xd>; + reset-names = "ahb"; + clocks = <&ccu 0x1b>; + clock-names = "ahb"; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "disabled"; + mdio: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <0x1>; + #size-cells = <0x0>; + }; + }; + }; + }; +}; Added: head/sys/dts/arm/overlays/sun8i-a83t-sid.dtso ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dts/arm/overlays/sun8i-a83t-sid.dtso Sat Apr 7 22:28:43 2018 (r332260) @@ -0,0 +1,17 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-a83t"; + + fragment@0 { + target-path = "/soc"; + __overlay__ { + sid: eeprom@1c14000 { + compatible = "allwinner,sun8i-a83t-sid"; + reg = <0x1c14000 0x400>; + status = "okay"; + }; + }; + }; +};