Commit 2ae6193a authored by Stephan Gerhold's avatar Stephan Gerhold Committed by Linus Walleij

ARM: dts: ux500: samsung-golden: Add proximity sensor

samsung-golden has the same sharp,gp2ap002s00f proximity sensor
that is also used in samsung-skomer.

A driver was added for it in
commit 97d642e2 ("iio: light: Add a driver for Sharp GP2AP002x00F").

Now that it was merged we can add an entry for it in the device tree
for samsung-golden.
Signed-off-by: default avatarStephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200405173252.67614-1-stephan@gerhold.netSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8f3d9f35
......@@ -146,6 +146,32 @@ uart@80007000 {
pinctrl-1 = <&u2rxtx_c_1_sleep>;
};
i2c@80004000 {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c0_a_1_default>;
pinctrl-1 = <&i2c0_a_1_sleep>;
proximity@44 {
compatible = "sharp,gp2ap002s00f";
reg = <0x44>;
/* GPIO146 (PS_INT) */
interrupt-parent = <&gpio4>;
interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&ab8500_ldo_aux1_reg>;
vio-supply = <&ab8500_ldo_aux8_reg>;
pinctrl-names = "default";
pinctrl-0 = <&proximity_default>;
sharp,proximity-far-hysteresis = <0x40>;
sharp,proximity-close-hysteresis = <0x0f>;
};
};
i2c@80128000 {
status = "okay";
......@@ -375,6 +401,15 @@ golden_cfg1 {
};
};
proximity {
proximity_default: proximity_default {
golden_cfg1 {
pins = "GPIO146_D13"; /* PS_INT */
ste,config = <&gpio_in_nopull>;
};
};
};
imu {
imu_default: imu_default {
golden_cfg1 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment