mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
ARM: dts: msm: Add pmic platform specific changes for shima
Add vol_up and add other PMIC platform specific changes for shima idp and qrd files. Change-Id: Idb382397af351fede6159f1dc8d3e2fcee2998f3
This commit is contained in:
parent
fff5a4aa20
commit
35aea91174
2 changed files with 153 additions and 0 deletions
|
|
@ -1,2 +1,58 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include "shima-pmic-overlay.dtsi"
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pm8350_gpios 6 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spmi_debug_bus {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&spmi_glink_debug {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&pm8350b_haptics {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&pm8350c_switch0 {
|
||||
qcom,led-mask = <9>; /* Channels 1 & 4 */
|
||||
qcom,symmetry-en;
|
||||
};
|
||||
|
||||
&pm8350c_switch1 {
|
||||
qcom,led-mask = <6>; /* Channels 2 & 3 */
|
||||
qcom,symmetry-en;
|
||||
};
|
||||
|
||||
&pm8350c_switch2 {
|
||||
qcom,led-mask = <15>; /* All Channels */
|
||||
qcom,symmetry-en;
|
||||
};
|
||||
|
||||
&pm8350c_flash {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&battery_charger {
|
||||
qcom,thermal-mitigation = <3000000 1500000 1000000 500000>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,2 +1,99 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include "shima-pmic-overlay.dtsi"
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pm8350_gpios 6 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spmi_debug_bus {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&spmi_glink_debug {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&pm8350b_haptics {
|
||||
qcom,vmax-mv = <1300>;
|
||||
qcom,lra-period-us = <5880>;
|
||||
status = "ok"
|
||||
|
||||
effect_0 {
|
||||
/* CLICK */
|
||||
qcom,wf-vmax-mv = <1800>;
|
||||
qcom,wf-pattern-period-us = <5880>;
|
||||
};
|
||||
|
||||
effect_1 {
|
||||
/* DOUBLE_CLICK */
|
||||
qcom,wf-vmax-mv = <1800>;
|
||||
qcom,wf-pattern-period-us = <5880>;
|
||||
};
|
||||
|
||||
effect_2 {
|
||||
/* TICK */
|
||||
qcom,wf-vmax-mv = <1800>;
|
||||
qcom,wf-pattern-period-us = <5880>;
|
||||
};
|
||||
|
||||
effect_3 {
|
||||
/* THUD */
|
||||
qcom,wf-vmax-mv = <1800>;
|
||||
qcom,wf-pattern-period-us = <5880>;
|
||||
};
|
||||
|
||||
effect_4 {
|
||||
/* POP */
|
||||
qcom,wf-vmax-mv = <1800>;
|
||||
qcom,wf-pattern-period-us = <5880>;
|
||||
};
|
||||
|
||||
effect_5 {
|
||||
/* HEAVY CLICK */
|
||||
qcom,wf-vmax-mv = <1800>;
|
||||
qcom,wf-pattern-period-us = <5880>;
|
||||
};
|
||||
};
|
||||
|
||||
&pm8350c_switch0 {
|
||||
qcom,led-mask = <9>; /* Channels 1 & 4 */
|
||||
qcom,symmetry-en;
|
||||
};
|
||||
|
||||
&pm8350c_switch1 {
|
||||
qcom,led-mask = <6>; /* Channels 2 & 3 */
|
||||
qcom,symmetry-en;
|
||||
};
|
||||
|
||||
&pm8350c_switch2 {
|
||||
qcom,led-mask = <15>; /* All Channels */
|
||||
qcom,symmetry-en;
|
||||
};
|
||||
|
||||
&pm8350c_flash {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&battery_charger {
|
||||
qcom,thermal-mitigation = <10000000 9500000 9000000 8500000 8000000
|
||||
7500000 7000000 6500000 6000000 5500000
|
||||
5000000 4500000 4000000 3500000 3000000
|
||||
2500000 2000000 1500000 1000000 500000>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue