Loading arch/arm/boot/dts/qcom/msm-pmithorium.dtsi +234 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,18 @@ #address-cells = <1>; #size-cells = <1>; pmithorium_revid: qcom,revid@100 { compatible = "qcom,qpnp-revid"; reg = <0x100 0x100>; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; qcom,secondary-pon-reset; qcom,cfg-shutdown-for-hard-reset; }; pmithorium_vadc: vadc@3100 { compatible = "qcom,qpnp-vadc"; reg = <0x3100 0x100>; Loading Loading @@ -119,6 +131,228 @@ }; }; pmithorium_mpps: mpps { spmi-dev-container; compatible = "qcom,qpnp-pin"; gpio-controller; #gpio-cells = <2>; #address-cells = <1>; #size-cells = <1>; label = "pmithorium-mpp"; mpp@a000 { reg = <0xa000 0x100>; qcom,pin-num = <1>; status = "disabled"; }; mpp@a100 { reg = <0xa100 0x100>; qcom,pin-num = <2>; status = "disabled"; }; mpp@a300 { reg = <0xa300 0x100>; qcom,pin-num = <4>; status = "disabled"; }; }; pmithorium_charger: qcom,qpnp-smbcharger { spmi-dev-container; compatible = "qcom,qpnp-smbcharger"; #address-cells = <1>; #size-cells = <1>; qcom,iterm-ma = <100>; qcom,fastchg-current-ma = <2000>; qcom,float-voltage-mv = <4200>; qcom,resume-delta-mv = <200>; qcom,chg-inhibit-fg; qcom,rparasitic-uohm = <100000>; qcom,bms-psy-name = "bms"; qcom,thermal-mitigation = <1500 700 600 0>; qcom,parallel-usb-min-current-ma = <1400>; qcom,parallel-usb-9v-min-current-ma = <900>; qcom,parallel-allowed-lowering-ma = <500>; qcom,pmic-revid = <&pmithorium_revid>; qcom,chgr@1000 { reg = <0x1000 0x100>; interrupts = <0x2 0x10 0x0>, <0x2 0x10 0x1>, <0x2 0x10 0x2>, <0x2 0x10 0x3>, <0x2 0x10 0x4>, <0x2 0x10 0x5>, <0x2 0x10 0x6>, <0x2 0x10 0x7>; interrupt-names = "chg-error", "chg-inhibit", "chg-prechg-sft", "chg-complete-chg-sft", "chg-p2f-thr", "chg-rechg-thr", "chg-taper-thr", "chg-tcc-thr"; }; qcom,otg@1100 { reg = <0x1100 0x100>; interrupts = <0x2 0x11 0x0>, <0x2 0x11 0x1>, <0x2 0x11 0x3>; interrupt-names = "otg-fail", "otg-oc", "usbid-change"; }; qcom,bat-if@1200 { reg = <0x1200 0x100>; interrupts = <0x2 0x12 0x0>, <0x2 0x12 0x1>, <0x2 0x12 0x2>, <0x2 0x12 0x3>, <0x2 0x12 0x4>, <0x2 0x12 0x5>, <0x2 0x12 0x6>, <0x2 0x12 0x7>; interrupt-names = "batt-hot", "batt-warm", "batt-cold", "batt-cool", "batt-ov", "batt-low", "batt-missing", "batt-term-missing"; }; qcom,usb-chgpth@1300 { reg = <0x1300 0x100>; interrupts = <0x2 0x13 0x0>, <0x2 0x13 0x1>, <0x2 0x13 0x2>, <0x2 0x13 0x5>; interrupt-names = "usbin-uv", "usbin-ov", "usbin-src-det", "aicl-done"; }; qcom,dc-chgpth@1400 { reg = <0x1400 0x100>; interrupts = <0x2 0x14 0x0>, <0x2 0x14 0x1>; interrupt-names = "dcin-uv", "dcin-ov"; }; qcom,chgr-misc@1600 { reg = <0x1600 0x100>; interrupts = <0x2 0x16 0x0>, <0x2 0x16 0x1>, <0x2 0x16 0x2>, <0x2 0x16 0x3>, <0x2 0x16 0x4>, <0x2 0x16 0x5>; interrupt-names = "power-ok", "temp-shutdown", "wdog-timeout", "flash-fail", "otst2", "otst3"; }; }; pmithorium_fg: qcom,fg { spmi-dev-container; compatible = "qcom,qpnp-fg"; #address-cells = <1>; #size-cells = <1>; qcom,resume-soc = <95>; status = "okay"; qcom,bcl-lm-threshold-ma = <127>; qcom,bcl-mh-threshold-ma = <405>; qcom,fg-iterm-ma = <100>; qcom,fg-chg-iterm-ma = <100>; qcom,pmic-revid = <&pmithorium_revid>; qcom,fg-soc@4000 { status = "okay"; reg = <0x4000 0x100>; interrupts = <0x2 0x40 0x0>, <0x2 0x40 0x1>, <0x2 0x40 0x2>, <0x2 0x40 0x3>, <0x2 0x40 0x4>, <0x2 0x40 0x5>, <0x2 0x40 0x6>; interrupt-names = "high-soc", "low-soc", "full-soc", "empty-soc", "delta-soc", "first-est-done", "update-soc"; }; qcom,fg-batt@4100 { reg = <0x4100 0x100>; interrupts = <0x2 0x41 0x0>, <0x2 0x41 0x1>, <0x2 0x41 0x2>, <0x2 0x41 0x3>, <0x2 0x41 0x4>, <0x2 0x41 0x5>, <0x2 0x41 0x6>, <0x2 0x41 0x7>; interrupt-names = "soft-cold", "soft-hot", "vbatt-low", "batt-ided", "batt-id-req", "batt-unknown", "batt-missing", "batt-match"; }; qcom,revid-tp-rev@1f1 { reg = <0x1f1 0x1>; }; qcom,fg-memif@4400 { status = "okay"; reg = <0x4400 0x100>; interrupts = <0x2 0x44 0x0>, <0x2 0x44 0x2>; interrupt-names = "mem-avail", "data-rcvry-sug"; }; }; }; qcom,pmithorium@3 { spmi-slave-container; reg = <0x3>; #address-cells = <1>; #size-cells = <1>; pmithorium_pwm: pwm@b000 { status = "disabled"; compatible = "qcom,qpnp-pwm"; reg = <0xb000 0x100>; reg-names = "qpnp-lpg-channel-base"; qcom,channel-id = <0>; qcom,supported-sizes = <6>, <9>; #pwm-cells = <2>; }; }; }; arch/arm/boot/dts/qcom/msm-pmthorium.dtsi +143 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,75 @@ #address-cells = <1>; #size-cells = <1>; pmthorium_revid: qcom,revid@100 { compatible = "qcom,qpnp-revid"; reg = <0x100 0x100>; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; interrupts = <0x0 0x8 0x0>, <0x0 0x8 0x1>, <0x0 0x8 0x4>, <0x0 0x8 0x5>; interrupt-names = "kpdpwr", "resin", "resin-bark", "kpdpwr-resin-bark"; qcom,pon-dbc-delay = <15625>; qcom,system-reset; qcom,pon_1 { qcom,pon-type = <0>; qcom,pull-up = <1>; linux,code = <116>; }; qcom,pon_2 { qcom,pon-type = <1>; qcom,pull-up = <1>; linux,code = <114>; }; }; pmthorium_temp_alarm: qcom,temp-alarm@2400 { compatible = "qcom,qpnp-temp-alarm"; reg = <0x2400 0x100>; interrupts = <0x0 0x24 0x0>; label = "pmthorium_tz"; qcom,channel-num = <8>; qcom,threshold-set = <0>; qcom,temp_alarm-vadc = <&pmthorium_vadc>; }; pmthorium_coincell: qcom,coincell@2800 { compatible = "qcom,qpnp-coincell"; reg = <0x2800 0x100>; }; pmthorium_rtc: qcom,pmthorium_rtc { spmi-dev-container; compatible = "qcom,qpnp-rtc"; #address-cells = <1>; #size-cells = <1>; qcom,qpnp-rtc-write = <0>; qcom,qpnp-rtc-alarm-pwrup = <0>; qcom,pmthorium_rtc_rw@6000 { reg = <0x6000 0x100>; }; qcom,pmthorium_rtc_alarm@6100 { reg = <0x6100 0x100>; interrupts = <0x0 0x61 0x1>; }; }; qcom,leds@a300 { compatible = "qcom,leds-qpnp"; reg = <0xa300 0x100>; label = "mpp"; }; pmthorium_mpps: mpps { compatible = "qcom,qpnp-pin"; spmi-dev-container; Loading Loading @@ -63,6 +132,64 @@ }; }; pmthorium_gpios: gpios { spmi-dev-container; compatible = "qcom,qpnp-pin"; gpio-controller; #gpio-cells = <2>; #address-cells = <1>; #size-cells = <1>; label = "pmthorium-gpio"; gpio@c000 { reg = <0xc000 0x100>; qcom,pin-num = <1>; status = "disabled"; }; gpio@c100 { reg = <0xc100 0x100>; qcom,pin-num = <2>; status = "disabled"; }; gpio@c200 { reg = <0xc200 0x100>; qcom,pin-num = <3>; status = "disabled"; }; gpio@c300 { reg = <0xc300 0x100>; qcom,pin-num = <4>; status = "disabled"; }; gpio@c400 { reg = <0xc400 0x100>; qcom,pin-num = <5>; status = "disabled"; }; gpio@c500 { reg = <0xc500 0x100>; qcom,pin-num = <6>; status = "disabled"; }; gpio@c600 { reg = <0xc600 0x100>; qcom,pin-num = <7>; status = "disabled"; }; gpio@c700 { reg = <0xc700 0x100>; qcom,pin-num = <8>; status = "disabled"; }; }; pmthorium_vadc: vadc@3100 { compatible = "qcom,qpnp-vadc"; reg = <0x3100 0x100>; Loading Loading @@ -231,4 +358,20 @@ }; pmthorium_1: qcom,pmthorium@1 { spmi-slave-container; reg = <0x1>; #address-cells = <1>; #size-cells = <1>; pmthorium_pwm: pwm@bc00 { status = "disabled"; compatible = "qcom,qpnp-pwm"; reg = <0xbc00 0x100>; reg-names = "qpnp-lpg-channel-base"; qcom,channel-id = <0>; qcom,supported-sizes = <6>, <9>; #pwm-cells = <2>; }; }; }; Loading
arch/arm/boot/dts/qcom/msm-pmithorium.dtsi +234 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,18 @@ #address-cells = <1>; #size-cells = <1>; pmithorium_revid: qcom,revid@100 { compatible = "qcom,qpnp-revid"; reg = <0x100 0x100>; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; qcom,secondary-pon-reset; qcom,cfg-shutdown-for-hard-reset; }; pmithorium_vadc: vadc@3100 { compatible = "qcom,qpnp-vadc"; reg = <0x3100 0x100>; Loading Loading @@ -119,6 +131,228 @@ }; }; pmithorium_mpps: mpps { spmi-dev-container; compatible = "qcom,qpnp-pin"; gpio-controller; #gpio-cells = <2>; #address-cells = <1>; #size-cells = <1>; label = "pmithorium-mpp"; mpp@a000 { reg = <0xa000 0x100>; qcom,pin-num = <1>; status = "disabled"; }; mpp@a100 { reg = <0xa100 0x100>; qcom,pin-num = <2>; status = "disabled"; }; mpp@a300 { reg = <0xa300 0x100>; qcom,pin-num = <4>; status = "disabled"; }; }; pmithorium_charger: qcom,qpnp-smbcharger { spmi-dev-container; compatible = "qcom,qpnp-smbcharger"; #address-cells = <1>; #size-cells = <1>; qcom,iterm-ma = <100>; qcom,fastchg-current-ma = <2000>; qcom,float-voltage-mv = <4200>; qcom,resume-delta-mv = <200>; qcom,chg-inhibit-fg; qcom,rparasitic-uohm = <100000>; qcom,bms-psy-name = "bms"; qcom,thermal-mitigation = <1500 700 600 0>; qcom,parallel-usb-min-current-ma = <1400>; qcom,parallel-usb-9v-min-current-ma = <900>; qcom,parallel-allowed-lowering-ma = <500>; qcom,pmic-revid = <&pmithorium_revid>; qcom,chgr@1000 { reg = <0x1000 0x100>; interrupts = <0x2 0x10 0x0>, <0x2 0x10 0x1>, <0x2 0x10 0x2>, <0x2 0x10 0x3>, <0x2 0x10 0x4>, <0x2 0x10 0x5>, <0x2 0x10 0x6>, <0x2 0x10 0x7>; interrupt-names = "chg-error", "chg-inhibit", "chg-prechg-sft", "chg-complete-chg-sft", "chg-p2f-thr", "chg-rechg-thr", "chg-taper-thr", "chg-tcc-thr"; }; qcom,otg@1100 { reg = <0x1100 0x100>; interrupts = <0x2 0x11 0x0>, <0x2 0x11 0x1>, <0x2 0x11 0x3>; interrupt-names = "otg-fail", "otg-oc", "usbid-change"; }; qcom,bat-if@1200 { reg = <0x1200 0x100>; interrupts = <0x2 0x12 0x0>, <0x2 0x12 0x1>, <0x2 0x12 0x2>, <0x2 0x12 0x3>, <0x2 0x12 0x4>, <0x2 0x12 0x5>, <0x2 0x12 0x6>, <0x2 0x12 0x7>; interrupt-names = "batt-hot", "batt-warm", "batt-cold", "batt-cool", "batt-ov", "batt-low", "batt-missing", "batt-term-missing"; }; qcom,usb-chgpth@1300 { reg = <0x1300 0x100>; interrupts = <0x2 0x13 0x0>, <0x2 0x13 0x1>, <0x2 0x13 0x2>, <0x2 0x13 0x5>; interrupt-names = "usbin-uv", "usbin-ov", "usbin-src-det", "aicl-done"; }; qcom,dc-chgpth@1400 { reg = <0x1400 0x100>; interrupts = <0x2 0x14 0x0>, <0x2 0x14 0x1>; interrupt-names = "dcin-uv", "dcin-ov"; }; qcom,chgr-misc@1600 { reg = <0x1600 0x100>; interrupts = <0x2 0x16 0x0>, <0x2 0x16 0x1>, <0x2 0x16 0x2>, <0x2 0x16 0x3>, <0x2 0x16 0x4>, <0x2 0x16 0x5>; interrupt-names = "power-ok", "temp-shutdown", "wdog-timeout", "flash-fail", "otst2", "otst3"; }; }; pmithorium_fg: qcom,fg { spmi-dev-container; compatible = "qcom,qpnp-fg"; #address-cells = <1>; #size-cells = <1>; qcom,resume-soc = <95>; status = "okay"; qcom,bcl-lm-threshold-ma = <127>; qcom,bcl-mh-threshold-ma = <405>; qcom,fg-iterm-ma = <100>; qcom,fg-chg-iterm-ma = <100>; qcom,pmic-revid = <&pmithorium_revid>; qcom,fg-soc@4000 { status = "okay"; reg = <0x4000 0x100>; interrupts = <0x2 0x40 0x0>, <0x2 0x40 0x1>, <0x2 0x40 0x2>, <0x2 0x40 0x3>, <0x2 0x40 0x4>, <0x2 0x40 0x5>, <0x2 0x40 0x6>; interrupt-names = "high-soc", "low-soc", "full-soc", "empty-soc", "delta-soc", "first-est-done", "update-soc"; }; qcom,fg-batt@4100 { reg = <0x4100 0x100>; interrupts = <0x2 0x41 0x0>, <0x2 0x41 0x1>, <0x2 0x41 0x2>, <0x2 0x41 0x3>, <0x2 0x41 0x4>, <0x2 0x41 0x5>, <0x2 0x41 0x6>, <0x2 0x41 0x7>; interrupt-names = "soft-cold", "soft-hot", "vbatt-low", "batt-ided", "batt-id-req", "batt-unknown", "batt-missing", "batt-match"; }; qcom,revid-tp-rev@1f1 { reg = <0x1f1 0x1>; }; qcom,fg-memif@4400 { status = "okay"; reg = <0x4400 0x100>; interrupts = <0x2 0x44 0x0>, <0x2 0x44 0x2>; interrupt-names = "mem-avail", "data-rcvry-sug"; }; }; }; qcom,pmithorium@3 { spmi-slave-container; reg = <0x3>; #address-cells = <1>; #size-cells = <1>; pmithorium_pwm: pwm@b000 { status = "disabled"; compatible = "qcom,qpnp-pwm"; reg = <0xb000 0x100>; reg-names = "qpnp-lpg-channel-base"; qcom,channel-id = <0>; qcom,supported-sizes = <6>, <9>; #pwm-cells = <2>; }; }; };
arch/arm/boot/dts/qcom/msm-pmthorium.dtsi +143 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,75 @@ #address-cells = <1>; #size-cells = <1>; pmthorium_revid: qcom,revid@100 { compatible = "qcom,qpnp-revid"; reg = <0x100 0x100>; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; interrupts = <0x0 0x8 0x0>, <0x0 0x8 0x1>, <0x0 0x8 0x4>, <0x0 0x8 0x5>; interrupt-names = "kpdpwr", "resin", "resin-bark", "kpdpwr-resin-bark"; qcom,pon-dbc-delay = <15625>; qcom,system-reset; qcom,pon_1 { qcom,pon-type = <0>; qcom,pull-up = <1>; linux,code = <116>; }; qcom,pon_2 { qcom,pon-type = <1>; qcom,pull-up = <1>; linux,code = <114>; }; }; pmthorium_temp_alarm: qcom,temp-alarm@2400 { compatible = "qcom,qpnp-temp-alarm"; reg = <0x2400 0x100>; interrupts = <0x0 0x24 0x0>; label = "pmthorium_tz"; qcom,channel-num = <8>; qcom,threshold-set = <0>; qcom,temp_alarm-vadc = <&pmthorium_vadc>; }; pmthorium_coincell: qcom,coincell@2800 { compatible = "qcom,qpnp-coincell"; reg = <0x2800 0x100>; }; pmthorium_rtc: qcom,pmthorium_rtc { spmi-dev-container; compatible = "qcom,qpnp-rtc"; #address-cells = <1>; #size-cells = <1>; qcom,qpnp-rtc-write = <0>; qcom,qpnp-rtc-alarm-pwrup = <0>; qcom,pmthorium_rtc_rw@6000 { reg = <0x6000 0x100>; }; qcom,pmthorium_rtc_alarm@6100 { reg = <0x6100 0x100>; interrupts = <0x0 0x61 0x1>; }; }; qcom,leds@a300 { compatible = "qcom,leds-qpnp"; reg = <0xa300 0x100>; label = "mpp"; }; pmthorium_mpps: mpps { compatible = "qcom,qpnp-pin"; spmi-dev-container; Loading Loading @@ -63,6 +132,64 @@ }; }; pmthorium_gpios: gpios { spmi-dev-container; compatible = "qcom,qpnp-pin"; gpio-controller; #gpio-cells = <2>; #address-cells = <1>; #size-cells = <1>; label = "pmthorium-gpio"; gpio@c000 { reg = <0xc000 0x100>; qcom,pin-num = <1>; status = "disabled"; }; gpio@c100 { reg = <0xc100 0x100>; qcom,pin-num = <2>; status = "disabled"; }; gpio@c200 { reg = <0xc200 0x100>; qcom,pin-num = <3>; status = "disabled"; }; gpio@c300 { reg = <0xc300 0x100>; qcom,pin-num = <4>; status = "disabled"; }; gpio@c400 { reg = <0xc400 0x100>; qcom,pin-num = <5>; status = "disabled"; }; gpio@c500 { reg = <0xc500 0x100>; qcom,pin-num = <6>; status = "disabled"; }; gpio@c600 { reg = <0xc600 0x100>; qcom,pin-num = <7>; status = "disabled"; }; gpio@c700 { reg = <0xc700 0x100>; qcom,pin-num = <8>; status = "disabled"; }; }; pmthorium_vadc: vadc@3100 { compatible = "qcom,qpnp-vadc"; reg = <0x3100 0x100>; Loading Loading @@ -231,4 +358,20 @@ }; pmthorium_1: qcom,pmthorium@1 { spmi-slave-container; reg = <0x1>; #address-cells = <1>; #size-cells = <1>; pmthorium_pwm: pwm@bc00 { status = "disabled"; compatible = "qcom,qpnp-pwm"; reg = <0xbc00 0x100>; reg-names = "qpnp-lpg-channel-base"; qcom,channel-id = <0>; qcom,supported-sizes = <6>, <9>; #pwm-cells = <2>; }; }; };