-
-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
34,071 additions
and
106 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* Copyright 2018 Google LLC. */ | ||
|
||
#include <dt-bindings/spmi/spmi.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
|
||
&spmi_bus { | ||
pm8005_lsid0: pmic@4 { | ||
compatible = "qcom,pm8005", "qcom,spmi-pmic"; | ||
reg = <0x4 SPMI_USID>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
pm8005_gpio: gpios@c000 { | ||
compatible = "qcom,pm8005-gpio", "qcom,spmi-gpio"; | ||
reg = <0xc000>; | ||
gpio-controller; | ||
gpio-ranges = <&pm8005_gpio 0 0 4>; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
}; | ||
|
||
pm8005_lsid1: pmic@5 { | ||
compatible = "qcom,pm8005", "qcom,spmi-pmic"; | ||
reg = <0x5 SPMI_USID>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* Copyright 2018 Google LLC. */ | ||
|
||
#include <dt-bindings/iio/qcom,spmi-vadc.h> | ||
#include <dt-bindings/input/linux-event-codes.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/spmi/spmi.h> | ||
#include <dt-bindings/thermal/thermal.h> | ||
|
||
/ { | ||
thermal-zones { | ||
pm8998 { | ||
polling-delay-passive = <250>; | ||
polling-delay = <1000>; | ||
|
||
thermal-sensors = <&pm8998_temp>; | ||
|
||
trips { | ||
pm8998_alert0: pm8998-alert0 { | ||
temperature = <105000>; | ||
hysteresis = <2000>; | ||
type = "passive"; | ||
}; | ||
pm8998_crit: pm8998-crit { | ||
temperature = <125000>; | ||
hysteresis = <2000>; | ||
type = "critical"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&spmi_bus { | ||
pm8998_lsid0: pmic@0 { | ||
compatible = "qcom,pm8998", "qcom,spmi-pmic"; | ||
reg = <0x0 SPMI_USID>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
pm8998_pon: pon@800 { | ||
compatible = "qcom,pm8998-pon"; | ||
|
||
reg = <0x800>; | ||
mode-bootloader = <0x2>; | ||
mode-recovery = <0x1>; | ||
|
||
pm8998_pwrkey: pwrkey { | ||
compatible = "qcom,pm8941-pwrkey"; | ||
interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; | ||
debounce = <15625>; | ||
bias-pull-up; | ||
linux,code = <KEY_POWER>; | ||
}; | ||
}; | ||
|
||
pm8998_temp: temp-alarm@2400 { | ||
compatible = "qcom,spmi-temp-alarm"; | ||
reg = <0x2400>; | ||
interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; | ||
io-channels = <&pm8998_adc ADC5_DIE_TEMP>; | ||
io-channel-names = "thermal"; | ||
#thermal-sensor-cells = <0>; | ||
}; | ||
|
||
pm8998_coincell: coincell@2800 { | ||
compatible = "qcom,pm8941-coincell"; | ||
reg = <0x2800>; | ||
|
||
status = "disabled"; | ||
}; | ||
|
||
pm8998_adc: adc@3100 { | ||
compatible = "qcom,spmi-adc-rev2"; | ||
reg = <0x3100>; | ||
interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
#io-channel-cells = <1>; | ||
|
||
adc-chan@6 { | ||
reg = <ADC5_DIE_TEMP>; | ||
label = "die_temp"; | ||
}; | ||
}; | ||
|
||
rtc@6000 { | ||
compatible = "qcom,pm8941-rtc"; | ||
reg = <0x6000>, <0x6100>; | ||
reg-names = "rtc", "alarm"; | ||
interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; | ||
}; | ||
|
||
pm8998_gpio: gpios@c000 { | ||
compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio"; | ||
reg = <0xc000>; | ||
gpio-controller; | ||
gpio-ranges = <&pm8998_gpio 0 0 26>; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
}; | ||
|
||
pm8998_lsid1: pmic@1 { | ||
compatible = "qcom,pm8998", "qcom,spmi-pmic"; | ||
reg = <0x1 SPMI_USID>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/spmi/spmi.h> | ||
|
||
&spmi_bus { | ||
pmi8998_lsid0: pmic@2 { | ||
compatible = "qcom,pmi8998", "qcom,spmi-pmic"; | ||
reg = <0x2 SPMI_USID>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
pmi8998_gpio: gpios@c000 { | ||
compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio"; | ||
reg = <0xc000>; | ||
gpio-controller; | ||
gpio-ranges = <&pmi8998_gpio 0 0 14>; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
interrupts = <0x2 0xc0 0 IRQ_TYPE_NONE>, | ||
<0x2 0xc1 0 IRQ_TYPE_NONE>, | ||
<0x2 0xc2 0 IRQ_TYPE_NONE>, | ||
<0x2 0xc4 0 IRQ_TYPE_NONE>, | ||
<0x2 0xc5 0 IRQ_TYPE_NONE>, | ||
<0x2 0xc7 0 IRQ_TYPE_NONE>, | ||
<0x2 0xc8 0 IRQ_TYPE_NONE>, | ||
<0x2 0xc9 0 IRQ_TYPE_NONE>, | ||
<0x2 0xca 0 IRQ_TYPE_NONE>, | ||
<0x2 0xcb 0 IRQ_TYPE_NONE>, | ||
<0x2 0xcd 0 IRQ_TYPE_NONE>; | ||
interrupt-names = "pmi8998_gpio1", "pmi8998_gpio2", | ||
"pmi8998_gpio3", "pmi8998_gpio5", | ||
"pmi8998_gpio6", "pmi8998_gpio8", | ||
"pmi8998_gpio9", "pmi8998_gpio10", | ||
"pmi8998_gpio11", "pmi8998_gpio12", | ||
"pmi8998_gpio14"; | ||
qcom,gpios-disallowed = <4 7 13>; | ||
|
||
// usb2_ext_5v_boost:usb2_ext_5v_boost_default { | ||
// output-low; | ||
// pins = "gpio10"; | ||
// function = "normal"; | ||
// power-source = <0x0>; | ||
// }; | ||
|
||
// usb2_id_det:usb2_id_det_default { | ||
// pins = "gpio9"; | ||
// function = "normal"; | ||
// power-source = <0x0>; | ||
// input-enable; | ||
// bias-pull-up; | ||
// }; | ||
|
||
// usb2_vbus_det:usb2_vbus_det_default { | ||
// pins = "gpio8"; | ||
// function = "normal"; | ||
// bias-pull-down; | ||
// power-source = <0x1>; | ||
// input-enable; | ||
// }; | ||
|
||
// usb2_vbus_boost:usb2_vbus_boost_default { | ||
// output-low; | ||
// pins = "gpio2"; | ||
// function = "normal"; | ||
// power-source = <0x0>; | ||
// }; | ||
}; | ||
}; | ||
|
||
pmi8998_lsid1: pmic@3 { | ||
compatible = "qcom,pmi8998", "qcom,spmi-pmic"; | ||
reg = <0x3 SPMI_USID>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
lpg { | ||
compatible = "qcom,pmi8998-lpg"; | ||
|
||
status = "disabled"; | ||
}; | ||
|
||
labibb { | ||
compatible = "qcom,pmi8998-lab-ibb"; | ||
|
||
ibb: ibb { | ||
regulator-always-on; | ||
interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>; | ||
}; | ||
|
||
lab: lab { | ||
regulator-always-on; | ||
interrupts = <0x3 0xde 0x0 IRQ_TYPE_EDGE_RISING>; | ||
}; | ||
}; | ||
|
||
pmi8998_wled: qcom,leds@d800 { | ||
compatible = "qcom,pmi8998-wled"; | ||
reg = <0xd800 0xd900>; | ||
interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>, | ||
<0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>; | ||
interrupt-names = "ovp-irq", "sc-irq"; | ||
label = "backlight"; | ||
|
||
qcom,switching-freq = <800>; | ||
qcom,ovp-millivolt = <29600>; | ||
qcom,current-boost-limit = <970>; | ||
qcom,current-limit-microamp = <25000>; | ||
qcom,num-strings = <4>; | ||
qcom,enabled-strings = <0 1 2 3>; | ||
qcom,qcom,external-pfet; | ||
|
||
status = "disabled"; | ||
}; | ||
|
||
}; | ||
}; |
Binary file not shown.
Oops, something went wrong.