From owner-svn-src-head@freebsd.org Fri Aug 24 15:00:38 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 98B30108C199; Fri, 24 Aug 2018 15:00:38 +0000 (UTC) (envelope-from manu@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 4C1DF896A3; Fri, 24 Aug 2018 15:00:38 +0000 (UTC) (envelope-from manu@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 2EF18128C3; Fri, 24 Aug 2018 15:00:38 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7OF0ct7010723; Fri, 24 Aug 2018 15:00:38 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7OF0bZ8010717; Fri, 24 Aug 2018 15:00:37 GMT (envelope-from manu@FreeBSD.org) Message-Id: <201808241500.w7OF0bZ8010717@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Fri, 24 Aug 2018 15:00:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338294 - in head/sys: dts/arm64 dts/arm64/overlays modules/dtb/allwinner X-SVN-Group: head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: in head/sys: dts/arm64 dts/arm64/overlays modules/dtb/allwinner X-SVN-Commit-Revision: 338294 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.27 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: Fri, 24 Aug 2018 15:00:38 -0000 Author: manu Date: Fri Aug 24 15:00:36 2018 New Revision: 338294 URL: https://svnweb.freebsd.org/changeset/base/338294 Log: arm64: Add DTS overlays for A64 - sun50i-a64-sid.dtso registers the Security ID node, needed for thermal - sun50i-a64-ths.dtso registers the thermal node, for which we already have a driver - sun50i-a64-timer.dtso registers the timer node, needed as the generic timer glitch on A64 SoC. Approved by: re (gjb) Added: head/sys/dts/arm64/ head/sys/dts/arm64/Makefile (contents, props changed) head/sys/dts/arm64/overlays/ head/sys/dts/arm64/overlays/Makefile (contents, props changed) head/sys/dts/arm64/overlays/sun50i-a64-sid.dtso (contents, props changed) head/sys/dts/arm64/overlays/sun50i-a64-ths.dtso (contents, props changed) head/sys/dts/arm64/overlays/sun50i-a64-timer.dtso (contents, props changed) Modified: head/sys/modules/dtb/allwinner/Makefile Added: head/sys/dts/arm64/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dts/arm64/Makefile Fri Aug 24 15:00:36 2018 (r338294) @@ -0,0 +1,7 @@ +# $FreeBSD$ + +DTS!=ls *.dts + +all: test-dts + +.include Added: head/sys/dts/arm64/overlays/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dts/arm64/overlays/Makefile Fri Aug 24 15:00:36 2018 (r338294) @@ -0,0 +1,7 @@ +# $FreeBSD$ + +DTSO!=ls *.dtso + +all: test-dtso + +.include Added: head/sys/dts/arm64/overlays/sun50i-a64-sid.dtso ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dts/arm64/overlays/sun50i-a64-sid.dtso Fri Aug 24 15:00:36 2018 (r338294) @@ -0,0 +1,17 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun50i-a64"; +}; + +&{/soc} { + sid: eeprom@1c14000 { + compatible = "allwinner,sun50i-a64-sid"; + reg = <0x1c14000 0x400>; + + ths_calib: calib@234 { + reg = <0x234 0x6>; + }; + }; +}; Added: head/sys/dts/arm64/overlays/sun50i-a64-ths.dtso ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dts/arm64/overlays/sun50i-a64-ths.dtso Fri Aug 24 15:00:36 2018 (r338294) @@ -0,0 +1,27 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include + +/ { + compatible = "allwinner,sun50i-a64"; +}; + +&{/soc} { + ths: thermal_sensor@1c25000 { + compatible = "allwinner,sun50i-a64-ths"; + reg = <0x01c25000 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; + clock-names = "apb", "ths"; + resets = <&ccu RST_BUS_THS>; + reset-names = "apb"; + #thermal-sensor-cells = <2>; + status = "okay"; + + nvmem-cells = <&ths_calib>; + nvmem-cell-names = "ths-calib"; + }; +}; Added: head/sys/dts/arm64/overlays/sun50i-a64-timer.dtso ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dts/arm64/overlays/sun50i-a64-timer.dtso Fri Aug 24 15:00:36 2018 (r338294) @@ -0,0 +1,17 @@ +/dts-v1/; +/plugin/; + +#include +/ { + compatible = "allwinner,sun50i-a64"; +}; + +&{/soc} { + timer@1c20c00 { + compatible = "allwinner,sun8i-a23-timer"; + reg = <0x1c20c00 0x2C>; + interrupts = , + ; + status = "okay"; + }; +}; Modified: head/sys/modules/dtb/allwinner/Makefile ============================================================================== --- head/sys/modules/dtb/allwinner/Makefile Fri Aug 24 14:53:46 2018 (r338293) +++ head/sys/modules/dtb/allwinner/Makefile Fri Aug 24 15:00:36 2018 (r338294) @@ -43,6 +43,11 @@ DTS= \ allwinner/sun50i-a64-pine64.dts \ allwinner/sun50i-a64-sopine-baseboard.dts \ allwinner/sun50i-h5-orangepi-pc2.dts + +DTSO= sun50i-a64-sid.dtso \ + sun50i-a64-ths.dtso \ + sun50i-a64-timer.dtso + .endif .include