summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2014-08-20 19:37:05 +0000
committerloos <loos@FreeBSD.org>2014-08-20 19:37:05 +0000
commite4ebeceadb6a37e1ccf33800c4312cceabca6b57 (patch)
treee6d1dad9e555738abec006db57843693485d6beb /sys/boot
parent5efc9173fa69c32dee331f42b6cd63d4b6da7125 (diff)
downloadFreeBSD-src-e4ebeceadb6a37e1ccf33800c4312cceabca6b57.zip
FreeBSD-src-e4ebeceadb6a37e1ccf33800c4312cceabca6b57.tar.gz
MFC r267021:
FreeBSD, historically, has always used 8-bit addresses for i2c devices (7-bit device address << 1), always leaving the room for the read/write bit. This commit convert ti_i2c and revert r259127 on bcm2835_bsc to make them compatible with 8-bit addresses. Previous to this commit an i2c device would have different addresses depending on the controller it was attached to (by example, when compared to any iicbb(4) based i2c controller), which was a pretty annoying behavior. Also, update the PMIC i2c address on beaglebone* DTS files to match the new address scheme. Now the userland utilities need to do the correct slave address shifting (but it is going to work with any i2c controller on the system). Discussed with: ian MFC r267834: Clarify the expected usage of I2C 7-bit slave addresses on ioctl(2) interface. While here add the cross reference to iic(4) on iicbus(4). CR: D210 Suggested by: jmg
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/fdt/dts/arm/beaglebone-black.dts2
-rw-r--r--sys/boot/fdt/dts/arm/beaglebone.dts2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/fdt/dts/arm/beaglebone-black.dts b/sys/boot/fdt/dts/arm/beaglebone-black.dts
index 0efae4d..3c9a0f1 100644
--- a/sys/boot/fdt/dts/arm/beaglebone-black.dts
+++ b/sys/boot/fdt/dts/arm/beaglebone-black.dts
@@ -149,7 +149,7 @@
i2c@44e0b000 {
pmic@24 {
compatible = "ti,am335x-pmic";
- reg = <0x24>;
+ reg = <0x48>;
};
};
};
diff --git a/sys/boot/fdt/dts/arm/beaglebone.dts b/sys/boot/fdt/dts/arm/beaglebone.dts
index 3f8e022..83b948f 100644
--- a/sys/boot/fdt/dts/arm/beaglebone.dts
+++ b/sys/boot/fdt/dts/arm/beaglebone.dts
@@ -133,7 +133,7 @@
i2c@44e0b000 {
pmic@24 {
compatible = "ti,am335x-pmic";
- reg = <0x24>;
+ reg = <0x48>;
};
};
};
OpenPOWER on IntegriCloud