History log of /netbsd-current/sys/arch/arm/broadcom/bcm2835_gpio.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.24 17-Jan-2022 thorpej

Pass the controller devhandle along to the GPIO layer.


# 1.23 21-Aug-2021 andvar

fix mainly same typos as in my previous commit but outside sys/dev/dm.


Revision tags: thorpej-i2c-spi-conf2-base
# 1.22 07-Aug-2021 thorpej

Merge thorpej-cfargs2.


Revision tags: thorpej-futex2-base thorpej-cfargs2-base thorpej-i2c-spi-conf-base
# 1.21 24-Jul-2021 andvar

branches: 1.21.2;
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.20 24-Apr-2021 thorpej

branches: 1.20.2;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).


Revision tags: thorpej-cfargs-base thorpej-futex-base
# 1.19 29-Jan-2021 skrll

branches: 1.19.2;
fdtbus_intr_establish -> fdtbus_intr_establish_xname


# 1.18 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.17 15-Jan-2021 jmcneill

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.16 12-Oct-2019 mlelstv

branches: 1.16.8;
off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.23 21-Aug-2021 andvar

fix mainly same typos as in my previous commit but outside sys/dev/dm.


Revision tags: thorpej-i2c-spi-conf2-base
# 1.22 07-Aug-2021 thorpej

Merge thorpej-cfargs2.


Revision tags: thorpej-futex2-base thorpej-cfargs2-base thorpej-i2c-spi-conf-base
# 1.21 24-Jul-2021 andvar

branches: 1.21.2;
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.20 24-Apr-2021 thorpej

branches: 1.20.2;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).


Revision tags: thorpej-cfargs-base thorpej-futex-base
# 1.19 29-Jan-2021 skrll

branches: 1.19.2;
fdtbus_intr_establish -> fdtbus_intr_establish_xname


# 1.18 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.17 15-Jan-2021 jmcneill

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.16 12-Oct-2019 mlelstv

branches: 1.16.8;
off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.22 07-Aug-2021 thorpej

Merge thorpej-cfargs2.


Revision tags: thorpej-futex2-base thorpej-cfargs2-base thorpej-i2c-spi-conf-base
# 1.21 24-Jul-2021 andvar

branches: 1.21.2;
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.20 24-Apr-2021 thorpej

branches: 1.20.2;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).


Revision tags: thorpej-cfargs-base thorpej-futex-base
# 1.19 29-Jan-2021 skrll

branches: 1.19.2;
fdtbus_intr_establish -> fdtbus_intr_establish_xname


# 1.18 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.17 15-Jan-2021 jmcneill

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.16 12-Oct-2019 mlelstv

branches: 1.16.8;
off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.21 24-Jul-2021 andvar

Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base
# 1.20 24-Apr-2021 thorpej

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).


Revision tags: thorpej-cfargs-base thorpej-futex-base
# 1.19 29-Jan-2021 skrll

branches: 1.19.2;
fdtbus_intr_establish -> fdtbus_intr_establish_xname


# 1.18 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.17 15-Jan-2021 jmcneill

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.16 12-Oct-2019 mlelstv

branches: 1.16.8;
off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.20 24-Apr-2021 thorpej

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).


Revision tags: thorpej-cfargs-base thorpej-futex-base
# 1.19 29-Jan-2021 skrll

branches: 1.19.2;
fdtbus_intr_establish -> fdtbus_intr_establish_xname


# 1.18 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.17 15-Jan-2021 jmcneill

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.16 12-Oct-2019 mlelstv

branches: 1.16.8;
off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.19 29-Jan-2021 skrll

fdtbus_intr_establish -> fdtbus_intr_establish_xname


# 1.18 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.17 15-Jan-2021 jmcneill

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish


Revision tags: thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.16 12-Oct-2019 mlelstv

off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.18 27-Jan-2021 thorpej

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.


# 1.17 15-Jan-2021 jmcneill

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish


Revision tags: thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.16 12-Oct-2019 mlelstv

off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.17 15-Jan-2021 jmcneill

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish


Revision tags: thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
# 1.16 12-Oct-2019 mlelstv

off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.16 12-Oct-2019 mlelstv

off by one


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

branches: 1.12.2;
Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.15 03-Oct-2019 mlelstv

remove debug printfs, add more compat strings.


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.14 01-Oct-2019 jmcneill

Add support for devices with separate "init" and "default" pinctrl states.


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.13 28-Sep-2019 mlelstv

Handle BCM2838 (bcm2711) SoC pecularities.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.12 10-May-2019 skrll

Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

branches: 1.7.2;
Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.12 10-May-2019 skrll

Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


Revision tags: isaki-audio2-base
# 1.11 03-Mar-2019 skrll

Trailing whitespace


# 1.10 07-Feb-2019 mlelstv

Support configuration of alternate functions.


Revision tags: pgoyette-compat-20190127
# 1.9 26-Jan-2019 thorpej

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings. Use these defined constants rather than magic numbers.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.8 28-Sep-2018 jmcneill

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.7 19-May-2018 thorpej

Add support for interrupts on GPIO pins. We support both FDT-driven
interrupt registration as well as the new GPIO interrupt interface.

Based on initial work by Brad Spencer.
PR kern/51676


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.6 10-Dec-2017 skrll

branches: 1.6.2;
FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.6 10-Dec-2017 skrll

FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking


Revision tags: tls-maxphys-base-20171202
# 1.5 09-Nov-2017 skrll

Trailing whitespace


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


# 1.4 21-Sep-2017 skrll

spaces to tabs


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
# 1.3 02-Feb-2016 skrll

Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base tls-maxphys-base netbsd-7-base tls-earlyentropy-base
# 1.2 19-May-2014 skrll

branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c


Revision tags: rmind-smpnet-base rmind-smpnet-nbase yamt-pagecache-base9
# 1.1 22-Apr-2014 kardel

branches: 1.1.2;
add a driver for BCM2835 obio gpio