svn commit: r273799 - in head/sys: arm/allwinner arm/broadcom/bcm2835 arm/freescale/imx arm/freescale/vybrid arm/lpc arm/rockchip arm/samsung/exynos arm/ti arm/xilinx arm/xscale/ixp425 mips/atheros...

2014-10-28 Thread Luiz Otavio O Souza
Author: loos Date: Tue Oct 28 18:33:59 2014 New Revision: 273799 URL: https://svnweb.freebsd.org/changeset/base/273799 Log: Make the GPIO children attach to the first unit available and not only to unit 0. It seems that this 'simplification' was copied to all GPIO drivers in tree. Th

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

2014-10-31 Thread Luiz Otavio O Souza
Author: loos Date: Fri Oct 31 19:15:14 2014 New Revision: 273917 URL: https://svnweb.freebsd.org/changeset/base/273917 Log: Fix the gpiobus locking by using a more sane model where it isn't necessary hold the gpiobus lock between the gpio calls. gpiobus_acquire_lock() now accepts a third

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

2014-11-01 Thread Luiz Otavio O Souza
Author: loos Date: Sat Nov 1 10:40:29 2014 New Revision: 273926 URL: https://svnweb.freebsd.org/changeset/base/273926 Log: Fix the build of non-FDT systems by moving the gpiobusvar.h header outside the FDT #ifdef. While here remove a few unused headers. Modified: head/sys/dev/gpio/gpi

Re: svn commit: r273917 - head/sys/dev/gpio

2014-11-01 Thread Luiz Otavio O Souza
On Sat, Nov 1, 2014 at 7:56 AM, Bjoern A. Zeeb wrote: > > On 31 Oct 2014, at 19:15 , Luiz Otavio O Souza wrote: > >> Author: loos >> Date: Fri Oct 31 19:15:14 2014 >> New Revision: 273917 >> URL: https://svnweb.freebsd.org/changeset/base/273917 >> >>

svn commit: r265767 - head/sys/dev/etherswitch/ip17x

2014-05-09 Thread Luiz Otavio O Souza
Author: loos Date: Fri May 9 13:07:39 2014 New Revision: 265767 URL: http://svnweb.freebsd.org/changeset/base/265767 Log: Fix a bug on ip17x switch initialization which will fail as soon as you disable the debug and diagnosis options from current. We must wait 2ms after the switch reset an

svn commit: r265770 - head/sys/dev/etherswitch/ip17x

2014-05-09 Thread Luiz Otavio O Souza
Author: loos Date: Fri May 9 13:21:34 2014 New Revision: 265770 URL: http://svnweb.freebsd.org/changeset/base/265770 Log: Fix the build with debug enabled and remove a variable used only at switch initialization, it is nonsense keep it around without futher use. Modified: head/sys/dev/ethe

svn commit: r265774 - head/sys/mips/atheros

2014-05-09 Thread Luiz Otavio O Souza
Author: loos Date: Fri May 9 13:44:42 2014 New Revision: 265774 URL: http://svnweb.freebsd.org/changeset/base/265774 Log: When a GPIO pin is set to be turned on by kernel hints (hint.gpio.X.pinon) make sure the GPIO pin is configured as an output as this is not always the case. Modified:

svn commit: r265775 - in head/sys: conf mips/atheros

2014-05-09 Thread Luiz Otavio O Souza
Author: loos Date: Fri May 9 14:02:18 2014 New Revision: 265775 URL: http://svnweb.freebsd.org/changeset/base/265775 Log: Add support for reading RouterBoard's memory which is passed by the loader (RouterBOOT). Tested on RouterBoards, various and on RSPRO, TP-Link MR3x20 (for regressio

svn commit: r265813 - in head: share/man/man4 sys/conf sys/dev/iicbus

2014-05-10 Thread Luiz Otavio O Souza
) +++ head/share/man/man4/lm75.4 Sat May 10 12:19:02 2014(r265813) @@ -0,0 +1,191 @@ +.\" +.\" Copyright (c) 2014 Luiz Otavio O Souza +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitt

svn commit: r265814 - head/sys/mips/atheros

2014-05-10 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 10 12:58:18 2014 New Revision: 265814 URL: http://svnweb.freebsd.org/changeset/base/265814 Log: Remove an old mistake of mine. This has sneak in the code i sent to gonzo at that time, but AFAIK it is only used on routerboards. Enabling GPIO_FUNC_SPI_CS[1|2]_EN

svn commit: r265816 - head/sys/mips/atheros

2014-05-10 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 10 13:16:04 2014 New Revision: 265816 URL: http://svnweb.freebsd.org/changeset/base/265816 Log: Do not configure all pins as outputs as this can lead to short circuits when the GPIO pin is connected to a push button (or other devices). Instead keep the boot load

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

2014-05-14 Thread Luiz Otavio O Souza
Author: loos Date: Wed May 14 21:54:14 2014 New Revision: 266092 URL: http://svnweb.freebsd.org/changeset/base/266092 Log: gpioiic.4 and gpioled.4 will first appear in 10.1-RELEASE. Modified: head/share/man/man4/gpioiic.4 head/share/man/man4/gpioled.4 Modified: head/share/man/man4/gpioiic.

svn commit: r266096 - in stable/10: share/man/man4 usr.sbin/gpioctl

2014-05-14 Thread Luiz Otavio O Souza
gpioiic.4 Wed May 14 23:33:38 2014 (r266096, copy of r258044, head/share/man/man4/gpioiic.4) @@ -0,0 +1,96 @@ +.\" Copyright (c) 2013, Luiz Otavio O Souza +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modifi

svn commit: r266105 - in stable/10: share/man/man4 sys/arm/broadcom/bcm2835 sys/arm/conf sys/arm/ti sys/boot/fdt/dts sys/conf sys/dev/gpio sys/dev/iicbus sys/dev/ofw sys/modules/gpio/gpiobus sys/mo...

2014-05-14 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 15 01:27:53 2014 New Revision: 266105 URL: http://svnweb.freebsd.org/changeset/base/266105 Log: MFC r258046, r258047, r258050, r259035, r259036, r259037, r261842, r261843, r261844, r261845, r261846, r262194, r262522, r262559 r258046: Fix a typo on a commen

svn commit: r266106 - stable/10/share/man/man4

2014-05-14 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 15 01:37:17 2014 New Revision: 266106 URL: http://svnweb.freebsd.org/changeset/base/266106 Log: MFC r266092 gpioiic.4 and gpioled.4 will first appear in 10.1-RELEASE. Modified: stable/10/share/man/man4/gpioiic.4 stable/10/share/man/man4/gpioled.4 Directory Pr

svn commit: r266135 - in stable/10/sys/dev: gpio ofw

2014-05-15 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 15 15:15:23 2014 New Revision: 266135 URL: http://svnweb.freebsd.org/changeset/base/266135 Log: MFC r265012, r265191, r265289, r265310 r265012: Fix the gpio-specifier decoding by respecting the GPIO controller's #gpio-cells property. Add a new ofw_bus met

svn commit: r266148 - in stable/10/sys/arm/ti: . am335x

2014-05-15 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 15 15:47:52 2014 New Revision: 266148 URL: http://svnweb.freebsd.org/changeset/base/266148 Log: MFC r259125, r264019, r264083, r264153, r264197 r259125: Fix a few typos on the scm (control module) pin mux definitions. r264019: Fix some of the style(9) pro

svn commit: r266164 - stable/10/sys/arm/broadcom/bcm2835

2014-05-15 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 15 18:05:51 2014 New Revision: 266164 URL: http://svnweb.freebsd.org/changeset/base/266164 Log: MFC r256871, r259034, r266010 r256871: Implement watchdog function and register it with watchdog list. r259034: Make the sysctl node read-only. r266010:

svn commit: r266168 - in stable/10/sys/arm: freescale/imx ti

2014-05-15 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 15 18:18:53 2014 New Revision: 266168 URL: http://svnweb.freebsd.org/changeset/base/266168 Log: MFC r259270 After r266105 ofw_iicbuc.c will be built by default for any kernel which includes options 'iicbus' and 'fdt'. Remove the (now) unnecessary entries. Modi

svn commit: r266220 - in stable/10: share/man/man4 sys/geom/uncompress sys/geom/uzip sys/modules/geom sys/modules/geom/geom_uncompress

2014-05-16 Thread Luiz Otavio O Souza
ncompress.4 (from r260522, head/share/man/man4/geom_uncompress.4) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/10/share/man/man4/geom_uncompress.4 Fri May 16 14:28:55 2014 (r266220, copy of r260522, head/share/man/man4/geom_uncompress.

svn commit: r266338 - in stable/10: share/man/man4/man4.arm sys/arm/conf sys/arm/ti sys/arm/ti/am335x sys/boot/fdt/dts/arm

2014-05-17 Thread Luiz Otavio O Souza
19:06:46 2014 (r266338, copy of r263693, head/share/man/man4/man4.arm/ti_adc.4) @@ -0,0 +1,119 @@ +.\" +.\" Copyright (c) 2014 Luiz Otavio O Souza +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modifi

svn commit: r266340 - stable/10/sys/boot/fdt/dts/arm

2014-05-17 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 17 19:16:45 2014 New Revision: 266340 URL: http://svnweb.freebsd.org/changeset/base/266340 Log: MFC r265013 Revert r258678. Make the led gpio-specifier match again the #gpio-cells settings from the GPIO controller, which i had broken in r258678. Restore the

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

2014-05-31 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 31 14:27:50 2014 New Revision: 266922 URL: http://svnweb.freebsd.org/changeset/base/266922 Log: Add a bounds verification to the SCL and SDA pin values. At attach, print the SCL and SDA pin numbers. Remove a stray blank line. Remove the GPIOBUS locking f

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

2014-05-31 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 31 14:38:05 2014 New Revision: 266923 URL: http://svnweb.freebsd.org/changeset/base/266923 Log: Ignore IIC_ENOADDR from iicbus_reset() as it only means we have a master-only controller. This fixes the iic bus scan with i2c(8) (on supported controllers). Tes

svn commit: r266936 - in head: etc usr.sbin/bsnmpd/modules usr.sbin/bsnmpd/modules/snmp_lm75

2014-05-31 Thread Luiz Otavio O Souza
dded: head/usr.sbin/bsnmpd/modules/snmp_lm75/BEGEMOT-LM75-MIB.txt == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.sbin/bsnmpd/modules/snmp_lm75/BEGEMOT-LM75-MIB.txt Sun Jun 1 03:14:03 2014 (r266936) @@ -0,0 +1,160 @@ +-- +-- Copyright (c) 2014 Lui

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

2014-05-31 Thread Luiz Otavio O Souza
Author: loos Date: Sun Jun 1 03:57:57 2014 New Revision: 266937 URL: http://svnweb.freebsd.org/changeset/base/266937 Log: Export two new settings for the AM335x PWM, the clock prescaler (clkdiv) and the actual PWM frequency. Enforce the maximum value for the period sysctl. The frequ

svn commit: r266960 - in head: share/man/man4/man4.arm sys/arm/ti

2014-06-01 Thread Luiz Otavio O Souza
UTHORS .An -nosplit The driver and this manual page was written by -.An Luiz Otavio O Souza Aq l...@freebsd.org +.An Luiz Otavio O Souza Aq l...@freebsd.org . Modified: head/sys/arm/ti/ti_adc.c == --- head/sys/arm/ti/ti_

svn commit: r266961 - head/usr.sbin/bsnmpd/modules/snmp_lm75

2014-06-01 Thread Luiz Otavio O Souza
Author: loos Date: Mon Jun 2 02:20:28 2014 New Revision: 266961 URL: http://svnweb.freebsd.org/changeset/base/266961 Log: Never, ever, abbreviate the month names on manual pages. Pointed out by: brueffer Pointy hat to:loos Modified: head/usr.sbin/bsnmpd/modules/snmp_lm75

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

2014-06-03 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jun 3 14:46:50 2014 New Revision: 267009 URL: http://svnweb.freebsd.org/changeset/base/267009 Log: Remove the unnecessary i2c slave address assignment. The ti_i2c controller only works in the master mode and the i2c address passed on iicbus_reset() is used to set t

svn commit: r267021 - in head/sys: arm/broadcom/bcm2835 arm/ti boot/fdt/dts/arm

2014-06-03 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jun 3 19:24:53 2014 New Revision: 267021 URL: http://svnweb.freebsd.org/changeset/base/267021 Log: FreeBSD, historically, has always used 8-bit addresses for i2c devices (7-bit device address << 1), always leaving the room for the read/write bit. This commit conver

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

2014-08-20 Thread Luiz Otavio O Souza
270230) @@ -1,6 +1,6 @@ /*- - * Copyright (c) 2011 - * Ben Gray . + * Copyright (c) 2011 Ben Gray . + * Copyright (c) 2014 Luiz Otavio O Souza . * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -58,9 +58,9 @@ __FBSDID("$FreeBSD$");

svn commit: r270236 - stable/10/sys/dev/gpio

2014-08-20 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 20 17:39:53 2014 New Revision: 270236 URL: http://svnweb.freebsd.org/changeset/base/270236 Log: MFC r266922: Add a bounds verification to the SCL and SDA pin values. At attach, print the SCL and SDA pin numbers. Remove a stray blank line. Re

svn commit: r270237 - stable/10/sys/arm/ti/am335x

2014-08-20 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 20 17:57:23 2014 New Revision: 270237 URL: http://svnweb.freebsd.org/changeset/base/270237 Log: MFC r266937: Export two new settings for the AM335x PWM, the clock prescaler (clkdiv) and the actual PWM frequency. Enforce the maximum value for the perio

svn commit: r270238 - in stable/10: share/man/man4/man4.arm sys/arm/ti

2014-08-20 Thread Luiz Otavio O Souza
it value (0 ~ 4095). The .Nm driver first appeared in -.Fx 11.0 . +.Fx 10.1 . .Sh AUTHORS .An -nosplit The driver and this manual page was written by -.An Luiz Otavio O Souza Aq l...@freebsd.org +.An Luiz Otavio O Souza Aq l...@freebsd.org . Modified: stab

svn commit: r270241 - in stable/10/sys: arm/ti dev/iicbus

2014-08-20 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 20 19:12:19 2014 New Revision: 270241 URL: http://svnweb.freebsd.org/changeset/base/270241 Log: MFC r266923: Ignore IIC_ENOADDR from iicbus_reset() as it only means we have a master-only controller. This fixes the iic bus scan with i2c(8) (on supporte

svn commit: r270243 - in stable/10: share/man/man4 sys/arm/broadcom/bcm2835 sys/arm/ti sys/boot/fdt/dts/arm

2014-08-20 Thread Luiz Otavio O Souza
Author: loos Date: Wed Aug 20 19:37:05 2014 New Revision: 270243 URL: http://svnweb.freebsd.org/changeset/base/270243 Log: MFC r267021: FreeBSD, historically, has always used 8-bit addresses for i2c devices (7-bit device address << 1), always leaving the room for the read/write bi

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

2014-11-11 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 11 23:55:37 2014 New Revision: 274409 URL: https://svnweb.freebsd.org/changeset/base/274409 Log: Since r273264 the SD card detection on Raspberry Pi is reliably working and that expose new bugs with HS mode. When the old code could not do the proper card detecti

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

2014-11-11 Thread Luiz Otavio O Souza
Author: loos Date: Wed Nov 12 03:07:46 2014 New Revision: 274415 URL: https://svnweb.freebsd.org/changeset/base/274415 Log: Fix the error checking, broken on r273337, to _not_ ignore controller errors. Without this fix you can't even scan the bus (all operations will always succeed).

svn commit: r274416 - head/usr.sbin/i2c

2014-11-11 Thread Luiz Otavio O Souza
Author: loos Date: Wed Nov 12 03:59:26 2014 New Revision: 274416 URL: https://svnweb.freebsd.org/changeset/base/274416 Log: Fix a few cases of use of uninitialized variables. Found with -Wall. MFC after:1 week Modified: head/usr.sbin/i2c/i2c.c Modified: head/usr.sbin/i2c/i2c.c

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

2014-11-17 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 18 01:38:39 2014 New Revision: 274638 URL: https://svnweb.freebsd.org/changeset/base/274638 Log: Add basic interrupt management code to gpiobus and ofw_gpiobus. This is the general support to allow the use of GPIO pins as interrupt sources for direct gpiobus chi

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

2014-11-17 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 18 02:11:07 2014 New Revision: 274642 URL: https://svnweb.freebsd.org/changeset/base/274642 Log: Remove unnecessary code. After r273566, the gpiobus version of bus_print_child() also works on FDT systems. Modified: head/sys/dev/gpio/ofw_gpiobus.c Modified: h

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

2014-11-17 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 18 02:41:35 2014 New Revision: 274643 URL: https://svnweb.freebsd.org/changeset/base/274643 Log: Fix gpiobus_child_location_str() to return a real string with the mapped pins. Make gpiobus_print_pins() static again. Modified: head/sys/dev/gpio/gpiobus.c hea

svn commit: r274670 - in head/sys: arm/allwinner arm/broadcom/bcm2835 arm/freescale/imx arm/freescale/vybrid arm/rockchip arm/samsung/exynos arm/ti arm/xscale/ixp425 dev/gpio mips/atheros mips/cavi...

2014-11-18 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 18 17:22:08 2014 New Revision: 274670 URL: https://svnweb.freebsd.org/changeset/base/274670 Log: Moves all the duplicate code to a single function. Verify for invalid modes and unwanted flags before pass the new flags to driver. Modified: head/sys/arm/allwinn

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

2014-11-18 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 18 17:37:33 2014 New Revision: 274671 URL: https://svnweb.freebsd.org/changeset/base/274671 Log: Make gpio_default_map_gpios() static. No functional changes. Modified: head/sys/dev/gpio/gpio_if.m Modified: head/sys/dev/gpio/gpio_if.m ==

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

2014-12-22 Thread Luiz Otavio O Souza
Author: loos Date: Mon Dec 22 16:12:55 2014 New Revision: 276059 URL: https://svnweb.freebsd.org/changeset/base/276059 Log: Simplify the use of locks where possible, remove the locking when it is not required. Simplify the code a little bit. Reviewed by: andrew (previous version) M

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

2014-12-22 Thread Luiz Otavio O Souza
Author: loos Date: Mon Dec 22 16:29:15 2014 New Revision: 276060 URL: https://svnweb.freebsd.org/changeset/base/276060 Log: Remove some leftovers from OMAP3 support. Modified: head/sys/arm/ti/ti_gpio.c Modified: head/sys/arm/ti/ti_gpio.c ==

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

2014-12-23 Thread Luiz Otavio O Souza
Author: loos Date: Tue Dec 23 19:31:56 2014 New Revision: 276151 URL: https://svnweb.freebsd.org/changeset/base/276151 Log: Do not return the total number of available pins but the maximum pin number we can cope. Previously the returned value could prevent access to some of the pins. Mod

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

2014-12-23 Thread Luiz Otavio O Souza
Author: loos Date: Wed Dec 24 03:24:50 2014 New Revision: 276168 URL: https://svnweb.freebsd.org/changeset/base/276168 Log: Improves the GPIO API description a little bit. gpio_pin_max must return the maximum supported pin number and not the total number of pins on the system. PR:

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

2014-12-23 Thread Luiz Otavio O Souza
Author: loos Date: Wed Dec 24 04:24:08 2014 New Revision: 276173 URL: https://svnweb.freebsd.org/changeset/base/276173 Log: Bring in the last round of updates before adding the interrupt support. Fix the following issues: - Removed revision from device softc, it isn't used anywhere els

svn commit: r276207 - in head/sys: arm/ti boot/fdt/dts/arm

2014-12-25 Thread Luiz Otavio O Souza
/sys/arm/ti/ti_gpio.c Thu Dec 25 17:28:26 2014(r276207) @@ -1,6 +1,6 @@ /*- - * Copyright (c) 2011 - * Ben Gray . + * Copyright (c) 2011 Ben Gray . + * Copyright (c) 2014 Luiz Otavio O Souza . * All rights reserved. * * Redistribution and use in source and binary forms, with or

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

2014-12-26 Thread Luiz Otavio O Souza
Author: loos Date: Fri Dec 26 17:45:49 2014 New Revision: 276249 URL: https://svnweb.freebsd.org/changeset/base/276249 Log: Fix the musb initialization sequence on AM335x. According to http://e2e.ti.com/support/arm/sitara_arm/f/791/t/210729 the USB reset pulse has an undocumented duration

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

2014-12-27 Thread Luiz Otavio O Souza
Author: loos Date: Sat Dec 27 13:17:27 2014 New Revision: 276296 URL: https://svnweb.freebsd.org/changeset/base/276296 Log: Make consistent use of the correct debug macros across the file. Modified: head/sys/arm/broadcom/bcm2835/bcm2835_cpufreq.c Modified: head/sys/arm/broadcom/bcm2835/bcm28

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

2014-12-27 Thread Luiz Otavio O Souza
Author: loos Date: Sat Dec 27 13:52:33 2014 New Revision: 276297 URL: https://svnweb.freebsd.org/changeset/base/276297 Log: On interrupt handler, save the actual data read from mbox. The previous macro wasn't needed and was being used with swapped arguments which always give the same result

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

2014-12-27 Thread Luiz Otavio O Souza
Author: loos Date: Sat Dec 27 14:06:05 2014 New Revision: 276298 URL: https://svnweb.freebsd.org/changeset/base/276298 Log: Remove the '#undef DEBUG' that should not be committed. Modified: head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c Modified: head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c ==

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

2014-12-27 Thread Luiz Otavio O Souza
Author: loos Date: Sat Dec 27 15:13:25 2014 New Revision: 276303 URL: https://svnweb.freebsd.org/changeset/base/276303 Log: Removes unused and duplicate headers. Bring the wait limit on mailbox write to a more sane value. Fix a off-by-one bug on wait time limit. Remove extra blank

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

2014-12-27 Thread Luiz Otavio O Souza
Author: loos Date: Sat Dec 27 18:54:39 2014 New Revision: 276314 URL: https://svnweb.freebsd.org/changeset/base/276314 Log: Convert the BSC (i2c) driver to use the new iicbus_get_frequency(). Tested on:Raspberry pi Modified: head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c head/sys/arm/

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

2014-12-27 Thread Luiz Otavio O Souza
Author: loos Date: Sat Dec 27 19:56:04 2014 New Revision: 276315 URL: https://svnweb.freebsd.org/changeset/base/276315 Log: Fix a off-by-one bug. Pointy hat to:loos Modified: head/sys/arm/ti/ti_gpio.c Modified: head/sys/arm/ti/ti_gpio.c ==

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

2014-12-27 Thread Luiz Otavio O Souza
Author: loos Date: Sat Dec 27 20:06:16 2014 New Revision: 276316 URL: https://svnweb.freebsd.org/changeset/base/276316 Log: Remove unnecessary code and, instead, use the provided iicbus_null_callback callback. Modified: head/sys/arm/ti/ti_i2c.c Modified: head/sys/arm/ti/ti_i2c.c ==

svn commit: r276481 - head/usr.sbin/gpioctl

2014-12-31 Thread Luiz Otavio O Souza
Author: loos Date: Wed Dec 31 21:58:03 2014 New Revision: 276481 URL: https://svnweb.freebsd.org/changeset/base/276481 Log: Free the buffer returned by gpio_pin_list() after the use. Reported by: Coverity Scan CID: 1257468 Modified: head/usr.sbin/gpioctl/gpioctl.c Modified:

svn commit: r276589 - head/sys/dev/puc

2015-01-02 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 2 22:45:55 2015 New Revision: 276589 URL: https://svnweb.freebsd.org/changeset/base/276589 Log: puc(4): Add an entry for the Feasso PCI FPP-02 2S1P card. MFC after:1 week Modified: head/sys/dev/puc/pucdata.c Modified: head/sys/dev/puc/pucdata.c ==

svn commit: r276751 - head/sys/netinet

2015-01-06 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jan 6 13:07:13 2015 New Revision: 276751 URL: https://svnweb.freebsd.org/changeset/base/276751 Log: Remove the check that prevent carp(4) advskew to be set to '0'. CARP devices are created with advskew set to '0' and once you set it to any other value in the valid

svn commit: r276779 - head/sys/arm/rockchip

2015-01-07 Thread Luiz Otavio O Souza
Author: loos Date: Wed Jan 7 16:55:55 2015 New Revision: 276779 URL: https://svnweb.freebsd.org/changeset/base/276779 Log: Reduce the maximum number of pins for the Rockchip RK3188, this driver isn't supposed to manage all the GPIO pins in the system from a single instance, instead it will

svn commit: r276784 - head/sys/arm/rockchip

2015-01-07 Thread Luiz Otavio O Souza
Author: loos Date: Wed Jan 7 19:15:11 2015 New Revision: 276784 URL: https://svnweb.freebsd.org/changeset/base/276784 Log: Fix the handling of pull-up and pull-down for RK3188. For this to work the driver needs to know the bank it has attached to since the registers for the first 12 pins

svn commit: r276868 - stable/10/sys/arm/broadcom/bcm2835

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 02:25:19 2015 New Revision: 276868 URL: https://svnweb.freebsd.org/changeset/base/276868 Log: MFC r273329, r273337 and r274415 Add another wakeup() after actually set the bus as free. This fix a race where the threads waiting for the bus would wake up earl

svn commit: r276869 - stable/10/sys/arm/broadcom/bcm2835

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 02:30:30 2015 New Revision: 276869 URL: https://svnweb.freebsd.org/changeset/base/276869 Log: MFC r273610: Add an iicbus_reset() method to bcm2835_bsc. While it is generally not used for kernel devices it is used by i2c(8). This fix the 'error: Device n

svn commit: r276872 - stable/10/sys/arm/broadcom/bcm2835

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 02:38:12 2015 New Revision: 276872 URL: https://svnweb.freebsd.org/changeset/base/276872 Log: MFC r276314: Convert the BSC (i2c) driver to use the new iicbus_get_frequency(). Tested on:Raspberry pi Modified: stable/10/sys/arm/broadcom/bcm2835/bcm283

svn commit: r276873 - stable/10/sys/dev/usb/net

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 02:43:17 2015 New Revision: 276873 URL: https://svnweb.freebsd.org/changeset/base/276873 Log: MFC: r273546 Fix a bug where some DTS layouts could cause the premature ending of the search (i.e. without returning any result) and you would end up with a random

svn commit: r276874 - stable/10/sys/arm/arm

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 02:47:57 2015 New Revision: 276874 URL: https://svnweb.freebsd.org/changeset/base/276874 Log: MFC r273599: Fix a bug where DMA maps created with bus_dmamap_create() won't increment the map count and without being able to keep track of the current map alloca

svn commit: r276875 - stable/10/sys/arm/ti/cpsw

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 02:51:06 2015 New Revision: 276875 URL: https://svnweb.freebsd.org/changeset/base/276875 Log: MFC r273606: Fix cpsw_detach() to not panic when called from cpsw_attach(). For an unkown reason (at moment), sometimes if_cpsw cannot read from PHY and fails t

svn commit: r276876 - stable/10/usr.sbin/i2c

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 03:26:18 2015 New Revision: 276876 URL: https://svnweb.freebsd.org/changeset/base/276876 Log: MFC r274416: Fix a few cases of use of uninitialized variables. Found with -Wall. Modified: stable/10/usr.sbin/i2c/i2c.c Directory Properties: stable/10/ (prop

svn commit: r276877 - stable/10/sys/arm/ti/am335x

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 03:32:51 2015 New Revision: 276877 URL: https://svnweb.freebsd.org/changeset/base/276877 Log: MFC r276249: Fix the musb initialization sequence on AM335x. According to http://e2e.ti.com/support/arm/sitara_arm/f/791/t/210729 the USB reset pulse has an und

svn commit: r276878 - stable/10/sys/dev/puc

2015-01-08 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 9 03:35:19 2015 New Revision: 276878 URL: https://svnweb.freebsd.org/changeset/base/276878 Log: MFC r276589: puc(4): Add an entry for the Feasso PCI FPP-02 2S1P card. Modified: stable/10/sys/dev/puc/pucdata.c Directory Properties: stable/10/ (props changed

Re: svn commit: r276751 - head/sys/netinet

2015-01-09 Thread Luiz Otavio O Souza
On Wed, Jan 7, 2015 at 6:52 PM, Gleb Smirnoff wrote: > On Tue, Jan 06, 2015 at 01:07:14PM +0000, Luiz Otavio O Souza wrote: > L> Author: loos > L> Date: Tue Jan 6 13:07:13 2015 > L> New Revision: 276751 > L> URL: https://svnweb.freebsd.org/changeset/base/276751 >

svn commit: r277042 - in head/sys: arm/conf arm/ti arm/ti/am335x boot/fdt/dts/arm

2015-01-11 Thread Luiz Otavio O Souza
, CM_RTC_RTC_CLKCTRL, 0), + { INVALID_CLK_IDENT, 0}, }; Added: head/sys/arm/ti/am335x/am335x_rtc.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/ti/am335x/am335x_rtc.c Mon Jan 12 03:23:16 2015 (r277042) @@ -0,0 +1,2

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

2015-01-14 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jan 15 00:48:53 2015 New Revision: 277206 URL: https://svnweb.freebsd.org/changeset/base/277206 Log: Catch a few cases where we need to release memory resources on errors. Place parentheses around variables in macros. MFC after:3 days Modified: head/sys/ar

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

2015-01-14 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jan 15 01:05:05 2015 New Revision: 277207 URL: https://svnweb.freebsd.org/changeset/base/277207 Log: Fix the C -> K temperature conversion for the dev.cpu.0.temperature sysctl. Previous code was discarding the last digit. Remove the unused temperature conversion

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

2015-01-14 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jan 15 01:20:56 2015 New Revision: 277208 URL: https://svnweb.freebsd.org/changeset/base/277208 Log: Fix the PMIC node name to match the PMIC i2c address. Remove an extra blank line. No functional changes. MFC after:3 days Modified: head/sys/boot/fdt/

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

2015-04-16 Thread Luiz Otavio O Souza
Author: loos Date: Fri Apr 17 03:56:50 2015 New Revision: 281639 URL: https://svnweb.freebsd.org/changeset/base/281639 Log: Fix the 'wrong packet header' errors for if_emac. Do not strip the ethernet CRC until we read all data from FIFO, otherwise the CRC bytes would be left in FIFO causi

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

2015-04-17 Thread Luiz Otavio O Souza
Author: loos Date: Fri Apr 17 22:17:22 2015 New Revision: 281669 URL: https://svnweb.freebsd.org/changeset/base/281669 Log: Remove unnecessary checks and fix an issue where the interrupt handler could return with lock held. Modified: head/sys/arm/allwinner/if_emac.c Modified: head/sys/arm/

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

2015-04-17 Thread Luiz Otavio O Souza
Author: loos Date: Fri Apr 17 23:49:43 2015 New Revision: 281673 URL: https://svnweb.freebsd.org/changeset/base/281673 Log: Add the necessary support to use both TX queues available on if_emac. Each TX queue can hold one packet (yes, if_emac can send only two(!) packets at a time). E

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

2015-04-17 Thread Luiz Otavio O Souza
Author: loos Date: Sat Apr 18 00:35:00 2015 New Revision: 281675 URL: https://svnweb.freebsd.org/changeset/base/281675 Log: Simplify the receiver code a bit. Drain the RX FIFO and continue on failure. Modified: head/sys/arm/allwinner/if_emac.c head/sys/arm/allwinner/if_emacreg.h Modif

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

2015-04-17 Thread Luiz Otavio O Souza
Author: loos Date: Sat Apr 18 01:01:39 2015 New Revision: 281678 URL: https://svnweb.freebsd.org/changeset/base/281678 Log: Fix the style(9) and adds two missing parentheses on the licence. Reduce the differences to bring in the MMC/SD driver. Approved by: ganbold (licence change) Mo

svn commit: r281679 - in head/sys/arm/allwinner: . a20

2015-04-17 Thread Luiz Otavio O Souza
Author: loos Date: Sat Apr 18 03:07:01 2015 New Revision: 281679 URL: https://svnweb.freebsd.org/changeset/base/281679 Log: Move the items common to all SoCs to a single file. Added: head/sys/arm/allwinner/files.allwinner (contents, props changed) Modified: head/sys/arm/allwinner/a20/file

svn commit: r281799 - in head/sys: arm/conf modules/dtb/allwinner

2015-04-20 Thread Luiz Otavio O Souza
Author: loos Date: Mon Apr 20 22:12:19 2015 New Revision: 281799 URL: https://svnweb.freebsd.org/changeset/base/281799 Log: Build and install the DTB for all the supported AllWinner SoCs. We will need them when we start booting using ubldr. Added: head/sys/modules/dtb/allwinner/ head/s

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

2015-04-22 Thread Luiz Otavio O Souza
Author: loos Date: Wed Apr 22 17:35:58 2015 New Revision: 281859 URL: https://svnweb.freebsd.org/changeset/base/281859 Log: Fix the SDHCI clock frequency for RPI2, the default clock (for the newer firmware versions) is 250MHz. Modified: head/sys/boot/fdt/dts/arm/bcm2836.dtsi Modified: head

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

2015-04-22 Thread Luiz Otavio O Souza
Author: loos Date: Wed Apr 22 18:35:02 2015 New Revision: 281863 URL: https://svnweb.freebsd.org/changeset/base/281863 Log: Fetch the SDHCI frequency from videocore (our prefered source) and only if it fails, fetch the clock-frequency from DTB. If both methods fail, use the hardcoded defa

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

2015-04-23 Thread Luiz Otavio O Souza
Author: loos Date: Thu Apr 23 14:58:39 2015 New Revision: 281890 URL: https://svnweb.freebsd.org/changeset/base/281890 Log: Enable the watchdog on RPI2. The watchdog is used to reset the SoC on cpu_reset(). Without this, RPI2 will not reboot when asked to. Modified: head/sys/boot/fd

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

2015-04-23 Thread Luiz Otavio O Souza
Author: loos Date: Thu Apr 23 18:36:36 2015 New Revision: 281899 URL: https://svnweb.freebsd.org/changeset/base/281899 Log: Fix the gpio-leds node to match the LEDs on RPI2. The 'pwr' LED is connected to GPIO pin 35 (active high) and the 'act' LED is connected to GPIO pin 47 (active high)

svn commit: r281900 - head/sys/arm/conf

2015-04-23 Thread Luiz Otavio O Souza
Author: loos Date: Thu Apr 23 19:50:22 2015 New Revision: 281900 URL: https://svnweb.freebsd.org/changeset/base/281900 Log: Now that we have an U-Boot for RPI2, do not use the static DTB compiled into the kernel, which is used mostly on early development stages. On RPI(2) the DTB is loade

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

2015-04-25 Thread Luiz Otavio O Souza
Author: loos Date: Sat Apr 25 21:43:29 2015 New Revision: 281989 URL: https://svnweb.freebsd.org/changeset/base/281989 Log: Make the pcf8563 RTC work on FDT systems and on interrupt based i2c controllers. Call iicbus_transfer() from the device context and not from the iicbus context.

svn commit: r281991 - in head/sys/arm: allwinner broadcom/bcm2835

2015-04-25 Thread Luiz Otavio O Souza
Author: loos Date: Sat Apr 25 22:42:03 2015 New Revision: 281991 URL: https://svnweb.freebsd.org/changeset/base/281991 Log: Set ARM_L2_PIPT for A10 and RPI2, they are probably missing by accident. Noted by: Michal Meloun Modified: head/sys/arm/allwinner/std.a10 head/sys/arm/broadc

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

2015-04-26 Thread Luiz Otavio O Souza
Author: loos Date: Mon Apr 27 01:36:16 2015 New Revision: 282049 URL: https://svnweb.freebsd.org/changeset/base/282049 Log: Pass the supplied buffer length instead of a fixed size. Modified: head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c Modified: head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c =

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

2015-05-02 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 2 20:14:43 2015 New Revision: 282352 URL: https://svnweb.freebsd.org/changeset/base/282352 Log: Remove an unused variable. Modified: head/sys/arm/arm/machdep.c Modified: head/sys/arm/arm/machdep.c ===

svn commit: r282356 - head/sys/arm/conf

2015-05-02 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 2 20:41:49 2015 New Revision: 282356 URL: https://svnweb.freebsd.org/changeset/base/282356 Log: Fix the kernel ident for RPI2. Modified: head/sys/arm/conf/RPI2 Modified: head/sys/arm/conf/RPI2 ===

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

2015-05-02 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 2 22:24:33 2015 New Revision: 282357 URL: https://svnweb.freebsd.org/changeset/base/282357 Log: Add the routines to query and setup the framebuffer state using the BCM2835_MBOX_CHAN_PROP channel. The old channel (BCM2835_MBOX_CHAN_FB) seems deprecated on recent f

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

2015-05-02 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 2 22:40:41 2015 New Revision: 282358 URL: https://svnweb.freebsd.org/changeset/base/282358 Log: Fix the sc(4) framebuffer driver on RPi 2. Use the BCM2835_MBOX_CHAN_PROP mbox channel to setup the framebuffer, remove unused code and unnecessary includes. Ad

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

2015-05-02 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 2 22:48:56 2015 New Revision: 282359 URL: https://svnweb.freebsd.org/changeset/base/282359 Log: Fix the vt(4) framebuffer driver on RPi 2. Use the BCM2835_MBOX_CHAN_PROP mbox channel to setup the framebuffer, remove DMA code (its now done in bcm2835_mbox.c).

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

2015-05-03 Thread Luiz Otavio O Souza
Author: loos Date: Mon May 4 00:01:35 2015 New Revision: 282403 URL: https://svnweb.freebsd.org/changeset/base/282403 Log: Fix the voltage and clock levels for cpufreq on RPi 2. Submitted by: Daisuke Aoyama Modified: head/sys/arm/broadcom/bcm2835/bcm2835_cpufreq.c Modified: head/sys/a

svn commit: r282433 - head/sys/arm/conf

2015-05-04 Thread Luiz Otavio O Souza
Author: loos Date: Mon May 4 20:59:23 2015 New Revision: 282433 URL: https://svnweb.freebsd.org/changeset/base/282433 Log: In preparation for the next cycle of official ARM images, add ARM_NEW_PMAP to supported kernels. This is a temporary solution and should be reverted when ARM_NEW_PMA

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

2015-05-04 Thread Luiz Otavio O Souza
Author: loos Date: Tue May 5 00:19:04 2015 New Revision: 282440 URL: https://svnweb.freebsd.org/changeset/base/282440 Log: Fix DMA on RPi 2. BCM2836 has a different base address for peripherals. Obtained from:netbsd Modified: head/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h M

<    1   2   3   4   5   6   >