History log of /src/sys/arch/arm/sunxi/sunxi_twi.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 25-Sep-2025 thorpej

Don't use a property to set a value in the front end that can simply
be set directly in the softc instead.


# 1.19 16-Sep-2025 thorpej

As with ACPI, perform the fdtbus_register_i2c_controller() in a centralized
location.


# 1.18 16-Sep-2025 thorpej

Garbage-collect fdtbus_attach_i2cbus(); the regular iicbus_attach() is
sufficient now.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 thorpej-ifq-base thorpej-altq-separation-base netbsd-10-0-RC1 netbsd-10-base bouyer-sunxi-drm-base thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base
# 1.17 27-Jan-2021 thorpej

branches: 1.17.4; 1.17.14;
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.


# 1.16 27-Jan-2021 thorpej

Use DEVICE_COMPAT_EOL.


# 1.15 25-Jan-2021 thorpej

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.


# 1.14 18-Jan-2021 thorpej

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.


# 1.13 15-Jan-2021 jmcneill

use fdtbus_intr_establish_xname


# 1.12 23-Dec-2020 thorpej

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 tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.11 12-Jan-2020 thorpej

branches: 1.11.6;
Clean up gttwsi's register access stuff:
- Garbage-collect the obsolete GTTWSI_ALLWINNER option; it hasn't been
needed since FDT'ization of the Allwinner support code.
- Redefine thw "TWSI_*" register definitions to clearly call out:
-> The Marvell flavor of the offsets
-> The Allwinner flavor of the offsets
...and make the regular definitions indices into a register map.
- Pass the appropriate register map from the front-end to the core.
- Remove the customer register read/write callbacks -- they are no longer
needed now that each front-end passes an appropriate register map to
the core.


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 isaki-audio2-base pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728
# 1.10 01-Jul-2018 jmcneill

branches: 1.10.6;
Use fdtbus_attach_i2cbus


Revision tags: phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.9 09-May-2018 thorpej

branches: 1.9.2;
If we don't get informed (via device properties) of child I2C devices,
don't assign an empty array to iba.iba_child_devices, as it will prevent
indirect configuration of the I2C bus from occurring.

Tested on Raspberry Pi (bcm2835), identical logical fix replicated
(and compile-tested) elsewhere.

PR port-arm/53171


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202
# 1.8 02-Dec-2017 jmcneill

branches: 1.8.2; 1.8.4;
Support nodes w/o a defined clock.


# 1.7 30-Nov-2017 jmcneill

Set twi clock based on parent clock, and fix register remapping for writes.


# 1.6 29-Oct-2017 jmcneill

sunxi_twi: provide custom read/write reg callbacks and remove the
GTTWSI_ALLWINNER option from the kernel config


# 1.5 07-Oct-2017 jmcneill

Initialize TWI clock rate to 100kHz


# 1.4 02-Oct-2017 jmcneill

Set iflg-rwc for sun6i-a31 compatible devices.


Revision tags: nick-nhusb-base-20170825
# 1.3 25-Aug-2017 jmcneill

branches: 1.3.2;
Add initial support for Allwinner A13 and R8 SoCs.


Revision tags: perseant-stdc-iso10646-base
# 1.2 01-Jul-2017 jmcneill

branches: 1.2.4;
Fix dmesg


# 1.1 29-Jun-2017 jmcneill

Add i2c glue.