The NetBSD Project

CVS log for src/sys/dev/i2c/as3722.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 9 00:30:09 2021 UTC (3 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:11 2021 UTC (3 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, 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
Branch point for: thorpej-i2c-spi-conf2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
Merge thorpej-cfargs2.

Revision 1.23.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 18:53:26 2021 UTC (3 years, 6 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +3 -3 lines
Adapt to CFARGS().

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Sat May 8 16:46:43 2021 UTC (3 years, 9 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +3 -3 lines
ia->ia_cookie -> devhandle_to_of(device_handle(self))

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:54 2021 UTC (3 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, 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-i2c-spi-conf, thorpej-cfargs2
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 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.19.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:44 2021 UTC (3 years, 10 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +4 -4 lines
Sync with HEAD.

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:09:11 2021 UTC (3 years, 10 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +3 -3 lines
Give config_found() the same variadic arguments treatment as
config_search().  This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls.  Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jan 27 02:29:48 2021 UTC (4 years ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3 lines
Use DEVICE_COMPAT_EOL.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jan 25 13:30:20 2021 UTC (4 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -4 lines
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Jan 17 21:42:35 2021 UTC (4 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -4 lines
Use designated initializers and a consistent termination style in
compat_data[].

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:20 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +12 -12 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:05 2020 UTC (4 years, 10 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +32 -24 lines
Merge changes from current as of 20200406

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Jan 4 02:21:15 2020 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, 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.18: preferred, colored
Changes since revision 1.18: +8 -12 lines
No need to use I2C_F_POLL here.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Dec 23 15:48:51 2019 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +22 -10 lines
In as3722_poweroff and as3722_reboot(), check for errors from iic_acquire_bus()
before proceeding with writing to the device.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Dec 23 02:35:18 2019 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +12 -12 lines
No need to do the poll-during-autoconfiguration dance; the i2c code
does the right thing for us.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jul 27 16:02:27 2019 UTC (5 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20191119, netbsd-9-base, 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +14 -14 lines
No need to check cold to add I2C_F_POLL; the i2c API does it for us now.

Revision 1.12.10.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:44 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.12.10.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.10.1: +6 -11 lines
Sync with HEAD

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:03:57 2018 UTC (6 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -11 lines
In my quest to make device_compatible_entry (and associated goo)
super-general, it turns out I also made it a little to cumbersome
to use (if my tired fingers are any indication).  So, this is a
course-correction -- one string per entry (like of_compat_data,
which it will soon replace), and remove the over-verbose macros.

Revision 1.12.10.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:50 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +24 -15 lines
Sync with HEAD

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jun 18 17:07:07 2018 UTC (6 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: pgoyette-compat-0625
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -3 lines
- Rename iic_compat_match() to iic_compatible_match() and change it
  to use the new device_compatible_match() routine.  A pointer to
  the matching device_compatible_entry is returned if a match is
  found.
- Adjust iic_use_direct_match() accordingly.
- i2c drivers now provide device_compatible_entry tables when performing
  direct-config matching.
- In the dsrtc driver, take advantage of this new capability to greatly
  simplify model selection.

(I'm coming for you next, of_compat_data...)

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jun 16 21:22:13 2018 UTC (6 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +19 -15 lines
More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
  all of the logic for direct-config matching.  If it returns true,
  the driver returns the match result (which may be 0).  If it returns
  false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
  lower-indexed "compatible" device property are more-specific matches,
  and return a better match quality accordingly.

Revision 1.12.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:02 2017 UTC (7 years, 2 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.12.8.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.8.1: +873 -0 lines
update from HEAD

Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:03 2017 UTC (7 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.4.2.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.3: +602 -8 lines
Sync with HEAD

Revision 1.12.8.1
Sun May 28 15:55:11 2017 UTC (7 years, 8 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.12: +0 -873 lines
file as3722.c was added on branch tls-maxphys on 2017-12-03 11:37:02 +0000

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun May 28 15:55:11 2017 UTC (7 years, 8 months ago) by jmcneill
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, 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, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: tls-maxphys, pgoyette-compat
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +27 -2 lines
Add facility for fdt devices to register reset and poweroff handlers.
Use this to remove as3722-specific code in tegra_machdep.c

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Tue May 2 03:19:18 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +136 -7 lines
Sync with HEAD - tag prg-localcount2-base1

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Apr 29 20:43:48 2017 UTC (7 years, 9 months ago) by jakllsch
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +51 -13 lines
 - Recognize the AS3722 sd0_v_minus_200mV bit, which is 1 on my Jetson TK1.
 - Reduce intended core voltage for Tegra K1 124 by 200mV to 1.2V.

The actual value programmed into the SD0 regulator remains the same (0x50),
a value corresponding to 1.20V.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Apr 29 19:56:59 2017 UTC (7 years, 9 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +93 -2 lines
Add AS3722 SD4 regulator frobbing bits.

Reduces aprint_error counter with TEGRA kernel on Jetson TK1 to 1 from 3.

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:11 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.1: +448 -8 lines
Sync with HEAD

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Apr 22 23:50:13 2017 UTC (7 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: prg-localcount2-base, pgoyette-localcount-20170426
Branch point for: prg-localcount2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -4 lines
remove unused field in softc

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Apr 22 23:46:29 2017 UTC (7 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +101 -6 lines
Add SD0 regulator.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Apr 22 21:48:56 2017 UTC (7 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +222 -2 lines
Add LDO6 regulator support.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:26:05 2017 UTC (7 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +135 -8 lines
Add support for AS3722 RTC.

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:41 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.2: +3 -3 lines
Sync with HEAD

Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:21 2016 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Sync with HEAD

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jul 23 19:14:36 2016 UTC (8 years, 6 months ago) by jakllsch
Branches: MAIN
CVS tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Fix typo in string.

This is a driver for the AS3722 PMIC, not the AS3822 LED driver.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:49 2015 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +279 -0 lines
Sync with HEAD (as of 26th Dec)

Revision 1.4.2.1
Sun Dec 13 17:15:06 2015 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.4: +0 -279 lines
file as3722.c was added on branch nick-nhusb on 2015-12-27 12:09:49 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 13 17:15:06 2015 UTC (9 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-localcount-base, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Branch point for: pgoyette-localcount, nick-nhusb
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +21 -12 lines
Support direct config.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Nov 21 12:19:47 2015 UTC (9 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +19 -2 lines
expose pmic reset functionality

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Nov 21 10:56:40 2015 UTC (9 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +129 -6 lines
add watchdog support

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Nov 11 12:35:22 2015 UTC (9 years, 3 months ago) by jmcneill
Branches: MAIN
Add basic driver for AMS AS3722 power management IC

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>