aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Reitemeyer <nick.reitemeyer@web.de>2020-04-30 17:02:44 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-05-05 10:10:32 +0200
commit521d6678b9a482058c78a9e6b2384ddc0c3c6392 (patch)
treef5b255f5bd0c7dfde697fcca7b4ff4a4ccbab5cb
parent2ae6193a1b95a128d040f0181d592bbf2705407b (diff)
downloadlinux-stericsson-521d6678b9a482058c78a9e6b2384ddc0c3c6392.tar.gz
ARM: dts: ux500: samsung-golden: Add magnetometer
Add the ALPS magnetometer to the Golden phone. Cc: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Nick Reitemeyer <nick.reitemeyer@web.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20200430150245.7935-1-linus.walleij@linaro.org
-rw-r--r--arch/arm/boot/dts/ste-ux500-samsung-golden.dts30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/ste-ux500-samsung-golden.dts b/arch/arm/boot/dts/ste-ux500-samsung-golden.dts
index 0e9e33f4ca3c..5b499c0b2745 100644
--- a/arch/arm/boot/dts/ste-ux500-samsung-golden.dts
+++ b/arch/arm/boot/dts/ste-ux500-samsung-golden.dts
@@ -24,6 +24,26 @@
stdout-path = &serial2;
};
+ i2c-gpio-1 {
+ compatible = "i2c-gpio";
+ sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
+ scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c_gpio_1_default>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ magnetometer@c {
+ compatible = "alps,hscdtd008a";
+ reg = <0x0c>;
+
+ avdd-supply = <&ab8500_ldo_aux1_reg>;
+ dvdd-supply = <&ab8500_ldo_aux8_reg>;
+ };
+ };
+
soc {
/* External Micro SD card slot */
sdi0_per1@80126000 {
@@ -383,6 +403,16 @@
};
};
+ i2c-gpio-1 {
+ i2c_gpio_1_default: i2c_gpio_1 {
+ golden_cfg1 {
+ pins = "GPIO151", /* COMP_SCL */
+ "GPIO152"; /* COMP_SDA */
+ ste,config = <&gpio_in_nopull>;
+ };
+ };
+ };
+
sdi0 {
sd_level_translator_default: sd_level_translator_default {
golden_cfg1 {