mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 05:00:27 +00:00
ARM: dts: msm: Add initial device tree for monaco
Add initial device tree support for monaco target. Change-Id: I3d84a05b36c8d6994dad15c6487d2d3c8c8bb2e2
This commit is contained in:
@@ -107,6 +107,9 @@ SoCs:
|
||||
- SA410M
|
||||
compatible = "qcom,sa410m"
|
||||
|
||||
- MONACO
|
||||
compatible = "qcom,monaco", "qcom,monacop"
|
||||
|
||||
Generic board variants:
|
||||
|
||||
- CDP device:
|
||||
|
||||
@@ -10,6 +10,7 @@ Required properties:
|
||||
qcom,wcn3990
|
||||
qcom,qca6390
|
||||
qcom,qca6490
|
||||
qcom,qcc5100
|
||||
- qcom,bt-reset-gpio: GPIO pin to bring BT Controller out of reset
|
||||
|
||||
Optional properties:
|
||||
|
||||
@@ -15,6 +15,7 @@ Required properties :
|
||||
"qcom,cinder-debugcc"
|
||||
"qcom,khaje-debugcc"
|
||||
"qcom,sc8180x-debugcc"
|
||||
"qcom,monaco-debugcc"
|
||||
|
||||
- qcom,gcc: phandle to the GCC device node.
|
||||
- qcom,videocc: phandle to the Video CC device node.
|
||||
|
||||
@@ -9,13 +9,22 @@ Required properties :
|
||||
"qcom,lahaina-dispcc"
|
||||
"qcom,shima-dispcc"
|
||||
"qcom,holi-dispcc"
|
||||
"qcom,waipio-dispcc"
|
||||
"qcom,diwali-dispcc"
|
||||
"qcom,kalama-dispcc"
|
||||
"qcom,sm8150-dispcc"
|
||||
"qcom,sm8150-dispcc-v2"
|
||||
"qcom,khaje-dispcc"
|
||||
"qcom,sc8180x-dispcc"
|
||||
"qcom,yupik-dispcc"
|
||||
"qcom,scshrike-dispcc"
|
||||
"qcom,scshrike-dispcc-v2"
|
||||
"qcom,sm6150-dispcc"
|
||||
"qcom,sa6155-dispcc"
|
||||
"qcom,monaco-dispcc"
|
||||
"qcom,blair-dispcc"
|
||||
"qcom,scuba-dispcc"
|
||||
"qcom,direwolf-dispcc0"
|
||||
"qcom,direwolf-dispcc1"
|
||||
"qcom,bengal-dispcc"
|
||||
"qcom,lemans-dispcc0"
|
||||
"qcom,lemans-dispcc1"
|
||||
"qcom,kona-dispcc"
|
||||
|
||||
- reg : shall contain base register location and length.
|
||||
- #clock-cells : from common clock binding, shall contain 1.
|
||||
|
||||
@@ -38,6 +38,7 @@ Required properties :
|
||||
"qcom,cinder-gcc"
|
||||
"qcom,khaje-gcc"
|
||||
"qcom,gcc-sc8180x"
|
||||
"qcom,monaco-gcc"
|
||||
|
||||
- reg : shall contain base register location and length
|
||||
- vdd_cx-supply: The vdd_cx logic rail supply.
|
||||
|
||||
@@ -14,6 +14,7 @@ Required properties :
|
||||
"qcom,sa8155-gpucc",
|
||||
"qcom,khaje-gpucc",
|
||||
"qcom,sc8180x-gpucc".
|
||||
"qcom,monaco-gpucc",
|
||||
|
||||
- reg: shall contain base register offset and size.
|
||||
- reg-names: names of registers listed in the same order as in the reg property.
|
||||
|
||||
@@ -27,6 +27,7 @@ Required properties :
|
||||
"qcom,rpmcc-sdm660", "qcom,rpmcc"
|
||||
"qcom,rpmcc-holi", "qcom,rpmcc"
|
||||
"qcom,rpmcc-khaje", "qcom,rpmcc"
|
||||
"qcom,rpmcc-monaco", "qcom,rpmcc"
|
||||
|
||||
- #clock-cells : shall contain 1
|
||||
|
||||
|
||||
46
bindings/interconnect/qcom,monaco.txt
Normal file
46
bindings/interconnect/qcom,monaco.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
QTI MONACO Network-On-Chip interconnect driver binding
|
||||
-----------------------------------------------------------
|
||||
|
||||
Required properties :
|
||||
- compatible : shall contain only one of the following:
|
||||
"qcom,monaco-bimc",
|
||||
"qcom,monaco-system_noc",
|
||||
"qcom,monaco-config_noc",
|
||||
"qcom,monaco-clk_virt",
|
||||
"qcom,monaco-mmnrt_virt",
|
||||
"qcom,monaco-mmrt_virt",
|
||||
- #interconnect-cells : should contain 1
|
||||
|
||||
reg : specifies the physical base address and size of registers
|
||||
clocks : list of phandles and specifiers to all interconnect bus clocks
|
||||
clock-names : clock names should include both "bus" and "bus_a"
|
||||
|
||||
The following are optional properties:
|
||||
|
||||
qcom,util-factor : Parameter that represents the DDR utilization factor
|
||||
to be used in aggregation scheme. It is represented as
|
||||
actual util-factor * 100.
|
||||
|
||||
Examples:
|
||||
|
||||
soc {
|
||||
...
|
||||
system_noc: interconnect@1880000 {
|
||||
reg = <0x1880000 0x5e200>;
|
||||
compatible = "qcom,monaco-system_noc";
|
||||
qcom,util-factor = <142>;
|
||||
#interconnect-cells = <1>;
|
||||
clock-names = "bus", "bus_a";
|
||||
clocks = <&rpmcc RPM_SMD_SNOC_CLK>,
|
||||
<&rpmcc RPM_SMD_SNOC_A_CLK>;
|
||||
};
|
||||
|
||||
config_noc: interconnect@1900000 {
|
||||
reg = <0x1900000 0xa400>;
|
||||
compatible = "qcom,monaco-config_noc";
|
||||
#interconnect-cells = <1>;
|
||||
clock-names = "bus", "bus_a";
|
||||
clocks = <&rpmcc RPM_SMD_CNOC_CLK>,
|
||||
<&rpmcc RPM_SMD_CNOC_A_CLK>;
|
||||
};
|
||||
};
|
||||
77
bindings/interrupt-controller/qcom,mpm.txt
Normal file
77
bindings/interrupt-controller/qcom,mpm.txt
Normal file
@@ -0,0 +1,77 @@
|
||||
QTI MPM interrupt controller
|
||||
MPM (MSM sleep Power Manager) is QTI's platform parent
|
||||
interrupt controller. It manages subsystem wakeups and
|
||||
resources during sleep. This driver marks the wakeup
|
||||
interrupts in APSS such that it monitors the interrupts
|
||||
when the system is asleep, wakes up the APSS when one
|
||||
of these interrupts occur and replays it to the subsystem
|
||||
interrupt controller after it becomes operational.
|
||||
|
||||
Platform interrupt controller MPM is next in hierarchy,
|
||||
followed by others.
|
||||
|
||||
This defines 2 interrupt controllers to monitor the
|
||||
interrupts when system is asleep:
|
||||
|
||||
One to monitor the wakeup capable gic interrupts called
|
||||
wakegic.
|
||||
|
||||
Properties:
|
||||
|
||||
- compatible:
|
||||
Usage: required
|
||||
Value type: <string>
|
||||
Definition: Should contain "qcom,mpm-gic" and the respective
|
||||
target compatible flag from below ones.
|
||||
"qcom,mpm-gic-holi"
|
||||
"qcom,mpm-gic-scuba"
|
||||
"qcom,mpm-gic-sdxnightjar"
|
||||
"qcom,mpm-gic-monaco"
|
||||
"qcom,mpm-gic-qcs405"
|
||||
"qcom,mpm-gic-bengal"
|
||||
|
||||
- interrupts:
|
||||
Usage: required
|
||||
Value type: <prop-encoded-array>
|
||||
Definition: should specify the IRQ used by remote processor to
|
||||
wakeup APSS.
|
||||
|
||||
- interrupt-parent:
|
||||
Usage: required
|
||||
Value type: <phandle>
|
||||
Definition: Specifies the interrupt parent necessary for
|
||||
hierarchical domain to operate.
|
||||
|
||||
- interrupt-controller:
|
||||
Usage: required
|
||||
Value type: <bool>
|
||||
Definition: Identifies the node as an interrupt controller.
|
||||
|
||||
- reg:
|
||||
Usage: required
|
||||
Value type: <prop-encoded-array>
|
||||
Definition: Specifies the base physical address to trigger an
|
||||
interrupt into remote processor.
|
||||
|
||||
-reg-names:
|
||||
Usage: required
|
||||
Value type: <string>, <string>
|
||||
Definition: Specifies the address field names.
|
||||
|
||||
- qcom,num-mpm-irqs:
|
||||
Usage: optional
|
||||
Value type: <value>
|
||||
Defination: Specifies the number of interrupts supported.
|
||||
|
||||
Example:
|
||||
|
||||
wakegic: wake-gic@7781b8 {
|
||||
compatible = "qcom,mpm", "qcom,mpm-gic-holi";
|
||||
interrupts = <GIC_SPI 171 IRQ_TYPE_EDGE_RISING>;
|
||||
reg = <0x601d4 0x1000>,
|
||||
<0xb011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
|
||||
reg-names = "vmpm", "ipc";
|
||||
interrupt-controller;
|
||||
interrupt-parent = <&intc>;
|
||||
#interrupt-cells = <3>;
|
||||
};
|
||||
@@ -32,6 +32,7 @@ properties:
|
||||
- qcom,sm8150-apss-shared
|
||||
- qcom,sm8150-spcs-global
|
||||
- qcom,bengal-apcs-hmss-global
|
||||
- qcom,monaco-apcs-hmss-global
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
|
||||
187
bindings/pinctrl/qcom,monaco-pinctrl.yaml
Normal file
187
bindings/pinctrl/qcom,monaco-pinctrl.yaml
Normal file
@@ -0,0 +1,187 @@
|
||||
Qualcomm Technologies, Inc. MONACO TLMM block
|
||||
|
||||
This binding describes the Top Level Mode Multiplexer block found in the
|
||||
MONACO platform.
|
||||
|
||||
- compatible:
|
||||
Usage: required
|
||||
Value type: <string>
|
||||
Definition: must be "qcom,monaco-pinctrl"
|
||||
|
||||
- reg:
|
||||
Usage: required
|
||||
Value type: <prop-encoded-array>
|
||||
Definition: the base address and size of the TLMM register space.
|
||||
|
||||
- interrupts:
|
||||
Usage: required
|
||||
Value type: <prop-encoded-array>
|
||||
Definition: should specify the TLMM summary IRQ.
|
||||
|
||||
- interrupt-controller:
|
||||
Usage: required
|
||||
Value type: <none>
|
||||
Definition: identifies this node as an interrupt controller
|
||||
|
||||
- #interrupt-cells:
|
||||
Usage: required
|
||||
Value type: <u32>
|
||||
Definition: must be 2. Specifying the pin number and flags, as defined
|
||||
in <dt-bindings/interrupt-controller/irq.h>
|
||||
|
||||
- gpio-controller:
|
||||
Usage: required
|
||||
Value type: <none>
|
||||
Definition: identifies this node as a gpio controller
|
||||
|
||||
- #gpio-cells:
|
||||
Usage: required
|
||||
Value type: <u32>
|
||||
Definition: must be 2. Specifying the pin number and flags, as defined
|
||||
in <dt-bindings/gpio/gpio.h>
|
||||
|
||||
Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
|
||||
a general description of GPIO and interrupt bindings.
|
||||
|
||||
Please refer to pinctrl-bindings.txt in this directory for details of the
|
||||
common pinctrl bindings used by client devices, including the meaning of the
|
||||
phrase "pin configuration node".
|
||||
|
||||
The pin configuration nodes act as a container for an arbitrary number of
|
||||
subnodes. Each of these subnodes represents some desired configuration for a
|
||||
pin, a group, or a list of pins or groups. This configuration can include the
|
||||
mux function to select on those pin(s)/group(s), and various pin configuration
|
||||
parameters, such as pull-up, drive strength, etc.
|
||||
|
||||
|
||||
PIN CONFIGURATION NODES:
|
||||
|
||||
|
||||
The name of each subnode is not important; all subnodes should be enumerated
|
||||
and processed purely based on their content.
|
||||
|
||||
Each subnode only affects those parameters that are explicitly listed. In
|
||||
other words, a subnode that lists a mux function but no pin configuration
|
||||
parameters implies no information about any pin configuration parameters.
|
||||
Similarly, a pin subnode that describes a pullup parameter implies no
|
||||
information about e.g. the mux function.
|
||||
|
||||
|
||||
The following generic properties as defined in pinctrl-bindings.txt are valid
|
||||
to specify in a pin configuration subnode:
|
||||
|
||||
- pins:
|
||||
Usage: required
|
||||
Value type: <string-array>
|
||||
Definition: List of gpio pins affected by the properties specified in
|
||||
this subnode.
|
||||
|
||||
Valid pins are:
|
||||
gpio0-gpio112
|
||||
Supports mux, bias and drive-strength
|
||||
|
||||
sdc1_clk, sdc1_cmd, sdc1_data sdc2_clk, sdc2_cmd,
|
||||
sdc2_data sdc1_rclk
|
||||
Supports bias and drive-strength
|
||||
|
||||
- function:
|
||||
Usage: required
|
||||
Value type: <string>
|
||||
Definition: Specify the alternative function to be configured for the
|
||||
specified pins. Functions are only valid for gpio pins.
|
||||
Valid values are:
|
||||
|
||||
blsp_uart1, blsp_spi1, blsp_i2c1, blsp_uim1, atest_tsens,
|
||||
bimc_dte1, dac_calib0, blsp_spi8, blsp_uart8, blsp_uim8,
|
||||
qdss_cti_trig_out_b, bimc_dte0, dac_calib1, qdss_cti_trig_in_b,
|
||||
dac_calib2, atest_tsens2, atest_usb1, blsp_spi10, blsp_uart10,
|
||||
blsp_uim10, atest_bbrx1, atest_usb13, atest_bbrx0, atest_usb12,
|
||||
mdp_vsync, edp_lcd, blsp_i2c10, atest_gpsadc1, atest_usb11,
|
||||
atest_gpsadc0, edp_hot, atest_usb10, m_voc, dac_gpio, atest_char,
|
||||
cam_mclk, pll_bypassnl, qdss_stm7, blsp_i2c8, qdss_tracedata_b,
|
||||
pll_reset, qdss_stm6, qdss_stm5, qdss_stm4, atest_usb2, cci_i2c,
|
||||
qdss_stm3, dac_calib3, atest_usb23, atest_char3, dac_calib4,
|
||||
qdss_stm2, atest_usb22, atest_char2, qdss_stm1, dac_calib5,
|
||||
atest_usb21, atest_char1, dbg_out, qdss_stm0, dac_calib6,
|
||||
atest_usb20, atest_char0, dac_calib10, qdss_stm10,
|
||||
qdss_cti_trig_in_a, cci_timer4, blsp_spi6, blsp_uart6, blsp_uim6,
|
||||
blsp2_spi, qdss_stm9, qdss_cti_trig_out_a, dac_calib11,
|
||||
qdss_stm8, cci_timer0, qdss_stm13, dac_calib7, cci_timer1,
|
||||
qdss_stm12, dac_calib8, cci_timer2, blsp1_spi, qdss_stm11,
|
||||
dac_calib9, cci_timer3, cci_async, dac_calib12, blsp_i2c6,
|
||||
qdss_tracectl_a, dac_calib13, qdss_traceclk_a, dac_calib14,
|
||||
dac_calib15, hdmi_rcv, dac_calib16, hdmi_cec, pwr_modem,
|
||||
dac_calib17, hdmi_ddc, pwr_nav, dac_calib18, pwr_crypto,
|
||||
dac_calib19, hdmi_hot, dac_calib20, dac_calib21, pci_e0,
|
||||
dac_calib22, dac_calib23, dac_calib24, tsif1_sync, dac_calib25,
|
||||
sd_write, tsif1_error, blsp_spi2, blsp_uart2, blsp_uim2,
|
||||
qdss_cti, blsp_i2c2, blsp_spi3, blsp_uart3, blsp_uim3, blsp_i2c3,
|
||||
uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi, blsp_i2c9,
|
||||
blsp_spi7, blsp_uart7, blsp_uim7, qdss_tracedata_a, blsp_i2c7,
|
||||
qua_mi2s, gcc_gp1_clk_a, ssc_irq, uim4, blsp_spi11, blsp_uart11,
|
||||
blsp_uim11, gcc_gp2_clk_a, gcc_gp3_clk_a, blsp_i2c11, cri_trng0,
|
||||
cri_trng1, cri_trng, qdss_stm18, pri_mi2s, qdss_stm17, blsp_spi4,
|
||||
blsp_uart4, blsp_uim4, qdss_stm16, qdss_stm15, blsp_i2c4,
|
||||
qdss_stm14, dac_calib26, spkr_i2s, audio_ref, lpass_slimbus,
|
||||
isense_dbg, tsense_pwm1, tsense_pwm2, btfm_slimbus, ter_mi2s,
|
||||
qdss_stm22, qdss_stm21, qdss_stm20, qdss_stm19, gcc_gp1_clk_b,
|
||||
sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp2_clk_b,
|
||||
gcc_gp3_clk_b, blsp_i2c5, blsp_spi12, blsp_uart12, blsp_uim12,
|
||||
qdss_stm25, qdss_stm31, blsp_i2c12, qdss_stm30, qdss_stm29,
|
||||
tsif1_clk, qdss_stm28, tsif1_en, tsif1_data, sdc4_cmd, qdss_stm27,
|
||||
qdss_traceclk_b, tsif2_error, sdc43, vfr_1, qdss_stm26, tsif2_clk,
|
||||
sdc4_clk, qdss_stm24, tsif2_en, sdc42, qdss_stm23, qdss_tracectl_b,
|
||||
sd_card, tsif2_data, sdc41, tsif2_sync, sdc40, mdp_vsync_p_b,
|
||||
ldo_en, mdp_vsync_s_b, ldo_update, blsp11_uart_tx_b, blsp11_uart_rx_b,
|
||||
blsp11_i2c_sda_b, prng_rosc, blsp11_i2c_scl_b, uim2, uim1, uim_batt,
|
||||
pci_e2, pa_indicator, adsp_ext, ddr_bist, qdss_tracedata_11,
|
||||
qdss_tracedata_12, modem_tsync, nav_dr, nav_pps, pci_e1, gsm_tx,
|
||||
qspi_cs, ssbi2, ssbi1, mss_lte, qspi_clk, qspi0, qspi1, qspi2, qspi3,
|
||||
gpio
|
||||
|
||||
- bias-disable:
|
||||
Usage: optional
|
||||
Value type: <none>
|
||||
Definition: The specified pins should be configured as no pull.
|
||||
|
||||
- bias-pull-down:
|
||||
Usage: optional
|
||||
Value type: <none>
|
||||
Definition: The specified pins should be configured as pull down.
|
||||
|
||||
- bias-pull-up:
|
||||
Usage: optional
|
||||
Value type: <none>
|
||||
Definition: The specified pins should be configured as pull up.
|
||||
|
||||
- output-high:
|
||||
Usage: optional
|
||||
Value type: <none>
|
||||
Definition: The specified pins are configured in output mode, driven
|
||||
high.
|
||||
Not valid for sdc pins.
|
||||
|
||||
- output-low:
|
||||
Usage: optional
|
||||
Value type: <none>
|
||||
Definition: The specified pins are configured in output mode, driven
|
||||
low.
|
||||
Not valid for sdc pins.
|
||||
|
||||
- drive-strength:
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Selects the drive strength for the specified pins, in mA.
|
||||
Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
|
||||
|
||||
Example:
|
||||
|
||||
tlmm: pinctrl@500000 {
|
||||
compatible = "qcom,monaco-pinctrl";
|
||||
reg = <0x500000 0x300000>;
|
||||
interrupts = <0 227 0>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
};
|
||||
@@ -51,6 +51,7 @@ PMIC's from Qualcomm.
|
||||
"qcom,pm8550vs-gpio"
|
||||
"qcom,pmk8550-gpio"
|
||||
"qcom,pmr735d-gpio"
|
||||
"qcom,pm5100-gpio"
|
||||
|
||||
And must contain either "qcom,spmi-gpio" or "qcom,ssbi-gpio"
|
||||
if the device is on an spmi bus or an ssbi bus respectively
|
||||
@@ -155,6 +156,7 @@ to specify in a pin configuration subnode:
|
||||
gpio1-gpio6 for pm8550vs
|
||||
gpio1-gpio6 for pmk8550
|
||||
gpio1-gpio2 for pmr735d
|
||||
gpio1-gpio16 for pm5100
|
||||
|
||||
- function:
|
||||
Usage: required
|
||||
|
||||
120
bindings/power/supply/qcom/qcom,qbg.yaml
Normal file
120
bindings/power/supply/qcom/qcom,qbg.yaml
Normal file
@@ -0,0 +1,120 @@
|
||||
Qualcomm Technologies, Inc. Battery Gauge (QBG) binding
|
||||
|
||||
description: |
|
||||
Qualcomm Technologies, Inc. Battery Gauge (QBG) uses the periodic samples of
|
||||
battery voltage and current to determine the battery state-of-charge (SOC)
|
||||
and supports other battery management features.
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: qcom,qbg
|
||||
|
||||
reg:
|
||||
description: Base address of QBG MAIN peripheral.
|
||||
maxItems: 1
|
||||
|
||||
interrupts:
|
||||
description: Specifies the interrupts for nvmem devices used by QBG.
|
||||
maxItems: 1
|
||||
|
||||
interrupt-names:
|
||||
description: Specifies the interrupt names for nvmem devices used by QBG.
|
||||
minItems: 1
|
||||
items:
|
||||
- const: qbg-sdam
|
||||
$ref: /schemas/types.yaml#/definitions/string-array
|
||||
|
||||
qcom,num-data-sdams:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: Number of SDAMs used for storing QBG FIFO data.
|
||||
|
||||
qcom,sdam-base:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: Base address of QBG SDAM peripheral.
|
||||
|
||||
qcom,vbat-cutoff-mv:
|
||||
allOf:
|
||||
- $ref: "/schemas/types.yaml#/definitions/uint32"
|
||||
description: The battery voltage threshold (in mV) at which the battery
|
||||
power cuts off. The SOC is forced to 0 when battery voltage reaches
|
||||
this value.
|
||||
default: 3100
|
||||
|
||||
qcom,ibat-cutoff-ma:
|
||||
allOf:
|
||||
- $ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: The battery current threshold (in mA) at which the battery
|
||||
power cuts off. The SOC is forced to 0 when battery current reaches
|
||||
this value.
|
||||
default: 150
|
||||
|
||||
qcom,vph-min-mv:
|
||||
allOf:
|
||||
- $ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: Minimum sustainable system power (in mV).
|
||||
default: 2700
|
||||
|
||||
qcom,iterm-ma:
|
||||
allOf:
|
||||
- $ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: The battery current (in mA) at which the QBG algorithm
|
||||
converges the SOC to 100% during charging and can be used to terminate
|
||||
charging.
|
||||
default: 100
|
||||
|
||||
qcom,rconn-mohm:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: Resistance of the battery connector in mOhms.
|
||||
|
||||
nvmem-cell-names:
|
||||
minItems: 2
|
||||
maxItems: 3
|
||||
items:
|
||||
- const: qbg_debug_mask_low
|
||||
- const: qbg_debug_mask_high
|
||||
- const: skip_esr_state
|
||||
|
||||
nvmem-cells:
|
||||
minItems: 2
|
||||
minItems: 3
|
||||
description: |
|
||||
Use nvmem cell device to indicate SDAM register.
|
||||
qbg_debug_mask_low/qbg_debug_mask_high used to store the qbg debug mask
|
||||
skip_esr_state used to get GPS de-modulating status
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- interrupt-names
|
||||
- interrupts
|
||||
- qcom,num-data-sdams
|
||||
- qcom,sdam-base
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
spmi_bus {
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <4>;
|
||||
|
||||
qcom,pm5100@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
qbg@4f00 {
|
||||
compatible = "qcom,qbg";
|
||||
reg = <0x4f00>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
interrupt-names = "qbg-sdam";
|
||||
interrupts = <0x0 0x76 0x1 IRQ_TYPE_EDGE_RISING>;
|
||||
qcom,num-data-sdams = <6>;
|
||||
qcom,sdam-base = <0x7600>;
|
||||
nvmem-cell-names = "qbg_debug_mask_low", "qbg_debug_mask_high";
|
||||
nvmem-cells = <&qbg_debug_mask_low>, <&qbg_debug_mask_high>;
|
||||
};
|
||||
};
|
||||
};
|
||||
...
|
||||
379
bindings/power/supply/qcom/qpnp-smblite.txt
Normal file
379
bindings/power/supply/qcom/qpnp-smblite.txt
Normal file
@@ -0,0 +1,379 @@
|
||||
Qualcomm Technologies, Inc. SMBLITE Charger Specific Bindings
|
||||
|
||||
SMBLITE Charger is an efficient programmable battery charger capable of charging a
|
||||
lithium-ion battery over micro-USB or USB Type-C.
|
||||
|
||||
=======================
|
||||
Required Node Structure
|
||||
=======================
|
||||
|
||||
SMBLITE Charger must be described in two levels of devices nodes.
|
||||
|
||||
===================================
|
||||
First Level Node - SMBLITE Charger
|
||||
===================================
|
||||
|
||||
Charger specific properties:
|
||||
- compatible
|
||||
Usage: required
|
||||
Value type: <string>
|
||||
Definition: "qcom,qpnp-smblite" for SMBLITE on PM2250.
|
||||
"qcom,qpnp-pm5100-smblite" for SMBLITE on PM5100.
|
||||
|
||||
- qcom,pmic-revid
|
||||
Usage: required
|
||||
Value type: phandle
|
||||
Definition: Should specify the phandle of PMI's revid module. This is used to
|
||||
identify the PMI subtype.
|
||||
|
||||
- io-channels
|
||||
- io-channel-names
|
||||
Usage: optional
|
||||
Value type: <phandle>
|
||||
Definition: For details about IIO bindings see:
|
||||
Documentation/devicetree/bindings/iio/iio-bindings.txt
|
||||
|
||||
- qcom,batteryless-platform
|
||||
Usage: optional
|
||||
Value type: <empty>
|
||||
Definition: Boolean flag which indicates that the platform does not have a
|
||||
battery, and therefore charging should be disabled. In
|
||||
addition battery properties will be faked such that the device
|
||||
assumes normal operation.
|
||||
|
||||
- qcom,fcc-max-ua
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies the maximum fast charge current in micro-amps in
|
||||
battery profile.
|
||||
If the value is not present, 1Amp is used as default.
|
||||
|
||||
- qcom,fv-max-uv
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies the maximum float voltage in micro-volts in
|
||||
battery profile.
|
||||
If the value is not present, 4.35V is used as default.
|
||||
|
||||
- qcom,usb-icl-ua
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies the USB input current limit in micro-amps.
|
||||
If the value is not present, 1.5Amps is used as default.
|
||||
|
||||
- qcom,thermal-mitigation
|
||||
Usage: optional
|
||||
Value type: Array of <u32>
|
||||
Definition: Array of fast charge current limit values for
|
||||
different system thermal mitigation levels.
|
||||
This should be a flat array that denotes the
|
||||
maximum charge current in mA for each thermal
|
||||
level.
|
||||
|
||||
- qcom,chg-inhibit-threshold-mv
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Charge inhibit threshold in milli-volts. Charging will be
|
||||
inhibited when the battery voltage is within this threshold
|
||||
from Vfloat at charger insertion. If this is not specified
|
||||
then charge inhibit will be disabled by default.
|
||||
Allowed values are: 50, 100, 200, 300.
|
||||
|
||||
- qcom,chg-term-src
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specify either the ADC or analog comparators to be used in order
|
||||
to set threshold values for charge termination current.
|
||||
0 - Unspecified
|
||||
1 - Select ADC comparator
|
||||
2 - Select ANALOG comparator
|
||||
|
||||
- qcom,chg-term-current-ma
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: When ADC comparator is selected as qcom,chg-term-src, this
|
||||
parameter should be set to the desired upper threshold.
|
||||
|
||||
- qcom,chg-term-base-current-ma
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: When ADC comparator is selected as qcom,chg-term-src, this
|
||||
parameter should be set to the desired lower threshold.
|
||||
|
||||
- qcom,auto-recharge-soc
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies the SOC threshold at which the charger will
|
||||
restart charging after termination. The value specified
|
||||
ranges from 0 - 100. The feature is enabled if this
|
||||
property is specified with a valid SOC value.
|
||||
|
||||
- qcom,auto-recharge-vbat-mv
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies the battery voltage threshold at which the charger
|
||||
will restart charging after termination. The value specified
|
||||
is in milli-volts.
|
||||
|
||||
- qcom,suspend-input-on-debug-batt
|
||||
Usage: optional
|
||||
Value type: <empty>
|
||||
Definition: Boolean flag which when present enables input suspend for
|
||||
debug battery.
|
||||
|
||||
- qcom,fake-chg-status-on-debug-batt
|
||||
Usage: optional
|
||||
Value type: <empty>
|
||||
Definition: Boolean flag which when present shows charging status as
|
||||
unknown for debug battery. This needs to be specified only if
|
||||
the device needs to be kept powered on always with
|
||||
"svc power stayon true".
|
||||
|
||||
- qcom,typec-legacy-rp-icl
|
||||
Usage: optional
|
||||
Value type: bool
|
||||
Definition: Boolean property to enable setting ICL based on Rp for
|
||||
Type-C non-compliant legacy cables.
|
||||
|
||||
- qcom,wd-bark-time-secs
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: WD bark-timeout in seconds. The possible values are
|
||||
16, 32, 64, 128. If not defined it defaults to 64.
|
||||
|
||||
- qcom,battery-data
|
||||
Usage: optional
|
||||
Value type: <phandle>
|
||||
Definition: Specifies the phandle of the node which contains the battery
|
||||
profiles supported on the device.
|
||||
|
||||
- qcom,flash-derating-soc
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: SOC threshold in percentage below which hardware will start
|
||||
derating flash. This is only applicable to certain PMICs like
|
||||
PMI632 which has SCHGM_FLASH peripheral.
|
||||
|
||||
- qcom,flash-disable-soc
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: SOC threshold in percentage below which hardware will disable
|
||||
flash. This is only applicable to certain PMICs like PMI632
|
||||
which has SCHGM_FLASH peripheral.
|
||||
|
||||
- qcom,headroom-mode
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies flash hardware headroom management policy. The
|
||||
possible values are:
|
||||
<0>: Fixed mode, constant 5V at flash input.
|
||||
<1>: Adaptive mode allows charger output voltage to be
|
||||
dynamically controlled by the flash module based on the
|
||||
required flash headroom.
|
||||
This is only applicable to certain PMICs like PMI632 which
|
||||
has SCHGM_FLASH peripheral.
|
||||
|
||||
- nvmem-cell-names
|
||||
Usage: optional
|
||||
Value type: <string>
|
||||
Definition: The nvmem cell device name of the SDAM register used to store
|
||||
the charger debug mask. It must be "charger_debug_mask".
|
||||
|
||||
- nvmem-cells
|
||||
Usage: optional
|
||||
Value type: <phandle>
|
||||
Definition: Phandle of the nvmem cell device used to store the charger debug
|
||||
mask. Please refer to nvmem bindings as described in
|
||||
bindings/nvmem/nvmem.txt.
|
||||
|
||||
- qcom,fcc-stepping-enable
|
||||
Usage: optional
|
||||
Value type: bool
|
||||
Definition: Boolean flag which when present enables stepwise change in FCC.
|
||||
The default stepping rate is 100mA/sec.
|
||||
|
||||
- qcom,disable-suspend-on-collapse
|
||||
Usage: optional
|
||||
Value type: bool
|
||||
Definition: Boolean flag which when present disables suspend on collapse
|
||||
feature of charger hardware.
|
||||
|
||||
- qcom,fcc-step-delay-ms
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies the delay between each step of FCC stepper algorithm.
|
||||
If left unspecified, the default value is 1 Sec.
|
||||
|
||||
- qcom,fcc-step-size-ua
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies the step size of each step of FCC stepper algorithm.
|
||||
If left unspecified, the default value is 100mA.
|
||||
|
||||
- qcom,fc-step-start-ua
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Specifies the initial current of FCC stepper algorithm.
|
||||
If left unspecified, the default value is 500mA.
|
||||
|
||||
- qcom,concurrency-mode-enable
|
||||
Usage: optional
|
||||
Value type: bool
|
||||
Definition: Boolean flag to control charger concurrency mode. Its supported
|
||||
only on PM5100, By default this feature is disabled.
|
||||
|
||||
- qcom,remote-fg
|
||||
Usage: optional
|
||||
Value type: bool
|
||||
Definition: Boolean flag to determine if FG is running on different processor.
|
||||
Its supported only on PM5100, By default this feature is disabled.
|
||||
|
||||
- qcom,float-option
|
||||
Usage: optional
|
||||
Value type: <u32>
|
||||
Definition: Configures how the charger behaves when a float charger is
|
||||
detected by APSD.
|
||||
1 - Treat as a DCP.
|
||||
2 - Treat as a SDP.
|
||||
3 - Disable charging.
|
||||
4 - Suspend USB input.
|
||||
|
||||
=================================================
|
||||
Second Level Nodes - SMBLITE Charger Peripherals
|
||||
=================================================
|
||||
|
||||
Peripheral specific properties:
|
||||
- reg
|
||||
Usage: required
|
||||
Value type: <prop-encoded-array>
|
||||
Definition: Address and size of the peripheral's register block.
|
||||
|
||||
- interrupts
|
||||
Usage: required
|
||||
Value type: <prop-encoded-array>
|
||||
Definition: Peripheral interrupt specifier.
|
||||
|
||||
- interrupt-names
|
||||
Usage: required
|
||||
Value type: <stringlist>
|
||||
Definition: Interrupt names. This list must match up 1-to-1 with the
|
||||
interrupts specified in the 'interrupts' property.
|
||||
|
||||
=======
|
||||
Example
|
||||
=======
|
||||
|
||||
pm2250_charger: qcom,qpnp-smblite {
|
||||
compatible = "qcom,qpnp-smblite";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
#cooling-cells = <2>;
|
||||
|
||||
nvmem-cell-names = "charger_debug_mask";
|
||||
nvmem-cells = <&charger_debug_mask>;
|
||||
|
||||
qcom,pmic-revid = <&pm2250_revid>;
|
||||
qcom,chgr@1000 {
|
||||
reg = <0x1000 0x100>;
|
||||
interrupts =
|
||||
<0x0 0x10 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x10 0x0 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x10 0x4 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x10 0x7 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
interrupt-names = "chgr-error",
|
||||
"chg-state-change",
|
||||
"buck-oc",
|
||||
"vph-ov";
|
||||
};
|
||||
|
||||
qcom,dcdc@1100 {
|
||||
reg = <0x1100 0x100>;
|
||||
interrupts =
|
||||
<0x0 0x11 0x0 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x11 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x11 0x2 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x11 0x6 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x11 0x7 IRQ_TYPE_EDGE_BOTH>;
|
||||
|
||||
interrupt-names = "otg-fail",
|
||||
"otg-fault",
|
||||
"skip-mode",
|
||||
"input-current-limiting",
|
||||
"switcher-power-ok";
|
||||
};
|
||||
|
||||
qcom,batif@1200 {
|
||||
reg = <0x1200 0x100>;
|
||||
interrupts =
|
||||
<0x0 0x12 0x0 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x12 0x1 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x12 0x2 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x12 0x3 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x12 0x4 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
interrupt-names = "bat-temp",
|
||||
"bat-therm-or-id-missing",
|
||||
"bat-low",
|
||||
"bat-ov",
|
||||
"bsm-active";
|
||||
};
|
||||
|
||||
qcom,usb@1300 {
|
||||
reg = <0x1300 0x100>;
|
||||
interrupts =
|
||||
<0x0 0x13 0x0 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x13 0x1 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x13 0x2 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x13 0x3 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x13 0x4 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x13 0x6 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
interrupt-names = "usbin-plugin",
|
||||
"usbin-collapse",
|
||||
"usbin-uv",
|
||||
"usbin-ov",
|
||||
"usbin-gtvt",
|
||||
"usbin-icl-change";
|
||||
};
|
||||
|
||||
qcom,typec@1500 {
|
||||
reg = <0x1500 0x100>;
|
||||
interrupts =
|
||||
<0x0 0x15 0x0 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x15 0x1 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x15 0x2 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x15 0x4 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x15 0x5 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x15 0x6 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x15 0x7 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
interrupt-names = "typec-or-rid-detect-change",
|
||||
"typec-vpd-detect",
|
||||
"typec-cc-state-change",
|
||||
"typec-vbus-change",
|
||||
"typec-attach-detach",
|
||||
"typec-legacy-cable-detect",
|
||||
"typec-try-snk-src-detect";
|
||||
};
|
||||
|
||||
qcom,misc@1600 {
|
||||
reg = <0x1600 0x100>;
|
||||
interrupts =
|
||||
<0x0 0x16 0x0 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x16 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x16 0x2 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x16 0x3 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x16 0x4 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x16 0x5 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x16 0x6 IRQ_TYPE_EDGE_BOTH>;
|
||||
|
||||
interrupt-names = "wdog-snarl",
|
||||
"wdog-bark",
|
||||
"aicl-fail",
|
||||
"aicl-done",
|
||||
"imp-trigger",
|
||||
"all-chnl-cond-done",
|
||||
"temp-change";
|
||||
};
|
||||
};
|
||||
20
bindings/soc/qcom/qcom,power-state.txt
Normal file
20
bindings/soc/qcom/qcom,power-state.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
* Qualcomm Technologies, Inc. Power State Driver
|
||||
|
||||
This binding describes the Qualcomm Technologies, Inc. Power State Driver. Power
|
||||
State creates power_state device node for user space communication. User space
|
||||
client can open device node for communication and driver accordingly handles the
|
||||
request.
|
||||
|
||||
Required Properties:
|
||||
|
||||
- compatible:
|
||||
Usage: required
|
||||
Value type: <string>
|
||||
Definition: must be "qcom,power-state"
|
||||
|
||||
Example:
|
||||
|
||||
qcom,power-state {
|
||||
compatible = "qcom,power-state";
|
||||
};
|
||||
|
||||
37
bindings/thermal/qcom,bcl-off-cdev.txt
Normal file
37
bindings/thermal/qcom,bcl-off-cdev.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
Qualcomm Technologies, Inc. BCL OFF cooling device
|
||||
|
||||
The BCL OFF cooling device, will be used to disable PMIC bcl.
|
||||
This cooling device will be called when modem RF calibration
|
||||
is performed using external power supply.
|
||||
|
||||
When external power supply is used for RF calibration, ibat current
|
||||
can cross the battery specs and can trigger batfet issues. So pmic bcl
|
||||
should be disabled as it is for protection for battery not external
|
||||
power supply.
|
||||
|
||||
|
||||
Required Parameters:
|
||||
- compatible:
|
||||
Usage: required
|
||||
Value type: <string>
|
||||
Definition: should be "qcom,bcl-off"
|
||||
|
||||
- reg:
|
||||
Usage: optional
|
||||
Value type: <a b>
|
||||
Definition: where 'a' is the starting register address of the PMIC
|
||||
peripheral and 'b' is the size of the peripheral address space.
|
||||
|
||||
- #cooling-cells:
|
||||
Usage: required
|
||||
Value type: <integer>
|
||||
Definition: Must be 2. This is required by of-thermal and refer the doc
|
||||
<devicetree/bindings/thermal/thermal.txt> for more details.
|
||||
|
||||
Example:
|
||||
|
||||
bcl_off: bcl-off {
|
||||
compatible = "qcom,bcl-off";
|
||||
reg = <0x4700 0x100>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
@@ -83,6 +83,18 @@ khaje-dtb-$(CONFIG_ARCH_KHAJE) += \
|
||||
khaje-overlays-dtb-$(CONFIG_ARCH_KHAJE) += $(KHAJE_BOARDS) $(KHAJE_BASE_DTB)
|
||||
dtb-y += $(khaje-dtb-y)
|
||||
|
||||
MONACO_BASE_DTB += monaco.dtb monacop.dtb
|
||||
|
||||
MONACO_BOARDS += \
|
||||
monaco-idp-v1-overlay.dtbo \
|
||||
monaco-idp-v2-overlay.dtbo \
|
||||
monaco-idp-v3-overlay.dtbo
|
||||
|
||||
monaco-dtb-$(CONFIG_ARCH_MONACO) += \
|
||||
$(call add-overlays, $(MONACO_BOARDS) ,$(MONACO_BASE_DTB))
|
||||
monaco-overlays-dtb-$(CONFIG_ARCH_MONACO) += $(MONACO_BOARDS) $(MONACO_BASE_DTB)
|
||||
dtb-y += $(monaco-dtb-y)
|
||||
|
||||
cinder-dtb-$(CONFIG_ARCH_CINDER) += cinder-ru-rumi.dtb \
|
||||
cinder-du-rumi.dtb \
|
||||
cinder-ru-idp.dtb \
|
||||
|
||||
1840
qcom/monaco-coresight.dtsi
Normal file
1840
qcom/monaco-coresight.dtsi
Normal file
File diff suppressed because it is too large
Load Diff
31
qcom/monaco-dma-heaps.dtsi
Normal file
31
qcom/monaco-dma-heaps.dtsi
Normal file
@@ -0,0 +1,31 @@
|
||||
#include <dt-bindings/arm/msm/qcom_dma_heap_dt_constants.h>
|
||||
|
||||
&soc {
|
||||
qcom,dma-heaps {
|
||||
compatible = "qcom,dma-heaps";
|
||||
|
||||
qcom,qseecom {
|
||||
qcom,dma-heap-name = "qcom,qseecom";
|
||||
qcom,dma-heap-type = <HEAP_TYPE_CMA>;
|
||||
memory-region = <&qseecom_mem>;
|
||||
};
|
||||
|
||||
qcom,qseecom_ta {
|
||||
qcom,dma-heap-name = "qcom,qseecom-ta";
|
||||
qcom,dma-heap-type = <HEAP_TYPE_CMA>;
|
||||
memory-region = <&qseecom_ta_mem>;
|
||||
};
|
||||
|
||||
qcom,secure_display {
|
||||
qcom,dma-heap-name = "qcom,secure-display";
|
||||
qcom,dma-heap-type = <HEAP_TYPE_CMA>;
|
||||
memory-region = <&secure_display_memory>;
|
||||
};
|
||||
|
||||
qcom,user_contig {
|
||||
qcom,dma-heap-name = "qcom,user-contig";
|
||||
qcom,dma-heap-type = <HEAP_TYPE_CMA>;
|
||||
memory-region = <&user_contig_mem>;
|
||||
};
|
||||
};
|
||||
};
|
||||
93
qcom/monaco-gdsc.dtsi
Normal file
93
qcom/monaco-gdsc.dtsi
Normal file
@@ -0,0 +1,93 @@
|
||||
&soc {
|
||||
/* GDSCs in GCC */
|
||||
gcc_camss_top_gdsc: qcom,gdsc@1458004 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x1458004 0x4>;
|
||||
regulator-name = "gcc_camss_top_gdsc";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
gcc_usb20_prim_gdsc: qcom,gdsc@141c004 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x141c004 0x4>;
|
||||
regulator-name = "gcc_usb20_prim_gdsc";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
gcc_vcodec0_gdsc: qcom,gdsc@14580ac {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x14580ac 0x4>;
|
||||
regulator-name = "gcc_vcodec0_gdsc";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
gcc_venus_gdsc: qcom,gdsc@1458088 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x1458088 0x4>;
|
||||
regulator-name = "gcc_venus_gdsc";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
hlos1_vote_mm_snoc_mmu_tbu_nrt_gdsc: qcom,gdsc@147d078 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x147d078 0x4>;
|
||||
regulator-name = "hlos1_vote_mm_snoc_mmu_tbu_nrt_gdsc";
|
||||
qcom,no-status-check-on-disable;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
hlos1_vote_mm_snoc_mmu_tbu_rt_gdsc: qcom,gdsc@147d074 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x147d074 0x4>;
|
||||
regulator-name = "hlos1_vote_mm_snoc_mmu_tbu_rt_gdsc";
|
||||
qcom,no-status-check-on-disable;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
/* GDSCs in DISPCC */
|
||||
mdss_core_gdsc: qcom,gdsc@5f03000 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x5f03000 0x4>;
|
||||
regulator-name = "mdss_core_gdsc";
|
||||
proxy-supply = <&mdss_core_gdsc>;
|
||||
qcom,proxy-consumer-enable;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
/* GDSCs in GPUCC */
|
||||
gpu_gx_sw_reset: syscon@5994008 {
|
||||
compatible = "syscon";
|
||||
reg = <0x5994008 0x4>;
|
||||
};
|
||||
|
||||
gpu_cx_hw_ctrl: syscon@5994540 {
|
||||
compatible = "syscon";
|
||||
reg = <0x5994540 0x4>;
|
||||
};
|
||||
|
||||
gpu_gx_domain_addr: syscon@5994508 {
|
||||
compatible = "syscon";
|
||||
reg = <0x5994508 0x4>;
|
||||
};
|
||||
|
||||
gpu_cx_gdsc: qcom,gdsc@5994064 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x5994064 0x4>;
|
||||
regulator-name = "gpu_cx_gdsc";
|
||||
hw-ctl-addr = <&gpu_cx_hw_ctrl>;
|
||||
qcom,gds-timeout = <500>;
|
||||
qcom,clk-dis-wait-val = <8>;
|
||||
qcom,no-status-check-on-disable;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
gpu_gx_gdsc: qcom,gdsc@599400c {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x599400c 0x4>;
|
||||
regulator-name = "gpu_gx_gdsc";
|
||||
sw-reset = <&gpu_gx_sw_reset>;
|
||||
domain-addr = <&gpu_gx_domain_addr>;
|
||||
qcom,reset-aon-logic;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
299
qcom/monaco-haptics-fifo-data.dtsi
Normal file
299
qcom/monaco-haptics-fifo-data.dtsi
Normal file
@@ -0,0 +1,299 @@
|
||||
#include <dt-bindings/input/qcom,hv-haptics.h>
|
||||
|
||||
&pm5100_haptics {
|
||||
effect_6 {
|
||||
qcom,effect-id = <17>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-fifo-data = [
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 01 01 01 01 01 01 01 01 01
|
||||
02 02 02 02 02 03 03 03 04 04
|
||||
04 05 05 05 06 06 07 08 08 09
|
||||
0a 0b 0c 0c 0d 0e 0f 0f 0f 0f
|
||||
0f 0f 0e 0e 0d 0c 0b 0a 09 08
|
||||
06 05 03 01 00 ff fd fa f8 f6
|
||||
f3 f1 ee ec e9 e6 e3 e0 dc d9
|
||||
d5 d1 cd c8 c4 bf bb b9 b7 b6
|
||||
b7 b8 ba bd c1 c5 cb d1 d7 de
|
||||
e5 ed f5 fd 04 0d 15 1e 26 2e
|
||||
36 3d 44 4b 51 56 5b 5f 62 64
|
||||
65 65 64 63 5f 5b 56 50 4a 45
|
||||
3f 3a 34 2f 29 24 1f 1a 14 0f
|
||||
0a 05 00 fc f8 f3 ef ea e6 e2
|
||||
df dc d9 d6 d4 d3 d2 d1 d1 d1
|
||||
d2 d4 d7 da de e2 e8 ee f6 fd
|
||||
02 08 0d 12 16 1a 1d 20 23 26
|
||||
28 2a 2b 2d 2e 2f 30 30 30 31
|
||||
31 31 31 30 30 2f 2f 2e 2d 2c
|
||||
2c 2b 2a 29 28 26 25 24 23 22
|
||||
21 20 1e 1d 1c 1b 1a 19 17 16
|
||||
15 14 13 12 11 10 0f 0e 0d 0c
|
||||
0b 0a 0a 09 08 07 07 06 05 04
|
||||
04 03 03 02 02 01 01 00 00 00
|
||||
00 00 ff ff ff ff fe fe fe fe
|
||||
fd fd fd fd fd fd fd fd fd fc
|
||||
fc fc fc fc fc fc fc fc fc fc
|
||||
fc fd fd fd fd fd fd fd fd fd
|
||||
fd fd fd fd fd fe fe fe fe fe
|
||||
fe fe fe fe fe fe ff ff ff ff
|
||||
ff ff ff ff ff ff ff ff ff ff
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 01 01 01 01 01 01 01 01 01
|
||||
02 02 02 02 02 03 03 03 04 04
|
||||
04 05 05 05 06 06 07 08 08 09
|
||||
0a 0b 0c 0c 0d 0e 0f 0f 0f 0f
|
||||
0f 0f 0e 0e 0d 0c 0b 0a 09 08
|
||||
06 05 03 01 00 ff fd fa f8 f6
|
||||
f3 f1 ee ec e9 e6 e3 e0 dc d9
|
||||
d5 d1 cd c8 c4 bf bb b9 b7 b6
|
||||
b7 b8 ba bd c1 c5 cb d1 d7 de
|
||||
e5 ed f5 fd 04 0d 15 1e 26 2e
|
||||
36 3d 44 4b 51 56 5b 5f 62 64
|
||||
65 65 64 63 5f 5b 56 50 4a 45
|
||||
3f 3a 34 2f 29 24 1f 1a 14 0f
|
||||
0a 05 00 fc f8 f3 ef ea e6 e2
|
||||
df dc d9 d6 d4 d3 d2 d1 d1 d1
|
||||
d2 d4 d7 da de e2 e8 ee f6 fd
|
||||
02 08 0d 12 16 1a 1d 20 23 26
|
||||
28 2a 2b 2d 2e 2f 30 30 30 31
|
||||
31 31 31 30 30 2f 2f 2e 2d 2c
|
||||
2c 2b 2a 29 28 26 25 24 23 22
|
||||
21 20 1e 1d 1c 1b 1a 19 17 16
|
||||
15 14 13 12 11 10 0f 0e 0d 0c
|
||||
0b 0a 0a 09 08 07 07 06 05 04
|
||||
04 03 03 02 02 01 01 00 00 00
|
||||
00 00 ff ff ff ff fe fe fe fe
|
||||
fd fd fd fd fd fd fd fd fd fc
|
||||
fc fc fc fc fc fc fc fc fc fc
|
||||
fc fd fd fd fd fd fd fd fd fd
|
||||
fd fd fd fd fd fe fe fe fe fe
|
||||
fe fe fe fe fe fe ff ff ff ff
|
||||
ff ff ff ff ff ff ff ff ff ff
|
||||
];
|
||||
qcom,wf-fifo-period = <S_PERIOD_T_LRA_X_8>;
|
||||
qcom,wf-brake-disable;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
effect_7 {
|
||||
qcom,effect-id = <18>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-fifo-data = [
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 01 01 01 01 01 01 01 01 01
|
||||
02 02 02 02 02 03 03 03 04 04
|
||||
04 05 05 05 06 06 07 08 08 09
|
||||
0a 0b 0c 0c 0d 0e 0f 0f 0f 0f
|
||||
0f 0f 0e 0e 0d 0c 0b 0a 09 08
|
||||
06 05 03 01 00 ff fd fa f8 f6
|
||||
f3 f1 ee ec e9 e6 e3 e0 dc d9
|
||||
d5 d1 cd c8 c4 bf bb b9 b7 b6
|
||||
b7 b8 ba bd c1 c5 cb d1 d7 de
|
||||
e5 ed f5 fd 04 0d 15 1e 26 2e
|
||||
36 3d 44 4b 51 56 5b 5f 62 64
|
||||
65 65 64 63 5f 5b 56 50 4a 45
|
||||
3f 3a 34 2f 29 24 1f 1a 14 0f
|
||||
0a 05 00 fc f8 f3 ef ea e6 e2
|
||||
df dc d9 d6 d4 d3 d2 d1 d1 d1
|
||||
d2 d4 d7 da de e2 e8 ee f6 fd
|
||||
02 08 0d 12 16 1a 1d 20 23 26
|
||||
28 2a 2b 2d 2e 2f 30 30 30 31
|
||||
31 31 31 30 30 2f 2f 2e 2d 2c
|
||||
2c 2b 2a 29 28 26 25 24 23 22
|
||||
21 20 1e 1d 1c 1b 1a 19 17 16
|
||||
15 14 13 12 11 10 0f 0e 0d 0c
|
||||
0b 0a 0a 09 08 07 07 06 05 04
|
||||
04 03 03 02 02 01 01 00 00 00
|
||||
00 00 ff ff ff ff fe fe fe fe
|
||||
fd fd fd fd fd fd fd fd fd fc
|
||||
fc fc fc fc fc fc fc fc fc fc
|
||||
fc fd fd fd fd fd fd fd fd fd
|
||||
fd fd fd fd fd fe fe fe fe fe
|
||||
fe fe fe fe fe fe ff ff ff ff
|
||||
ff ff ff ff ff ff ff ff ff ff
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 01 01 01 01 01 01 01 01 01
|
||||
02 02 02 02 02 03 03 03 04 04
|
||||
04 05 05 05 06 06 07 08 08 09
|
||||
0a 0b 0c 0c 0d 0e 0f 0f 0f 0f
|
||||
0f 0f 0e 0e 0d 0c 0b 0a 09 08
|
||||
06 05 03 01 00 ff fd fa f8 f6
|
||||
f3 f1 ee ec e9 e6 e3 e0 dc d9
|
||||
d5 d1 cd c8 c4 bf bb b9 b7 b6
|
||||
b7 b8 ba bd c1 c5 cb d1 d7 de
|
||||
e5 ed f5 fd 04 0d 15 1e 26 2e
|
||||
36 3d 44 4b 51 56 5b 5f 62 64
|
||||
65 65 64 63 5f 5b 56 50 4a 45
|
||||
3f 3a 34 2f 29 24 1f 1a 14 0f
|
||||
0a 05 00 fc f8 f3 ef ea e6 e2
|
||||
df dc d9 d6 d4 d3 d2 d1 d1 d1
|
||||
d2 d4 d7 da de e2 e8 ee f6 fd
|
||||
02 08 0d 12 16 1a 1d 20 23 26
|
||||
28 2a 2b 2d 2e 2f 30 30 30 31
|
||||
31 31 31 30 30 2f 2f 2e 2d 2c
|
||||
2c 2b 2a 29 28 26 25 24 23 22
|
||||
21 20 1e 1d 1c 1b 1a 19 17 16
|
||||
15 14 13 12 11 10 0f 0e 0d 0c
|
||||
0b 0a 0a 09 08 07 07 06 05 04
|
||||
04 03 03 02 02 01 01 00 00 00
|
||||
00 00 ff ff ff ff fe fe fe fe
|
||||
fd fd fd fd fd fd fd fd fd fc
|
||||
fc fc fc fc fc fc fc fc fc fc
|
||||
fc fd fd fd fd fd fd fd fd fd
|
||||
fd fd fd fd fd fe fe fe fe fe
|
||||
fe fe fe fe fe fe ff ff ff ff
|
||||
ff ff ff ff ff ff ff ff ff ff
|
||||
];
|
||||
qcom,wf-fifo-period = <S_PERIOD_T_LRA_X_8>;
|
||||
qcom,wf-brake-disable;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
effect_8 {
|
||||
qcom,effect-id = <19>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-fifo-data = [
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 01 01 01 01 01 01 01 01 01
|
||||
02 02 02 02 02 03 03 03 04 04
|
||||
04 05 05 05 06 06 07 08 08 09
|
||||
0a 0b 0c 0c 0d 0e 0f 0f 0f 0f
|
||||
0f 0f 0e 0e 0d 0c 0b 0a 09 08
|
||||
06 05 03 01 00 ff fd fa f8 f6
|
||||
f3 f1 ee ec e9 e6 e3 e0 dc d9
|
||||
d5 d1 cd c8 c4 bf bb b9 b7 b6
|
||||
b7 b8 ba bd c1 c5 cb d1 d7 de
|
||||
e5 ed f5 fd 04 0d 15 1e 26 2e
|
||||
36 3d 44 4b 51 56 5b 5f 62 64
|
||||
65 65 64 63 5f 5b 56 50 4a 45
|
||||
3f 3a 34 2f 29 24 1f 1a 14 0f
|
||||
0a 05 00 fc f8 f3 ef ea e6 e2
|
||||
df dc d9 d6 d4 d3 d2 d1 d1 d1
|
||||
d2 d4 d7 da de e2 e8 ee f6 fd
|
||||
02 08 0d 12 16 1a 1d 20 23 26
|
||||
28 2a 2b 2d 2e 2f 30 30 30 31
|
||||
31 31 31 30 30 2f 2f 2e 2d 2c
|
||||
2c 2b 2a 29 28 26 25 24 23 22
|
||||
21 20 1e 1d 1c 1b 1a 19 17 16
|
||||
15 14 13 12 11 10 0f 0e 0d 0c
|
||||
0b 0a 0a 09 08 07 07 06 05 04
|
||||
04 03 03 02 02 01 01 00 00 00
|
||||
00 00 ff ff ff ff fe fe fe fe
|
||||
fd fd fd fd fd fd fd fd fd fc
|
||||
fc fc fc fc fc fc fc fc fc fc
|
||||
fc fd fd fd fd fd fd fd fd fd
|
||||
fd fd fd fd fd fe fe fe fe fe
|
||||
fe fe fe fe fe fe ff ff ff ff
|
||||
ff ff ff ff ff ff ff ff ff ff
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 01 01 01 01 01 01 01 01 01
|
||||
02 02 02 02 02 03 03 03 04 04
|
||||
04 05 05 05 06 06 07 08 08 09
|
||||
0a 0b 0c 0c 0d 0e 0f 0f 0f 0f
|
||||
0f 0f 0e 0e 0d 0c 0b 0a 09 08
|
||||
06 05 03 01 00 ff fd fa f8 f6
|
||||
f3 f1 ee ec e9 e6 e3 e0 dc d9
|
||||
d5 d1 cd c8 c4 bf bb b9 b7 b6
|
||||
b7 b8 ba bd c1 c5 cb d1 d7 de
|
||||
e5 ed f5 fd 04 0d 15 1e 26 2e
|
||||
36 3d 44 4b 51 56 5b 5f 62 64
|
||||
65 65 64 63 5f 5b 56 50 4a 45
|
||||
3f 3a 34 2f 29 24 1f 1a 14 0f
|
||||
0a 05 00 fc f8 f3 ef ea e6 e2
|
||||
df dc d9 d6 d4 d3 d2 d1 d1 d1
|
||||
d2 d4 d7 da de e2 e8 ee f6 fd
|
||||
02 08 0d 12 16 1a 1d 20 23 26
|
||||
28 2a 2b 2d 2e 2f 30 30 30 31
|
||||
31 31 31 30 30 2f 2f 2e 2d 2c
|
||||
2c 2b 2a 29 28 26 25 24 23 22
|
||||
21 20 1e 1d 1c 1b 1a 19 17 16
|
||||
15 14 13 12 11 10 0f 0e 0d 0c
|
||||
0b 0a 0a 09 08 07 07 06 05 04
|
||||
04 03 03 02 02 01 01 00 00 00
|
||||
00 00 ff ff ff ff fe fe fe fe
|
||||
fd fd fd fd fd fd fd fd fd fc
|
||||
fc fc fc fc fc fc fc fc fc fc
|
||||
fc fd fd fd fd fd fd fd fd fd
|
||||
fd fd fd fd fd fe fe fe fe fe
|
||||
fe fe fe fe fe fe ff ff ff ff
|
||||
ff ff ff ff ff ff ff ff ff ff
|
||||
];
|
||||
qcom,wf-fifo-period = <S_PERIOD_T_LRA_X_8>;
|
||||
qcom,wf-brake-disable;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
effect_9 {
|
||||
qcom,effect-id = <20>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-fifo-data = [
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 01 01 01 01 01 01 01 01 01
|
||||
02 02 02 02 02 03 03 03 04 04
|
||||
04 05 05 05 06 06 07 08 08 09
|
||||
0a 0b 0c 0c 0d 0e 0f 0f 0f 0f
|
||||
0f 0f 0e 0e 0d 0c 0b 0a 09 08
|
||||
06 05 03 01 00 ff fd fa f8 f6
|
||||
f3 f1 ee ec e9 e6 e3 e0 dc d9
|
||||
d5 d1 cd c8 c4 bf bb b9 b7 b6
|
||||
b7 b8 ba bd c1 c5 cb d1 d7 de
|
||||
e5 ed f5 fd 04 0d 15 1e 26 2e
|
||||
36 3d 44 4b 51 56 5b 5f 62 64
|
||||
65 65 64 63 5f 5b 56 50 4a 45
|
||||
3f 3a 34 2f 29 24 1f 1a 14 0f
|
||||
0a 05 00 fc f8 f3 ef ea e6 e2
|
||||
df dc d9 d6 d4 d3 d2 d1 d1 d1
|
||||
d2 d4 d7 da de e2 e8 ee f6 fd
|
||||
02 08 0d 12 16 1a 1d 20 23 26
|
||||
28 2a 2b 2d 2e 2f 30 30 30 31
|
||||
31 31 31 30 30 2f 2f 2e 2d 2c
|
||||
2c 2b 2a 29 28 26 25 24 23 22
|
||||
21 20 1e 1d 1c 1b 1a 19 17 16
|
||||
15 14 13 12 11 10 0f 0e 0d 0c
|
||||
0b 0a 0a 09 08 07 07 06 05 04
|
||||
04 03 03 02 02 01 01 00 00 00
|
||||
00 00 ff ff ff ff fe fe fe fe
|
||||
fd fd fd fd fd fd fd fd fd fc
|
||||
fc fc fc fc fc fc fc fc fc fc
|
||||
fc fd fd fd fd fd fd fd fd fd
|
||||
fd fd fd fd fd fe fe fe fe fe
|
||||
fe fe fe fe fe fe ff ff ff ff
|
||||
ff ff ff ff ff ff ff ff ff ff
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 01 01 01 01 01 01 01 01 01
|
||||
02 02 02 02 02 03 03 03 04 04
|
||||
04 05 05 05 06 06 07 08 08 09
|
||||
0a 0b 0c 0c 0d 0e 0f 0f 0f 0f
|
||||
0f 0f 0e 0e 0d 0c 0b 0a 09 08
|
||||
06 05 03 01 00 ff fd fa f8 f6
|
||||
f3 f1 ee ec e9 e6 e3 e0 dc d9
|
||||
d5 d1 cd c8 c4 bf bb b9 b7 b6
|
||||
b7 b8 ba bd c1 c5 cb d1 d7 de
|
||||
e5 ed f5 fd 04 0d 15 1e 26 2e
|
||||
36 3d 44 4b 51 56 5b 5f 62 64
|
||||
65 65 64 63 5f 5b 56 50 4a 45
|
||||
3f 3a 34 2f 29 24 1f 1a 14 0f
|
||||
0a 05 00 fc f8 f3 ef ea e6 e2
|
||||
df dc d9 d6 d4 d3 d2 d1 d1 d1
|
||||
d2 d4 d7 da de e2 e8 ee f6 fd
|
||||
02 08 0d 12 16 1a 1d 20 23 26
|
||||
28 2a 2b 2d 2e 2f 30 30 30 31
|
||||
31 31 31 30 30 2f 2f 2e 2d 2c
|
||||
2c 2b 2a 29 28 26 25 24 23 22
|
||||
21 20 1e 1d 1c 1b 1a 19 17 16
|
||||
15 14 13 12 11 10 0f 0e 0d 0c
|
||||
0b 0a 0a 09 08 07 07 06 05 04
|
||||
04 03 03 02 02 01 01 00 00 00
|
||||
00 00 ff ff ff ff fe fe fe fe
|
||||
fd fd fd fd fd fd fd fd fd fc
|
||||
fc fc fc fc fc fc fc fc fc fc
|
||||
fc fd fd fd fd fd fd fd fd fd
|
||||
fd fd fd fd fd fe fe fe fe fe
|
||||
fe fe fe fe fe fe ff ff ff ff
|
||||
ff ff ff ff ff ff ff ff ff ff
|
||||
];
|
||||
qcom,wf-fifo-period = <S_PERIOD_T_LRA_X_8>;
|
||||
qcom,wf-brake-disable;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
};
|
||||
17
qcom/monaco-idp-v1-common.dtsi
Normal file
17
qcom/monaco-idp-v1-common.dtsi
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "monaco-thermal-overlay.dtsi"
|
||||
#include "monaco-haptics-fifo-data.dtsi"
|
||||
|
||||
&pm5100_sdam_2 {
|
||||
hap_cl_brake: cl_brake@7c {
|
||||
reg = <0x7c 0x1>;
|
||||
bits = <0 8>;
|
||||
};
|
||||
};
|
||||
|
||||
&pm5100_haptics {
|
||||
nvmem-cell-names = "hap_cl_brake";
|
||||
nvmem-cells = <&hap_cl_brake>;
|
||||
nvmem-names = "hap_cfg_sdam";
|
||||
nvmem = <&pm5100_sdam_23>;
|
||||
status = "okay";
|
||||
};
|
||||
9
qcom/monaco-idp-v1-overlay.dts
Normal file
9
qcom/monaco-idp-v1-overlay.dts
Normal file
@@ -0,0 +1,9 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "monaco-idp-v1.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Monaco IDP V1.0";
|
||||
qcom,board-id = <0x010022 0x0>;
|
||||
};
|
||||
63
qcom/monaco-idp-v1.dtsi
Normal file
63
qcom/monaco-idp-v1.dtsi
Normal file
@@ -0,0 +1,63 @@
|
||||
#include "monaco-idp-v1-common.dtsi"
|
||||
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-pm5100.h>
|
||||
#include <dt-bindings/iio/qti_power_supply_iio.h>
|
||||
#include <dt-bindings/clock/qcom,rpmcc.h>
|
||||
|
||||
&sdhc_1 {
|
||||
status = "ok";
|
||||
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <&sdc1_on>;
|
||||
pinctrl-1 = <&sdc1_off>;
|
||||
|
||||
vdd-supply = <&L25A>;
|
||||
qcom,vdd-voltage-level = <3080000 3080000>;
|
||||
qcom,vdd-current-level = <0 250000>;
|
||||
|
||||
vdd-io-supply = <&L15A>;
|
||||
qcom,vdd-io-always-on;
|
||||
qcom,vdd-io-lpm-sup;
|
||||
qcom,vdd-io-voltage-level = <1800000 1800000>;
|
||||
qcom,vdd-io-current-level = <0 250000>;
|
||||
};
|
||||
|
||||
&soc {
|
||||
bluetooth: bt_wcn3990 {
|
||||
compatible = "qcom,qcc5100";
|
||||
|
||||
status = "ok";
|
||||
};
|
||||
};
|
||||
|
||||
&pm5100_charger {
|
||||
qcom,remote-fg;
|
||||
#io-channel-cells = <1>;
|
||||
io-channels = <&pm5100_adc PM5100_ADC5_GEN3_USB_SNS_V_16>,
|
||||
<&pm5100_adc PM5100_ADC5_GEN3_USB_IN_I>,
|
||||
<&pm5100_adc PM5100_ADC5_GEN3_CHG_TEMP>,
|
||||
<&pm5100_adc PM5100_ADC5_GEN3_DIE_TEMP>,
|
||||
<&pm5100_adc PM5100_ADC5_GEN3_VPH_PWR>,
|
||||
<&pm5100_adc PM5100_ADC5_GEN3_BAT_ID_100K_PU>,
|
||||
<&pm5100_adc PM5100_ADC5_GEN3_BATT_THM_100K_PU>,
|
||||
<&pm5100_adc PM5100_ADC5_GEN3_VBAT_SNS_QBG>;
|
||||
|
||||
io-channel-names = "usb_in_voltage",
|
||||
"usb_in_current",
|
||||
"chg_temp",
|
||||
"die_temp",
|
||||
"vph_voltage",
|
||||
"batt-id",
|
||||
"batt-temp",
|
||||
"batt-volt";
|
||||
};
|
||||
|
||||
&pm5100_gpios {
|
||||
nfc_clk {
|
||||
nfc_clk_default: nfc_clk_default {
|
||||
pins = "gpio4";
|
||||
function = "normal";
|
||||
input-enable;
|
||||
power-source = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
9
qcom/monaco-idp-v2-overlay.dts
Normal file
9
qcom/monaco-idp-v2-overlay.dts
Normal file
@@ -0,0 +1,9 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "monaco-idp-v2.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Monaco IDP V2.0";
|
||||
qcom,board-id = <0x020022 0x0>;
|
||||
};
|
||||
1
qcom/monaco-idp-v2.dtsi
Normal file
1
qcom/monaco-idp-v2.dtsi
Normal file
@@ -0,0 +1 @@
|
||||
#include "monaco-idp-v1.dtsi"
|
||||
8
qcom/monaco-idp-v3-overlay.dts
Normal file
8
qcom/monaco-idp-v3-overlay.dts
Normal file
@@ -0,0 +1,8 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "monaco-idp-v3.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Monaco IDP V3.0";
|
||||
qcom,board-id = <0x030022 0x0>;
|
||||
};
|
||||
1
qcom/monaco-idp-v3.dtsi
Normal file
1
qcom/monaco-idp-v3.dtsi
Normal file
@@ -0,0 +1 @@
|
||||
#include "monaco-idp-v1.dtsi"
|
||||
1193
qcom/monaco-pinctrl.dtsi
Normal file
1193
qcom/monaco-pinctrl.dtsi
Normal file
File diff suppressed because it is too large
Load Diff
188
qcom/monaco-pmic.dtsi
Normal file
188
qcom/monaco-pmic.dtsi
Normal file
@@ -0,0 +1,188 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/iio/qti_power_supply_iio.h>
|
||||
|
||||
&pm5100_gpios {
|
||||
key_vol_up {
|
||||
key_vol_up_default: key_vol_up_default {
|
||||
pins = "gpio9";
|
||||
function = "normal";
|
||||
input-enable;
|
||||
bias-pull-up;
|
||||
power-source = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
pmx_sde: pmx_sde {
|
||||
sde_dsi_active: sde_dsi_active {
|
||||
pinconf {
|
||||
pins = "gpio1", "gpio2";
|
||||
function = "normal";
|
||||
qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
|
||||
bias-disable;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
sde_dsi_suspend: sde_dsi_suspend {
|
||||
pinconf {
|
||||
pins = "gpio1", "gpio2";
|
||||
function = "normal";
|
||||
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
|
||||
bias-pull-down;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pm5100_gpios 9 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm5100_adc {
|
||||
#thermal-sensor-cells = <1>;
|
||||
status = "ok";
|
||||
|
||||
pm5100_xo_therm {
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm5100_pa_therm_0 {
|
||||
reg = <PM5100_ADC5_GEN3_AMUX4_THM_100K_PU>;
|
||||
label = "pm5100_pa_therm_0";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm5100_quiet_therm {
|
||||
reg = <PM5100_ADC5_GEN3_AMUX5_THM_100K_PU>;
|
||||
label = "pm5100_quiet_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm5100_msm_therm {
|
||||
reg = <PM5100_ADC5_GEN3_AMUX6_THM_100K_PU>;
|
||||
label = "pm5100_msm_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,adc-tm-type = <1>;
|
||||
};
|
||||
|
||||
pm5100_bat_id {
|
||||
qcom,hw-settle-time = <16000>;
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
xo-therm-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&pm5100_adc PM5100_ADC5_GEN3_AMUX1_THM_100K_PU>;
|
||||
wake-capable-sensor;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pa-therm0-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&pm5100_adc PM5100_ADC5_GEN3_AMUX4_THM_100K_PU>;
|
||||
wake-capable-sensor;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
quiet-therm-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&pm5100_adc PM5100_ADC5_GEN3_AMUX5_THM_100K_PU>;
|
||||
wake-capable-sensor;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sdm-skin-therm-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&pm5100_adc PM5100_ADC5_GEN3_AMUX6_THM_100K_PU>;
|
||||
wake-capable-sensor;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
reboot_reason {
|
||||
compatible = "qcom,reboot-reason";
|
||||
nvmem-cells = <&restart_reason>;
|
||||
nvmem-cell-names = "restart_reason";
|
||||
};
|
||||
|
||||
monaco_batterydata: qcom,battery-data {
|
||||
qcom,batt-id-range-pct = <15>;
|
||||
};
|
||||
};
|
||||
|
||||
&pm5100_charger {
|
||||
status = "okay";
|
||||
qcom,battery-data = <&monaco_batterydata>;
|
||||
dpdm-supply = <&usb2_phy0>;
|
||||
nvmem-cell-names = "charger_debug_mask";
|
||||
nvmem-cells = <&charger_debug_mask>;
|
||||
qcom,auto-recharge-soc = <98>;
|
||||
qcom,suspend-input-on-debug-batt;
|
||||
qcom,chg-term-src = <1>;
|
||||
qcom,chg-term-current-ma = <(-20)>;
|
||||
qcom,fcc-stepping-enable;
|
||||
qcom,fcc-step-delay-ms = <1000>;
|
||||
qcom,fcc-step-size-ua = <100000>;
|
||||
qcom,fcc-step-start-ua = <200000>;
|
||||
qcom,concurrency-mode-supported;
|
||||
};
|
||||
547
qcom/monaco-regulators.dtsi
Normal file
547
qcom/monaco-regulators.dtsi
Normal file
@@ -0,0 +1,547 @@
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include <dt-bindings/regulator/qcom,rpm-smd-regulator.h>
|
||||
|
||||
&rpm_bus {
|
||||
/* PM5100 L1 - VDD_CX supply */
|
||||
rpm-regulator-smpa1 {
|
||||
status = "okay";
|
||||
qcom,resource-name = "rwcx";
|
||||
qcom,resource-id = <0>;
|
||||
proxy-supply = <&VDD_CX_LEVEL>;
|
||||
VDD_CX_LEVEL:
|
||||
S1A_LEVEL: pm5100_s1_level: regulator-s1-level {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_s1_level";
|
||||
qcom,set = <3>;
|
||||
regulator-min-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_RETENTION>;
|
||||
regulator-max-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,init-voltage-level =
|
||||
<RPM_SMD_REGULATOR_LEVEL_TURBO>;
|
||||
qcom,proxy-consumer-enable;
|
||||
qcom,proxy-consumer-voltage =
|
||||
<RPM_SMD_REGULATOR_LEVEL_TURBO
|
||||
RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,use-voltage-level;
|
||||
};
|
||||
|
||||
VDD_CX_FLOOR_LEVEL:
|
||||
S1A_FLOOR_LEVEL:
|
||||
pm5100_s1_floor_level: regulator-s1-floor-level {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_s1_floor_level";
|
||||
qcom,set = <3>;
|
||||
regulator-min-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_RETENTION>;
|
||||
regulator-max-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,use-voltage-floor-level;
|
||||
qcom,always-send-voltage;
|
||||
};
|
||||
|
||||
VDD_CX_LEVEL_AO:
|
||||
S1A_LEVEL_AO: pm5100_s1_level_ao: regulator-s1-level-ao {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_s1_level_ao";
|
||||
qcom,set = <1>;
|
||||
regulator-min-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_RETENTION>;
|
||||
regulator-max-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,use-voltage-level;
|
||||
};
|
||||
|
||||
cx_cdev: cx-cdev-lvl {
|
||||
compatible = "qcom,regulator-cooling-device";
|
||||
regulator-cdev-supply = <&VDD_CX_FLOOR_LEVEL>;
|
||||
regulator-levels = <RPM_SMD_REGULATOR_LEVEL_NONE
|
||||
RPM_SMD_REGULATOR_LEVEL_NOM>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-smpa3 {
|
||||
status = "okay";
|
||||
S3A: pm5100_s3: regulator-s3 {
|
||||
regulator-min-microvolt = <1144000>;
|
||||
regulator-max-microvolt = <1320000>;
|
||||
qcom,init-voltage = <1320000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-smpa4 {
|
||||
status = "okay";
|
||||
S4A: pm5100_s4: regulator-s4 {
|
||||
regulator-min-microvolt = <1816000>;
|
||||
regulator-max-microvolt = <1904000>;
|
||||
qcom,init-voltage = <1904000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-smpa5 {
|
||||
status = "okay";
|
||||
S5A: pm5100_s5: regulator-s5 {
|
||||
regulator-min-microvolt = <664000>;
|
||||
regulator-max-microvolt = <1000000>;
|
||||
qcom,init-voltage = <952000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
/* VDD_LPI_CX supply */
|
||||
rpm-regulator-ldoa4 {
|
||||
status = "okay";
|
||||
qcom,resource-name = "rwlc";
|
||||
qcom,resource-id = <0>;
|
||||
VDD_LPI_CX_LEVEL:
|
||||
L4A_LEVEL: pm5100_l4_level: regulator-l4-level {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l4_level";
|
||||
qcom,set = <3>;
|
||||
regulator-min-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_RETENTION>;
|
||||
regulator-max-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,use-voltage-level;
|
||||
};
|
||||
};
|
||||
|
||||
/* VDD_LPI_MX supply */
|
||||
rpm-regulator-ldoa5 {
|
||||
status = "okay";
|
||||
qcom,resource-name = "rwlm";
|
||||
qcom,resource-id = <0>;
|
||||
VDD_LPI_MX_LEVEL:
|
||||
L5A_LEVEL: pm5100_l5_level: regulator-l5-level {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l5_level";
|
||||
qcom,set = <3>;
|
||||
regulator-min-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_RETENTION>;
|
||||
regulator-max-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,use-voltage-level;
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa1 {
|
||||
status = "okay";
|
||||
L1A: pm5100_l1: regulator-l1 {
|
||||
regulator-min-microvolt = <504000>;
|
||||
regulator-max-microvolt = <752000>;
|
||||
qcom,init-voltage = <504000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa2 {
|
||||
status = "okay";
|
||||
L2A: pm5100_l2: regulator-l2 {
|
||||
regulator-min-microvolt = <312000>;
|
||||
regulator-max-microvolt = <888000>;
|
||||
qcom,init-voltage = <824000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa3 {
|
||||
status = "okay";
|
||||
qcom,resource-name = "rwmx";
|
||||
qcom,resource-id = <0>;
|
||||
proxy-supply = <&VDD_MXA_LEVEL>;
|
||||
|
||||
VDD_MX_LEVEL:
|
||||
VDD_MXA_LEVEL:
|
||||
VDD_EBI_LEVEL:
|
||||
L3A_LEVEL:
|
||||
pm5100_l3_level: regulator-pm5100-l3-level {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l3_level";
|
||||
qcom,set = <3>;
|
||||
regulator-min-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_RETENTION>;
|
||||
regulator-max-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,proxy-consumer-enable;
|
||||
qcom,proxy-consumer-voltage =
|
||||
<RPM_SMD_REGULATOR_LEVEL_TURBO
|
||||
RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,use-voltage-level;
|
||||
};
|
||||
|
||||
VDD_MX_LEVEL_AO:
|
||||
VDD_MXA_LEVEL_AO:
|
||||
VDD_EBI_LEVEL_AO:
|
||||
L3A_LEVEL_AO:
|
||||
pm5100_l3_level_ao: regulator-pm5100-l3-level-ao {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l3_level_ao";
|
||||
qcom,set = <1>;
|
||||
regulator-min-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_RETENTION>;
|
||||
regulator-max-microvolt =
|
||||
<RPM_SMD_REGULATOR_LEVEL_BINNING>;
|
||||
qcom,use-voltage-level;
|
||||
};
|
||||
|
||||
mx_cdev: mx-cdev-lvl {
|
||||
compatible = "qcom,regulator-cooling-device";
|
||||
regulator-cdev-supply = <&VDD_MXA_LEVEL>;
|
||||
regulator-levels = <RPM_SMD_REGULATOR_LEVEL_NONE
|
||||
RPM_SMD_REGULATOR_LEVEL_NOM>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa7 {
|
||||
status = "okay";
|
||||
L7A: pm5100_l7: regulator-l7 {
|
||||
regulator-min-microvolt = <624000>;
|
||||
regulator-max-microvolt = <624000>;
|
||||
qcom,init-voltage = <624000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
/* WCSS_CX and WCSS_MX */
|
||||
rpm-regulator-ldoa8 {
|
||||
status = "okay";
|
||||
qcom,supported-modes =
|
||||
<RPM_SMD_REGULATOR_MODE_RET
|
||||
RPM_SMD_REGULATOR_MODE_LPM
|
||||
RPM_SMD_REGULATOR_MODE_HPM>;
|
||||
qcom,mode-threshold-currents = <0 10000 30000>;
|
||||
WCSS_CX:
|
||||
WCSS_MX:
|
||||
L8A: pm5100_l8: regulator-l8 {
|
||||
regulator-min-microvolt = <312000>;
|
||||
regulator-max-microvolt = <752000>;
|
||||
qcom,init-voltage = <752000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa9 {
|
||||
status = "okay";
|
||||
L9A: pm5100_l9: regulator-l9 {
|
||||
regulator-min-microvolt = <1232000>;
|
||||
regulator-max-microvolt = <1232000>;
|
||||
qcom,init-voltage = <1232000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa10 {
|
||||
status = "okay";
|
||||
L10A: pm5100_l10: regulator-l10 {
|
||||
regulator-min-microvolt = <1128000>;
|
||||
regulator-max-microvolt = <1128000>;
|
||||
qcom,init-voltage = <1128000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa11 {
|
||||
status = "okay";
|
||||
L11A: pm5100_l11: regulator-l11 {
|
||||
regulator-min-microvolt = <1000000>;
|
||||
regulator-max-microvolt = <1000000>;
|
||||
qcom,init-voltage = <1000000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa12 {
|
||||
status = "okay";
|
||||
L12A: pm5100_l12: regulator-l12 {
|
||||
regulator-min-microvolt = <904000>;
|
||||
regulator-max-microvolt = <904000>;
|
||||
qcom,init-voltage = <904000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa13 {
|
||||
status = "okay";
|
||||
qcom,supported-modes =
|
||||
<RPM_SMD_REGULATOR_MODE_RET
|
||||
RPM_SMD_REGULATOR_MODE_LPM
|
||||
RPM_SMD_REGULATOR_MODE_HPM>;
|
||||
qcom,mode-threshold-currents = <0 10000 30000>;
|
||||
L13A: pm5100_l13: regulator-l13 {
|
||||
regulator-min-microvolt = <1304000>;
|
||||
regulator-max-microvolt = <1304000>;
|
||||
qcom,init-voltage = <1304000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa14 {
|
||||
status = "okay";
|
||||
L14A: pm5100_l14: regulator-l14 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa15 {
|
||||
status = "okay";
|
||||
L15A: pm5100_l15: regulator-l15 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa16 {
|
||||
status = "okay";
|
||||
L16A: pm5100_l16: regulator-l16 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa17 {
|
||||
status = "okay";
|
||||
L17A: pm5100_l17: regulator-l17 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa18 {
|
||||
status = "okay";
|
||||
L18A: pm5100_l18: regulator-l18 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa19 {
|
||||
status = "okay";
|
||||
L19A: pm5100_l19: regulator-l19 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa20 {
|
||||
status = "okay";
|
||||
L20A: pm5100_l20: regulator-l20 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa21 {
|
||||
status = "okay";
|
||||
L21A: pm5100_l21: regulator-l21 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa22 {
|
||||
status = "okay";
|
||||
L22A: pm5100_l22: regulator-l22 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa23 {
|
||||
status = "okay";
|
||||
L23A: pm5100_l23: regulator-l23 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa24 {
|
||||
status = "okay";
|
||||
L24A: pm5100_l24: regulator-l24 {
|
||||
regulator-min-microvolt = <3304000>;
|
||||
regulator-max-microvolt = <3304000>;
|
||||
qcom,init-voltage = <3304000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa25 {
|
||||
status = "okay";
|
||||
L25A: pm5100_l25: regulator-l25 {
|
||||
parent-supply = <&L12A>;
|
||||
regulator-min-microvolt = <3080000>;
|
||||
regulator-max-microvolt = <3080000>;
|
||||
qcom,init-voltage = <3080000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa26 {
|
||||
status = "okay";
|
||||
L26A: pm5100_l26: regulator-l26 {
|
||||
regulator-min-microvolt = <3304000>;
|
||||
regulator-max-microvolt = <3304000>;
|
||||
qcom,init-voltage = <3304000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa27 {
|
||||
status = "okay";
|
||||
L27A: pm5100_l27: regulator-l27 {
|
||||
regulator-min-microvolt = <2704000>;
|
||||
regulator-max-microvolt = <2704000>;
|
||||
qcom,init-voltage = <2704000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa28 {
|
||||
status = "okay";
|
||||
L28A: pm5100_l28: regulator-l28 {
|
||||
regulator-min-microvolt = <2904000>;
|
||||
regulator-max-microvolt = <2904000>;
|
||||
qcom,init-voltage = <2904000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa29 {
|
||||
status = "okay";
|
||||
L29A: pm5100_l29: regulator-l29 {
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
qcom,init-voltage = <2800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-boba {
|
||||
status = "okay";
|
||||
qcom,supported-modes =
|
||||
<RPM_SMD_REGULATOR_MODE_PASS
|
||||
RPM_SMD_REGULATOR_MODE_LPM
|
||||
RPM_SMD_REGULATOR_MODE_HPM>;
|
||||
qcom,mode-threshold-currents = <0 1000000 2000000>;
|
||||
|
||||
BOB: pm5100a_bob: regulator-pm5100a-bob {
|
||||
regulator-min-microvolt = <3000000>;
|
||||
regulator-max-microvolt = <4800000>;
|
||||
qcom,init-voltage = <3300000>;
|
||||
qcom,init-bob-mode = <RPM_SMD_REGULATOR_MODE_PASS>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
BOB_AO: pm5100a_bob_ao: regulator-pm5100a-bob-ao {
|
||||
regulator-min-microvolt = <3000000>;
|
||||
regulator-max-microvolt = <4800000>;
|
||||
qcom,init-voltage = <3300000>;
|
||||
qcom,init-bob-mode = <RPM_SMD_REGULATOR_MODE_AUTO>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom1 {
|
||||
status = "okay";
|
||||
L1C: pm8010_l1: regulator-l1 {
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
qcom,init-voltage = <1200000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom2 {
|
||||
status = "okay";
|
||||
L2C: pm8010_l2: regulator-l2 {
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
qcom,init-voltage = <1200000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom3 {
|
||||
status = "okay";
|
||||
L3C: pm8010_l3: regulator-l3 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom4 {
|
||||
status = "okay";
|
||||
L4C: pm8010_l4: regulator-l4 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
qcom,init-voltage = <1800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom5 {
|
||||
status = "okay";
|
||||
L5C: pm8010_l5: regulator-l5 {
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
qcom,init-voltage = <2800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom6 {
|
||||
status = "okay";
|
||||
L6C: pm8010_l6: regulator-l6 {
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
qcom,init-voltage = <2800000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom7 {
|
||||
status = "okay";
|
||||
L7C: pm8010_l7: regulator-l7 {
|
||||
regulator-min-microvolt = <3000000>;
|
||||
regulator-max-microvolt = <3000000>;
|
||||
qcom,init-voltage = <3000000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-chg-boost {
|
||||
status = "okay";
|
||||
SPKR_BOOST: pm5100_chg_boost: regulator-chg-boost {
|
||||
regulator-min-microvolt = <4100000>;
|
||||
regulator-max-microvolt = <5600000>;
|
||||
qcom,init-voltage = <4100000>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
106
qcom/monaco-thermal-overlay.dtsi
Normal file
106
qcom/monaco-thermal-overlay.dtsi
Normal file
@@ -0,0 +1,106 @@
|
||||
#include <dt-bindings/thermal/thermal_qti.h>
|
||||
|
||||
&thermal_zones {
|
||||
pm5100-tz {
|
||||
cooling-maps {
|
||||
trip0_cpu0 {
|
||||
trip = <&pm5100_trip0>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-2)
|
||||
(THERMAL_MAX_LIMIT-2)>;
|
||||
};
|
||||
|
||||
trip1_cpu2 {
|
||||
trip = <&pm5100_trip0>;
|
||||
cooling-device = <&cpu2_isolate 1 1>;
|
||||
};
|
||||
|
||||
trip1_cpu3 {
|
||||
trip = <&pm5100_trip0>;
|
||||
cooling-device = <&cpu3_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm5100-bcl-lvl0 {
|
||||
cooling-maps {
|
||||
cpu0_cdev {
|
||||
trip = <&bcl_lvl0>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-1)
|
||||
(THERMAL_MAX_LIMIT-1)>;
|
||||
};
|
||||
|
||||
cpu2_cdev {
|
||||
trip = <&bcl_lvl0>;
|
||||
cooling-device = <&cpu2_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu3_cdev {
|
||||
trip = <&bcl_lvl0>;
|
||||
cooling-device = <&cpu3_isolate 1 1>;
|
||||
};
|
||||
|
||||
gpu_cdev {
|
||||
trip = <&bcl_lvl0>;
|
||||
cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-2)
|
||||
(THERMAL_MAX_LIMIT-2)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm5100-bcl-lvl1 {
|
||||
cooling-maps {
|
||||
cpu0_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-1)
|
||||
(THERMAL_MAX_LIMIT-1)>;
|
||||
};
|
||||
|
||||
cpu1_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device = <&cpu1_isolate 1 1>;
|
||||
};
|
||||
|
||||
gpu_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm5100-bcl-lvl2 {
|
||||
cooling-maps {
|
||||
/* Need to update once we get fine tuned data */
|
||||
};
|
||||
};
|
||||
|
||||
socd {
|
||||
cooling-maps {
|
||||
soc_cpu0 {
|
||||
trip = <&socd_trip>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-2)
|
||||
(THERMAL_MAX_LIMIT-2)>;
|
||||
};
|
||||
|
||||
soc_cpu2 {
|
||||
trip = <&socd_trip>;
|
||||
cooling-device = <&cpu2_isolate 1 1>;
|
||||
};
|
||||
|
||||
soc_cpu3 {
|
||||
trip = <&socd_trip>;
|
||||
cooling-device = <&cpu3_isolate 1 1>;
|
||||
};
|
||||
|
||||
gpu_cdev {
|
||||
trip = <&socd_trip>;
|
||||
cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-2)
|
||||
(THERMAL_MAX_LIMIT-2)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
485
qcom/monaco-thermal.dtsi
Normal file
485
qcom/monaco-thermal.dtsi
Normal file
@@ -0,0 +1,485 @@
|
||||
#include <dt-bindings/thermal/thermal_qti.h>
|
||||
|
||||
&cpufreq_hw {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
lmh_dcvs0: qcom,limits-dcvs@f550800 {
|
||||
compatible = "qcom,msm-hw-limits";
|
||||
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
|
||||
qcom,affinity = <0>;
|
||||
reg = <0xf550800 0x1000>,
|
||||
<0xf521000 0x1000>;
|
||||
qcom,no-cooling-device-register;
|
||||
};
|
||||
|
||||
qcom,cpu-isolation {
|
||||
compatible = "qcom,cpu-isolate";
|
||||
cpu0_isolate: cpu0-isolate {
|
||||
qcom,cpu = <&CPU0>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu1_isolate: cpu1-isolate {
|
||||
qcom,cpu = <&CPU1>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu2_isolate: cpu2-isolate {
|
||||
qcom,cpu = <&CPU2>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
cpu3_isolate: cpu3-isolate {
|
||||
qcom,cpu = <&CPU3>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
tsens0:tsens@4410000 {
|
||||
compatible = "qcom,tsens26xx";
|
||||
reg = <0x04410000 0x20>,
|
||||
<0x04411000 0x140>;
|
||||
reg-names = "tsens_srot_physical",
|
||||
"tsens_tm_physical";
|
||||
interrupts-extended = <&intc 0 275 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<&intc 0 190 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<&wakegic 89 IRQ_TYPE_EDGE_RISING>;
|
||||
interrupt-names = "tsens-upper-lower",
|
||||
"tsens-critical",
|
||||
"tsens-0C";
|
||||
tsens-reinit-wa;
|
||||
0C-sensor-num = <16>;
|
||||
#thermal-sensor-cells = <1>;
|
||||
};
|
||||
|
||||
qmi-tmd-devices {
|
||||
compatible = "qcom,qmi-cooling-devices";
|
||||
|
||||
modem {
|
||||
qcom,instance-id = <QMI_MODEM_INST_ID>;
|
||||
|
||||
modem_pa: modem_pa {
|
||||
qcom,qmi-dev-name = "pa";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
modem_tj: modem_tj {
|
||||
qcom,qmi-dev-name = "modem";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
modem_skin: modem_skin {
|
||||
qcom,qmi-dev-name = "modem_skin";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
modem_wlan: modem_wlan {
|
||||
qcom,qmi-dev-name = "wlan";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
modem_tmd_rf_cal: modem_tmd_rf_cal {
|
||||
qcom,qmi-dev-name = "tmd_rf_cal";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
adsp {
|
||||
qcom,instance-id = <QMI_ADSP_INST_ID>;
|
||||
|
||||
adsp_vdd: adsp_vdd {
|
||||
qcom,qmi-dev-name = "cpuv_restriction_cold";
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
qmi_sensor: qmi-ts-sensors {
|
||||
compatible = "qcom,qmi-sensors";
|
||||
#thermal-sensor-cells = <1>;
|
||||
|
||||
modem {
|
||||
qcom,instance-id = <QMI_MODEM_INST_ID>;
|
||||
qcom,qmi-sensor-names = "rf_cal";
|
||||
};
|
||||
};
|
||||
|
||||
lmh_cpu_vdd: qcom,lmh-cpu-vdd@f550800 {
|
||||
compatible = "qcom,lmh-cpu-vdd";
|
||||
reg = <0xf550800 0x1000>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
gpu-step {
|
||||
polling-delay-passive = <10>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&tsens0 6>;
|
||||
trips {
|
||||
gpu_step_trip: gpu-trip {
|
||||
temperature = <85000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
gpu_cx_mon: gpu-cx-mon {
|
||||
temperature = <90000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
gpu-cdev {
|
||||
trip = <&gpu_step_trip>;
|
||||
cooling-device = <&msm_gpu THERMAL_NO_LIMIT
|
||||
THERMAL_NO_LIMIT>;
|
||||
};
|
||||
|
||||
gpu-cx-cdev0 {
|
||||
trip = <&gpu_cx_mon>;
|
||||
cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
gpu-cx-cdev1 {
|
||||
trip = <&gpu_cx_mon>;
|
||||
cooling-device = <&modem_tj 3 3>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpuss-0-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&tsens0 2>;
|
||||
trips {
|
||||
cpu0_2_config: cpu-0-2-config {
|
||||
temperature = <100000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu0_cdev {
|
||||
trip = <&cpu0_2_config>;
|
||||
cooling-device = <&cpu0_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu2_cdev {
|
||||
trip = <&cpu0_2_config>;
|
||||
cooling-device = <&cpu2_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpuss-1-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&tsens0 3>;
|
||||
trips {
|
||||
cpu1_3_config: cpu-1-3-config {
|
||||
temperature = <100000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu1_cdev {
|
||||
trip = <&cpu1_3_config>;
|
||||
cooling-device = <&cpu1_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu3_cdev {
|
||||
trip = <&cpu1_3_config>;
|
||||
cooling-device = <&cpu3_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mdm-0-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&tsens0 4>;
|
||||
trips {
|
||||
mdm0_cx_mon: mdm0-cx-mon {
|
||||
temperature = <90000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
mdm0-cx-cdev0 {
|
||||
trip = <&mdm0_cx_mon>;
|
||||
cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
mdm0-cx-cdev1 {
|
||||
trip = <&mdm0_cx_mon>;
|
||||
cooling-device = <&modem_tj 3 3>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mdm-1-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&tsens0 5>;
|
||||
trips {
|
||||
mdm1_cx_mon: mdm1-cx-mon {
|
||||
temperature = <90000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
mdm1-cx-cdev0 {
|
||||
trip = <&mdm1_cx_mon>;
|
||||
cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
|
||||
mdm1-cx-cdev1 {
|
||||
trip = <&mdm1_cx_mon>;
|
||||
cooling-device = <&modem_tj 3 3>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mapss-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&tsens0 0>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <105000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
wlan-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&tsens0 1>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <105000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpuss-0-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&tsens0 2>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <105000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cpuss-1-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&tsens0 3>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <105000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mdm-0-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&tsens0 4>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <105000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mdm-1-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&tsens0 5>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <105000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gpu-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&tsens0 6>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <105000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
camera-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&tsens0 7>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <105000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
zeroc-0-step {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 16>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
zeroc_0_trip: active-config0 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
lmh_cpu_cdev {
|
||||
trip = <&zeroc_0_trip>;
|
||||
cooling-device = <&lmh_cpu_vdd 1 1>;
|
||||
};
|
||||
|
||||
cx_vdd_cdev {
|
||||
trip = <&zeroc_0_trip>;
|
||||
cooling-device = <&cx_cdev 1 1>;
|
||||
};
|
||||
|
||||
mx_vdd_cdev {
|
||||
trip = <&zeroc_0_trip>;
|
||||
cooling-device = <&mx_cdev 1 1>;
|
||||
};
|
||||
|
||||
adsp_vdd_cdev {
|
||||
trip = <&zeroc_0_trip>;
|
||||
cooling-device = <&adsp_vdd 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
rf_cal {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&qmi_sensor
|
||||
(QMI_MODEM_INST_ID)>;
|
||||
thermal-governor = "step_wise";
|
||||
trips {
|
||||
rf_cal_trip: rf-cal-config {
|
||||
temperature = <2000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
bcl_off_cdev {
|
||||
trip = <&rf_cal_trip>;
|
||||
cooling-device = <&bcl_off 1 1>;
|
||||
};
|
||||
|
||||
tmd_rf_cal_cdev {
|
||||
trip = <&rf_cal_trip>;
|
||||
cooling-device = <&modem_tmd_rf_cal 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
140
qcom/monaco-usb.dtsi
Normal file
140
qcom/monaco-usb.dtsi
Normal file
@@ -0,0 +1,140 @@
|
||||
#include <dt-bindings/clock/qcom,gcc-monaco.h>
|
||||
#include <dt-bindings/interconnect/qcom,monaco.h>
|
||||
|
||||
&soc {
|
||||
/* Primary USB port related controller */
|
||||
usb0: hsusb@4e00000 {
|
||||
compatible = "qcom,dwc-usb3-msm";
|
||||
reg = <0x4e00000 0x100000>;
|
||||
reg-names = "core_base";
|
||||
|
||||
iommus = <&apps_smmu 0x120 0x0>;
|
||||
qcom,iommu-dma = "atomic";
|
||||
qcom,iommu-dma-addr-pool = <0x50000000 0x60000000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
dma-ranges;
|
||||
|
||||
interrupts = <GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "pwr_event_irq", "hs_phy_irq";
|
||||
|
||||
clocks = <&gcc GCC_USB20_MASTER_CLK>,
|
||||
<&gcc GCC_CFG_NOC_USB2_PRIM_AXI_CLK>,
|
||||
<&gcc GCC_SYS_NOC_USB2_PRIM_AXI_CLK>,
|
||||
<&gcc GCC_USB2_PRIM_CLKREF_CLK>,
|
||||
<&gcc GCC_USB20_SLEEP_CLK>,
|
||||
<&gcc GCC_USB20_MOCK_UTMI_CLK>;
|
||||
clock-names = "core_clk", "iface_clk", "bus_aggr_clk",
|
||||
"xo", "sleep_clk", "utmi_clk";
|
||||
|
||||
resets = <&gcc GCC_USB20_PRIM_BCR>;
|
||||
reset-names = "core_reset";
|
||||
|
||||
USB3_GDSC-supply = <&gcc_usb20_prim_gdsc>;
|
||||
dpdm-supply = <&usb2_phy0>;
|
||||
qcom,usb-charger;
|
||||
extcon = <&eud>;
|
||||
|
||||
qcom,core-clk-rate = <60000000>;
|
||||
qcom,default-bus-vote = <2>; /* use svs bus voting */
|
||||
|
||||
interconnect-names = "usb-ddr", "usb-ipa", "ddr-usb";
|
||||
interconnects = <&system_noc MASTER_USB3 &bimc SLAVE_EBI_CH0>,
|
||||
<&system_noc MASTER_USB3 &config_noc SLAVE_IPA_CFG>,
|
||||
<&bimc MASTER_AMPSS_M0 &config_noc SLAVE_USB3>;
|
||||
|
||||
qcom,interconnect-values-svs = /* SVS Votes */
|
||||
<30000 70000>,
|
||||
<0 2400>,
|
||||
<0 40000>;
|
||||
|
||||
qcom,num-gsi-evt-buffs = <0x3>;
|
||||
qcom,gsi-reg-offset =
|
||||
<0x0fc /* GSI_GENERAL_CFG */
|
||||
0x110 /* GSI_DBL_ADDR_L */
|
||||
0x120 /* GSI_DBL_ADDR_H */
|
||||
0x130 /* GSI_RING_BASE_ADDR_L */
|
||||
0x144 /* GSI_RING_BASE_ADDR_H */
|
||||
0x1a4>; /* GSI_IF_STS */
|
||||
qcom,dwc-usb3-msm-tx-fifo-size = <10488>;
|
||||
|
||||
dwc3@4e00000 {
|
||||
compatible = "snps,dwc3";
|
||||
reg = <0x4e00000 0xcd00>;
|
||||
interrupts = <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>;
|
||||
usb-phy = <&usb2_phy0>, <&usb_nop_phy>;
|
||||
tx-fifo-resize;
|
||||
linux,sysdev_is_parent;
|
||||
snps,disable-clk-gating;
|
||||
snps,is-utmi-l1-suspend;
|
||||
snps,dis-u1-entry-quirk;
|
||||
snps,dis-u2-entry-quirk;
|
||||
snps,dis_u2_susphy_quirk;
|
||||
snps,dis_enblslpm_quirk;
|
||||
snps,has-lpm-erratum;
|
||||
snps,hird-threshold = /bits/ 8 <0x0>;
|
||||
maximum-speed = "high-speed";
|
||||
max-num-endpoints = /bits/ 8 <16>;
|
||||
dr_mode = "otg";
|
||||
};
|
||||
|
||||
qcom,usbbam@0x04f04000 {
|
||||
compatible = "qcom,usb-bam-msm";
|
||||
reg = <0x04f04000 0x17000>;
|
||||
interrupts = <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>;
|
||||
|
||||
qcom,usb-bam-fifo-baseaddr = <0xc121000>;
|
||||
qcom,usb-bam-num-pipes = <4>;
|
||||
qcom,disable-clk-gating;
|
||||
qcom,usb-bam-override-threshold = <0x4001>;
|
||||
qcom,usb-bam-max-mbps-highspeed = <400>;
|
||||
qcom,reset-bam-on-connect;
|
||||
|
||||
qcom,pipe0 {
|
||||
label = "hsusb-qdss-in-0";
|
||||
qcom,usb-bam-mem-type = <2>;
|
||||
qcom,dir = <1>;
|
||||
qcom,pipe-num = <0>;
|
||||
qcom,peer-bam = <0>;
|
||||
qcom,peer-bam-physical-address = <0x08064000>;
|
||||
qcom,src-bam-pipe-index = <0>;
|
||||
qcom,dst-bam-pipe-index = <0>;
|
||||
qcom,data-fifo-offset = <0x0>;
|
||||
qcom,data-fifo-size = <0x1800>;
|
||||
qcom,descriptor-fifo-offset = <0x1800>;
|
||||
qcom,descriptor-fifo-size = <0x800>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* Primary USB port related High Speed PHY */
|
||||
usb2_phy0: hsphy@1613000 {
|
||||
compatible = "qcom,usb-hsphy-snps-femto";
|
||||
reg = <0x1613000 0x120>,
|
||||
<0x01612000 0x4>;
|
||||
reg-names = "hsusb_phy_base",
|
||||
"eud_enable_reg";
|
||||
|
||||
vdd-supply = <&L12A>;
|
||||
vdda18-supply = <&L14A>;
|
||||
vdda33-supply = <&L25A>;
|
||||
qcom,vdd-voltage-level = <0 904000 904000>;
|
||||
|
||||
clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>;
|
||||
clock-names = "ref_clk_src";
|
||||
|
||||
resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>;
|
||||
reset-names = "phy_reset";
|
||||
qcom,param-override-seq =
|
||||
<0x63 0x6c /* override_x0 */
|
||||
0xC8 0x70 /* override_x1 */
|
||||
0x17 0x74>; /* override x2 */
|
||||
};
|
||||
|
||||
usb_nop_phy: usb_nop_phy {
|
||||
compatible = "usb-nop-xceiv";
|
||||
};
|
||||
|
||||
};
|
||||
9
qcom/monaco.dts
Normal file
9
qcom/monaco.dts
Normal file
@@ -0,0 +1,9 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "monaco.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Monaco SoC";
|
||||
compatible = "qcom,monaco";
|
||||
qcom,board-id = <0 0>;
|
||||
};
|
||||
1276
qcom/monaco.dtsi
Normal file
1276
qcom/monaco.dtsi
Normal file
File diff suppressed because it is too large
Load Diff
9
qcom/monacop.dts
Normal file
9
qcom/monacop.dts
Normal file
@@ -0,0 +1,9 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "monacop.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. MonacoP SoC";
|
||||
compatible = "qcom,monacop";
|
||||
qcom,board-id = <0 0>;
|
||||
};
|
||||
13
qcom/monacop.dtsi
Normal file
13
qcom/monacop.dtsi
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "monaco.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. MonacoP";
|
||||
compatible = "qcom,monacop";
|
||||
qcom,msm-id = <517 0x10000>;
|
||||
};
|
||||
|
||||
&soc {
|
||||
qcom,rmnet-ipa {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
216
qcom/msm-arm-smmu-monaco.dtsi
Normal file
216
qcom/msm-arm-smmu-monaco.dtsi
Normal file
@@ -0,0 +1,216 @@
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include <dt-bindings/interconnect/qcom,monaco.h>
|
||||
|
||||
&soc {
|
||||
kgsl_smmu: kgsl-smmu@0x59a0000 {
|
||||
status = "okay";
|
||||
compatible = "qcom,qsmmu-v500";
|
||||
reg = <0x59a0000 0x10000>,
|
||||
<0x59da000 0x20>;
|
||||
reg-names = "base", "tcu-base";
|
||||
#iommu-cells = <2>;
|
||||
qcom,skip-init;
|
||||
qcom,no-dynamic-asid;
|
||||
qcom,use-3-lvl-tables;
|
||||
#global-interrupts = <1>;
|
||||
qcom,regulator-names = "vdd";
|
||||
vdd-supply = <&gpu_cx_gdsc>;
|
||||
clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>,
|
||||
<&gcc GCC_GPU_SNOC_DVM_GFX_CLK>,
|
||||
<&gpucc GPU_CC_AHB_CLK>,
|
||||
<&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>;
|
||||
clock-names = "gcc_gpu_memnoc_gfx",
|
||||
"gcc_gpu_snoc_dvm_gfx",
|
||||
"gpu_cc_ahb",
|
||||
"gpu_cc_hlos1_vote_gpu_smmu_clk";
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
|
||||
|
||||
qcom,actlr =
|
||||
/* ALL CBs of GFX: +15 deep PF */
|
||||
<0x0 0x3ff 0x32B>;
|
||||
|
||||
gfx_0_tbu: gfx_0_tbu@0x59dd000 {
|
||||
compatible = "qcom,qsmmuv500-tbu";
|
||||
reg = <0x59dd000 0x1000>,
|
||||
<0x59da200 0x8>;
|
||||
reg-names = "base", "status-reg";
|
||||
qcom,stream-id-range = <0x0 0x400>;
|
||||
interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
apps_smmu: apps-smmu@0xc600000 {
|
||||
status = "okay";
|
||||
compatible = "qcom,qsmmu-v500";
|
||||
reg = <0xc600000 0x80000>,
|
||||
<0xc7f2000 0x20>;
|
||||
reg-names = "base", "tcu-base";
|
||||
#iommu-cells = <2>;
|
||||
qcom,skip-init;
|
||||
qcom,use-3-lvl-tables;
|
||||
#global-interrupts = <1>;
|
||||
#size-cells = <1>;
|
||||
#address-cells = <1>;
|
||||
ranges;
|
||||
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
|
||||
qcom,msm-bus,name = "apps_smmu";
|
||||
qcom,msm-bus,num-cases = <2>;
|
||||
qcom,msm-bus,active-only;
|
||||
qcom,msm-bus,num-paths = <1>;
|
||||
qcom,msm-bus,vectors-KBps =
|
||||
<MASTER_AMPSS_M0 SLAVE_TCU 0 0>,
|
||||
<MASTER_AMPSS_M0 SLAVE_TCU 0 1000>;
|
||||
|
||||
qcom,actlr =
|
||||
/* For rt TBU +3 deep PF */
|
||||
<0x400 0x3ff 0x103>,
|
||||
/* For nrt TBU +3 deep PF */
|
||||
<0x800 0x3ff 0x103>;
|
||||
|
||||
anoc_1_tbu: anoc_1_tbu@0xc7f5000 {
|
||||
compatible = "qcom,qsmmuv500-tbu";
|
||||
reg = <0xc7f5000 0x1000>,
|
||||
<0xc7f2200 0x8>;
|
||||
reg-names = "base", "status-reg";
|
||||
qcom,stream-id-range = <0x0 0x400>;
|
||||
interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
|
||||
qcom,msm-bus,name = "apps_smmu";
|
||||
qcom,msm-bus,num-cases = <2>;
|
||||
qcom,msm-bus,active-only;
|
||||
qcom,msm-bus,num-paths = <2>;
|
||||
qcom,msm-bus,vectors-KBps =
|
||||
<MASTER_AMPSS_M0 SLAVE_TCU 0 0>,
|
||||
<MASTER_AMPSS_M0 SLAVE_IMEM_CFG 0 0>,
|
||||
<MASTER_AMPSS_M0 SLAVE_TCU 0 1000>,
|
||||
<MASTER_AMPSS_M0 SLAVE_IMEM_CFG 0 1000>;
|
||||
};
|
||||
|
||||
mm_rt_tbu: mm_rt_tbu@0xc7f9000 {
|
||||
compatible = "qcom,qsmmuv500-tbu";
|
||||
reg = <0xc7f9000 0x1000>,
|
||||
<0xc7f2208 0x8>;
|
||||
reg-names = "base", "status-reg";
|
||||
qcom,stream-id-range = <0x400 0x400>;
|
||||
interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
|
||||
qcom,msm-bus,name = "apps_smmu";
|
||||
qcom,msm-bus,num-cases = <2>;
|
||||
qcom,msm-bus,active-only;
|
||||
qcom,msm-bus,num-paths = <2>;
|
||||
qcom,msm-bus,vectors-KBps =
|
||||
<MASTER_AMPSS_M0 SLAVE_TCU 0 0>,
|
||||
<MASTER_MDP_PORT0 SLAVE_SNOC_BIMC_RT 0 0>,
|
||||
<MASTER_AMPSS_M0 SLAVE_TCU 0 1000>,
|
||||
<MASTER_MDP_PORT0 SLAVE_SNOC_BIMC_RT 0 1000>;
|
||||
};
|
||||
|
||||
mm_nrt_tbu: mm_nrt_tbu@0xc7fd000 {
|
||||
compatible = "qcom,qsmmuv500-tbu";
|
||||
reg = <0xc7fd000 0x1000>,
|
||||
<0xc7f2210 0x8>;
|
||||
reg-names = "base", "status-reg";
|
||||
qcom,stream-id-range = <0x800 0x400>;
|
||||
interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
|
||||
qcom,msm-bus,name = "apps_smmu";
|
||||
qcom,msm-bus,num-cases = <2>;
|
||||
qcom,msm-bus,active-only;
|
||||
qcom,msm-bus,num-paths = <2>;
|
||||
qcom,msm-bus,vectors-KBps =
|
||||
<MASTER_AMPSS_M0 SLAVE_TCU 0 0>,
|
||||
<MASTER_CAMNOC_SF SLAVE_SNOC_BIMC_NRT 0 0>,
|
||||
<MASTER_AMPSS_M0 SLAVE_TCU 0 1000>,
|
||||
<MASTER_CAMNOC_SF SLAVE_SNOC_BIMC_NRT 0 1000>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
kgsl_iommu_test_device {
|
||||
compatible = "iommu-debug-test";
|
||||
iommus = <&kgsl_smmu 0x7 0x0>;
|
||||
};
|
||||
|
||||
apps_iommu_test_device {
|
||||
compatible = "iommu-debug-test";
|
||||
iommus = <&apps_smmu 0x1E0 0x0>;
|
||||
};
|
||||
|
||||
apps_iommu_coherent_test_device {
|
||||
compatible = "iommu-debug-test";
|
||||
qcom,iommu-dma = "disabled";
|
||||
iommus = <&apps_smmu 0x1E1 0x0>;
|
||||
dma-coherent;
|
||||
};
|
||||
};
|
||||
15
qcom/msm-rdbg-monaco.dtsi
Normal file
15
qcom/msm-rdbg-monaco.dtsi
Normal file
@@ -0,0 +1,15 @@
|
||||
&soc {
|
||||
/* smp2p information */
|
||||
qcom,smp2p_interrupt_rdbg_2_out {
|
||||
compatible = "qcom,smp2p-interrupt-rdbg-2-out";
|
||||
qcom,smem-states = <&smp2p_rdbg2_out 0>;
|
||||
qcom,smem-state-names = "rdbg-smp2p-out";
|
||||
};
|
||||
|
||||
qcom,smp2p_interrupt_rdbg_2_in {
|
||||
compatible = "qcom,smp2p-interrupt-rdbg-2-in";
|
||||
interrupts-extended = <&smp2p_rdbg2_in 0 0>;
|
||||
interrupt-names = "rdbg-smp2p-in";
|
||||
};
|
||||
|
||||
};
|
||||
614
qcom/pm5100-rpm-regulator.dtsi
Normal file
614
qcom/pm5100-rpm-regulator.dtsi
Normal file
@@ -0,0 +1,614 @@
|
||||
&rpm_bus {
|
||||
rpm-regulator-smpa1 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "smpa";
|
||||
qcom,resource-id = <1>;
|
||||
qcom,regulator-type = <1>;
|
||||
qcom,hpm-min-load = <100000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-s1 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_s1";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-smpa2 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "smpa";
|
||||
qcom,resource-id = <2>;
|
||||
qcom,regulator-type = <1>;
|
||||
qcom,hpm-min-load = <100000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-s2 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_s2";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-smpa3 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "smpa";
|
||||
qcom,resource-id = <3>;
|
||||
qcom,regulator-type = <1>;
|
||||
qcom,hpm-min-load = <100000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-s3 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_s3";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-smpa4 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "smpa";
|
||||
qcom,resource-id = <4>;
|
||||
qcom,regulator-type = <1>;
|
||||
qcom,hpm-min-load = <100000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-s4 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_s4";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-smpa5 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "smpa";
|
||||
qcom,resource-id = <5>;
|
||||
qcom,regulator-type = <1>;
|
||||
qcom,hpm-min-load = <100000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-s5 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_s5";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa1 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <1>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l1 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l1";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa2 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <2>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l2 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l2";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa3 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <3>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l3 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l3";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa4 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <4>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l4 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l4";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa5 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <5>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l5 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l5";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa6 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <6>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l6 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l6";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa7 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <7>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l7 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l7";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa8 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <8>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l8 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l8";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa9 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <9>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l9 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l9";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa10 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <10>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l10 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l10";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa11 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <11>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l11 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l11";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa12 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <12>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l12 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l12";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa13 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <13>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <30000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l13 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l13";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa14 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <14>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l14 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l14";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa15 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <15>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l15 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l15";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa16 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <16>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l16 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l16";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa17 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <17>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l17 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l17";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa18 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <18>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l18 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l18";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa19 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <19>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l19 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l19";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa20 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <20>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l20 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l20";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa21 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <21>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l21 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l21";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa22 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <22>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l22 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l22";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa23 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <23>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l23 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l23";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa24 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <24>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l24 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l24";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa25 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <25>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l25 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l25";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa26 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <26>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l26 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l26";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa27 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <27>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l27 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l27";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa28 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <28>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l28 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l28";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldoa29 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldoa";
|
||||
qcom,resource-id = <29>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l29 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_l29";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-boba {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "boba";
|
||||
qcom,resource-id = <1>;
|
||||
qcom,regulator-type = <4>;
|
||||
qcom,regulator-hw-type = "pmic5-bob";
|
||||
qcom,send-defaults;
|
||||
status = "disabled";
|
||||
|
||||
regulator-pm5100a-bob {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100a_bob";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
regulator-pm5100a-bob-ao {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100a_bob_ao";
|
||||
qcom,set = <1>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-chg-boost {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "bsta";
|
||||
qcom,resource-id = <1>;
|
||||
qcom,regulator-type = <1>;
|
||||
qcom,hpm-min-load = <100000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-chg-boost {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm5100_chg_boost";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
659
qcom/pm5100.dtsi
Normal file
659
qcom/pm5100.dtsi
Normal file
@@ -0,0 +1,659 @@
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/input/qcom,qpnp-power-on.h>
|
||||
#include <dt-bindings/spmi/spmi.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-vadc.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-adc5-gen3-pm5100.h>
|
||||
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
||||
#include <dt-bindings/input/qcom,hv-haptics.h>
|
||||
|
||||
&spmi_bus {
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <4>;
|
||||
|
||||
qcom,pm5100@0 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <0 SPMI_USID>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
pon_hlos@1300 {
|
||||
compatible = "qcom,qpnp-power-on";
|
||||
reg = <0x1300>;
|
||||
interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
|
||||
interrupt-names = "kpdpwr", "resin";
|
||||
|
||||
qcom,pon_1 {
|
||||
qcom,pon-type = <PON_POWER_ON_TYPE_KPDPWR>;
|
||||
linux,code = <KEY_POWER>;
|
||||
};
|
||||
|
||||
qcom,pon_2 {
|
||||
qcom,pon-type = <PON_POWER_ON_TYPE_RESIN>;
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
};
|
||||
};
|
||||
|
||||
pm5100_charger: qcom,qpnp-smblite {
|
||||
compatible = "qcom,qpnp-pm5100-smblite";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
#cooling-cells = <2>;
|
||||
|
||||
qcom,thermal-mitigation = <1500000 1400000
|
||||
1300000 1200000 1100000 1000000 900000
|
||||
800000 700000 600000 500000 400000
|
||||
300000 200000 100000>;
|
||||
|
||||
qcom,chgr@2600 {
|
||||
reg = <0x1000>;
|
||||
interrupts =
|
||||
<0x0 0x26 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x26 0x0 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x26 0x4 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x26 0x7 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
interrupt-names = "chgr-error",
|
||||
"chg-state-change",
|
||||
"buck-oc",
|
||||
"vph-ov";
|
||||
};
|
||||
|
||||
qcom,dcdc@2700 {
|
||||
reg = <0x2700>;
|
||||
interrupts =
|
||||
<0x0 0x27 0x0 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x27 0x4 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x27 0x6 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x27 0x7 IRQ_TYPE_EDGE_BOTH>;
|
||||
|
||||
interrupt-names = "boost-mode-sw-en",
|
||||
"skip-mode",
|
||||
"input-current-limiting",
|
||||
"switcher-power-ok";
|
||||
};
|
||||
|
||||
qcom,batif@2800 {
|
||||
reg = <0x2800>;
|
||||
interrupts =
|
||||
<0x0 0x28 0x0 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x28 0x2 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x28 0x3 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x28 0x4 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
interrupt-names = "bat-temp",
|
||||
"bat-low",
|
||||
"bat-ov",
|
||||
"bsm-active";
|
||||
};
|
||||
|
||||
qcom,usb@2900 {
|
||||
reg = <0x2900>;
|
||||
interrupts =
|
||||
<0x0 0x29 0x0 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x29 0x1 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x29 0x2 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x29 0x3 IRQ_TYPE_EDGE_BOTH>,
|
||||
<0x0 0x29 0x4 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x29 0x6 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x29 0x7 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
interrupt-names = "usbin-plugin",
|
||||
"usbin-collapse",
|
||||
"usbin-uv",
|
||||
"usbin-ov",
|
||||
"usbin-gtvt",
|
||||
"usbin-icl-change",
|
||||
"usbin-src-change";
|
||||
};
|
||||
|
||||
qcom,misc@2c00 {
|
||||
reg = <0x2c00>;
|
||||
interrupts =
|
||||
<0x0 0x2c 0x0 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x2c 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x2c 0x2 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x2c 0x3 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x2c 0x4 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x2c 0x5 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x2c 0x6 IRQ_TYPE_EDGE_BOTH>;
|
||||
|
||||
interrupt-names = "wdog-snarl",
|
||||
"wdog-bark",
|
||||
"aicl-fail",
|
||||
"aicl-done",
|
||||
"imp-trigger",
|
||||
"all-chnl-cond-done",
|
||||
"temp-change";
|
||||
};
|
||||
};
|
||||
|
||||
pm5100_tz: qcom,temp-alarm@a00 {
|
||||
compatible = "qcom,spmi-temp-alarm";
|
||||
reg = <0xa00>;
|
||||
interrupts = <0x0 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
|
||||
io-channels = <&pm5100_adc PM5100_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
pm5100_adc: vadc@8000 {
|
||||
compatible = "qcom,spmi-adc5-gen3";
|
||||
reg = <0x8000>, <0x8300>;
|
||||
reg-names = "adc5-gen3-base", "adc5-gen3-debug-base";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
interrupts = <0x0 0x80 0x1 IRQ_TYPE_EDGE_RISING>;
|
||||
interrupt-names = "adc";
|
||||
#io-channel-cells = <1>;
|
||||
status = "disabled";
|
||||
|
||||
pm5100_ref_gnd {
|
||||
reg = <PM5100_ADC5_GEN3_OFFSET_REF>;
|
||||
label = "pm5100_ref_gnd";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm5100_vref_1p25 {
|
||||
reg = <PM5100_ADC5_GEN3_1P25VREF>;
|
||||
label = "pm5100_vref_1p25";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm5100_die_temp {
|
||||
reg = <PM5100_ADC5_GEN3_DIE_TEMP>;
|
||||
label = "pm5100_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm5100_xo_therm {
|
||||
reg = <PM5100_ADC5_GEN3_AMUX1_THM_100K_PU>;
|
||||
label = "pm5100_xo_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <700>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm5100_usb_in_i_uv {
|
||||
reg = <PM5100_ADC5_GEN3_USB_IN_I>;
|
||||
label = "pm5100_usb_in_i_uv";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_PM5_GEN3_USB_IN_I>;
|
||||
};
|
||||
|
||||
pm5100_chg_temp {
|
||||
reg = <PM5100_ADC5_GEN3_CHG_TEMP>;
|
||||
label = "pm5100_chg_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_PM5_CHG_TEMP>;
|
||||
};
|
||||
|
||||
pm5100_usb_in_v {
|
||||
reg = <PM5100_ADC5_GEN3_USB_SNS_V_16>;
|
||||
label = "pm5100_usb_in_v";
|
||||
qcom,pre-scaling = <1 16>;
|
||||
};
|
||||
|
||||
pm5100_boost_out_v {
|
||||
reg = <PM5100_ADC5_GEN3_VIN_DIV16_MUX>;
|
||||
label = "pm5100_boost_out_v";
|
||||
qcom,pre-scaling = <1 6>;
|
||||
};
|
||||
|
||||
pm5100_bat_therm {
|
||||
reg = <PM5100_ADC5_GEN3_BATT_THM_100K_PU>;
|
||||
label = "pm5100_bat_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_PM5_GEN3_BATT_THERM_100K>;
|
||||
};
|
||||
|
||||
pm5100_bat_id {
|
||||
reg = <PM5100_ADC5_GEN3_BAT_ID_100K_PU>;
|
||||
label = "pm5100_bat_id";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_PM5_GEN3_BATT_ID_100K>;
|
||||
};
|
||||
|
||||
pm5100_vph_pwr {
|
||||
reg = <PM5100_ADC5_GEN3_VPH_PWR>;
|
||||
label = "pm5100_vph_pwr";
|
||||
qcom,pre-scaling = <1 3>;
|
||||
};
|
||||
|
||||
pm5100_vbat_sns {
|
||||
reg = <PM5100_ADC5_GEN3_VBAT_SNS_QBG>;
|
||||
label = "pm5100_vbat_sns";
|
||||
qcom,pre-scaling = <1 3>;
|
||||
};
|
||||
};
|
||||
|
||||
pm5100_gpios: pinctrl@8800 {
|
||||
compatible = "qcom,pm5100-gpio";
|
||||
reg = <0x8800>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
};
|
||||
|
||||
pm5100_rtc: rtc@6400 {
|
||||
compatible = "qcom,pm5100-rtc";
|
||||
reg = <0x6400>, <0x6500>;
|
||||
reg-names = "rtc", "alarm";
|
||||
interrupts = <0x0 0x65 0x1 IRQ_TYPE_EDGE_RISING>;
|
||||
};
|
||||
|
||||
pm5100_bcl: bcl@4700 {
|
||||
compatible = "qcom,bcl-v5";
|
||||
reg = <0x4700 0x100>;
|
||||
interrupts = <0x0 0x47 0x0 IRQ_TYPE_NONE>,
|
||||
<0x0 0x47 0x1 IRQ_TYPE_NONE>,
|
||||
<0x0 0x47 0x2 IRQ_TYPE_NONE>;
|
||||
interrupt-names = "bcl-lvl0",
|
||||
"bcl-lvl1",
|
||||
"bcl-lvl2";
|
||||
qcom,pmic7-threshold;
|
||||
qcom,ibat-ccm-hw-support;
|
||||
#thermal-sensor-cells = <1>;
|
||||
};
|
||||
|
||||
bcl_soc:bcl-soc {
|
||||
compatible = "qcom,msm-bcl-soc";
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
bcl_off: bcl-off@4700 {
|
||||
compatible = "qcom,bcl-off";
|
||||
reg = <0x4700 0x100>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
pm5100_sdam_2: sdam@7100 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0x7100>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
restart_reason: restart@48 {
|
||||
reg = <0x48 0x1>;
|
||||
bits = <1 7>;
|
||||
};
|
||||
|
||||
charger_debug_mask: debug@94 {
|
||||
reg = <0x94 0x1>;
|
||||
};
|
||||
|
||||
qbg_debug_mask_low: debug@96 {
|
||||
reg = <0x96 0x1>;
|
||||
};
|
||||
|
||||
qbg_debug_mask_high: debug@97 {
|
||||
reg = <0x97 0x1>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
pm5100_sdam_7: sdam@7600 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0x7600>;
|
||||
};
|
||||
|
||||
pm5100_sdam_22: sdam@8500 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0x8500>;
|
||||
|
||||
/* GPS demod state */
|
||||
skip_esr_state: demod@46 {
|
||||
reg = <0x46 0x1>;
|
||||
};
|
||||
};
|
||||
|
||||
pm5100_sdam_23: sdam@8600 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0x8600>;
|
||||
};
|
||||
|
||||
pm5100_qbg: qpnp,qbg@4f00 {
|
||||
status = "disabled";
|
||||
compatible = "qcom,qbg";
|
||||
#address-cells = <1>;
|
||||
reg = <0x4f00>;
|
||||
interrupt-names = "qbg-sdam";
|
||||
interrupts = <0x0 0x76 0x1 IRQ_TYPE_EDGE_RISING>;
|
||||
qcom,num-data-sdams = <5>;
|
||||
qcom,sdam-base = <0x7600>;
|
||||
qcom,adc-cmn-wb-base = <0x3000>;
|
||||
qcom,adc-cmn-base = <0x3900>;
|
||||
};
|
||||
|
||||
pm5100_haptics: qcom,hv-haptics@f000 {
|
||||
compatible = "qcom,pm5100-haptics";
|
||||
reg = <0xf000>, <0xf100>;
|
||||
interrupts = <0x0 0xf0 0x1 IRQ_TYPE_EDGE_RISING>;
|
||||
interrupt-names = "fifo-empty";
|
||||
qcom,vmax-mv = <2500>;
|
||||
qcom,brake-mode = <BRAKE_CLOSE_LOOP>;
|
||||
qcom,brake-pattern = /bits/ 8 <0xff 0x3f 0x1f>;
|
||||
qcom,lra-period-us = <4167>;
|
||||
qcom,drv-sig-shape = <WF_SINE>;
|
||||
qcom,brake-sig-shape = <WF_SINE>;
|
||||
status = "disabled";
|
||||
|
||||
effect_0 {
|
||||
/* CLICK */
|
||||
qcom,effect-id = <0>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x01f S_PERIOD_T_LRA 0>,
|
||||
<0x03f S_PERIOD_T_LRA 0>,
|
||||
<0x05f S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>,
|
||||
<0x17f S_PERIOD_T_LRA 0>,
|
||||
<0x15f S_PERIOD_T_LRA 0>,
|
||||
<0x13f S_PERIOD_T_LRA 0>,
|
||||
<0x11f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-pattern-preload;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
effect_1 {
|
||||
/* DOUBLE_CLICK */
|
||||
qcom,effect-id = <1>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x01f S_PERIOD_T_LRA 0>,
|
||||
<0x03f S_PERIOD_T_LRA 0>,
|
||||
<0x05f S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>,
|
||||
<0x17f S_PERIOD_T_LRA 0>,
|
||||
<0x15f S_PERIOD_T_LRA 0>,
|
||||
<0x13f S_PERIOD_T_LRA 0>,
|
||||
<0x11f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
effect_2 {
|
||||
/* TICK */
|
||||
qcom,effect-id = <2>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x01f S_PERIOD_T_LRA 0>,
|
||||
<0x03f S_PERIOD_T_LRA 0>,
|
||||
<0x05f S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>,
|
||||
<0x17f S_PERIOD_T_LRA 0>,
|
||||
<0x15f S_PERIOD_T_LRA 0>,
|
||||
<0x13f S_PERIOD_T_LRA 0>,
|
||||
<0x11f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
effect_3 {
|
||||
/* THUD */
|
||||
qcom,effect-id = <3>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x01f S_PERIOD_T_LRA 0>,
|
||||
<0x03f S_PERIOD_T_LRA 0>,
|
||||
<0x05f S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>,
|
||||
<0x17f S_PERIOD_T_LRA 0>,
|
||||
<0x15f S_PERIOD_T_LRA 0>,
|
||||
<0x13f S_PERIOD_T_LRA 0>,
|
||||
<0x11f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
effect_4 {
|
||||
/* POP */
|
||||
qcom,effect-id = <4>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x01f S_PERIOD_T_LRA 0>,
|
||||
<0x03f S_PERIOD_T_LRA 0>,
|
||||
<0x05f S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>,
|
||||
<0x17f S_PERIOD_T_LRA 0>,
|
||||
<0x15f S_PERIOD_T_LRA 0>,
|
||||
<0x13f S_PERIOD_T_LRA 0>,
|
||||
<0x11f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
effect_5 {
|
||||
/* HEAVY CLICK */
|
||||
qcom,effect-id = <5>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x01f S_PERIOD_T_LRA 0>,
|
||||
<0x03f S_PERIOD_T_LRA 0>,
|
||||
<0x05f S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>,
|
||||
<0x17f S_PERIOD_T_LRA 0>,
|
||||
<0x15f S_PERIOD_T_LRA 0>,
|
||||
<0x13f S_PERIOD_T_LRA 0>,
|
||||
<0x11f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
primitive_0 {
|
||||
/* NOOP */
|
||||
qcom,primitive-id = <0>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0 S_PERIOD_T_LRA 0>,
|
||||
<0 S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
primitive_1 {
|
||||
/* CLICK */
|
||||
qcom,primitive-id = <1>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x0ff S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
primitive_2 {
|
||||
/* THUD */
|
||||
qcom,primitive-id = <2>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x0ff S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
primitive_3 {
|
||||
/* SPIN */
|
||||
qcom,primitive-id = <3>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x0ff S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
primitive_4 {
|
||||
/* QUICK_RISE */
|
||||
qcom,primitive-id = <4>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x0ff S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
primitive_5 {
|
||||
/* SLOW_RISE */
|
||||
qcom,primitive-id = <5>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x0ff S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
primitive_6 {
|
||||
/* QUICK_FALL */
|
||||
qcom,primitive-id = <6>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x0ff S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
|
||||
primitive_7 {
|
||||
/* LIGHT_TICK */
|
||||
qcom,primitive-id = <7>;
|
||||
qcom,wf-vmax-mv = <4800>;
|
||||
qcom,wf-pattern-data = <0x0ff S_PERIOD_T_LRA 0>,
|
||||
<0x07f S_PERIOD_T_LRA 0>;
|
||||
qcom,wf-pattern-period-us = <4167>;
|
||||
qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
|
||||
qcom,wf-auto-res-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
pm5100-tz {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm5100_tz>;
|
||||
|
||||
trips {
|
||||
pm5100_trip0: trip0 {
|
||||
temperature = <95000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
pm5100_trip1: trip1 {
|
||||
temperature = <115000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
|
||||
pm5100_trip2: trip2 {
|
||||
temperature = <145000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm5100-ibat-lvl0 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm5100_bcl 0>;
|
||||
|
||||
trips {
|
||||
ibat_lvl0:ibat-lvl0 {
|
||||
temperature = <1500>;
|
||||
hysteresis = <200>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm5100-ibat-lvl1 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm5100_bcl 1>;
|
||||
|
||||
trips {
|
||||
ibat_lvl1:ibat-lvl1 {
|
||||
temperature = <1900>;
|
||||
hysteresis = <200>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm5100-bcl-lvl0 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm5100_bcl 5>;
|
||||
|
||||
trips {
|
||||
bcl_lvl0: bcl-lvl0 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm5100-bcl-lvl1 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm5100_bcl 6>;
|
||||
|
||||
trips {
|
||||
bcl_lvl1: bcl-lvl1 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm5100-bcl-lvl2 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm5100_bcl 7>;
|
||||
|
||||
trips {
|
||||
bcl_lvl2: bcl-lvl2 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
socd {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&bcl_soc>;
|
||||
|
||||
trips {
|
||||
socd_trip:socd-trip {
|
||||
temperature = <90>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
120
qcom/pm8010-rpm-regulator.dtsi
Normal file
120
qcom/pm8010-rpm-regulator.dtsi
Normal file
@@ -0,0 +1,120 @@
|
||||
&rpm_bus {
|
||||
rpm-regulator-ldom1 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldom";
|
||||
qcom,resource-id = <1>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l1 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm8010_l1";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom2 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldom";
|
||||
qcom,resource-id = <2>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <10000>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l2 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm8010_l2";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom3 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldom";
|
||||
qcom,resource-id = <3>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <0>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l3 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm8010_l3";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom4 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldom";
|
||||
qcom,resource-id = <4>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <0>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l4 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm8010_l4";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom5 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldom";
|
||||
qcom,resource-id = <5>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <0>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l5 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm8010_l5";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom6 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldom";
|
||||
qcom,resource-id = <6>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <0>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l6 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm8010_l6";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
rpm-regulator-ldom7 {
|
||||
compatible = "qcom,rpm-smd-regulator-resource";
|
||||
qcom,resource-name = "ldom";
|
||||
qcom,resource-id = <7>;
|
||||
qcom,regulator-type = <0>;
|
||||
qcom,regulator-hw-type = "pmic5-ldo";
|
||||
qcom,hpm-min-load = <0>;
|
||||
status = "disabled";
|
||||
|
||||
regulator-l7 {
|
||||
compatible = "qcom,rpm-smd-regulator";
|
||||
regulator-name = "pm8010_l7";
|
||||
qcom,set = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user