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


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Wed Feb 23 07:55:55 2022 UTC (11 months, 1 week ago) by skrll
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

API naming consistency.  NFC.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Aug 9 00:30:09 2021 UTC (17 months, 4 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf2
Changes since 1.11: +2 -34 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

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) - annotate - [select for diffs], Sat Aug 7 16:19:10 2021 UTC (18 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base
Branch point for: thorpej-i2c-spi-conf2
Changes since 1.10: +3 -4 lines
Diff to previous 1.10 (colored)

Merge thorpej-cfargs2.

Revision 1.10.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 18:24:13 2021 UTC (18 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.10: +3 -4 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Adapt to CFARGS().

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Wed May 19 03:14:25 2021 UTC (20 months, 2 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.10.2.1: +2 -16 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

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) - annotate - [select for diffs], Sun Apr 25 22:20:08 2021 UTC (21 months, 1 week ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.10: +4 -23 lines
Diff to previous 1.10 (colored)

- 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) - annotate - [select for diffs], Sat Apr 24 23:36:53 2021 UTC (21 months, 2 weeks ago) by thorpej
Branch: 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
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored)

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) - annotate - [select for diffs], Fri Apr 2 22:17:43 2021 UTC (22 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:34:57 2021 UTC (2 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.8: +6 -9 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync w/ HEAD.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Dec 23 16:02:11 2020 UTC (2 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.8: +6 -9 lines
Diff to previous 1.8 (colored)

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) - annotate - [select for diffs], Fri Jun 12 03:32:30 2020 UTC (2 years, 7 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

i2c-indirect-config == false  -->  i2c-no-indirect-config == true

Revision 1.2.22.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:08 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.2: +52 -9 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 24 06:03:02 2019 UTC (3 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, 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
Changes since 1.6: +8 -3 lines
Diff to previous 1.6 (colored)

Fix leak of iba.iba_child_devices in fdtbus_attach_i2cbus().  Patch
provided by yarl-baudig %%at%% mailoo.org

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jan 30 01:24:00 2019 UTC (4 years ago) by jmcneill
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.5: +14 -2 lines
Diff to previous 1.5 (colored)

Add support for Allwinner A64's display pipeline.

Revision 1.2.20.2 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:49 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.2.20.1: +6 -3 lines
Diff to previous 1.2.20.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Ssync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Wed Sep 26 20:03:36 2018 UTC (4 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.4: +6 -3 lines
Diff to previous 1.4 (colored)

Set "i2c-indirect-config" to false in the right place so that iic(4)
better behaves itself.

Revision 1.2.20.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:44 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.2: +32 -9 lines
Diff to previous 1.2 (colored)

Sync with HEAD

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 1 18:16:40 2018 UTC (4 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.3: +25 -2 lines
Diff to previous 1.3 (colored)

Add fdtbus_attach_i2cbus, used to attach an i2cbus to an fdt device node.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jun 30 20:34:43 2018 UTC (4 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.2: +9 -9 lines
Diff to previous 1.2 (colored)

Use queue(3) API to manage lists. NFCI.

Revision 1.2.18.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:01 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2.18.1: +90 -0 lines
Diff to previous 1.2.18.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

update from HEAD

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:49 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.2.2.1: +90 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.2.18.1, Wed Dec 16 12:17:45 2015 UTC (7 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2: +0 -90 lines
FILE REMOVED

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 (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.2: +0 -90 lines
FILE REMOVED

file fdt_i2c.c was added on branch nick-nhusb on 2015-12-27 12:09:49 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 16 12:17:45 2015 UTC (7 years, 1 month ago) by jmcneill
Branch: 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-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
Changes since 1.1: +2 -4 lines
Diff to previous 1.1 (colored)

Only OF_* functions should be in fdt_openfirm.c, move the rest to fdt_subr.c.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 16 12:03:44 2015 UTC (7 years, 1 month ago) by jmcneill
Branch: MAIN

split gpio, i2c, intr, and regulator helpers into separate files

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>