Loading arch/arm64/boot/dts/qcom/pm8150.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,11 @@ clock-names = "xo"; }; pm8150_sdam_2: sdam@b100 { compatible = "qcom,spmi-sdam"; reg = <0xb100 0x100>; }; pm8150_gpios: pinctrl@c000 { compatible = "qcom,spmi-gpio"; reg = <0xc000 0xa00>; Loading arch/arm64/boot/dts/qcom/pm8150b.dtsi +340 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,13 @@ clock-names = "xo"; }; pm8150b_qnovo: qcom,sdam-qnovo@b000 { compatible = "qcom,qpnp-qnovo5"; reg = <0xb000 0x100>; interrupts = <0x2 0xb0 1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "ptrain-done"; }; pm8150b_gpios: pinctrl@c000 { compatible = "qcom,spmi-gpio"; reg = <0xc000 0xc00>; Loading @@ -63,6 +70,242 @@ #gpio-cells = <2>; qcom,gpios-disallowed = <3 4 7 11>; }; pm8150b_charger: qcom,qpnp-smb5 { compatible = "qcom,qpnp-smb5"; #address-cells = <1>; #size-cells = <1>; #cooling-cells = <2>; qcom,pmic-revid = <&pm8150b_revid>; qcom,thermal-mitigation = <3000000 1500000 1000000 500000>; qcom,charger-temp-max = <800>; qcom,smb-temp-max = <800>; status = "disabled"; qcom,chgr@1000 { reg = <0x1000 0x100>; interrupts = <0x2 0x10 0x0 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x1 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x2 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x3 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x4 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x10 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "chgr-error", "chg-state-change", "step-chg-state-change", "step-chg-soc-update-fail", "step-chg-soc-update-req", "vph-alarm", "vph-drop-prechg"; }; qcom,dcdc@1100 { reg = <0x1100 0x100>; interrupts = <0x2 0x11 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x5 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "otg-fail", "otg-oc-disable-sw", "otg-oc-hiccup", "high-duty-cycle", "input-current-limiting", "concurrent-mode-disable", "switcher-power-ok"; }; qcom,batif@1200 { reg = <0x1200 0x100>; interrupts = <0x2 0x12 0x0 IRQ_TYPE_EDGE_RISING>, <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x5 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "bat-temp", "bat-ov", "bat-low", "bat-therm-or-id-missing", "bat-terminal-missing", "buck-oc", "vph-ov"; }; qcom,usb@1300 { reg = <0x1300 0x100>; interrupts = <0x2 0x13 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x5 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>, <0x2 0x13 0x7 IRQ_TYPE_EDGE_RISING>; interrupt-names = "usbin-collapse", "usbin-vashdn", "usbin-uv", "usbin-ov", "usbin-plugin", "usbin-revi-change", "usbin-src-change", "usbin-icl-change"; }; qcom,dc@1400 { reg = <0x1400 0x100>; interrupts = <0x2 0x14 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x5 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "dcin-vashdn", "dcin-uv", "dcin-ov", "dcin-plugin", "dcin-revi", "dcin-pon", "dcin-en"; }; qcom,typec@1500 { reg = <0x1500 0x100>; interrupts = <0x2 0x15 0x0 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x2 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x4 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x5 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x7 IRQ_TYPE_EDGE_RISING>; interrupt-names = "typec-or-rid-detect-change", "typec-vpd-detect", "typec-cc-state-change", "typec-vconn-oc", "typec-vbus-change", "typec-attach-detach", "typec-legacy-cable-detect", "typec-try-snk-src-detect"; }; qcom,misc@1600 { reg = <0x1600 0x100>; interrupts = <0x2 0x16 0x0 IRQ_TYPE_EDGE_RISING>, <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>, <0x2 0x16 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x16 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x16 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x16 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x16 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "wdog-snarl", "wdog-bark", "aicl-fail", "aicl-done", "smb-en", "temp-change", "temp-change-smb"; }; }; pm8150b_fg: qpnp,fg { compatible = "qcom,fg-gen4"; #address-cells = <1>; #size-cells = <1>; qcom,pmic-revid = <&pm8150b_revid>; status = "disabled"; qcom,fg-batt-soc@4000 { status = "okay"; reg = <0x4000 0x100>; interrupts = <0x2 0x40 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x40 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x40 0x2 IRQ_TYPE_EDGE_RISING>, <0x2 0x40 0x3 IRQ_TYPE_EDGE_RISING>, <0x2 0x40 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x40 0x5 IRQ_TYPE_EDGE_RISING>, <0x2 0x40 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x40 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "soc-update", "soc-ready", "bsoc-delta", "msoc-delta", "msoc-low", "msoc-empty", "msoc-high", "msoc-full"; }; qcom,fg-batt-info@4100 { status = "okay"; reg = <0x4100 0x100>; interrupts = <0x2 0x41 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x41 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x41 0x3 IRQ_TYPE_EDGE_RISING>; interrupt-names = "vbatt-low", "vbatt-pred-delta", "esr-delta"; }; qcom,fg-rradc@4200 { status = "okay"; reg = <0x4200 0x100>; interrupts = <0x2 0x42 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x42 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x42 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x42 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x42 0x4 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "batt-missing", "batt-id", "batt-temp-delta", "batt-temp-hot", "batt-temp-cold"; }; qcom,fg-memif@4300 { status = "okay"; reg = <0x4300 0x100>; interrupts = <0x2 0x43 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x43 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x43 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x43 0x3 IRQ_TYPE_EDGE_RISING>, <0x2 0x43 0x4 IRQ_TYPE_EDGE_FALLING>; interrupt-names = "ima-rdy", "ima-xcp", "dma-xcp", "dma-grant", "mem-attn"; }; }; }; qcom,pm8150b@3 { Loading @@ -70,6 +313,103 @@ reg = <0x3 SPMI_USID>; #address-cells = <2>; #size-cells = <0>; pm8150b_pwm: qcom,pwms@b100 { compatible = "qcom,pwm-lpg"; reg = <0xb100 0x200>; reg-names = "lpg-base"; #pwm-cells = <2>; }; pm8150b_hr_led: qcom,leds@d000 { compatible = "qcom,tri-led"; reg = <0xd000 0x100>; nvmem-names = "pbs_sdam"; nvmem = <&pm8150_sdam_2>; hr_led1 { label = "hr_led1"; pwms = <&pm8150b_pwm 0 1000000>; led-sources = <0>; }; hr_led2 { label = "hr_led2"; pwms = <&pm8150b_pwm 1 1000000>; led-sources = <1>; }; }; pm8150b_haptics: qcom,haptics@c000 { compatible = "qcom,haptics"; reg = <0xc000 0x100>; interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>, <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "hap-sc-irq", "hap-play-irq"; qcom,actuator-type = "lra"; qcom,vmax-mv = <3400>; qcom,play-rate-us = <6667>; qcom,lra-resonance-sig-shape = "sine"; qcom,lra-auto-resonance-mode = "qwd"; qcom,lra-allow-variable-play-rate; wf_0 { /* CLICK */ qcom,effect-id = <0>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [3e 3e 3e]; qcom,wf-play-rate-us = <6667>; qcom,wf-brake-pattern = [01 00 00 00]; qcom,lra-auto-resonance-disable; }; wf_1 { /* DOUBLE CLICK */ qcom,effect-id = <1>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e 02 02 02 02 02 02]; qcom,wf-play-rate-us = <7143>; qcom,wf-repeat-count = <2>; qcom,wf-s-repeat-count = <1>; qcom,lra-auto-resonance-disable; }; wf_2 { /* TICK */ qcom,effect-id = <2>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e]; qcom,wf-play-rate-us = <4000>; qcom,lra-auto-resonance-disable; }; wf_3 { /* THUD */ qcom,effect-id = <3>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e 7e]; qcom,wf-play-rate-us = <6667>; qcom,lra-auto-resonance-disable; }; wf_4 { /* POP */ qcom,effect-id = <4>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e]; qcom,wf-play-rate-us = <5000>; qcom,lra-auto-resonance-disable; }; wf_5 { /* HEAVY CLICK */ qcom,effect-id = <5>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e 7e]; qcom,wf-play-rate-us = <6667>; qcom,wf-brake-pattern = [03 00 00 00]; qcom,lra-auto-resonance-disable; }; }; }; }; Loading arch/arm64/boot/dts/qcom/pm8150l.dtsi +254 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,260 @@ reg = <0x5 SPMI_USID>; #address-cells = <2>; #size-cells = <0>; pm8150l_lcdb: qcom,lcdb@ec00 { compatible = "qcom,qpnp-lcdb-regulator"; reg = <0xec00 0x100>; interrupts = <0x5 0xec 0x1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "sc-irq"; qcom,pmic-revid = <&pm8150l_revid>; qcom,voltage-step-ramp; status = "disabled"; lcdb_ldo_vreg: ldo { label = "ldo"; regulator-name = "lcdb_ldo"; regulator-min-microvolt = <4000000>; regulator-max-microvolt = <6000000>; }; lcdb_ncp_vreg: ncp { label = "ncp"; regulator-name = "lcdb_ncp"; regulator-min-microvolt = <4000000>; regulator-max-microvolt = <6000000>; }; lcdb_bst_vreg: bst { label = "bst"; regulator-name = "lcdb_bst"; regulator-min-microvolt = <4700000>; regulator-max-microvolt = <6275000>; }; }; flash_led: qcom,leds@d300 { compatible = "qcom,qpnp-flash-led-v2"; status = "okay"; reg = <0xd300 0x100>; label = "flash"; interrupts = <0x5 0xd3 0x0 IRQ_TYPE_EDGE_RISING>, <0x5 0xd3 0x3 IRQ_TYPE_EDGE_RISING>, <0x5 0xd3 0x4 IRQ_TYPE_EDGE_RISING>; interrupt-names = "led-fault-irq", "all-ramp-down-done-irq", "all-ramp-up-done-irq"; qcom,hdrm-auto-mode; qcom,short-circuit-det; qcom,open-circuit-det; qcom,vph-droop-det; qcom,thermal-derate-en; qcom,thermal-derate-current = <200 500 1000>; qcom,isc-delay = <192>; qcom,pmic-revid = <&pm8150l_revid>; pm8150l_flash0: qcom,flash_0 { label = "flash"; qcom,led-name = "led:flash_0"; qcom,max-current = <1500>; qcom,default-led-trigger = "flash0_trigger"; qcom,id = <0>; qcom,current-ma = <1000>; qcom,duration-ms = <1280>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; }; pm8150l_flash1: qcom,flash_1 { label = "flash"; qcom,led-name = "led:flash_1"; qcom,max-current = <1500>; qcom,default-led-trigger = "flash1_trigger"; qcom,id = <1>; qcom,current-ma = <1000>; qcom,duration-ms = <1280>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; }; pm8150l_flash2: qcom,flash_2 { label = "flash"; qcom,led-name = "led:flash_2"; qcom,max-current = <750>; qcom,default-led-trigger = "flash2_trigger"; qcom,id = <2>; qcom,current-ma = <500>; qcom,duration-ms = <1280>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; status = "disabled"; }; pm8150l_torch0: qcom,torch_0 { label = "torch"; qcom,led-name = "led:torch_0"; qcom,max-current = <500>; qcom,default-led-trigger = "torch0_trigger"; qcom,id = <0>; qcom,current-ma = <300>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; }; pm8150l_torch1: qcom,torch_1 { label = "torch"; qcom,led-name = "led:torch_1"; qcom,max-current = <500>; qcom,default-led-trigger = "torch1_trigger"; qcom,id = <1>; qcom,current-ma = <300>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; }; pm8150l_torch2: qcom,torch_2 { label = "torch"; qcom,led-name = "led:torch_2"; qcom,max-current = <500>; qcom,default-led-trigger = "torch2_trigger"; qcom,id = <2>; qcom,current-ma = <300>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; status = "disabled"; }; pm8150l_switch0: qcom,led_switch_0 { label = "switch"; qcom,led-name = "led:switch_0"; qcom,led-mask = <1>; /* Channel 1 */ qcom,default-led-trigger = "switch0_trigger"; }; pm8150l_switch1: qcom,led_switch_1 { label = "switch"; qcom,led-name = "led:switch_1"; qcom,led-mask = <2>; /* Channel 2 */ qcom,default-led-trigger = "switch1_trigger"; }; pm8150l_switch2: qcom,led_switch_2 { label = "switch"; qcom,led-name = "led:switch_2"; qcom,led-mask = <3>; /* Channels 1 and 2 */ qcom,default-led-trigger = "switch2_trigger"; }; pm8150l_switch3: qcom,led_switch_3 { label = "switch"; qcom,led-name = "led:switch_3"; qcom,led-mask = <4>; /* Channel 3 */ qcom,default-led-trigger = "switch3_trigger"; }; }; pm8150l_wled: qcom,wled@d800 { compatible = "qcom,pm8150l-spmi-wled"; reg = <0xd800 0x100>, <0xd900 0x100>; reg-names = "wled-ctrl-base", "wled-sink-base"; label = "backlight"; interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>, <0x5 0xd8 0x4 IRQ_TYPE_EDGE_BOTH>, <0x5 0xd8 0x5 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "ovp-irq", "pre-flash-irq", "flash-irq"; qcom,pmic-revid = <&pm8150l_revid>; qcom,auto-calibration; status = "disabled"; wled_flash: qcom,wled-flash { label = "flash"; qcom,default-led-trigger = "wled_flash"; }; wled_torch: qcom,wled-torch { label = "torch"; qcom,default-led-trigger = "wled_torch"; qcom,wled-torch-timer = <1200>; }; wled_switch: qcom,wled-switch { label = "switch"; qcom,default-led-trigger = "wled_switch"; }; }; pm8150l_lpg: qcom,pwms@b100 { compatible = "qcom,pwm-lpg"; reg = <0xb100 0x300>, <0xb000 0x100>; reg-names = "lpg-base", "lut-base"; #pwm-cells = <2>; qcom,lut-patterns = <0 10 20 30 40 50 60 70 80 90 100 90 80 70 60 50 40 30 20 10 0>; lpg1 { qcom,lpg-chan-id = <1>; qcom,ramp-step-ms = <100>; qcom,ramp-pause-hi-count = <2>; qcom,ramp-pause-lo-count = <2>; qcom,ramp-low-index = <0>; qcom,ramp-high-index = <20>; qcom,ramp-from-low-to-high; qcom,ramp-pattern-repeat; }; lpg2 { qcom,lpg-chan-id = <2>; qcom,ramp-step-ms = <100>; qcom,ramp-pause-hi-count = <2>; qcom,ramp-pause-lo-count = <2>; qcom,ramp-low-index = <0>; qcom,ramp-high-index = <20>; qcom,ramp-from-low-to-high; qcom,ramp-pattern-repeat; }; lpg3 { qcom,lpg-chan-id = <3>; qcom,ramp-step-ms = <100>; qcom,ramp-pause-hi-count = <2>; qcom,ramp-pause-lo-count = <2>; qcom,ramp-low-index = <0>; qcom,ramp-high-index = <20>; qcom,ramp-from-low-to-high; qcom,ramp-pattern-repeat; }; }; pm8150l_rgb_led: qcom,leds@d000 { compatible = "qcom,tri-led"; reg = <0xd000 0x100>; red { label = "red"; pwms = <&pm8150l_lpg 0 1000000>; led-sources = <0>; linux,default-trigger = "timer"; }; green { label = "green"; pwms = <&pm8150l_lpg 1 1000000>; led-sources = <1>; linux,default-trigger = "timer"; }; blue { label = "blue"; pwms = <&pm8150l_lpg 2 1000000>; led-sources = <2>; linux,default-trigger = "timer"; }; }; }; }; Loading Loading
arch/arm64/boot/dts/qcom/pm8150.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,11 @@ clock-names = "xo"; }; pm8150_sdam_2: sdam@b100 { compatible = "qcom,spmi-sdam"; reg = <0xb100 0x100>; }; pm8150_gpios: pinctrl@c000 { compatible = "qcom,spmi-gpio"; reg = <0xc000 0xa00>; Loading
arch/arm64/boot/dts/qcom/pm8150b.dtsi +340 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,13 @@ clock-names = "xo"; }; pm8150b_qnovo: qcom,sdam-qnovo@b000 { compatible = "qcom,qpnp-qnovo5"; reg = <0xb000 0x100>; interrupts = <0x2 0xb0 1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "ptrain-done"; }; pm8150b_gpios: pinctrl@c000 { compatible = "qcom,spmi-gpio"; reg = <0xc000 0xc00>; Loading @@ -63,6 +70,242 @@ #gpio-cells = <2>; qcom,gpios-disallowed = <3 4 7 11>; }; pm8150b_charger: qcom,qpnp-smb5 { compatible = "qcom,qpnp-smb5"; #address-cells = <1>; #size-cells = <1>; #cooling-cells = <2>; qcom,pmic-revid = <&pm8150b_revid>; qcom,thermal-mitigation = <3000000 1500000 1000000 500000>; qcom,charger-temp-max = <800>; qcom,smb-temp-max = <800>; status = "disabled"; qcom,chgr@1000 { reg = <0x1000 0x100>; interrupts = <0x2 0x10 0x0 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x1 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x2 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x3 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x4 IRQ_TYPE_EDGE_RISING>, <0x2 0x10 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x10 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "chgr-error", "chg-state-change", "step-chg-state-change", "step-chg-soc-update-fail", "step-chg-soc-update-req", "vph-alarm", "vph-drop-prechg"; }; qcom,dcdc@1100 { reg = <0x1100 0x100>; interrupts = <0x2 0x11 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x5 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x11 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "otg-fail", "otg-oc-disable-sw", "otg-oc-hiccup", "high-duty-cycle", "input-current-limiting", "concurrent-mode-disable", "switcher-power-ok"; }; qcom,batif@1200 { reg = <0x1200 0x100>; interrupts = <0x2 0x12 0x0 IRQ_TYPE_EDGE_RISING>, <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x5 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x12 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "bat-temp", "bat-ov", "bat-low", "bat-therm-or-id-missing", "bat-terminal-missing", "buck-oc", "vph-ov"; }; qcom,usb@1300 { reg = <0x1300 0x100>; interrupts = <0x2 0x13 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x5 IRQ_TYPE_EDGE_BOTH>, <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>, <0x2 0x13 0x7 IRQ_TYPE_EDGE_RISING>; interrupt-names = "usbin-collapse", "usbin-vashdn", "usbin-uv", "usbin-ov", "usbin-plugin", "usbin-revi-change", "usbin-src-change", "usbin-icl-change"; }; qcom,dc@1400 { reg = <0x1400 0x100>; interrupts = <0x2 0x14 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x5 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x14 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "dcin-vashdn", "dcin-uv", "dcin-ov", "dcin-plugin", "dcin-revi", "dcin-pon", "dcin-en"; }; qcom,typec@1500 { reg = <0x1500 0x100>; interrupts = <0x2 0x15 0x0 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x2 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x4 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x5 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x7 IRQ_TYPE_EDGE_RISING>; interrupt-names = "typec-or-rid-detect-change", "typec-vpd-detect", "typec-cc-state-change", "typec-vconn-oc", "typec-vbus-change", "typec-attach-detach", "typec-legacy-cable-detect", "typec-try-snk-src-detect"; }; qcom,misc@1600 { reg = <0x1600 0x100>; interrupts = <0x2 0x16 0x0 IRQ_TYPE_EDGE_RISING>, <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>, <0x2 0x16 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x16 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x16 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x16 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x16 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "wdog-snarl", "wdog-bark", "aicl-fail", "aicl-done", "smb-en", "temp-change", "temp-change-smb"; }; }; pm8150b_fg: qpnp,fg { compatible = "qcom,fg-gen4"; #address-cells = <1>; #size-cells = <1>; qcom,pmic-revid = <&pm8150b_revid>; status = "disabled"; qcom,fg-batt-soc@4000 { status = "okay"; reg = <0x4000 0x100>; interrupts = <0x2 0x40 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x40 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x40 0x2 IRQ_TYPE_EDGE_RISING>, <0x2 0x40 0x3 IRQ_TYPE_EDGE_RISING>, <0x2 0x40 0x4 IRQ_TYPE_EDGE_BOTH>, <0x2 0x40 0x5 IRQ_TYPE_EDGE_RISING>, <0x2 0x40 0x6 IRQ_TYPE_EDGE_BOTH>, <0x2 0x40 0x7 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "soc-update", "soc-ready", "bsoc-delta", "msoc-delta", "msoc-low", "msoc-empty", "msoc-high", "msoc-full"; }; qcom,fg-batt-info@4100 { status = "okay"; reg = <0x4100 0x100>; interrupts = <0x2 0x41 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x41 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x41 0x3 IRQ_TYPE_EDGE_RISING>; interrupt-names = "vbatt-low", "vbatt-pred-delta", "esr-delta"; }; qcom,fg-rradc@4200 { status = "okay"; reg = <0x4200 0x100>; interrupts = <0x2 0x42 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x42 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x42 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x42 0x3 IRQ_TYPE_EDGE_BOTH>, <0x2 0x42 0x4 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "batt-missing", "batt-id", "batt-temp-delta", "batt-temp-hot", "batt-temp-cold"; }; qcom,fg-memif@4300 { status = "okay"; reg = <0x4300 0x100>; interrupts = <0x2 0x43 0x0 IRQ_TYPE_EDGE_BOTH>, <0x2 0x43 0x1 IRQ_TYPE_EDGE_BOTH>, <0x2 0x43 0x2 IRQ_TYPE_EDGE_BOTH>, <0x2 0x43 0x3 IRQ_TYPE_EDGE_RISING>, <0x2 0x43 0x4 IRQ_TYPE_EDGE_FALLING>; interrupt-names = "ima-rdy", "ima-xcp", "dma-xcp", "dma-grant", "mem-attn"; }; }; }; qcom,pm8150b@3 { Loading @@ -70,6 +313,103 @@ reg = <0x3 SPMI_USID>; #address-cells = <2>; #size-cells = <0>; pm8150b_pwm: qcom,pwms@b100 { compatible = "qcom,pwm-lpg"; reg = <0xb100 0x200>; reg-names = "lpg-base"; #pwm-cells = <2>; }; pm8150b_hr_led: qcom,leds@d000 { compatible = "qcom,tri-led"; reg = <0xd000 0x100>; nvmem-names = "pbs_sdam"; nvmem = <&pm8150_sdam_2>; hr_led1 { label = "hr_led1"; pwms = <&pm8150b_pwm 0 1000000>; led-sources = <0>; }; hr_led2 { label = "hr_led2"; pwms = <&pm8150b_pwm 1 1000000>; led-sources = <1>; }; }; pm8150b_haptics: qcom,haptics@c000 { compatible = "qcom,haptics"; reg = <0xc000 0x100>; interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>, <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "hap-sc-irq", "hap-play-irq"; qcom,actuator-type = "lra"; qcom,vmax-mv = <3400>; qcom,play-rate-us = <6667>; qcom,lra-resonance-sig-shape = "sine"; qcom,lra-auto-resonance-mode = "qwd"; qcom,lra-allow-variable-play-rate; wf_0 { /* CLICK */ qcom,effect-id = <0>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [3e 3e 3e]; qcom,wf-play-rate-us = <6667>; qcom,wf-brake-pattern = [01 00 00 00]; qcom,lra-auto-resonance-disable; }; wf_1 { /* DOUBLE CLICK */ qcom,effect-id = <1>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e 02 02 02 02 02 02]; qcom,wf-play-rate-us = <7143>; qcom,wf-repeat-count = <2>; qcom,wf-s-repeat-count = <1>; qcom,lra-auto-resonance-disable; }; wf_2 { /* TICK */ qcom,effect-id = <2>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e]; qcom,wf-play-rate-us = <4000>; qcom,lra-auto-resonance-disable; }; wf_3 { /* THUD */ qcom,effect-id = <3>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e 7e]; qcom,wf-play-rate-us = <6667>; qcom,lra-auto-resonance-disable; }; wf_4 { /* POP */ qcom,effect-id = <4>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e]; qcom,wf-play-rate-us = <5000>; qcom,lra-auto-resonance-disable; }; wf_5 { /* HEAVY CLICK */ qcom,effect-id = <5>; qcom,wf-vmax-mv = <3600>; qcom,wf-pattern = [7e 7e 7e]; qcom,wf-play-rate-us = <6667>; qcom,wf-brake-pattern = [03 00 00 00]; qcom,lra-auto-resonance-disable; }; }; }; }; Loading
arch/arm64/boot/dts/qcom/pm8150l.dtsi +254 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,260 @@ reg = <0x5 SPMI_USID>; #address-cells = <2>; #size-cells = <0>; pm8150l_lcdb: qcom,lcdb@ec00 { compatible = "qcom,qpnp-lcdb-regulator"; reg = <0xec00 0x100>; interrupts = <0x5 0xec 0x1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "sc-irq"; qcom,pmic-revid = <&pm8150l_revid>; qcom,voltage-step-ramp; status = "disabled"; lcdb_ldo_vreg: ldo { label = "ldo"; regulator-name = "lcdb_ldo"; regulator-min-microvolt = <4000000>; regulator-max-microvolt = <6000000>; }; lcdb_ncp_vreg: ncp { label = "ncp"; regulator-name = "lcdb_ncp"; regulator-min-microvolt = <4000000>; regulator-max-microvolt = <6000000>; }; lcdb_bst_vreg: bst { label = "bst"; regulator-name = "lcdb_bst"; regulator-min-microvolt = <4700000>; regulator-max-microvolt = <6275000>; }; }; flash_led: qcom,leds@d300 { compatible = "qcom,qpnp-flash-led-v2"; status = "okay"; reg = <0xd300 0x100>; label = "flash"; interrupts = <0x5 0xd3 0x0 IRQ_TYPE_EDGE_RISING>, <0x5 0xd3 0x3 IRQ_TYPE_EDGE_RISING>, <0x5 0xd3 0x4 IRQ_TYPE_EDGE_RISING>; interrupt-names = "led-fault-irq", "all-ramp-down-done-irq", "all-ramp-up-done-irq"; qcom,hdrm-auto-mode; qcom,short-circuit-det; qcom,open-circuit-det; qcom,vph-droop-det; qcom,thermal-derate-en; qcom,thermal-derate-current = <200 500 1000>; qcom,isc-delay = <192>; qcom,pmic-revid = <&pm8150l_revid>; pm8150l_flash0: qcom,flash_0 { label = "flash"; qcom,led-name = "led:flash_0"; qcom,max-current = <1500>; qcom,default-led-trigger = "flash0_trigger"; qcom,id = <0>; qcom,current-ma = <1000>; qcom,duration-ms = <1280>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; }; pm8150l_flash1: qcom,flash_1 { label = "flash"; qcom,led-name = "led:flash_1"; qcom,max-current = <1500>; qcom,default-led-trigger = "flash1_trigger"; qcom,id = <1>; qcom,current-ma = <1000>; qcom,duration-ms = <1280>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; }; pm8150l_flash2: qcom,flash_2 { label = "flash"; qcom,led-name = "led:flash_2"; qcom,max-current = <750>; qcom,default-led-trigger = "flash2_trigger"; qcom,id = <2>; qcom,current-ma = <500>; qcom,duration-ms = <1280>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; status = "disabled"; }; pm8150l_torch0: qcom,torch_0 { label = "torch"; qcom,led-name = "led:torch_0"; qcom,max-current = <500>; qcom,default-led-trigger = "torch0_trigger"; qcom,id = <0>; qcom,current-ma = <300>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; }; pm8150l_torch1: qcom,torch_1 { label = "torch"; qcom,led-name = "led:torch_1"; qcom,max-current = <500>; qcom,default-led-trigger = "torch1_trigger"; qcom,id = <1>; qcom,current-ma = <300>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; }; pm8150l_torch2: qcom,torch_2 { label = "torch"; qcom,led-name = "led:torch_2"; qcom,max-current = <500>; qcom,default-led-trigger = "torch2_trigger"; qcom,id = <2>; qcom,current-ma = <300>; qcom,ires-ua = <12500>; qcom,hdrm-voltage-mv = <325>; qcom,hdrm-vol-hi-lo-win-mv = <100>; status = "disabled"; }; pm8150l_switch0: qcom,led_switch_0 { label = "switch"; qcom,led-name = "led:switch_0"; qcom,led-mask = <1>; /* Channel 1 */ qcom,default-led-trigger = "switch0_trigger"; }; pm8150l_switch1: qcom,led_switch_1 { label = "switch"; qcom,led-name = "led:switch_1"; qcom,led-mask = <2>; /* Channel 2 */ qcom,default-led-trigger = "switch1_trigger"; }; pm8150l_switch2: qcom,led_switch_2 { label = "switch"; qcom,led-name = "led:switch_2"; qcom,led-mask = <3>; /* Channels 1 and 2 */ qcom,default-led-trigger = "switch2_trigger"; }; pm8150l_switch3: qcom,led_switch_3 { label = "switch"; qcom,led-name = "led:switch_3"; qcom,led-mask = <4>; /* Channel 3 */ qcom,default-led-trigger = "switch3_trigger"; }; }; pm8150l_wled: qcom,wled@d800 { compatible = "qcom,pm8150l-spmi-wled"; reg = <0xd800 0x100>, <0xd900 0x100>; reg-names = "wled-ctrl-base", "wled-sink-base"; label = "backlight"; interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>, <0x5 0xd8 0x4 IRQ_TYPE_EDGE_BOTH>, <0x5 0xd8 0x5 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "ovp-irq", "pre-flash-irq", "flash-irq"; qcom,pmic-revid = <&pm8150l_revid>; qcom,auto-calibration; status = "disabled"; wled_flash: qcom,wled-flash { label = "flash"; qcom,default-led-trigger = "wled_flash"; }; wled_torch: qcom,wled-torch { label = "torch"; qcom,default-led-trigger = "wled_torch"; qcom,wled-torch-timer = <1200>; }; wled_switch: qcom,wled-switch { label = "switch"; qcom,default-led-trigger = "wled_switch"; }; }; pm8150l_lpg: qcom,pwms@b100 { compatible = "qcom,pwm-lpg"; reg = <0xb100 0x300>, <0xb000 0x100>; reg-names = "lpg-base", "lut-base"; #pwm-cells = <2>; qcom,lut-patterns = <0 10 20 30 40 50 60 70 80 90 100 90 80 70 60 50 40 30 20 10 0>; lpg1 { qcom,lpg-chan-id = <1>; qcom,ramp-step-ms = <100>; qcom,ramp-pause-hi-count = <2>; qcom,ramp-pause-lo-count = <2>; qcom,ramp-low-index = <0>; qcom,ramp-high-index = <20>; qcom,ramp-from-low-to-high; qcom,ramp-pattern-repeat; }; lpg2 { qcom,lpg-chan-id = <2>; qcom,ramp-step-ms = <100>; qcom,ramp-pause-hi-count = <2>; qcom,ramp-pause-lo-count = <2>; qcom,ramp-low-index = <0>; qcom,ramp-high-index = <20>; qcom,ramp-from-low-to-high; qcom,ramp-pattern-repeat; }; lpg3 { qcom,lpg-chan-id = <3>; qcom,ramp-step-ms = <100>; qcom,ramp-pause-hi-count = <2>; qcom,ramp-pause-lo-count = <2>; qcom,ramp-low-index = <0>; qcom,ramp-high-index = <20>; qcom,ramp-from-low-to-high; qcom,ramp-pattern-repeat; }; }; pm8150l_rgb_led: qcom,leds@d000 { compatible = "qcom,tri-led"; reg = <0xd000 0x100>; red { label = "red"; pwms = <&pm8150l_lpg 0 1000000>; led-sources = <0>; linux,default-trigger = "timer"; }; green { label = "green"; pwms = <&pm8150l_lpg 1 1000000>; led-sources = <1>; linux,default-trigger = "timer"; }; blue { label = "blue"; pwms = <&pm8150l_lpg 2 1000000>; led-sources = <2>; linux,default-trigger = "timer"; }; }; }; }; Loading