ARM: dts: ux500: samsung-golden: Add magnetometer
authorNick Reitemeyer <nick.reitemeyer@web.de>
Thu, 30 Apr 2020 15:02:44 +0000 (17:02 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 May 2020 08:10:32 +0000 (10:10 +0200)
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
arch/arm/boot/dts/ste-ux500-samsung-golden.dts

index 0e9e33f..5b499c0 100644 (file)
                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 {
                };
        };
 
+       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 {