Merge "ARM: dts: msm: Add LCDB and WLED devices for PM7325B"

This commit is contained in:
qctecmdr 2021-01-12 08:24:51 -08:00 • committed by Gerrit - the friendly Code Review server
commit 713968e9d0
3 changed files with 99 additions and 12 deletions

View file

@ -24,17 +24,13 @@ First Level Node - LCDB module
"qcom,lcdb-pm660"
"qcom,lcdb-pmi632"
"qcom,lcdb-pm6150l"
"qcom,lcdb-pm7325b"
- reg
Usage: required
Value type: <prop-encoded-array>
Definition: Base address of the LCDB SPMI peripheral.
- qcom,pmic-revid
Usage: required
Value type: <phandle>
Definition: Phandle to the PMIC's revid node
- qcom,voltage-step-ramp
Usage: optional
Value type: <bool>
@ -49,6 +45,23 @@ First Level Node - LCDB module
Definition: Required to control the LDO power down delay.
Possible values are 0, 1, 4, 8.
- qcom,pwrup-delay-ms
Usage: optional
Value type: <u32>
Definition: Required to control the LDO power up delay.
Possible values are 0, 1, 4, 8.
- qcom,pwrup-config
Usage: optional
Value type: <u32>
Definition: Controls the order of powering up BOOST, LDO AND NCP
blocks. Appilcable for PM7325B. Possible values are: 0, 1, 2, 3, 4.
0 - Boost, LDO, NCP
1 - Boost, LDO
2 - Boost, NCP
3 - Boost only
4 - Boost, NCP, LDO
Touch-to-wake (TTW) properties:
TTW supports 2 modes of operation - HW and SW. In the HW mode the enable/disable
@ -141,8 +154,9 @@ Properties below are specific to LDO bias only.
- qcom,ldo-ilim-ma
Usage: optional
Value type: <u32>
Definition: Current limit (in mA) of the LDO bias.
Possible values are 110, 160, 210, 260, 310, 360, 410, 460.
Definition: Current limit (in mA) of the LDO bias. For PM7325B, possible
values are 35, 175, 280, 420, 455, 595, 700, 840. For other PMICs,
possible values are 110, 160, 210, 260, 310, 360, 410, 460.
- qcom,ldo-soft-start-us
Usage: optional
@ -150,7 +164,6 @@ Properties below are specific to LDO bias only.
Definition: Soft-start time (in uS) of the LDO bias.
Possible values are 0, 500, 1000, 2000.
NCP subnode properties:
Properties below are specific to NCP bias only.
@ -180,8 +193,9 @@ Properties below are specific to NCP bias only.
- qcom,ncp-ilim-ma
Usage: optional
Value type: <u32>
Definition: Current limit (in mA) of the NCP bias.
Possible values are 260, 460, 640, 810.
Definition: Current limit (in mA) of the NCP bias. For PM7325B, possible
values are 700, 80, 900, 1000. For other PMICs, possible values
are 260, 460, 640, 810.
- qcom,ncp-soft-start-us
Usage: optional
@ -221,11 +235,19 @@ Properties below are specific to BOOST subnode only.
Definition: Current threshold (in mA) at which pulse-skip is entered.
Possible values are 50, 60, 70, 80.
- qcom,bst-ps-threshold-mv
Usage: optional
Value type: <u32>
Definition: Current threshold (in mv) at which pulse-skip is entered.
Applicable for PM7325B. Possible values are 360, 384, 408, 432,
456, 480, 504, 528.
- qcom,bst-ilim-ma
Usage: optional
Value type: <u32>
Definition: Current limit (in mA) of the BOOST rail.
Possible values are 200 to 1600mA in 200mA steps.
Definition: Current limit (in mA) of the BOOST rail. For PM7325B, possible
possible values are 1130 to 2250mA in 160mA steps. For other PMICs,
possible values are 200 to 1600mA in 200mA steps.
- qcom,bst-headroom-mv
Usage: optional

View file

@ -53,6 +53,65 @@
qcom,vib-ldo-volt-uv = <3000000>;
qcom,disable-overdrive;
};
pm7325b_lcdb: qcom,lcdb@fd00 {
compatible = "qcom,lcdb-pm7325b";
#address-cells = <1>;
#size-cells = <0>;
reg = <0xfd00>;
interrupts = <0x3 0xfd 0x1 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "sc-irq";
lcdb_ldo_vreg: ldo {
label = "ldo";
regulator-name = "lcdb_ldo";
regulator-min-microvolt = <4400000>;
regulator-max-microvolt = <6000000>;
};
lcdb_ncp_vreg: ncp {
label = "ncp";
regulator-name = "lcdb_ncp";
regulator-min-microvolt = <4400000>;
regulator-max-microvolt = <6000000>;
};
lcdb_bst_vreg: bst {
label = "bst";
regulator-name = "lcdb_bst";
regulator-min-microvolt = <4700000>;
regulator-max-microvolt = <6400000>;
};
};
pm7325b_wled: qcom,wled@d800 {
compatible = "qcom,pm7325b-spmi-wled";
reg = <0xfb00>, <0xfc00>;
reg-names = "wled-ctrl-base", "wled-sink-base";
label = "backlight";
interrupts = <0x3 0xfb 0x1 IRQ_TYPE_EDGE_RISING>,
<0x3 0xfb 0x4 IRQ_TYPE_EDGE_BOTH>,
<0x3 0xfb 0x5 IRQ_TYPE_EDGE_BOTH>;
interrupt-names = "ovp-irq", "pre-flash-irq",
"flash-irq";
qcom,auto-calibration;
wled_flash: qcom,wled-flash {
label = "flash";
qcom,default-led-trigger = "wled_flash";
};
wled_torch: qcom,wled-torch {
label = "torch";
qcom,default-led-trigger = "wled_torch";
qcom,wled-torch-timer = <1200>;
};
wled_switch: qcom,wled-switch {
label = "switch";
qcom,default-led-trigger = "wled_switch";
};
};
};
};

View file

@ -182,6 +182,12 @@
};
};
&pm7325b_wled {
qcom,string-cfg = <3>;
qcom,leds-per-string = <8>;
qcom,fs-current-limit = <22500>;
};
&spmi_debug_bus {
status = "ok"
};