The NetBSD Project

CVS log for src/sys/arch/arm/rockchip/rk_i2c.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / rockchip

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 13 01:08:15 2021 UTC (14 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.11: +2 -4 lines
Diff to previous 1.11 (colored)

Match rockchip,rk3288-i2c

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 12 22:02:08 2021 UTC (14 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.10: +18 -7 lines
Diff to previous 1.10 (colored)

arm: rockchip: Add support for RK3288 SoC.

The Rockchip RK3288 is a quad core Cortex-A17 SoC.

Revision 1.10.14.1 / (download) - annotate - [select for diffs], Mon Aug 9 00:30:07 2021 UTC (17 months, 3 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf2
Changes since 1.10: +7 -3 lines
Diff to previous 1.10 (colored) next main 1.11 (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.10.4.1 / (download) - annotate - [select for diffs], Wed May 19 03:14:24 2021 UTC (20 months, 2 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.10: +8 -3 lines
Diff to previous 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.8.2.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:18 2021 UTC (21 months, 4 weeks ago) by thorpej
Branch: thorpej-futex
Changes since 1.8.2.1: +6 -6 lines
Diff to previous 1.8.2.1 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:19 2021 UTC (2 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, 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-conf2, thorpej-i2c-spi-conf
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)

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.8.2.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:34:52 2021 UTC (2 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.8: +3 -15 lines
Diff to previous 1.8 (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
Changes since 1.8: +3 -15 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], Sat Sep 19 18:19:09 2020 UTC (2 years, 4 months ago) by ryo
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.7: +11 -2 lines
Diff to previous 1.7 (colored)

fix to work on big endian

Revision 1.4.4.4 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:37 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.4.4.3: +42 -25 lines
Diff to previous 1.4.4.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.4.4.3 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:30 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.4.4.2: +3 -29 lines
Diff to previous 1.4.4.2 (colored) to branchpoint 1.4 (colored)

Merge changes from current as of 20200406

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 22 23:23:29 2019 UTC (3 years, 1 month ago) by thorpej
Branch: 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
Changes since 1.6: +3 -29 lines
Diff to previous 1.6 (colored)

Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus().  "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().

Revision 1.4.6.2 / (download) - annotate - [select for diffs], Sat Nov 16 16:48:25 2019 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.4.6.1: +36 -15 lines
Diff to previous 1.4.6.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #427):

	sys/dev/ic/dw_hdmi_phy.c: revision 1.2
	sys/dev/ic/dw_hdmi.c: revision 1.4
	sys/dev/fdt/ausoc.c: revision 1.5
	sys/dev/ic/dw_hdmi.h: revision 1.2
	sys/dev/ic/dw_hdmi.h: revision 1.3
	sys/dev/ic/dw_hdmi.h: revision 1.4
	sys/conf/files: revision 1.1242
	sys/dev/fdt/fdtvar.h: revision 1.57
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.11
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.12
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.13
	sys/arch/evbarm/conf/GENERIC64: revision 1.110
	sys/arch/arm/rockchip/rk_drm.c: revision 1.1
	sys/arch/arm/rockchip/rk_drm.c: revision 1.2
	sys/arch/evbarm/conf/GENERIC64: revision 1.112
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.1
	sys/dev/fdt/fdt_clock.c: revision 1.10
	sys/arch/evbarm/conf/GENERIC64: revision 1.113
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.2
	sys/arch/arm/rockchip/rk_drm.h: revision 1.1
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.3
	sys/arch/arm/rockchip/rk_fb.c: revision 1.1
	sys/arch/arm/dts/rk3399-rockpro64.dts: revision 1.9
	sys/arch/arm/rockchip/rk_vop.c: revision 1.1
	sys/arch/arm/rockchip/rk_vop.c: revision 1.2
	sys/arch/arm/rockchip/rk_i2c.c: revision 1.6
	sys/arch/arm/rockchip/rk_cru.h: revision 1.6
	sys/arch/arm/rockchip/rk_cru.h: revision 1.7
	sys/arch/arm/rockchip/rk_cru_composite.c: revision 1.4
	sys/arch/arm/rockchip/rk_cru_composite.c: revision 1.5
	sys/arch/arm/rockchip/files.rockchip: revision 1.21
	sys/arch/arm/rockchip/rk_i2s.c: revision 1.1
	sys/arch/arm/rockchip/files.rockchip: revision 1.22
	sys/dev/ic/dw_hdmi.c: revision 1.2
	sys/dev/ic/dw_hdmi_phy.c: revision 1.1
	sys/dev/ic/dw_hdmi.c: revision 1.3

Support reads of more than 32 bytes in a single xfer.

Add support for internal DesignWare HDMI PHYs

Add fdtbus_clock_enable and fdtbus_clock_enable_index shortcuts

Add HDMI and VOP clocks

WIP display driver for Rockchip RK3399

Add (commented out) Rockchip display support

Select the correct MPLL and PHY settings for the requested pixel clock
Force DCLK_VOP0/1 dividers to 1 and select closest match when setting PLL
rates.

Fix typo in phy config table

Fix a few swapped fields

Remove debug output

Enable Rockchip display support

Set sysclk rate at set_format time, so the link set_format callback can read the new sysclk

Add I2S audio input support.
Add software volume controls.
Add support for I2S clocks.
Add driver for Rockchip I2S/PCM controller.
Enable HDMI audio on ROCKPro64
Add rki2s
Add audio support

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 8 00:35:16 2019 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.5: +36 -15 lines
Diff to previous 1.5 (colored)

Support reads of more than 32 bytes in a single xfer.

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Tue Sep 24 02:50:36 2019 UTC (3 years, 4 months ago) by martin
Branch: netbsd-9
Changes since 1.4: +12 -16 lines
Diff to previous 1.4 (colored)

Pull up following revision(s) (requested by tnn in ticket #235):

	sys/arch/arm/rockchip/rk_i2c.c: revision 1.5

rkiic: coalesce smbus-style writes into a single transaction

There seems to be a hw controller bug. Split cmd/data writes caused corrupt
transfers, with junk bytes witten into the rk808 pmic registers.

This may have caused us to operate with out-of-spec core voltage.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Sep 18 12:49:34 2019 UTC (3 years, 4 months ago) by tnn
Branch: MAIN
Changes since 1.4: +12 -16 lines
Diff to previous 1.4 (colored)

rkiic: coalesce smbus-style writes into a single transaction

There seems to be a hw controller bug. Split cmd/data writes caused corrupt
transfers, with junk bytes witten into the rk808 pmic registers.
This may have caused us to operate with out-of-spec core voltage.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:55 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.4.4.1: +437 -0 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored)

Sync with HEAD

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:27 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1.2.2: +6 -4 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.4.4.1, Sun Sep 2 10:07:17 2018 UTC (4 years, 5 months ago) by christos
Branch: phil-wifi
Changes since 1.4: +0 -437 lines
FILE REMOVED

file rk_i2c.c was added on branch phil-wifi on 2019-06-10 22:05:55 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 2 10:07:17 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, netbsd-9
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

Process assigned-clocks

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 2 01:16:03 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Calculate i2c divisor based on sclk not pclk

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 2 00:48:12 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Send an ACK after the last byte is received

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:29 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.1: +435 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.1.2.1, Sun Jul 1 18:16:58 2018 UTC (4 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +0 -435 lines
FILE REMOVED

file rk_i2c.c was added on branch pgoyette-compat on 2018-07-28 04:37:29 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 1 18:16:58 2018 UTC (4 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Branch point for: pgoyette-compat

Add driver for Rockchip I2C controller.

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>