Skip to content

Commit

Permalink
arm64/dts: Configure goodixfp pinctrl
Browse files Browse the repository at this point in the history
Test: Boot to home, use fingerprint, reboot

Signed-off-by: Dyneteve <[email protected]>
Signed-off-by: celtare21 <[email protected]>
  • Loading branch information
Dyneteve authored and celtare21 committed Dec 16, 2022
1 parent 32e5b19 commit 99be497
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions arch/arm64/boot/dts/google/gs101-raviole-fingerprint.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,35 @@
* Copyright 2021 Google,LLC.
*/

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/samsung.h>

&pinctrl_4 {
goodix_rst_power_down: goodix_rst_power_down {
samsung,pins ="gpp4-3";
samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT1>;
samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>;
};
};

&pinctrl_0 {
goodix_irq_power_down: goodix_irq_power_down {
samsung,pins ="gpa9-2";
samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
};
};

&odm {
goodixfp: goodixfp {
status = "okay";
compatible = "goodix,fingerprint";
interrupt-parent = <&gpa9>;
interrupts = <2 0>;
pinctrl-names = "default";
pinctrl-0 = <&goodix_rst_power_down &goodix_irq_power_down>;
fp-gpio-irq = <&gpa9 2 GPIO_ACTIVE_HIGH>;
fp-gpio-reset = <&gpp4 3 GPIO_ACTIVE_LOW>;
};
Expand Down

0 comments on commit 99be497

Please sign in to comment.