The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Feb 23 07:55:55 2022 UTC (3 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, 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
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
API naming consistency.  NFC.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 9 00:30:09 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-i2c-spi-conf2
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +2 -34 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.11: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:10 2021 UTC (3 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base
Branch point for: thorpej-i2c-spi-conf2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -4 lines
Merge thorpej-cfargs2.

Revision 1.10.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 18:24:13 2021 UTC (3 years, 8 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 -4 lines
Adapt to CFARGS().

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Wed May 19 03:14:25 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.1: +2 -16 lines
fdtbus_attach_i2cbus() is no longer anything other than a wrapper around
config_found(); just get rid of it and make its callers look like all of
the other I2C controller drivers.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 25 22:20:08 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -23 lines
- Don't call of_enter_i2c_devs() -- it no longer exists.
- Pass along the provided devhandle to the i2c bus instance.

XXX fdtbus_attach_i2cbus() is now just a thin wrapper around config_found()
and should probably just go away in favor of making FDT-attached i2c
controller drivers consistent with everyone else.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:53 2021 UTC (4 years 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.9: preferred, colored
Changes since revision 1.9: +5 -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.9.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 2 22:17:43 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +5 -3 lines
config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:34:57 2021 UTC (4 years, 3 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: +6 -9 lines
Sync w/ HEAD.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Dec 23 16:02:11 2020 UTC (4 years, 4 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: +6 -9 lines
Change fdtbus_register_i2c_controller() to directly register the i2c_tag_t,
rather than the device and a set of functions (the only of which was to
return the i2c_tag_t anyway).  Previously, this assumed only a single
i2c controller node per device_t, which is not true with an i2c mux.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jun 12 03:32:30 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
i2c-indirect-config == false  -->  i2c-no-indirect-config == true

Revision 1.2.22.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:08 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +52 -9 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Apr 24 06:03:02 2019 UTC (6 years ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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, 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
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +8 -3 lines
Fix leak of iba.iba_child_devices in fdtbus_attach_i2cbus().  Patch
provided by yarl-baudig %%at%% mailoo.org

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jan 30 01:24:00 2019 UTC (6 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: isaki-audio2-base, isaki-audio2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +14 -2 lines
Add support for Allwinner A64's display pipeline.

Revision 1.2.20.2: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:49 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.2.20.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.20.1: +6 -3 lines
Ssync with HEAD

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Sep 26 20:03:36 2018 UTC (6 years, 6 months ago) by jakllsch
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -3 lines
Set "i2c-indirect-config" to false in the right place so that iic(4)
better behaves itself.

Revision 1.2.20.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:44 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +32 -9 lines
Sync with HEAD

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jul 1 18:16:40 2018 UTC (6 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +25 -2 lines
Add fdtbus_attach_i2cbus, used to attach an i2cbus to an fdt device node.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jun 30 20:34:43 2018 UTC (6 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -9 lines
Use queue(3) API to manage lists. NFCI.

Revision 1.2.18.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:01 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.2.18.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.18.1: +90 -0 lines
update from HEAD

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

Revision 1.2.18.1
Wed Dec 16 12:17:45 2015 UTC (9 years, 4 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.2: +0 -90 lines
file fdt_i2c.c was added on branch tls-maxphys on 2017-12-03 11:37:01 +0000

Revision 1.2.2.1
Wed Dec 16 12:17:45 2015 UTC (9 years, 4 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.2: +0 -90 lines
file fdt_i2c.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 12:17:45 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0625, 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, 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, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: tls-maxphys, phil-wifi, pgoyette-compat, nick-nhusb
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -4 lines
Only OF_* functions should be in fdt_openfirm.c, move the rest to fdt_subr.c.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Dec 16 12:03:44 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
split gpio, i2c, intr, and regulator helpers into separate files

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>