ARM: dts: ux500: samsung-skomer: Add magnetometer
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Apr 2020 15:02:45 +0000 (17:02 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 May 2020 08:12:14 +0000 (10:12 +0200)
Add the ALPS magnetometer to the Skomer phone.

Cc: Stephan Gerhold <stephan@gerhold.net>
Cc: Nick Reitemeyer <nick.reitemeyer@web.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20200430150245.7935-2-linus.walleij@linaro.org
arch/arm/boot/dts/ste-ux500-samsung-skomer.dts

index 292ed52..c7d4ad3 100644 (file)
                pinctrl-0 = <&i2c_gpio_1_default>;
                #address-cells = <1>;
                #size-cells = <0>;
-               /* TODO: this should be used by the ALPS HSCDTD008A compass sensor */
+               magnetometer@c {
+                       compatible = "alps,hscdtd008a";
+                       reg = <0x0c>;
+                       avdd-supply = <&ab8500_ldo_aux1_reg>;
+                       dvdd-supply = <&ab8500_ldo_aux8_reg>;
+               };
        };
 
        soc {