From: Griffin Kroah-Hartman <[email protected]> Add the required node for haptic playback (Awinic AW86938)
Reviewed-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Griffin Kroah-Hartman <[email protected]> Signed-off-by: Luca Weiss <[email protected]> --- Changes in v5: - Rebase on -next, drop input patches - Link to v4: https://lore.kernel.org/r/[email protected] Changes in v4: - Changed how vibration intensity was calculated, added a seperate patch for it. - Link to v3: https://lore.kernel.org/r/[email protected] Changes in v3: - Changed how compatibility was handled according to feedback - Added reset gpio config for vibrator node - Link to v2: https://lore.kernel.org/r/[email protected] Changes in v2: - Added AW86938 specific registers - Added chip model enum to differentiate chips - Link to v1: https://lore.kernel.org/r/[email protected] --- arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts | 26 +++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts b/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts index c1899db46e71..44d13966d6ff 100644 --- a/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts +++ b/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts @@ -687,7 +687,17 @@ vreg_l7p: ldo7 { }; /* VL53L3 ToF @ 0x29 */ - /* AW86938FCR vibrator @ 0x5a */ + + vibrator@5a { + compatible = "awinic,aw86938", "awinic,aw86927"; + reg = <0x5a>; + + interrupts-extended = <&tlmm 80 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&tlmm 78 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&aw86938_int_default>, <&aw86938_reset_default>; + pinctrl-names = "default"; + }; }; &pm8550vs_c { @@ -824,6 +834,20 @@ hall_sensor_default: hall-sensor-default-state { bias-disable; }; + aw86938_reset_default: aw86938-reset-default-state { + pins = "gpio78"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + aw86938_int_default: aw86938-int-default-state { + pins = "gpio80"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + pm8008_int_default: pm8008-int-default-state { pins = "gpio125"; function = "gpio"; --- base-commit: 83acad05dee54a5cff0c98dd7962e55d4c6b145a change-id: 20251113-aw86938-driver-b4fa0d3228a2 Best regards, -- Luca Weiss <[email protected]>

