svn commit: r350606 - stable/12/sys/modules/dtb/allwinner

2019-08-05 Thread Emmanuel Vadot
Author: manu Date: Mon Aug 5 18:59:53 2019 New Revision: 350606 URL: https://svnweb.freebsd.org/changeset/base/350606 Log: MFC r347362: dtb: allwinner: Add the pinebook dtb to the build Modified: stable/12/sys/modules/dtb/allwinner/Makefile Directory Properties: stable/12/ (props

svn commit: r350628 - in stable/12/sys: arm/allwinner/clkng dev/iicbus/twsi

2019-08-06 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 6 12:12:29 2019 New Revision: 350628 URL: https://svnweb.freebsd.org/changeset/base/350628 Log: MFC r347489-r347491, r347512 r347489: allwinner: clk: prediv_mux: Init the current parent Do not init the first parent but read the clock register to find

svn commit: r350629 - in stable/12/sys: arm/allwinner arm/allwinner/clkng conf

2019-08-06 Thread Emmanuel Vadot
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/12/sys/arm/allwinner/clkng/aw_clk_frac.c Tue Aug 6 12:19:09 2019(r350629, copy of r348182, head/sys/arm/allwinner/clkng/aw_clk_frac.c) @@ -0,0 +1,338 @@ +/*- + * Copyright

svn commit: r350166 - in head/sys/arm64: arm64 include

2019-07-20 Thread Emmanuel Vadot
Author: manu Date: Sat Jul 20 14:29:11 2019 New Revision: 350166 URL: https://svnweb.freebsd.org/changeset/base/350166 Log: arm64: Implement HWCAP Add HWCAP support for arm64. defines are the same as in Linux and a userland program can use elf_aux_info to get the data. We only save

svn commit: r350180 - in head/sys: dts/arm/overlays modules/dtb/allwinner

2019-07-20 Thread Emmanuel Vadot
Author: manu Date: Sat Jul 20 17:42:46 2019 New Revision: 350180 URL: https://svnweb.freebsd.org/changeset/base/350180 Log: dtso: allwinner: Add an overlay for H3 i2c0 Most of the H3 boards don't enable i2c as it is unused. Add an overlay so it's easier for user to use i2c device.

svn commit: r350230 - head/sys/arm/ti

2019-07-22 Thread Emmanuel Vadot
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/ti/ti_sysc.c Mon Jul 22 21:55:33 2019(r350230) @@ -0,0 +1,125 @@ +/*- + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source

svn commit: r350229 - head/sys/arm/ti

2019-07-22 Thread Emmanuel Vadot
Author: manu Date: Mon Jul 22 21:53:58 2019 New Revision: 350229 URL: https://svnweb.freebsd.org/changeset/base/350229 Log: arm: ti: Get the hwmods property from the parent node Since the Linux 5.0 dts the ti,hwmods property is on the parent ti.sysc node. Modified:

svn commit: r350129 - in head: release/packages usr.sbin/wpa/wpa_cli usr.sbin/wpa/wpa_passphrase usr.sbin/wpa/wpa_priv usr.sbin/wpa/wpa_supplicant

2019-07-19 Thread Emmanuel Vadot
Author: manu Date: Fri Jul 19 15:07:30 2019 New Revision: 350129 URL: https://svnweb.freebsd.org/changeset/base/350129 Log: pkgbase: Add a FreeBSD-wpa package Move the wpa related files from FreeBSD-runtime to a new package named FreeBSD-wpa The FreeBSD runtime is only intended to have

svn commit: r350131 - in head: release/packages usr.sbin/wpa/hostapd usr.sbin/wpa/hostapd_cli

2019-07-19 Thread Emmanuel Vadot
Author: manu Date: Fri Jul 19 15:09:00 2019 New Revision: 350131 URL: https://svnweb.freebsd.org/changeset/base/350131 Log: pkgbase: Add a FreeBSD-hostapd package Move the hostapd related files from FreeBSD-runtime to a new package n FreeBSD-hostapd The FreeBSD runtime is only intended

svn commit: r350132 - in head: libexec/rc/rc.d release/packages usr.bin/bluetooth/bthost usr.bin/bluetooth/btsockstat usr.bin/bluetooth/rfcomm_sppd usr.sbin/bluetooth/ath3kfw usr.sbin/bluetooth/bcm...

2019-07-19 Thread Emmanuel Vadot
Author: manu Date: Fri Jul 19 15:10:03 2019 New Revision: 350132 URL: https://svnweb.freebsd.org/changeset/base/350132 Log: pkgbase: Add a FreeBSD-bluetooth package Move the bluetooth related files from FreeBSD-runtime to a new package named FreeBSD-bluetooth The FreeBSD runtime is

svn commit: r350133 - in head: lib/libdpv lib/libfigpar usr.bin/dpv

2019-07-19 Thread Emmanuel Vadot
Author: manu Date: Fri Jul 19 15:10:53 2019 New Revision: 350133 URL: https://svnweb.freebsd.org/changeset/base/350133 Log: pkgbase: Add a FreeBSD-dpv package Move the dpv related files from FreeBSD-runtime to a new package named FreeBSD-dpv The only consumer is bsdinstall which is

svn commit: r350135 - head/share/mk

2019-07-19 Thread Emmanuel Vadot
Author: manu Date: Fri Jul 19 15:11:32 2019 New Revision: 350135 URL: https://svnweb.freebsd.org/changeset/base/350135 Log: bsd.confs.mk: Test the correct value for the destination package Reviewed by: bapt, gjb Differential Revision:https://reviews.freebsd.org/D20961 Modified:

svn commit: r350136 - in head/share/man: man1 man3 man4 man4/man4.aarch64 man4/man4.arm man4/man4.i386 man4/man4.powerpc man4/man4.sparc64 man5 man6 man7 man8 man9

2019-07-19 Thread Emmanuel Vadot
Author: manu Date: Fri Jul 19 15:12:20 2019 New Revision: 350136 URL: https://svnweb.freebsd.org/changeset/base/350136 Log: pkgbase: move man pages from runtime-manual to runtime We don't split the other man pages in their own package so do the same for runtime. Reviewed by: bapt,

svn commit: r350275 - head

2019-07-24 Thread Emmanuel Vadot
Author: manu Date: Wed Jul 24 08:00:00 2019 New Revision: 350275 URL: https://svnweb.freebsd.org/changeset/base/350275 Log: pkgbase: Add the sub stage-packages targets to TGTS This helps when you don't want to run the dependencies targets. Reviewed by: bapt Differential Revision:

Re: svn commit: r350135 - head/share/mk

2019-07-26 Thread Emmanuel Vadot
On Thu, 25 Jul 2019 00:17:31 +0200 Guido Falsi wrote: > On 25/07/19 00:14, Guido Falsi wrote: > > On 19/07/19 17:11, Emmanuel Vadot wrote: > >> Author: manu > >> Date: Fri Jul 19 15:11:32 2019 > >> New Revision: 350135 > >> URL: https://svnweb.fr

Re: svn commit: r350135 - head/share/mk

2019-07-26 Thread Emmanuel Vadot
On Fri, 26 Jul 2019 14:58:01 +0200 Guido Falsi wrote: > On 26/07/19 05:10, Emmanuel Vadot wrote: > > On Thu, 25 Jul 2019 00:17:31 +0200 > > Guido Falsi wrote: > > > >> On 25/07/19 00:14, Guido Falsi wrote: > >>> On 19/07/19 17:11, Emmanuel Vadot wrote

svn commit: r350210 - head/share/mk

2019-07-22 Thread Emmanuel Vadot
Author: manu Date: Mon Jul 22 10:17:59 2019 New Revision: 350210 URL: https://svnweb.freebsd.org/changeset/base/350210 Log: arm: Use -O2 instead of -O as optimization flag When using Clang -O is equivalent to -O2, change it -O2 to make it consistent with other platforms. Reference:

svn commit: r352850 - head/sys/arm64/rockchip/clk

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:19:52 2019 New Revision: 352850 URL: https://svnweb.freebsd.org/changeset/base/352850 Log: arm64: rockchip: Implement resets Module resets where not implemented when rockchip clocks were commited. Implement them. Since all resets registers are

svn commit: r352851 - head/sys/arm64/rockchip

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:21:16 2019 New Revision: 352851 URL: https://svnweb.freebsd.org/changeset/base/352851 Log: arm64: rockchip: Fix map_gpio The map_gpio function wasn't correct, the first element is the pin and not the phandle. Modified: head/sys/arm64/rockchip/rk_gpio.c

svn commit: r352856 - in vendor/device-tree/dist: . Bindings Bindings/arm Bindings/arm/amlogic Bindings/arm/freescale Bindings/arm/mediatek Bindings/arm/nxp Bindings/arm/omap Bindings/arm/socionext...

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:38:14 2019 New Revision: 352856 URL: https://svnweb.freebsd.org/changeset/base/352856 Log: Import DTS files from Linux 5.3 Added: vendor/device-tree/dist/Bindings/arm/al,alpine.yaml vendor/device-tree/dist/Bindings/arm/amlogic.yaml

svn commit: r352857 - vendor/device-tree/5.3

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:38:47 2019 New Revision: 352857 URL: https://svnweb.freebsd.org/changeset/base/352857 Log: tag import of DTS files from Linux 5.3 Added: vendor/device-tree/5.3/ - copied from r352856, vendor/device-tree/dist/

svn commit: r352858 - in head/sys/gnu/dts: arm arm64/allwinner arm64/altera arm64/amlogic arm64/apm arm64/arm arm64/bitmain arm64/broadcom arm64/cavium arm64/exynos arm64/freescale arm64/hisilicon ...

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:54:56 2019 New Revision: 352858 URL: https://svnweb.freebsd.org/changeset/base/352858 Log: Import DTS files from Linux 5.2 Added: - copied unchanged from r352854, vendor/device-tree/dist/src/arm/am5718.dtsi - copied unchanged from r352854,

svn commit: r352848 - in head/sys: arm/allwinner/clkng conf

2019-09-28 Thread Emmanuel Vadot
\ Added: head/sys/arm/allwinner/clkng/aw_clk_mipi.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/allwinner/clkng/aw_clk_mipi.c Sat Sep 28 22:14:33 2019 (r352848) @@ -0

svn commit: r352854 - in vendor/device-tree/dist: . Bindings Bindings/arm Bindings/arm/altera Bindings/arm/freescale Bindings/arm/keystone Bindings/arm/mediatek Bindings/arm/omap Bindings/arm/stm32...

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:35:29 2019 New Revision: 352854 URL: https://svnweb.freebsd.org/changeset/base/352854 Log: Import DTS from Linux 5.2 Added: vendor/device-tree/dist/.gitignore vendor/device-tree/dist/Bindings/arm/intel-ixp4xx.yaml

svn commit: r352855 - vendor/device-tree/5.2

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:36:08 2019 New Revision: 352855 URL: https://svnweb.freebsd.org/changeset/base/352855 Log: tag import of 5.2 DTS files Added: vendor/device-tree/5.2/ - copied from r352854, vendor/device-tree/dist/ ___

svn commit: r352849 - head/sys/arm64/rockchip/clk

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:17:26 2019 New Revision: 352849 URL: https://svnweb.freebsd.org/changeset/base/352849 Log: arm64: rockchip: rk3399: Add usb2 clocks Modified: head/sys/arm64/rockchip/clk/rk3399_cru.c Modified: head/sys/arm64/rockchip/clk/rk3399_cru.c

svn commit: r352860 - in head/sys/gnu/dts: arm arm64/allwinner arm64/altera arm64/amlogic arm64/arm arm64/broadcom/stingray arm64/exynos arm64/freescale arm64/hisilicon arm64/marvell arm64/mediatek...

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 23:08:19 2019 New Revision: 352860 URL: https://svnweb.freebsd.org/changeset/base/352860 Log: Import DTS files from Linux 5.3 Added: - copied unchanged from r352856, vendor/device-tree/dist/src/arm/am335x-regor-rdk.dts - copied unchanged from r352856,

svn commit: r352859 - head/sys/arm/allwinner

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 23:01:23 2019 New Revision: 352859 URL: https://svnweb.freebsd.org/changeset/base/352859 Log: arm: allwinner: Add pll_mipi to the files Modified: head/sys/arm/allwinner/files.allwinner Modified: head/sys/arm/allwinner/files.allwinner

svn commit: r352943 - head/sys/arm/allwinner

2019-10-01 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 1 22:19:12 2019 New Revision: 352943 URL: https://svnweb.freebsd.org/changeset/base/352943 Log: arm: allwinner: a10_ehci: Enable all phys Even if there should be only one phy enable all the ones declared in the dts just to be sure. Modified:

svn commit: r352944 - head/sys/dev/usb/controller

2019-10-01 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 1 22:20:03 2019 New Revision: 352944 URL: https://svnweb.freebsd.org/changeset/base/352944 Log: generic_ehci: Enable all phys and resets The number of phys and resets is not defined and it controller dependent so enable/disable every one of them. Modified:

svn commit: r352903 - head/sys/arm64/rockchip/clk

2019-09-30 Thread Emmanuel Vadot
Author: manu Date: Mon Sep 30 15:00:22 2019 New Revision: 352903 URL: https://svnweb.freebsd.org/changeset/base/352903 Log: arm64: rockchip: correct reset value If bit is 0 the reset is not asserted. Also register our self as a reset provider, this was commented in r352850

svn commit: r352904 - head/sys/arm64/rockchip/clk

2019-09-30 Thread Emmanuel Vadot
Author: manu Date: Mon Sep 30 15:01:09 2019 New Revision: 352904 URL: https://svnweb.freebsd.org/changeset/base/352904 Log: arm64: rockchip: rk_clk_pll: Check mode on recalc If the pll is in slow or deep slow mode return the correct frequency. Modified:

svn commit: r352853 - in head/sys: arm64/conf arm64/rockchip conf

2019-09-28 Thread Emmanuel Vadot
@@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code

svn commit: r352852 - head/sys/dev/dwc

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:23:21 2019 New Revision: 352852 URL: https://svnweb.freebsd.org/changeset/base/352852 Log: dwc: Add more delay for chip reset On rockchip board it seems that the value in the DTS are not enough for reseting the chip, I don't know if the value are really

Re: svn commit: r352940 - head/sys/dev/usb/controller

2019-10-01 Thread Emmanuel Vadot
On Tue, 01 Oct 2019 14:29:58 -0600 Ian Lepore wrote: > On Tue, 2019-10-01 at 20:21 +0000, Emmanuel Vadot wrote: > > Author: manu > > Date: Tue Oct 1 20:21:49 2019 > > New Revision: 352940 > > URL: https://svnweb.freebsd.org/changeset/base/352940 > >

svn commit: r352936 - head/sys/arm64/rockchip

2019-10-01 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 1 18:30:06 2019 New Revision: 352936 URL: https://svnweb.freebsd.org/changeset/base/352936 Log: arm64: rockchip: rk805: Switch to iicdev_{readfrom,writeto} This simpify the code a bit. Modified: head/sys/arm64/rockchip/rk805.c Modified:

svn commit: r352937 - head/sys/dev/iicbus

2019-10-01 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 1 18:32:27 2019 New Revision: 352937 URL: https://svnweb.freebsd.org/changeset/base/352937 Log: syr827: Switch to iicdev_{readfrom,writeto} Also use IIC_INTRWAIT as we need this to work with the rockchip i2c driver. Modified: head/sys/dev/iicbus/syr827.c

svn commit: r352940 - head/sys/dev/usb/controller

2019-10-01 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 1 20:21:49 2019 New Revision: 352940 URL: https://svnweb.freebsd.org/changeset/base/352940 Log: generic_ohci: Look for the phy based on the id phy-names was never in the bindings schema even if it was present in some DTS. Get the optional phy based on its ID.

svn commit: r352941 - head/sys/arm/allwinner

2019-10-01 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 1 20:22:54 2019 New Revision: 352941 URL: https://svnweb.freebsd.org/changeset/base/352941 Log: arm: allwinner: a10_ehci: Look for the phy based on the id phy-names was never in the bindings schema even if it was present in some DTS. Get the optional phy

svn commit: r354549 - head/lib/libpmc

2019-11-08 Thread Emmanuel Vadot
Author: manu Date: Fri Nov 8 16:56:48 2019 New Revision: 354549 URL: https://svnweb.freebsd.org/changeset/base/354549 Log: libpmc: Match on the cpuid with a regex The CPUID is, or can be, a regex to be matched. Use regex from libc instead of strcmp Tested-by:gallatin MFC

svn commit: r354559 - head/stand/efi/loader

2019-11-08 Thread Emmanuel Vadot
Author: manu Date: Fri Nov 8 20:08:44 2019 New Revision: 354559 URL: https://svnweb.freebsd.org/changeset/base/354559 Log: loader.efi: Default to serial if we don't have a ConOut variable In the EFI implementation in U-Boot no ConOut efi variable is created, this cause loader to

svn commit: r354550 - head/lib/libpmc

2019-11-08 Thread Emmanuel Vadot
Author: manu Date: Fri Nov 8 17:27:20 2019 New Revision: 354550 URL: https://svnweb.freebsd.org/changeset/base/354550 Log: libpmc: Forgot regex.h Reported by: ci MFC after:1 week X-MFC-With: r354549 Modified: head/lib/libpmc/libpmc_pmu_util.c Modified:

svn commit: r354407 - head/sys/arm/allwinner/clkng

2019-11-06 Thread Emmanuel Vadot
Author: manu Date: Wed Nov 6 18:39:32 2019 New Revision: 354407 URL: https://svnweb.freebsd.org/changeset/base/354407 Log: arm64: allwinner: a64: Do not init the video related clocks This should be handled by the video drivers and this break EFIFB as this changes clock setup by the

svn commit: r354396 - in head/sys: arm/allwinner arm64/rockchip dev/extres/regulator

2019-11-06 Thread Emmanuel Vadot
Author: manu Date: Wed Nov 6 14:55:24 2019 New Revision: 354396 URL: https://svnweb.freebsd.org/changeset/base/354396 Log: regulator: Add regulator_check_voltage function This function will call the regnode_check_voltage method for a given regulator and check if the desired voltage in

svn commit: r354397 - head/sys/arm/allwinner

2019-11-06 Thread Emmanuel Vadot
Author: manu Date: Wed Nov 6 14:58:25 2019 New Revision: 354397 URL: https://svnweb.freebsd.org/changeset/base/354397 Log: arm: allwinner: aw_mmc: Check if the regulator support the voltage Don't blindy say that we support both 3.3V and 1.8V. If we have a regulator for the data lines,

svn commit: r354573 - head/sys/dev/usb/controller

2019-11-09 Thread Emmanuel Vadot
Author: manu Date: Sat Nov 9 22:25:45 2019 New Revision: 354573 URL: https://svnweb.freebsd.org/changeset/base/354573 Log: generic_ehci_fdt: Fix compile when EXT_RESOURCES isn't present Modified: head/sys/dev/usb/controller/generic_ehci_fdt.c Modified:

Re: svn commit: r355188 - in head/riscv: . sifive

2019-12-03 Thread Emmanuel Vadot
RGET} > > or > > sys/gnu/dts/${TARGET}/(vendor/)? > > So perhaps these should be moved to one of those directories, as appropriate? > > Thanks, > > Ravi (rpokala@) Thanks, I don't know how I didn't see that ... fixed with revert + r355324. > ?-Original Me

svn commit: r355324 - head/sys/gnu/dts/riscv

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 09:12:53 2019 New Revision: 355324 URL: https://svnweb.freebsd.org/changeset/base/355324 Log: Import DTS files for riscv from Linux 5.4 Requested by: mhorne Added: head/sys/gnu/dts/riscv/ - copied from r355323, vendor/device-tree/dist/src/riscv/

svn commit: r355323 - head/riscv

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 09:06:37 2019 New Revision: 355323 URL: https://svnweb.freebsd.org/changeset/base/355323 Log: Revert r355188 as it shouldn't have created the risc-v directory at the top level. Reported by: rpokala Deleted: head/riscv/

svn commit: r355356 - head/sys/arm64/rockchip/clk

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 19:18:32 2019 New Revision: 355356 URL: https://svnweb.freebsd.org/changeset/base/355356 Log: arm64: rockchip: rl3399: Remove the ability to put the PLL in normal mode at boot RK3399 PLLs have three modes : - Normal, where they behave normally and their

svn commit: r355558 - head/sys/arm64/arm64

2019-12-09 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 9 15:23:05 2019 New Revision: 38 URL: https://svnweb.freebsd.org/changeset/base/38 Log: arm64: Use the kenv provided by loader Otherwise we have an empty kenv a likely cannot boot. Submitted by: kevans MFC after:1 month X-MFC-With: 355487

svn commit: r355852 - head/sys/arm64/rockchip

2019-12-17 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 17 10:55:28 2019 New Revision: 355852 URL: https://svnweb.freebsd.org/changeset/base/355852 Log: arm64: rockchip: rk_pinctrl: Fix clear bits in SYSCON_MODIFY r351187 change the SYSCON_WRITE to SYSCON_MODIFY but didn't changed the mask variable that used to hold

svn commit: r355853 - head/sys/arm64/rockchip

2019-12-17 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 17 10:57:31 2019 New Revision: 355853 URL: https://svnweb.freebsd.org/changeset/base/355853 Log: arm64: rockchip: rk_gpio: Fix pin number The maxpin counter starts at 0, fix one by one error. This is still not totally correct for some banks in some SoC that

svn commit: r355648 - head/sys/arm64/rockchip

2019-12-12 Thread Emmanuel Vadot
Author: manu Date: Thu Dec 12 13:02:22 2019 New Revision: 355648 URL: https://svnweb.freebsd.org/changeset/base/355648 Log: arm64: rockchip: rk_pinctrl: Add bias parsing based on the SoC type Not all rockchip have the same value for pullup/pulldown so add a function per SoC and call the

svn commit: r355649 - head/sys/arm64/rockchip

2019-12-12 Thread Emmanuel Vadot
Author: manu Date: Thu Dec 12 13:21:43 2019 New Revision: 355649 URL: https://svnweb.freebsd.org/changeset/base/355649 Log: arm64: rockchip: rk_pinctrl: Fix parse_bias for RK3399 Only bank 0 and bank 2 are different than other rockchip SoC, fix this. While here remove some debug printfs

svn commit: r355625 - head/sys/dev/mmc/host

2019-12-11 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 11 18:41:13 2019 New Revision: 355625 URL: https://svnweb.freebsd.org/changeset/base/355625 Log: dwmmc: Add a detach method This method will disable the regulators, clocks and assert the reset of the module. It will also detach it's children (the mmc device)

svn commit: r355629 - head/sys/dev/mmc/host

2019-12-11 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 11 19:40:30 2019 New Revision: 355629 URL: https://svnweb.freebsd.org/changeset/base/355629 Log: dwmmc: Use device_delete_children Instead of first detaching the children(s) and then delete them, use the device_delete_children function that does all of that.

svn commit: r355626 - in head/sys/modules/rockchip: . rk_dwmmc

2019-12-11 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 11 18:43:39 2019 New Revision: 355626 URL: https://svnweb.freebsd.org/changeset/base/355626 Log: arm64: rockchip: Add a module for rk_dwmmc This is mostly needed for dev/debug as most users will have their root on the sdcard or emmc. MFC after:1 month

svn commit: r355627 - head/sys/dev/mmc/host

2019-12-11 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 11 18:50:23 2019 New Revision: 355627 URL: https://svnweb.freebsd.org/changeset/base/355627 Log: dwmmc: Handle the card detect interrupt The driver used to always add the mmc device as it's child even it no card was detected. Add a function that will detect if

svn commit: r355623 - in head/sys: arm64/conf conf

2019-12-11 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 11 18:36:07 2019 New Revision: 355623 URL: https://svnweb.freebsd.org/changeset/base/355623 Log: arm64: Add explicit devices for dwmmc variant We used to include the hisi version if soc_hisi_hi6220 was present, include the altera version if dwmmc_altera was

svn commit: r355624 - head/sys/arm64/rockchip/clk

2019-12-11 Thread Emmanuel Vadot
Author: manu Date: Wed Dec 11 18:39:05 2019 New Revision: 355624 URL: https://svnweb.freebsd.org/changeset/base/355624 Log: arm64: rk3328: Add the *clk_peri_niu clocks Those clocks are always enable by default and are not really explained in the TRM but the reason we had them is that

svn commit: r355360 - head/sys/dev/cpufreq

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 22:08:54 2019 New Revision: 355360 URL: https://svnweb.freebsd.org/changeset/base/355360 Log: cpufreq_dt: Do not attach the device if the cpu isn't present If we boot with hw.ncpu=X (available on arm and arm64 at least) we shouldn't attach the cpufreq driver

svn commit: r355361 - head/sys/dev/cpufreq

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 22:26:55 2019 New Revision: 355361 URL: https://svnweb.freebsd.org/changeset/base/355361 Log: cpufreq_dt: Do not fetch again hw.ncpu MD code already set the global variable mp_ncpus according to the tunable hw.ncpu so use the global variable directly.

svn commit: r355358 - in head/sys: arm/allwinner arm/allwinner/a64 arm/allwinner/a83t dev/gpio dev/hdmi dev/iicbus dev/uart mips/ingenic

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 21:05:33 2019 New Revision: 355358 URL: https://svnweb.freebsd.org/changeset/base/355358 Log: Remove "all rights reserved" from copyright for the file that Jared McNeill own. He gave me permission to do this. Modified: head/sys/arm/allwinner/a10_fb.c

svn commit: r355357 - in head: share/man/man4/man4.aarch64 share/man/man4/man4.arm sys/arm/allwinner sys/arm/allwinner/a10 sys/arm/allwinner/a13 sys/arm/allwinner/a20 sys/arm/allwinner/a31 sys/arm/...

2019-12-03 Thread Emmanuel Vadot
; Copyright (c) 2018 Emmanuel Vadot -.\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions Modified: h

svn commit: r355809 - stable/12/usr.bin/dtc

2019-12-16 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 16 18:00:05 2019 New Revision: 355809 URL: https://svnweb.freebsd.org/changeset/base/355809 Log: MFC r354115: dtc: Allow multiple dts-v1 tag Some dts are including dtsi that also contain a /dts-v1/ tag at the top. GNU DTC doesn't seems to have a problem

svn commit: r355812 - stable/12/sys/arm64/rockchip

2019-12-16 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 16 18:05:28 2019 New Revision: 355812 URL: https://svnweb.freebsd.org/changeset/base/355812 Log: MFC r355648-r355649 r355648: arm64: rockchip: rk_pinctrl: Add bias parsing based on the SoC type Not all rockchip have the same value for pullup/pulldown so

svn commit: r355810 - stable/12/sys/arm/allwinner/clkng

2019-12-16 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 16 18:02:48 2019 New Revision: 355810 URL: https://svnweb.freebsd.org/changeset/base/355810 Log: MFC r354407: arm64: allwinner: a64: Do not init the video related clocks This should be handled by the video drivers and this break EFIFB as this changes clock

svn commit: r355808 - stable/12/sys/dev/flash

2019-12-16 Thread Emmanuel Vadot
Author: manu Date: Mon Dec 16 17:59:02 2019 New Revision: 355808 URL: https://svnweb.freebsd.org/changeset/base/355808 Log: MFC r354086: flash: Add GigaDevice gd25q128 flash Add this flash chip which is a 128Mb spi flash. Modified: stable/12/sys/dev/flash/mx25l.c Directory

Re: svn commit: r353493 - head/sys/dev/mmc/host

2019-10-16 Thread Emmanuel Vadot
On Wed, 16 Oct 2019 16:06:34 +0100 Ruslan Bukin wrote: > On Mon, Oct 14, 2019 at 06:45:26PM +0200, Emmanuel Vadot wrote: > > On Mon, 14 Oct 2019 17:27:51 +0100 > > Ruslan Bukin wrote: > > > > > On Mon, Oct 14, 2019 at 06:10:51PM +0200, Emmanuel Vadot wrote: > &

Re: svn commit: r353575 - head/sys/dev/mmc/host

2019-10-15 Thread Emmanuel Vadot
!= ENODEV) { > device_printf(sc->dev, "Cannot get 'biu' clock\n"); > + goto fail; > + } > > if (sc->biu) { > error = clk_enable(sc->biu); > @@ -499,8 +515,12 @@ parse_fdt(struct dwmmc_softc *sc)

Re: svn commit: r353575 - head/sys/dev/mmc/host

2019-10-15 Thread Emmanuel Vadot
On Tue, 15 Oct 2019 18:37:57 +0100 Ruslan Bukin wrote: > On Tue, Oct 15, 2019 at 07:34:51PM +0200, Emmanuel Vadot wrote: > > On Tue, 15 Oct 2019 17:24:22 + (UTC) > > Ruslan Bukin wrote: > > > > > Author: br > > > Date: Tue Oct 15 17:24:21 2019 >

svn commit: r353526 - in head/sys: arm/allwinner/clkng conf

2019-10-14 Thread Emmanuel Vadot
because file is newly added) +++ head/sys/arm/allwinner/clkng/aw_clk_nmm.c Mon Oct 14 21:49:07 2019 (r353526) @@ -0,0 +1,285 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source and binary forms, wit

svn commit: r353529 - in head/sys: arm/allwinner arm/allwinner/h6 conf

2019-10-14 Thread Emmanuel Vadot
}; Added: head/sys/arm/allwinner/h6/h6_padconf.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/allwinner/h6/h6_padconf.c Mon Oct 14 21:55:45 2019 (r353529) @@ -0,0 +1

svn commit: r353533 - in head/sys: arm64/conf conf dev/usb/controller

2019-10-14 Thread Emmanuel Vadot
: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright

svn commit: r353527 - head/sys/arm/allwinner

2019-10-14 Thread Emmanuel Vadot
Author: manu Date: Mon Oct 14 21:50:44 2019 New Revision: 353527 URL: https://svnweb.freebsd.org/changeset/base/353527 Log: arm: allwinner: Disable the clock before changing it's freq You aren't supposed to changing the freq of a clock when it is enable so disable the clock before

svn commit: r353532 - in head/sys: arm/allwinner arm64/conf conf

2019-10-14 Thread Emmanuel Vadot
, because file is newly added) +++ head/sys/arm/allwinner/aw_dwc3.cMon Oct 14 22:22:19 2019 (r353532) @@ -0,0 +1,147 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source and binary forms

svn commit: r353534 - head/sys/arm/allwinner

2019-10-14 Thread Emmanuel Vadot
Author: manu Date: Mon Oct 14 22:29:20 2019 New Revision: 353534 URL: https://svnweb.freebsd.org/changeset/base/353534 Log: arm: allwinner: Add np and nmm clock file to the build MFC after:1 month Modified: head/sys/arm/allwinner/files.allwinner Modified:

svn commit: r353524 - head/sys/arm/allwinner/clkng

2019-10-14 Thread Emmanuel Vadot
Author: manu Date: Mon Oct 14 21:45:15 2019 New Revision: 353524 URL: https://svnweb.freebsd.org/changeset/base/353524 Log: aw_ccung: Add more debug printfs No functional changes MFC after:1 month Modified: head/sys/arm/allwinner/clkng/aw_ccung.c Modified:

svn commit: r353530 - head/sys/arm/allwinner

2019-10-14 Thread Emmanuel Vadot
Author: manu Date: Mon Oct 14 21:56:41 2019 New Revision: 353530 URL: https://svnweb.freebsd.org/changeset/base/353530 Log: arm64: allwinner: aw_usbphy: Add support for H6 PHY MFC after:1 month Modified: head/sys/arm/allwinner/aw_usbphy.c Modified:

svn commit: r353525 - in head/sys: arm/allwinner/clkng conf

2019-10-14 Thread Emmanuel Vadot
+++ head/sys/arm/allwinner/clkng/aw_clk_np.cMon Oct 14 21:47:20 2019 (r353525) @@ -0,0 +1,267 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source and binary forms, with or without + *

svn commit: r353528 - in head/sys: arm/allwinner/clkng arm64/conf conf

2019-10-14 Thread Emmanuel Vadot
) @@ -0,0 +1,501 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions

svn commit: r353531 - in head/sys: arm/allwinner conf

2019-10-14 Thread Emmanuel Vadot
Author: manu Date: Mon Oct 14 21:58:46 2019 New Revision: 353531 URL: https://svnweb.freebsd.org/changeset/base/353531 Log: arm64: allwinner: Add support for the usb3 phy The usb 3 controller in the H6 SoC have a dedicated phy. Add support for it. Mostly imported from NetBSD MFC

svn commit: r353642 - head/sys/dev/usb/controller

2019-10-16 Thread Emmanuel Vadot
Author: manu Date: Wed Oct 16 13:53:53 2019 New Revision: 353642 URL: https://svnweb.freebsd.org/changeset/base/353642 Log: dwc3: Use a pair of ()'s around arguments for some macros Reported by: hselasky MFC after:1 week X-MFC-With: r353533 Modified:

svn commit: r354152 - head/sys/arm64/rockchip

2019-10-29 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 29 18:36:16 2019 New Revision: 354152 URL: https://svnweb.freebsd.org/changeset/base/354152 Log: arm64: rockchip: typec_phy: Rename timeout to retry Declare retry in the function scope. Rename it to retry as there is a timeout function which was causing to

svn commit: r353917 - head/sys/dev/extres/regulator

2019-10-23 Thread Emmanuel Vadot
Author: manu Date: Wed Oct 23 09:54:12 2019 New Revision: 353917 URL: https://svnweb.freebsd.org/changeset/base/353917 Log: regulator: Add a regnode_method_init This is a default init method for regulator that don't really need one. MFC after:1 week Modified:

svn commit: r353919 - head/sys/dev/extres/regulator

2019-10-23 Thread Emmanuel Vadot
Author: manu Date: Wed Oct 23 09:56:53 2019 New Revision: 353919 URL: https://svnweb.freebsd.org/changeset/base/353919 Log: regulator: Add a regnode_set_constraint function This method check that boot_on or always_on is set to 1 and if it is it will try to enable the regulator. The

svn commit: r353918 - head/sys/arm/allwinner

2019-10-23 Thread Emmanuel Vadot
Author: manu Date: Wed Oct 23 09:54:50 2019 New Revision: 353918 URL: https://svnweb.freebsd.org/changeset/base/353918 Log: axp81x: Use the default regnode_init method MFC after:1 week Modified: head/sys/arm/allwinner/axp81x.c Modified: head/sys/arm/allwinner/axp81x.c

svn commit: r354089 - in head/sys: arm64/conf arm64/rockchip conf

2019-10-25 Thread Emmanuel Vadot
+ * + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions

svn commit: r354086 - head/sys/dev/flash

2019-10-25 Thread Emmanuel Vadot
Author: manu Date: Fri Oct 25 17:56:24 2019 New Revision: 354086 URL: https://svnweb.freebsd.org/changeset/base/354086 Log: flash: Add GigaDevice gd25q128 flash Add this flash chip which is a 128Mb spi flash. MFC after:1 week Modified: head/sys/dev/flash/mx25l.c Modified:

svn commit: r354087 - head/sys/arm64/rockchip/clk

2019-10-25 Thread Emmanuel Vadot
Author: manu Date: Fri Oct 25 18:08:25 2019 New Revision: 354087 URL: https://svnweb.freebsd.org/changeset/base/354087 Log: arm64: rk3399: Add clock and gate for usb3 clocks MFC after:1 month Modified: head/sys/arm64/rockchip/clk/rk3399_cru.c Modified:

svn commit: r354088 - in head/sys: arm64/conf arm64/rockchip conf

2019-10-25 Thread Emmanuel Vadot
/rk_dwc3.c Fri Oct 25 18:08:59 2019 (r354088) @@ -0,0 +1,201 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Emmanuel Vadot + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided

svn commit: r354115 - head/usr.bin/dtc

2019-10-26 Thread Emmanuel Vadot
Author: manu Date: Sat Oct 26 17:10:27 2019 New Revision: 354115 URL: https://svnweb.freebsd.org/changeset/base/354115 Log: dtc: Allow multiple dts-v1 tag Some dts are including dtsi that also contain a /dts-v1/ tag at the top. GNU DTC doesn't seems to have a problem with that so fix our

svn commit: r354117 - head/sys/modules/dtb/rockchip

2019-10-26 Thread Emmanuel Vadot
Author: manu Date: Sat Oct 26 17:51:43 2019 New Revision: 354117 URL: https://svnweb.freebsd.org/changeset/base/354117 Log: arm64: rockchip: dts: Build the Khadas board DTS We boot on thoses boards so build them. Submitted by: s199p.wa1...@gmail.com MFC after:1 week

svn commit: r355188 - in head/riscv: . sifive

2019-11-28 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 28 19:38:57 2019 New Revision: 355188 URL: https://svnweb.freebsd.org/changeset/base/355188 Log: Import riscv DTS files Requested by: mhorne Added: head/riscv/ - copied from r355184, vendor/device-tree/dist/src/riscv/ Replaced:

svn commit: r355187 - in head/sys/gnu/dts: arm arm64/allwinner arm64/altera arm64/amlogic arm64/arm arm64/bitmain arm64/broadcom/stingray arm64/freescale arm64/intel arm64/marvell arm64/mediatek ar...

2019-11-28 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 28 19:30:41 2019 New Revision: 355187 URL: https://svnweb.freebsd.org/changeset/base/355187 Log: Import DTS files from Linux 5.4 MFC after:2 months Added: head/sys/gnu/dts/arm/aspeed-ast2600-evb.dts - copied unchanged from r355185,

svn commit: r355190 - head/sys/arm64/rockchip

2019-11-28 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 28 20:17:03 2019 New Revision: 355190 URL: https://svnweb.freebsd.org/changeset/base/355190 Log: arm64: rockchip: tsadc: Do not free the sysctl context is it wasn't created MFC after:3 weeks X-MFC-With: r355173 Modified:

svn commit: r355191 - head/sys/arm64/rockchip/clk

2019-11-28 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 28 20:46:24 2019 New Revision: 355191 URL: https://svnweb.freebsd.org/changeset/base/355191 Log: arm64: rockchip: rk3328: Add TSADC clocks Add the clocks so we can use the rk_tsadc driver to monitor the cpu temperature. Modified:

Re: svn commit: r354206 - head/sys/arm/allwinner

2019-10-31 Thread Emmanuel Vadot
if (sc->sim == NULL) { > @@ -1514,6 +1514,7 @@ static device_method_t aw_mmc_methods[] = { > /* Bus interface */ > DEVMETHOD(bus_read_ivar,aw_mmc_read_ivar), > DEVMETHOD(bus_write_ivar, aw_mmc_write_ivar), > + DEVMETHOD(bus_add_child,bus_ge

svn commit: r355174 - in stable/12/sys: arm/allwinner arm/allwinner/a20 arm/allwinner/clkng conf dev/extres/clk

2019-11-28 Thread Emmanuel Vadot
struct aw_clk_factorn; struct aw_clk_frac frac; + uint64_tmin_freq; + uint64_tmax_freq; + uint32_tmux_shift; uint32_tmux_width; uint32_tgate_shift; Copied: s

<    4   5   6   7   8   9   10   11   12   13   >