The NetBSD Project

CVS log for src/sys/dev/fdt/gpiokeys.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / fdt

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:10 2021 UTC (5 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Merge thorpej-cfargs2.

Revision 1.10.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 18:24:14 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +3 -3 lines
Adapt to CFARGS().

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:53 2021 UTC (5 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4 lines
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 1.8.16.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:44 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +8 -4 lines
Sync with HEAD.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 23 07:14:52 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +4 -4 lines
Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jan 27 03:10:21 2021 UTC (5 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -4 lines
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.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:05 2018 UTC (8 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.1: +4 -3 lines
Sync with HEAD

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu May 10 13:05:18 2018 UTC (8 years, 6 months ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -3 lines
Emit initial lid switch state event at startup

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:06 2018 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +43 -18 lines
Synch with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Apr 28 11:49:06 2018 UTC (8 years, 6 months ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-compat-0502
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +43 -18 lines
Add support for lid switch event codes.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Dec 10 17:03:07 2017 UTC (8 years, 11 months ago) by bouyer
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
Factor out bus-independant HID code so that it can be shared by USB, bluetooth
and i2c.
dev/usb/ukbdmap.c is renamed to dev/hid/hidkbdmap.c
dev/usb/hid.[ch] moved to dev/hid/
usage pages moved from dev/usb/usbhid.h moved to dev/hid/hid.h,
and updated with OpenBSD entries.
bus-independant code moved from dev/usb/ums.c to dev/hid/hidms.c
(the same should be done for keyboard and touchpad drivers)

Needed for the upcoming HID over I2C support, proposed on tech-kern@
on Dec, 1.

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:01 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +281 -0 lines
update from HEAD

Revision 1.5.2.1
Sat Sep 23 23:54:30 2017 UTC (9 years, 1 month ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.5: +0 -281 lines
file gpiokeys.c was added on branch tls-maxphys on 2017-12-03 11:37:01 +0000

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Sep 23 23:54:30 2017 UTC (9 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Branch point for: tls-maxphys
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +86 -8 lines
For known Linux keycodes, report key press events through a wskbd device
instead of using sysmon pswitch hotkey events.

Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:02 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.2: +4 -2 lines
Sync with HEAD

Revision 1.2.12.1: download - view: text, markup, annotated - select for diffs
Fri Jul 7 09:29:23 2017 UTC (9 years, 4 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, 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, matt-nb8-mediatek
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +4 -2 lines
Pull up following revision(s) (requested by jmcneill in ticket #101):
	sys/dev/fdt/gpiokeys.c: revision 1.3
	sys/dev/fdt/gpiokeys.c: revision 1.4
Read the initial key state at startup so we only trigger events on state
changes. Prevents a misconfigured power button from shutting us down at
boot.
Only read gpio pin if the pin is valid

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jul 6 14:26:00 2017 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -3 lines
Only read gpio pin if the pin is valid

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jul 6 14:01:38 2017 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
Read the initial key state at startup so we only trigger events on state
changes. Prevents a misconfigured power button from shutting us down at
boot.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:49 2015 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +201 -0 lines
Sync with HEAD (as of 26th Dec)

Revision 1.2.2.1
Wed Dec 16 19:33:55 2015 UTC (10 years, 11 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.2: +0 -201 lines
file gpiokeys.c was added on branch nick-nhusb on 2015-12-27 12:09:49 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Dec 16 19:33:55 2015 UTC (10 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb, netbsd-8
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -12 lines
Use of_getprop_bool/of_getprop_uint32

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 20:58:45 2015 UTC (10 years, 11 months ago) by jmcneill
Branches: MAIN
Add driver for device tree "gpio-keys" device. Each GPIO key is mapped to
a sysmon pswitch; code KEY_POWER is a power button, KEY_SLEEP is a sleep
button, and everything else is treated as a hotkey button.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>