@@ -19,6 +19,10 @@
model = "Samsung Trats 2 based on Exynos4412";
compatible = "samsung,trats2", "samsung,exynos4412";
+ aliases {
+ i2c8 = &i2c_ak8975;
+ };
+
memory {
reg = <0x40000000 0x40000000>;
};
@@ -453,4 +457,19 @@
serial@13830000 {
status = "okay";
};
+
+ i2c_ak8975: i2c-gpio@0 {
+ compatible = "i2c-gpio";
+ gpios = <&gpy2 4 0>, <&gpy2 5 0>;
+ i2c-gpio,delay-us = <2>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ ak8975@0c {
+ compatible = "asahi-kasei,ak8975";
+ reg = <0x0c>;
+ gpios = <&gpj0 7 0>;
+ };
+ };
};