svn commit: r335779 - in head/sys: arm/broadcom/bcm2835 conf

2018-06-28 Thread Oleksandr Tymoshenko
18 Klaus P. Ohrhallinger + * All rights reserved. + * + * Based on bcm2835_sdhci.c: + * Copyright (c) 2012 Oleksandr Tymoshenko + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following

svn commit: r335675 - head/contrib/file/magic/Magdir

2018-06-26 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Jun 26 18:53:52 2018 New Revision: 335675 URL: https://svnweb.freebsd.org/changeset/base/335675 Log: Fix file(1) dumpdate reporting for dump(8) files Magic file for dump(8) had this dump and previous dump dates reversed. Fix order for all three flavours of the

svn commit: r335611 - head/sys/arm/broadcom/bcm2835

2018-06-24 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Jun 24 23:19:31 2018 New Revision: 335611 URL: https://svnweb.freebsd.org/changeset/base/335611 Log: [rpi] Fix compatiblity with upstream DTB for RPi 3B and 3B+ Upstream dtb switched to using brcm,bcm2837 for platform compatibility string. Patch platfrom and

svn commit: r335587 - head/share/man/man9

2018-06-23 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Jun 23 20:05:07 2018 New Revision: 335587 URL: https://svnweb.freebsd.org/changeset/base/335587 Log: Document multi variants of *prop_alloc functions Add documentation and symlinks for OF_getprop_alloc_multi and OF_getencprop_alloc_multi functions. Also while

svn commit: r335586 - head/share/man/man9

2018-06-23 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Jun 23 19:30:29 2018 New Revision: 335586 URL: https://svnweb.freebsd.org/changeset/base/335586 Log: Bump .Dd value after r335585 Modified: head/share/man/man9/fdt_pinctrl.9 Modified: head/share/man/man9/fdt_pinctrl.9

svn commit: r335585 - head/share/man/man9

2018-06-23 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Jun 23 19:01:05 2018 New Revision: 335585 URL: https://svnweb.freebsd.org/changeset/base/335585 Log: Fix invalid OF_getencprop_alloc usage in fdt_pinctrl(9) r332341 introduced OF_getencprop_alloc_multi that should be used instead of OF_getencprop_alloc to get

svn commit: r333177 - head/sys/arm/broadcom/bcm2835

2018-05-02 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed May 2 20:04:25 2018 New Revision: 333177 URL: https://svnweb.freebsd.org/changeset/base/333177 Log: Unbreak RaspberryPi 2 boot after r332839 r332839 changed number of cells per interrupt for local_intc from 1 to 2 to pass type of IRQ. Driver expected only 1 cell

svn commit: r332442 - head/lib/libc/gen

2018-04-12 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Apr 12 17:47:36 2018 New Revision: 332442 URL: https://svnweb.freebsd.org/changeset/base/332442 Log: Bump .Dd value (forgot to do this in r332439) MFC after:3 days X-MFC-With: 332439 Modified: head/lib/libc/gen/syslog.3 Modified:

svn commit: r332439 - head/lib/libc/gen

2018-04-12 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Apr 12 17:05:27 2018 New Revision: 332439 URL: https://svnweb.freebsd.org/changeset/base/332439 Log: Fix quotes in the example code in syslog(3) BUGS section mdoc treats verbatim quotes in .Dl as a string delimiter and does not pass them to the rendered output.

svn commit: r332392 - head/sys/arm/broadcom/bcm2835

2018-04-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Apr 10 20:31:25 2018 New Revision: 332392 URL: https://svnweb.freebsd.org/changeset/base/332392 Log: [pi] Do not attach bcm2835_pwm if DTB node is not enabled Switch to standard FDT-base driver behavior and don't attach if node "status" property value nn DTS is

svn commit: r332342 - head/share/man/man9

2018-04-09 Thread Oleksandr Tymoshenko
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man9/OF_child.9 Mon Apr 9 22:23:45 2018 (r332342) @@ -0,0 +1,76 @@ +.\" +.\" Copyright (c) 2018 Oleksandr Tymo

svn commit: r332341 - in head/sys: arm/amlogic/aml8726 arm/annapurna/alpine arm/at91 arm/broadcom/bcm2835 arm/freescale/imx arm/nvidia/drm2 arm/ti dev/cpufreq dev/dpaa dev/extres/clk dev/extres/phy...

2018-04-09 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Apr 9 22:06:16 2018 New Revision: 332341 URL: https://svnweb.freebsd.org/changeset/base/332341 Log: Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc Change OF_getencprop_alloc semantics to be combination of malloc and OF_getencprop and return

svn commit: r332317 - head/share/man/man9

2018-04-08 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Apr 9 05:48:12 2018 New Revision: 332317 URL: https://svnweb.freebsd.org/changeset/base/332317 Log: [man] Fix return type of BUS_ADD_CHILD(9) Fix return type of BUS_ADD_CHILD(9) in SYNOPSYS section, it should be device_t, not int PR: 207389 MFC

svn commit: r332312 - head/sys/dev/ofw

2018-04-08 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Apr 9 00:38:24 2018 New Revision: 332312 URL: https://svnweb.freebsd.org/changeset/base/332312 Log: Make OF_searchencprop signature consistent with OF_getencprop Use pcell_t* as a destination buffer argument instead of void pointer to be consistent with

svn commit: r332311 - head/sys/arm64/coresight

2018-04-08 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Apr 8 23:17:51 2018 New Revision: 332311 URL: https://svnweb.freebsd.org/changeset/base/332311 Log: Fix one more OF_getprop_alloc instance missed in r332310 X-MFC-With: r332310 Modified: head/sys/arm64/coresight/coresight.c Modified:

svn commit: r332310 - in head/sys: arm/allwinner arm/amlogic/aml8726 arm/broadcom/bcm2835 arm/freescale/vybrid arm/mv arm/nvidia arm/nvidia/tegra124 arm/ti arm/ti/cpsw arm/ti/usb dev/altera/avgen d...

2018-04-08 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Apr 8 22:59:34 2018 New Revision: 332310 URL: https://svnweb.freebsd.org/changeset/base/332310 Log: Clean up OF_getprop_alloc API OF_getprop_alloc takes element size argument and returns number of elements in the property. There are valid use cases for such

svn commit: r332305 - head/share/man/man9

2018-04-08 Thread Oleksandr Tymoshenko
47 @@ +.\" -*- nroff -*- +.\" +.\" Copyright (c) 2018 Oleksandr Tymoshenko +.\" +.\" All rights reserved. +.\" +.\" This program is free software. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are

svn commit: r332262 - in head/sys: arm/broadcom/bcm2835 arm/conf dts/arm

2018-04-07 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Apr 8 00:56:19 2018 New Revision: 332262 URL: https://svnweb.freebsd.org/changeset/base/332262 Log: [rpi] Add fdt_pinctrl(4) support to Raspberry Pi GPIO driver On Raspberry Pi platform GPIO controller also responsible for pins multiplexing. Pi code predates

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

2018-04-03 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Apr 4 01:13:28 2018 New Revision: 331967 URL: https://svnweb.freebsd.org/changeset/base/331967 Log: Fix arm64 buildkernel target with "nooptions KDB" Make kdb_trap in breakpoint exception handler conditional. If "options KDB" is not present just panic with

svn commit: r331906 - head/sys/arm/xilinx

2018-04-02 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Apr 3 04:31:54 2018 New Revision: 331906 URL: https://svnweb.freebsd.org/changeset/base/331906 Log: Fix accidental USB port resets by GPIO on Zynq/Zedboard boards The Zynq/Zedboard GPIO driver attempts to tri-state all GPIO pins on boot up but the order in which

svn commit: r331229 - in head/sys: arm/amlogic/aml8726 arm/annapurna/alpine arm/broadcom/bcm2835 arm/freescale arm/freescale/vybrid arm/mv arm/samsung/exynos arm/ti/am335x dev/fdt dev/ofw dev/ow de...

2018-03-19 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Mar 20 00:03:49 2018 New Revision: 331229 URL: https://svnweb.freebsd.org/changeset/base/331229 Log: [ofw] fix errneous checks for OF_finddevice(9) return value OF_finddevices returns ((phandle_t)-1) in case of failure. Some code in existing drivers checked return

svn commit: r330727 - in head/sys: arm/broadcom/bcm2835 dts/arm

2018-03-09 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Mar 10 02:49:58 2018 New Revision: 330727 URL: https://svnweb.freebsd.org/changeset/base/330727 Log: [rpi] remove IRQ support for BCM233x RNG Upstream DTBs don't provide IRQ lines for the RNG. Moreover, harvesting bytes as often as the RNG interrupt is triggered

svn commit: r330558 - head/sys/dev/ichiic

2018-03-06 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Mar 6 23:39:43 2018 New Revision: 330558 URL: https://svnweb.freebsd.org/changeset/base/330558 Log: [ig4] Add support for i2c controllers on Skylake and Kaby Lake This was tested by Ben on HP Chromebook 13 G1 with a Skylake CPU and Sunrise Point-LP I2C

svn commit: r330309 - in head/share/man: man4 man9

2018-03-02 Thread Oleksandr Tymoshenko
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/fdt_pinctrl.4 Sat Mar 3 02:49:49 2018 (r330309) @@ -0,0 +1,127 @@ +.\" Copyright (c) 2018 Oleksandr Tymoshenko +.\" All rights reserved. +.\" +.\" Redistributi

Re: svn commit: r330072 - in head/sys: arm/broadcom/bcm2835 dts/arm

2018-02-27 Thread Oleksandr Tymoshenko
Michal Meloun (m...@freebsd.org) wrote: > Author: mmel > Date: Tue Feb 27 15:01:17 2018 > New Revision: 330072 > URL: https://svnweb.freebsd.org/changeset/base/330072 > > Log: > Switch to mainstream DTS for Raspberry Pi-B and Pi-2. > This is first step in attempt to make FreeBSD compatible

svn commit: r329926 - head/sys/dev/gpio

2018-02-24 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Feb 24 20:19:31 2018 New Revision: 329926 URL: https://svnweb.freebsd.org/changeset/base/329926 Log: Add SPDX tags for chvgpio driver sources Also move $FreeBSD$ keyword in header to BSD license MFC after:2 weeks Modified: head/sys/dev/gpio/chvgpio.c

svn commit: r329832 - in head: share/man/man4 sys/conf sys/dev/gpio sys/modules sys/modules/chvgpio

2018-02-22 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Feb 22 19:12:32 2018 New Revision: 329832 URL: https://svnweb.freebsd.org/changeset/base/329832 Log: [chvgpio] add GPIO driver for Intel Z8xxx SoC family Add chvgpio(4) driver for Intel Z8xxx SoC family. This product was formerly known as Cherry Trail but Linux

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-30 Thread Oleksandr Tymoshenko
Poul-Henning Kamp (p...@phk.freebsd.dk) wrote: > > In message <20180130025048.ga76...@bluezbox.com>, Oleksandr Tymoshenko writes: > > >> You seem to have skipped the bit about "without reboot" ? > > > >No I haven't. config.txt is pars

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-29 Thread Oleksandr Tymoshenko
Poul-Henning Kamp (p...@phk.freebsd.dk) wrote: > > In message <20180129132736.ga66...@bluezbox.com>, Oleksandr Tymoshenko writes: > > >> If I pick a RPI[23] out of the box, download a FreeBSD image, > >> put the card in and play around, I should be able

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-29 Thread Oleksandr Tymoshenko
Poul-Henning Kamp (p...@phk.freebsd.dk) wrote: > > In message <20180129063950.ga59...@bluezbox.com>, Oleksandr Tymoshenko writes: > > >PWM drivers: https://reviews.freebsd.org/D14104 > > I'll test this in my next timeslot. > > >We do not include the

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-28 Thread Oleksandr Tymoshenko
Poul-Henning Kamp (p...@phk.freebsd.dk) wrote: > > In message <8d8ae9d10058fd72ce3ec467181c9...@megadrive.org>, Emmanuel Vadot > writes: > > > Sometimes it makes sense to reboot. > > Yes, *sometimes* it does. > > But *always* demanding reboot makes no sense ever. > > > Reference

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Oleksandr Tymoshenko
Adrian Chadd (adrian.ch...@gmail.com) wrote: > Hi, > > Find the middle ground. Don't dissuade the developer too much. > > Here's an example: > > Make the driver follow DTS, allow a tunable/kenv check for it to > override whether it needs to be in the DTS or not (the "keep phk happy > for now"

svn commit: r327502 - head/sys/dev/nctgpio

2018-01-02 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Jan 2 20:58:05 2018 New Revision: 327502 URL: https://svnweb.freebsd.org/changeset/base/327502 Log: nctgpio: add new device id for the GPIO chip in PCEngines APU3 PR: 224512 Submitted by: m...@sentex.net MFC after:2 weeks Modified:

svn commit: r327454 - head/sys/dev/vt/colors

2017-12-31 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Dec 31 23:40:06 2017 New Revision: 327454 URL: https://svnweb.freebsd.org/changeset/base/327454 Log: Fix GCC build broken by r32744 Indicate in function declaration that vt_palette_init does not take any arguments Modified: head/sys/dev/vt/colors/vt_termcolors.c

svn commit: r327449 - head/sys/dev/vt/colors

2017-12-31 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Dec 31 21:29:20 2017 New Revision: 327449 URL: https://svnweb.freebsd.org/changeset/base/327449 Log: Unbreak build broken by r327444 During review iterations function signature has changed in definition but not in actual call. Fix call to match the definition.

svn commit: r327444 - in head: share/man/man4 sys/dev/vt/colors

2017-12-31 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Dec 31 20:21:05 2017 New Revision: 327444 URL: https://svnweb.freebsd.org/changeset/base/327444 Log: vt(4): add support for configurable console palette Introduce new set of loader tunables kern.vt.color.N.rgb, where N is a number from 0 to 15. The value is either

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

2017-11-04 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Nov 4 23:28:02 2017 New Revision: 325410 URL: https://svnweb.freebsd.org/changeset/base/325410 Log: Increase TX_MAX_SEGS from 10 to 20 for the if_awg.c driver Under certain traffic pattern awg driver does not recover from TX queue full condition. The actual

svn commit: r325048 - head/sys/dev/usb/net

2017-10-27 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Oct 27 21:22:38 2017 New Revision: 325048 URL: https://svnweb.freebsd.org/changeset/base/325048 Log: Fix MAC address detection regression introduced by r324184 To accomodate all variaties of Pi DTS files floating around we look for MAC address property either in

svn commit: r322827 - head/sys/boot/fdt/dts/arm

2017-08-23 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Aug 24 02:08:52 2017 New Revision: 322827 URL: https://svnweb.freebsd.org/changeset/base/322827 Log: Add "xlnx,zynq-7000" to zedboard and zybo compatible property This property is required to boot CURRENT on zedboard and zybo PR: 221208 Submitted

svn commit: r320387 - head/sys/arm/arm

2017-06-26 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Jun 26 21:45:33 2017 New Revision: 320387 URL: https://svnweb.freebsd.org/changeset/base/320387 Log: [arm] Use correct index value when checking range validity Reviewed by: andrew MFC after:3 weeks Differential Revision:

Re: svn commit: r316376 - head/sys/boot/fdt/dts/arm

2017-04-01 Thread Oleksandr Tymoshenko
Emmanuel Vadot (m...@freebsd.org) wrote: > Author: manu > Date: Sat Apr 1 21:55:09 2017 > New Revision: 316376 > URL: https://svnweb.freebsd.org/changeset/base/316376 > > Log: > Reduce the diff on beaglebone-black DTS. > > The HDMI TX (tda19988) is already enabled in upstream DTS so use

svn commit: r316371 - head/sys/arm/versatile

2017-04-01 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Apr 1 20:38:12 2017 New Revision: 316371 URL: https://svnweb.freebsd.org/changeset/base/316371 Log: [versatilepb] Fix keyboard driver after switching to upstream DTS FreeBSD's DTS contained only one PL050 node and driver considered it to be PS/2 keyboard. In

svn commit: r316370 - in head/sys/arm: arm conf versatile

2017-04-01 Thread Oleksandr Tymoshenko
rm/pl190.c == --- head/sys/arm/arm/pl190.cSat Apr 1 19:27:06 2017(r316369) +++ head/sys/arm/arm/pl190.cSat Apr 1 20:10:08 2017(r316370) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2012 Oleksandr Tymoshenko <go...@bluezbox.com>

svn commit: r316306 - head/sys/arm/ti/am335x

2017-03-30 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Mar 30 21:54:57 2017 New Revision: 316306 URL: https://svnweb.freebsd.org/changeset/base/316306 Log: [am335x] Fix HDMI suport for Beaglebone Black Fallback to Linux video interface bindings introduced in r313068 worked with then current DTS but that DTS turned out

svn commit: r315967 - head/sys/arm/broadcom/bcm2835

2017-03-25 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Mar 25 22:58:37 2017 New Revision: 315967 URL: https://svnweb.freebsd.org/changeset/base/315967 Log: [rpi] Use compatibility string from upstream DTB for I2C controller FreeBSD uses upstream DTB for RPi3 build and compatibility string for i2c device is different

svn commit: r315178 - head/sys/dev/evdev

2017-03-12 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Mar 12 19:28:44 2017 New Revision: 315178 URL: https://svnweb.freebsd.org/changeset/base/315178 Log: [evdev] Fix Right Alt and Keypad Enter event codes for atkbd(4) and kbdmux(4) drivers Submitted by: Vladimir Kondratiev MFC after:1 week

svn commit: r315177 - head/sys/dev/evdev

2017-03-12 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Mar 12 19:27:44 2017 New Revision: 315177 URL: https://svnweb.freebsd.org/changeset/base/315177 Log: [evdev] Fix race condition between client's event queue reading and dropping Submitted by: Vladimir Kondratiev MFC after:1 week

svn commit: r315176 - head/sys/dev/evdev

2017-03-12 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Mar 12 19:26:24 2017 New Revision: 315176 URL: https://svnweb.freebsd.org/changeset/base/315176 Log: [evdev] Do not ignore result evdev_register in UI_DEV_CREATE handler Make sure that uinput state field reflects actual state by checking evdev_register result for

svn commit: r315031 - head/sys/tools/fdt

2017-03-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Mar 10 22:45:07 2017 New Revision: 315031 URL: https://svnweb.freebsd.org/changeset/base/315031 Log: [fdt] Make DTBs generated by make_dtb.sh overlay-ready Generate symbols node when compiling dts files so they can be modified during boot-time by applying

svn commit: r315019 - head/sys/boot/fdt

2017-03-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Mar 10 19:15:57 2017 New Revision: 315019 URL: https://svnweb.freebsd.org/changeset/base/315019 Log: [loader][fdt] Fix applying overlays without __local_fixups__ node Do not return error if __local_fixups__ node is missing in DTB overlay because local fixup data

svn commit: r315010 - head/gnu/usr.bin/dtc

2017-03-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Mar 10 17:37:55 2017 New Revision: 315010 URL: https://svnweb.freebsd.org/changeset/base/315010 Log: [dtc] regenerate version file if upstream Makefile has been changed Keep version file in sync by adding dependency to upstream Makefile Modified:

svn commit: r315009 - in head/contrib/dtc: . Documentation libfdt scripts

2017-03-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Mar 10 17:36:05 2017 New Revision: 315009 URL: https://svnweb.freebsd.org/changeset/base/315009 Log: Merge from vendor branch importing dtc 1.4.3 Major new feature in this import is FDT overlay support Added: head/contrib/dtc/Documentation/dt-object-internal.txt

svn commit: r314934 - in head/sys/modules: . spigen

2017-03-08 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Mar 9 01:21:28 2017 New Revision: 314934 URL: https://svnweb.freebsd.org/changeset/base/314934 Log: [spigen] Add spigen module spigen provides userland API to SPI bus. Make it available as a loadable module so people using official ARM images can enabled it on

Re: svn commit: r314933 - head/sys/dev/spibus

2017-03-08 Thread Oleksandr Tymoshenko
Konstantin Belousov (kostik...@gmail.com) wrote: > On Thu, Mar 09, 2017 at 01:00:27AM +0000, Oleksandr Tymoshenko wrote: > > Author: gonzo > > Date: Thu Mar 9 01:00:27 2017 > > New Revision: 314933 > > URL: https://svnweb.freebsd.org/changeset/base/314933 > > &g

svn commit: r314933 - head/sys/dev/spibus

2017-03-08 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Mar 9 01:00:27 2017 New Revision: 314933 URL: https://svnweb.freebsd.org/changeset/base/314933 Log: [spigen] make spigen device ready to be compiled as a module - Add flag to indicate that device is opened by userland - Replace "always fail" detach method with

svn commit: r314672 - head/sys/arm/broadcom/bcm2835

2017-03-04 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Mar 4 17:34:36 2017 New Revision: 314672 URL: https://svnweb.freebsd.org/changeset/base/314672 Log: [rpi] rpi3 should use the same cpufreq logic as rpi2, not rpi-b RPi3 cpufreq is more like that on RPi2. Setting arm frequency above min (say, "sysctl

svn commit: r314535 - in head/sys/modules: bytgpio intelspi

2017-03-01 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Mar 2 03:19:39 2017 New Revision: 314535 URL: https://svnweb.freebsd.org/changeset/base/314535 Log: [intelspi][bytgio] Fix buildworld with MODULES_WITH_WORLD set Add opt_platform.h and opt_acpi.h to the dependencies so modules can be built as a part of buildworld

svn commit: r313757 - head/sys/dev/atkbdc

2017-02-14 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Feb 15 02:52:43 2017 New Revision: 313757 URL: https://svnweb.freebsd.org/changeset/base/313757 Log: [psm] Fix calculation for clickpad softbuttons at the top On laptops like the ThinkPad X240, ClickPad buttons are located at the top. The

svn commit: r313712 - head/sys/dev/sdhci

2017-02-13 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Feb 14 00:04:36 2017 New Revision: 313712 URL: https://svnweb.freebsd.org/changeset/base/313712 Log: [sdhci_acpi] Add support for Bay Trail SDHC SD card slot Add ACPI device 80860F14 with _UID 3 to the list of known devices. It make SD card available on NUCs and

svn commit: r313068 - head/sys/arm/ti/am335x

2017-02-01 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Feb 1 22:03:59 2017 New Revision: 313068 URL: https://svnweb.freebsd.org/changeset/base/313068 Log: [am335x] Fallback to standard video interface bindings when using Linux dts Historically AM335x LCDC driver used non-standard "hdmi" property to refer to HDMI

svn commit: r312670 - head/sys/boot/fdt/dts/arm

2017-01-23 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Jan 23 19:20:55 2017 New Revision: 312670 URL: https://svnweb.freebsd.org/changeset/base/312670 Log: [am335x] Use upstream tda19988 framer node from upstream DTS Remove custom DTS duplicate of tda19988 node and use upstream-provided one introduced by r295436. This

svn commit: r312316 - head/sys/arm/xilinx

2017-01-16 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Jan 17 00:39:09 2017 New Revision: 312316 URL: https://svnweb.freebsd.org/changeset/base/312316 Log: [zynq] Fix panic on USB PHY initialization failure The Zedboard has a hardware bug where initialization of the USB PHY occasionally fails on boot-up. Fix

Re: svn commit: r311911 - in head/sys: conf dev/sdhci modules modules/sdhci_acpi

2017-01-11 Thread Oleksandr Tymoshenko
Ngie Cooper (yaneurabeya) (yaneurab...@gmail.com) wrote: > > > On Jan 10, 2017, at 5:53 PM, Oleksandr Tymoshenko <go...@freebsd.org> wrote: > > > > Author: gonzo > > Date: Wed Jan 11 01:53:54 2017 > > New Revision: 311911 > > URL: https://svnweb.f

svn commit: r311911 - in head/sys: conf dev/sdhci modules modules/sdhci_acpi

2017-01-10 Thread Oleksandr Tymoshenko
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/sdhci/sdhci_acpi.c Wed Jan 11 01:53:54 2017 (r311911) @@ -0,0 +1,370 @@ +/*- + * Copyright (c) 2017 Oleksandr Tymoshenko <go...@freebsd.org> + * All rights reserved. + * + * Redistribution a

svn commit: r311891 - head/sys/boot/efi

2017-01-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Jan 10 20:15:24 2017 New Revision: 311891 URL: https://svnweb.freebsd.org/changeset/base/311891 Log: [efi] Build EFI bits with -fPIC on ARM clang 3.9.0 without -fPIC generates absolute jump table for switch/case statement which trips boot1.efi and loader.efi on

svn commit: r311890 - head/sys/boot/efi/loader/arch/arm

2017-01-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Jan 10 20:12:07 2017 New Revision: 311890 URL: https://svnweb.freebsd.org/changeset/base/311890 Log: [efi] Fix .rel.data.* being erroneously merged into .data on ARM Fix section pattern code to exclude .rel.data.* sections from being merged into .data. Otherwise

svn commit: r311888 - head/sys/boot/efi/loader/arch/arm

2017-01-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Jan 10 20:08:21 2017 New Revision: 311888 URL: https://svnweb.freebsd.org/changeset/base/311888 Log: [efi] Fix off-by-one error in ARM .bss zeroing code in loader's _start __bss_end should not be included in .bss zeroing code. Otherwise first 4 bytes of the

svn commit: r310791 - head/sys/arm/arm

2016-12-29 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Dec 29 21:55:23 2016 New Revision: 310791 URL: https://svnweb.freebsd.org/changeset/base/310791 Log: [qemu] Fix VERSATILEPB kernel boot in QEMU broken by r300968 QEMU does not implement hardware debug registers so when dbg_monitor_is_enabled is called kernel

svn commit: r310645 - in head/sys: conf dev/intel modules modules/intelspi

2016-12-27 Thread Oleksandr Tymoshenko
Tue Dec 27 22:37:24 2016(r310645) @@ -0,0 +1,533 @@ +/*- + * Copyright (c) 2016 Oleksandr Tymoshenko <go...@freebsd.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the foll

svn commit: r310636 - head/sys/arm/broadcom/bcm2835

2016-12-27 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Dec 27 19:08:08 2016 New Revision: 310636 URL: https://svnweb.freebsd.org/changeset/base/310636 Log: [rpi] Fix bcm2835_audio locking and samples starvation Rework general approach to locking and working with audio worker thread: - Use flags to signal requested

svn commit: r310621 - in head/sys: conf dev/ichiic modules/i2c/controllers/ichiic

2016-12-26 Thread Oleksandr Tymoshenko
file is newly added) +++ head/sys/dev/ichiic/ig4_acpi.c Mon Dec 26 22:13:43 2016 (r310621) @@ -0,0 +1,166 @@ +/*- + * Copyright (c) 2016 Oleksandr Tymoshenko <go...@freebsd.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or w

svn commit: r310612 - head/sys/dev/evdev

2016-12-26 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Dec 26 17:48:13 2016 New Revision: 310612 URL: https://svnweb.freebsd.org/changeset/base/310612 Log: [evdev] Fix build for older versions of clang There was report of stable/11 build failure on older versions of FreeBSD. The problem was a reference to static

svn commit: r310560 - head/sys/contrib/vchiq/interface/vchiq_arm

2016-12-25 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Dec 26 02:51:03 2016 New Revision: 310560 URL: https://svnweb.freebsd.org/changeset/base/310560 Log: [vchi] replace non-reproducible __DATE__/__TIME__ with hardcoded string Although vchiq_build_date and vchiq_build_time are not used in current vchi driver at the

svn commit: r310492 - head/sys/dev/spibus

2016-12-23 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Dec 24 00:30:29 2016 New Revision: 310492 URL: https://svnweb.freebsd.org/changeset/base/310492 Log: [spigen] Fix spigen attaching as a driver for SPI devices nodes in FDT Return BUS_PROBE_NOWILDCARD in probe method to make sure that spigen attaches only to the

svn commit: r310375 - head/sys/dev/iwn

2016-12-21 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Dec 21 22:35:26 2016 New Revision: 310375 URL: https://svnweb.freebsd.org/changeset/base/310375 Log: [iwn] Several fixes for DMA part of iwn(4) - Perform DMS sync when accessing/initializing ICT table - Fix some DMA sync operations to use matching tags

svn commit: r310344 - head/sys/arm/freescale/imx

2016-12-20 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Dec 21 01:38:44 2016 New Revision: 310344 URL: https://svnweb.freebsd.org/changeset/base/310344 Log: [iMX6] Fix SDMA driver build - Place const modifiers where required - Make sure sdma device is attahched before consumers like SSI Reviewed by: br MFC

svn commit: r310343 - head/sys/arm/freescale/imx

2016-12-20 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Dec 21 01:32:19 2016 New Revision: 310343 URL: https://svnweb.freebsd.org/changeset/base/310343 Log: [iMX6] Fix build for SSI driver and add dependency for SDMA driver - Pass correct pointer to OF_getencprop - Check the size of "dmas" property - Add dependency

svn commit: r310170 - head/sys/dev/spibus

2016-12-16 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Dec 16 19:09:57 2016 New Revision: 310170 URL: https://svnweb.freebsd.org/changeset/base/310170 Log: [spigen] Make "data" part of spigen_transfer optional Make st_data part of spigen_transfer optional by letting pass zero length and NULL pointer. SPI controller

svn commit: r310012 - head/sys/arm/freescale/imx

2016-12-12 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Dec 13 05:09:49 2016 New Revision: 310012 URL: https://svnweb.freebsd.org/changeset/base/310012 Log: [iMX6] Add compatibility string for GPT timer on i.MX6 Dual Up until r295436 GPT timer in i.MX6 Dual dts used the same compatiblity string as i.MX6 Quad. After the

svn commit: r309999 - head/sys/arm/freescale/imx

2016-12-12 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Dec 13 03:26:12 2016 New Revision: 30 URL: https://svnweb.freebsd.org/changeset/base/30 Log: [iMX6] Fix platform compatibility string for i.MX6 Dual i.MX6 Dual boot was broken since r308533 because ofw_bus_node_is_compatible is more strict than

svn commit: r309823 - in head/sys/dev: evdev syscons vt

2016-12-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Dec 10 18:07:16 2016 New Revision: 309823 URL: https://svnweb.freebsd.org/changeset/base/309823 Log: [evdev] Adds evdev support to sysmouse(4) driver For horizontal (T-axis) wheel reporting which is not supported by sysmouse protocol kern.evdev.sysmouse_t_axis

svn commit: r309822 - head/sys/dev/iwn

2016-12-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Dec 10 17:59:34 2016 New Revision: 309822 URL: https://svnweb.freebsd.org/changeset/base/309822 Log: [iwn] Perform BUS_DMASYNC_PREREAD when initializing RX buffer BUS_DMASYNC_PREREAD is required when setting up RX buffer, otherwise data provided by card can be

Re: svn commit: r308942 - in head/sys/modules: . bytgpio

2016-11-24 Thread Oleksandr Tymoshenko
> On Nov 24, 2016, at 11:46 AM, Ed Maste <ema...@freebsd.org> wrote: > > On 21 November 2016 at 14:47, Oleksandr Tymoshenko <go...@freebsd.org> wrote: >> Author: gonzo >> Date: Mon Nov 21 19:47:37 2016 >> New Revision: 308942 >> URL: https://svnweb

svn commit: r309112 - head/sys/modules

2016-11-24 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Nov 24 20:08:17 2016 New Revision: 309112 URL: https://svnweb.freebsd.org/changeset/base/309112 Log: [bytgpio] Fix pc98 build by disabling bytgpio module for this platform Reported by: dim Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile

svn commit: r309076 - head/sys/arm64/conf

2016-11-23 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Nov 24 00:45:52 2016 New Revision: 309076 URL: https://svnweb.freebsd.org/changeset/base/309076 Log: [rpi3] Move SOC_BRCM_BCM2837 from UP config to SMP one Now that BCM283x source are buildable with SMP option it cam be moved to GENERIC SMP config. SMP itself does

svn commit: r309074 - head/sys/arm/broadcom/bcm2835

2016-11-23 Thread Oleksandr Tymoshenko
Author: gonzo Date: Thu Nov 24 00:39:17 2016 New Revision: 309074 URL: https://svnweb.freebsd.org/changeset/base/309074 Log: [rpi3] Fix SMP build for FreeBSD/arm64 Modified: head/sys/arm/broadcom/bcm2835/bcm2836.c Modified: head/sys/arm/broadcom/bcm2835/bcm2836.c

Re: svn commit: r308944 - head/sys/modules/bytgpio

2016-11-21 Thread Oleksandr Tymoshenko
> On Nov 21, 2016, at 1:07 PM, Hiren Panchasara wrote: > > Author: hiren > Date: Mon Nov 21 21:07:43 2016 > New Revision: 308944 > URL: https://svnweb.freebsd.org/changeset/base/308944 > > Log: > r308942 broke kernel build. > Add acpi_if.h to module makefile to fix it. >

svn commit: r308941 - head/share/man/man4

2016-11-21 Thread Oleksandr Tymoshenko
/share/man/man4/bytgpio.4 Mon Nov 21 19:46:10 2016 (r308941) @@ -0,0 +1,55 @@ +.\" Copyright (c) 2016 +.\" Oleksandr Tymoshenko <go...@freebsd.org>. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\&qu

svn commit: r308942 - in head/sys/modules: . bytgpio

2016-11-21 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Nov 21 19:47:37 2016 New Revision: 308942 URL: https://svnweb.freebsd.org/changeset/base/308942 Log: [bytgpio] Add module for bytgpio(4) MFC after:3 days Added: head/sys/modules/bytgpio/ head/sys/modules/bytgpio/Makefile (contents, props changed)

svn commit: r308940 - head/sys/dev/gpio

2016-11-21 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Nov 21 19:43:01 2016 New Revision: 308940 URL: https://svnweb.freebsd.org/changeset/base/308940 Log: [bytgpio] prepare bytgpio(4) for modularization - Add detach method - module should depend on gpiobus, not gpio Modified: head/sys/dev/gpio/bytgpio.c Modified:

svn commit: r308899 - head/sys/boot/fdt/dts/arm

2016-11-20 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Nov 20 18:56:04 2016 New Revision: 308899 URL: https://svnweb.freebsd.org/changeset/base/308899 Log: [FDT] Remove empty wrapper for upstream am335x-evm.dts Remove empty wrapper for sys/gnu version of am335x-evm.dts located in sys/boot/fdt, with current include

svn commit: r308898 - head/sys/dev/gpio

2016-11-20 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Nov 20 18:38:32 2016 New Revision: 308898 URL: https://svnweb.freebsd.org/changeset/base/308898 Log: [bytgpio] Fix USB disconnect event after listsing pins on gpioc2 - Do not set input flag when reading value from GPIO pin, it is not required and for gpioc2(S5

svn commit: r308668 - in head/sys: dev/kbdmux modules/kbdmux

2016-11-14 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Nov 15 04:12:19 2016 New Revision: 308668 URL: https://svnweb.freebsd.org/changeset/base/308668 Log: [evdev] Add evdev support to kbdmux(4) driver To enable event sourcing from kbdmux(4) kern.evdev.rcpt_mask value should have bit 1 set (this is default)

svn commit: r308581 - head/sys/modules/rpi_ft5406

2016-11-12 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Nov 12 19:05:41 2016 New Revision: 308581 URL: https://svnweb.freebsd.org/changeset/base/308581 Log: [rpi_ft5406] Add missing dependency on mbox_if.h Submitted by: hselasky MFC after:ASAP Modified: head/sys/modules/rpi_ft5406/Makefile Modified:

svn commit: r308428 - in head/sys: conf dev/gpio modules/gpio/gpioled

2016-11-07 Thread Oleksandr Tymoshenko
=== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/gpio/gpioled_fdt.c Mon Nov 7 21:15:39 2016 (r308428) @@ -0,0 +1,230 @@ +/*- + * Copyright (c) 2009 Oleksandr Tymoshenko <go...@freebsd

Re: svn commit: r308424 - head/sys/arm/broadcom/bcm2835

2016-11-07 Thread Oleksandr Tymoshenko
> On Nov 7, 2016, at 11:51 AM, Hans Petter Selasky <h...@selasky.org> wrote: > > On 11/07/16 20:32, Hans Petter Selasky wrote: >> On 11/07/16 20:23, Oleksandr Tymoshenko wrote: >>> >>>> On Nov 7, 2016, at 10:27 AM, Hans Petter Selasky <h...@selasky.

svn commit: r308427 - head/sys/cddl/dev/dtrace/arm

2016-11-07 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Nov 7 20:02:18 2016 New Revision: 308427 URL: https://svnweb.freebsd.org/changeset/base/308427 Log: Fix include order as required post r308415 Modified: head/sys/cddl/dev/dtrace/arm/dtrace_asm.S Modified: head/sys/cddl/dev/dtrace/arm/dtrace_asm.S

Re: svn commit: r308424 - head/sys/arm/broadcom/bcm2835

2016-11-07 Thread Oleksandr Tymoshenko
> On Nov 7, 2016, at 10:27 AM, Hans Petter Selasky <h...@selasky.org> wrote: > > On 11/07/16 18:38, Oleksandr Tymoshenko wrote: >> +bcm2835_audio_unlock(sc); >> +cv_signal(>worker_cv); > > > Shouldn't cv_signal() be d

svn commit: r308424 - head/sys/arm/broadcom/bcm2835

2016-11-07 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Nov 7 17:38:39 2016 New Revision: 308424 URL: https://svnweb.freebsd.org/changeset/base/308424 Log: Fix locking in bcm2835_audio driver - Move all VCHI activity to worker thread: channel methods are called with non-sleepable lock held and VCHI uses sleepable

Re: svn commit: r308295 - in head/sys: conf dev/gpio

2016-11-04 Thread Oleksandr Tymoshenko
> On Nov 4, 2016, at 9:24 AM, Oleksandr Tymoshenko <go...@freebsd.org> wrote: > > Author: gonzo > Date: Fri Nov 4 16:24:38 2016 > New Revision: 308295 > URL: https://svnweb.freebsd.org/changeset/base/308295 > > Log: > [gpio] Add GPIO driver for Intel Bay Tr

<    1   2   3   4   5   6   7   >