Input: remove msm-vibrator driver and bindings
Subsystems (4)
v2 cover Input: remove msm-vibrator driver and bindings
Here's a small patch series that removes the msm-vibrator driver and bindings. These two patches are broken out from this patch series from December:
https://lore.kernel.org/lkml/[email protected]/
And a resend of what I sent out in February:
https://lore.kernel.org/lkml/[email protected]/
In a nutshell, the address referenced by this driver is within the Qualcomm Clock namespace and needs to be managed by the clk subsystem. This driver needs to go away to clean up the upstream kernel.
I'm waiting for someone from Qualcomm to either post a patch to support setting the clock duty cycle or someone to post information about the m,n,d registers for the clocks. Once that's done, no other changes will be needed in the input subsystem.
Brian Masney (2):
dt-bindings: Input: remove msm-vibrator
Input: remove msm-vibrator driver
.../bindings/input/msm-vibrator.txt | 36 --- drivers/input/misc/Kconfig | 10 - drivers/input/misc/Makefile | 1 - drivers/input/misc/msm-vibrator.c | 281 ------------------ 4 files changed, 328 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/msm-vibrator.txt delete mode 100644 drivers/input/misc/msm-vibrator.c
Signature · 1 line
2.24.1
PATCH RESEND v2 1/2 dt-bindings: Input: remove msm-vibrator
The address referenced in this binding is within the Qualcomm Clock namespace so let's drop the msm-vibrator bindings so that a more generic solution can be used instead. No one is currently using these bindings so this won't affect any users.
--- .../bindings/input/msm-vibrator.txt | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/msm-vibrator.txt
Documentation/devicetree/bindings/input/msm-vibrator.txt deleted +0 -36
@@ -1,36 +0,0 @@ -* Device tree bindings for the Qualcomm MSM vibrator - -Required properties: - - - compatible: Should be one of - "qcom,msm8226-vibrator" - "qcom,msm8974-vibrator" - - reg: the base address and length of the IO memory for the registers. - - pinctrl-names: set to default. - - pinctrl-0: phandles pointing to pin configuration nodes. See - Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt - - clock-names: set to pwm - - clocks: phandle of the clock. See - Documentation/devicetree/bindings/clock/clock-bindings.txt - - enable-gpios: GPIO that enables the vibrator. - -Optional properties: - - - vcc-supply: phandle to the regulator that provides power to the sensor. - -Example from a LG Nexus 5 (hammerhead) phone: - -vibrator@fd8c3450 { - reg = <0xfd8c3450 0x400>; - compatible = "qcom,msm8974-vibrator"; - - vcc-supply = <&pm8941_l19>; - - clocks = <&mmcc CAMSS_GP1_CLK>; - clock-names = "pwm"; - - enable-gpios = <&msmgpio 60 GPIO_ACTIVE_HIGH>; - - pinctrl-names = "default"; - pinctrl-0 = <&vibrator_pin>; -};
Signature · 1 line
2.24.1
Re: [PATCH v2 RESEND 1/2] dt-bindings: Input: remove msm-vibrator
Quoted 7 lines · Brian Masney
The address referenced in this binding is within the Qualcomm Clock namespace so let's drop the msm-vibrator bindings so that a more generic solution can be used instead. No one is currently using these bindings so this won't affect any users.
Signed-off-by Brian Masney <[email protected]>Acked-by Rob Herring <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry
PATCH RESEND v2 2/2 Input: remove msm-vibrator driver
In reply to Brian MasneyThe address referenced by this driver is within the Qualcomm Clock namespace so let's drop the msm-vibrator bindings so that a more generic solution can be used instead. No one is currently using driver so this won't affect any users.
--- drivers/input/misc/Kconfig | 10 -- drivers/input/misc/Makefile | 1 - drivers/input/misc/msm-vibrator.c | 281 ------------------------------ 3 files changed, 292 deletions(-) delete mode 100644 drivers/input/misc/msm-vibrator.c
drivers/input/misc/Kconfig +0 -10
@@ -117,16 +117,6 @@ config INPUT_E3X0_BUTTON To compile this driver as a module, choose M here: the module will be called e3x0_button. -config INPUT_MSM_VIBRATOR - tristate "Qualcomm MSM vibrator driver" - select INPUT_FF_MEMLESS - help - Support for the vibrator that is found on various Qualcomm MSM - SOCs. - - To compile this driver as a module, choose M here: the module - will be called msm_vibrator. - config INPUT_PCSPKR tristate "PC Speaker support" depends on PCSPKR_PLATFORM
drivers/input/misc/Makefile +0 -1
@@ -50,7 +50,6 @@ obj-$(CONFIG_INPUT_MAX8925_ONKEY) += max8925_onkey.o obj-$(CONFIG_INPUT_MAX8997_HAPTIC) += max8997_haptic.o obj-$(CONFIG_INPUT_MC13783_PWRBUTTON) += mc13783-pwrbutton.o obj-$(CONFIG_INPUT_MMA8450) += mma8450.o -obj-$(CONFIG_INPUT_MSM_VIBRATOR) += msm-vibrator.o obj-$(CONFIG_INPUT_PALMAS_PWRBUTTON) += palmas-pwrbutton.o obj-$(CONFIG_INPUT_PCAP) += pcap_keys.o obj-$(CONFIG_INPUT_PCF50633_PMU) += pcf50633-input.o
drivers/input/misc/msm-vibrator.c deleted +0 -281
281 lines not on this page · raw message
Signature · 1 line
2.24.1
Re: [PATCH v2 RESEND 2/2] Input: remove msm-vibrator driver
Quoted 6 lines · Brian Masney
The address referenced by this driver is within the Qualcomm Clock namespace so let's drop the msm-vibrator bindings so that a more generic solution can be used instead. No one is currently using driver so this won't affect any users.
Signed-off-by Brian Masney <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry