daily pastebin goal
86%
SHARE
TWEET

msm8916-regulator.dtsi

a guest Jan 12th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
  2.  *
  3.  * This program is free software; you can redistribute it and/or modify
  4.  * it under the terms of the GNU General Public License version 2 and
  5.  * only version 2 as published by the Free Software Foundation.
  6.  *
  7.  * This program is distributed in the hope that it will be useful,
  8.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.  * GNU General Public License for more details.
  11.  */
  12.  
  13. /* SPM controlled regulators */
  14. &spmi_bus {
  15.     qcom,pm8916@1 {
  16.         pm8916_s2: spm-regulator@1700 {
  17.             compatible = "qcom,spm-regulator";
  18.             regulator-name = "8916_s2";
  19.             reg = <0x1700 0x100>;
  20.             regulator-min-microvolt = <1050000>;
  21.             regulator-max-microvolt = <1350000>;
  22.         };
  23.     };
  24. };
  25.  
  26. /* CPR controlled regulator */
  27.  
  28. &soc {
  29.     mem_acc_vreg_corner: regulator@1946000 {
  30.         compatible = "qcom,mem-acc-regulator";
  31.         reg = <0x1946000 0x4>, <0x58000 0x1000>;
  32.         reg-names = "acc-sel-l1", "efuse_addr";
  33.         regulator-name = "mem_acc_corner";
  34.         regulator-min-microvolt = <1>;
  35.         regulator-max-microvolt = <3>;
  36.  
  37.         qcom,acc-sel-l1-bit-pos = <0>;
  38.         qcom,acc-sel-l1-bit-size = <9>;
  39.         qcom,corner-acc-map = <0x0 0x100 0x101>;
  40.  
  41.         qcom,override-acc-fuse-sel = <0 52 1 1 0>;
  42.         qcom,override-corner-acc-map = <0x0 0x100 0x100>;
  43.     };
  44.  
  45.     apc_vreg_corner: regulator@b018000 {
  46.         compatible = "qcom,cpr-regulator";
  47.         reg = <0xb018000 0x1000>, <0xb011064 4>, <0x58000 0x1000>;
  48.         reg-names = "rbcpr", "rbcpr_clk", "efuse_addr";
  49.         interrupts = <0 15 0>;
  50.         regulator-name = "apc_corner";
  51.         qcom,cpr-fuse-corners = <3>;
  52.         regulator-min-microvolt = <1>;
  53.         regulator-max-microvolt = <9>;
  54.  
  55.         qcom,cpr-voltage-ceiling = <1050000 1150000 1350000>;
  56.         qcom,cpr-voltage-floor = <1050000 1050000 1162500>;
  57.         vdd-apc-supply = <&pm8916_s2>;
  58.  
  59.         qcom,vdd-mx-corner-map = <4 5 7>;
  60.         qcom,vdd-mx-vmin-method = <4>;
  61.         vdd-mx-supply = <&pm8916_l3_corner_ao>;
  62.         qcom,vdd-mx-vmax = <7>;
  63.  
  64.         mem-acc-supply = <&mem_acc_vreg_corner>;
  65.  
  66.         qcom,cpr-ref-clk = <19200>;
  67.         qcom,cpr-timer-delay = <5000>;
  68.         qcom,cpr-timer-cons-up = <0>;
  69.         qcom,cpr-timer-cons-down = <2>;
  70.         qcom,cpr-irq-line = <0>;
  71.         qcom,cpr-step-quotient = <26>;
  72.         qcom,cpr-up-threshold = <0>;
  73.         qcom,cpr-down-threshold = <2>;
  74.         qcom,cpr-idle-clocks = <15>;
  75.         qcom,cpr-gcnt-time = <1>;
  76.         qcom,vdd-apc-step-up-limit = <1>;
  77.         qcom,vdd-apc-step-down-limit = <1>;
  78.         qcom,cpr-apc-volt-step = <12500>;
  79.  
  80.         qcom,cpr-fuse-row = <27 0>;
  81.         qcom,cpr-fuse-target-quot = <42 24 6>;
  82.         qcom,cpr-fuse-ro-sel = <54 54 54>;
  83.         qcom,cpr-fuse-bp-cpr-disable = <57>;
  84.         qcom,cpr-fuse-init-voltage =
  85.                     <27 36 6 0>,
  86.                     <27 18 6 0>,
  87.                     <27 0 6 0>;
  88.         qcom,cpr-init-voltage-ref = <1050000 1150000 1350000>;
  89.         qcom,cpr-init-voltage-step = <10000>;
  90.         qcom,cpr-corner-map = <1 1 2 2 3 3 3 3 3>;
  91.         qcom,cpr-corner-frequency-map =
  92.                     <1 200000000>,
  93.                     <2 400000000>,
  94.                     <3 533330000>,
  95.                     <4 800000000>,
  96.                     <5 998400000>,
  97.                     <6 1094400000>,
  98.                     <7 1152000000>,
  99.                     <8 1209600000>,
  100.                     <9 1363200000>;
  101.         qcom,speed-bin-fuse-sel = <1 34 3 0>;
  102.         qcom,pvs-version-fuse-sel = <0 55 2 0>;
  103.         qcom,cpr-speed-bin-max-corners =
  104.                     <0 0 4 6 12>,
  105.                     <0 1 4 6 9>,
  106.                     <2 0 4 6 12>,
  107.                     <3 0 4 6 7>,
  108.                     <3 1 4 6 7>;
  109.         qcom,cpr-quot-adjust-scaling-factor-max = <650>;
  110.         qcom,cpr-enable;
  111.     };
  112. };
  113.  
  114.  
  115. /* RPM controlled regulators */
  116. &rpm_bus {
  117.  
  118.     /* PM8916 S1 VDD_CX supply */
  119.     rpm-regulator-smpa1 {
  120.         status = "okay";
  121.         pm8916_s1_corner: regulator-s1-corner {
  122.             compatible = "qcom,rpm-smd-regulator";
  123.             regulator-name = "8916_s1_corner";
  124.             qcom,set = <3>;
  125.             regulator-min-microvolt = <1>;
  126.             regulator-max-microvolt = <7>;
  127.             qcom,use-voltage-corner;
  128.         };
  129.         pm8916_s1_corner_ao: regulator-s1-corner-ao {
  130.             compatible = "qcom,rpm-smd-regulator";
  131.             regulator-name = "8916_s1_corner_ao";
  132.             qcom,set = <1>;
  133.             regulator-min-microvolt = <1>;
  134.             regulator-max-microvolt = <7>;
  135.             qcom,use-voltage-corner;
  136.         };
  137.         pm8916_s1_floor_corner: regulator-s1-floor-corner {
  138.             compatible = "qcom,rpm-smd-regulator";
  139.             regulator-name = "8916_s1_floor_corner";
  140.             qcom,set = <3>;
  141.             regulator-min-microvolt = <1>;
  142.             regulator-max-microvolt = <7>;
  143.             qcom,use-voltage-floor-corner;
  144.             qcom,always-send-voltage;
  145.         };
  146.     };
  147.  
  148.     rpm-regulator-smpa3 {
  149.         status = "okay";
  150.         pm8916_s3: regulator-s3 {
  151.             regulator-min-microvolt = <1200000>;
  152.             regulator-max-microvolt = <1300000>;
  153.             qcom,init-voltage = <1200000>;
  154.             status = "okay";
  155.         };
  156.     };
  157.  
  158.     rpm-regulator-smpa4 {
  159.         status = "okay";
  160.         pm8916_s4: regulator-s4 {
  161.             regulator-min-microvolt = <1800000>;
  162.             regulator-max-microvolt = <2100000>;
  163.             qcom,init-voltage = <1800000>;
  164.             status = "okay";
  165.         };
  166.     };
  167.  
  168.     rpm-regulator-ldoa1 {
  169.         status = "okay";
  170.         pm8916_l1: regulator-l1 {
  171.             regulator-min-microvolt = <1225000>;
  172.             regulator-max-microvolt = <1225000>;
  173.             qcom,init-voltage = <1225000>;
  174.             status = "okay";
  175.         };
  176.     };
  177.  
  178.     rpm-regulator-ldoa2 {
  179.         status = "okay";
  180.         pm8916_l2: regulator-l2 {
  181.             regulator-min-microvolt = <1200000>;
  182.             regulator-max-microvolt = <1200000>;
  183.             qcom,init-voltage = <1200000>;
  184.             status = "okay";
  185.         };
  186.     };
  187.  
  188.     /* PM8916 L3 VDD_MX supply */
  189.     rpm-regulator-ldoa3 {
  190.         status = "okay";
  191.         pm8916_l3: regulator-l3 {
  192.             regulator-min-microvolt = <500000>;
  193.             regulator-max-microvolt = <1287500>;
  194.             status = "okay";
  195.         };
  196.  
  197.         pm8916_l3_corner_ao: regulator-l3-corner-ao {
  198.             compatible = "qcom,rpm-smd-regulator";
  199.             regulator-name = "8916_l3_corner_ao";
  200.             qcom,set = <1>;
  201.             regulator-min-microvolt = <1>;
  202.             regulator-max-microvolt = <7>;
  203.             qcom,use-voltage-corner;
  204.         };
  205.  
  206.         pm8916_l3_corner_so: regulator-l3-corner-so {
  207.             compatible = "qcom,rpm-smd-regulator";
  208.             regulator-name = "8916_l3_corner_so";
  209.             qcom,set = <2>;
  210.             regulator-min-microvolt = <1>;
  211.             regulator-max-microvolt = <7>;
  212.             qcom,use-voltage-corner;
  213.             qcom,init-voltage = <1>;
  214.         };
  215.     };
  216.  
  217.     rpm-regulator-ldoa4 {
  218.         status = "okay";
  219.         pm8916_l4: regulator-l4 {
  220.             regulator-min-microvolt = <2050000>;
  221.             regulator-max-microvolt = <2050000>;
  222.             qcom,init-voltage = <2050000>;
  223.             status = "okay";
  224.         };
  225.     };
  226.  
  227.     rpm-regulator-ldoa5 {
  228.         status = "okay";
  229.         pm8916_l5: regulator-l5 {
  230.             regulator-min-microvolt = <1800000>;
  231.             regulator-max-microvolt = <1800000>;
  232.             qcom,init-voltage = <1800000>;
  233.             status = "okay";
  234.         };
  235.     };
  236.  
  237.     rpm-regulator-ldoa6 {
  238.         status = "okay";
  239.         pm8916_l6: regulator-l6 {
  240.             regulator-min-microvolt = <1800000>;
  241.             regulator-max-microvolt = <1800000>;
  242.             qcom,init-voltage = <1800000>;
  243.             status = "okay";
  244.         };
  245.     };
  246.  
  247.     rpm-regulator-ldoa7 {
  248.         status = "okay";
  249.         pm8916_l7: regulator-l7 {
  250.             regulator-min-microvolt = <1800000>;
  251.             regulator-max-microvolt = <1800000>;
  252.             qcom,init-voltage = <1800000>;
  253.             status = "okay";
  254.         };
  255.  
  256.         pm8916_l7_ao: regulator-l7-ao {
  257.             compatible = "qcom,rpm-smd-regulator";
  258.             regulator-name = "8916_l7_ao";
  259.             qcom,set = <1>;
  260.             regulator-min-microvolt = <1800000>;
  261.             regulator-max-microvolt = <1800000>;
  262.             qcom,init-voltage = <1800000>;
  263.         };
  264.  
  265.         pm8916_l7_so: regulator-l7-so {
  266.             compatible = "qcom,rpm-smd-regulator";
  267.             regulator-name = "8916_l7_so";
  268.             qcom,set = <2>;
  269.             regulator-min-microvolt = <1800000>;
  270.             regulator-max-microvolt = <1800000>;
  271.             qcom,init-enable = <0>;
  272.         };
  273.     };
  274.  
  275.     rpm-regulator-ldoa8 {
  276.         status = "okay";
  277.         pm8916_l8: regulator-l8 {
  278.             regulator-min-microvolt = <2850000>;
  279.             regulator-max-microvolt = <2900000>;
  280.             qcom,init-voltage = <2850000>;
  281.             status = "okay";
  282.         };
  283.     };
  284.  
  285.     rpm-regulator-ldoa9 {
  286.         status = "okay";
  287.         pm8916_l9: regulator-l9 {
  288.             regulator-min-microvolt = <3300000>;
  289.             regulator-max-microvolt = <3300000>;
  290.             qcom,init-voltage = <3300000>;
  291.             status = "okay";
  292.         };
  293.     };
  294.  
  295.     rpm-regulator-ldoa10 {
  296.         status = "okay";
  297.         pm8916_l10: regulator-l10 {
  298.             regulator-min-microvolt = <2700000>;
  299.             regulator-max-microvolt = <2800000>;
  300.             qcom,init-voltage = <2700000>;
  301.             status = "okay";
  302.         };
  303.     };
  304.  
  305.     rpm-regulator-ldoa11 {
  306.         status = "okay";
  307.         pm8916_l11: regulator-l11 {
  308.             regulator-min-microvolt = <1800000>;
  309.             regulator-max-microvolt = <2950000>;
  310.             qcom,init-voltage = <1800000>;
  311.             status = "okay";
  312.         };
  313.     };
  314.  
  315.     rpm-regulator-ldoa12 {
  316.         status = "okay";
  317.         pm8916_l12: regulator-l12 {
  318.             regulator-min-microvolt = <1800000>;
  319.             regulator-max-microvolt = <2950000>;
  320.             qcom,init-voltage = <1800000>;
  321.             status = "okay";
  322.         };
  323.     };
  324.  
  325.     rpm-regulator-ldoa13 {
  326.         status = "okay";
  327.         pm8916_l13: regulator-l13 {
  328.             regulator-min-microvolt = <3075000>;
  329.             regulator-max-microvolt = <3075000>;
  330.             qcom,init-voltage = <3075000>;
  331.             status = "okay";
  332.         };
  333.     };
  334.  
  335.     rpm-regulator-ldoa14 {
  336.         status = "okay";
  337.         pm8916_l14: regulator-l14 {
  338.             regulator-min-microvolt = <1800000>;
  339.             regulator-max-microvolt = <3300000>;
  340.             qcom,init-voltage = <1800000>;
  341.             status = "okay";
  342.         };
  343.     };
  344.  
  345.     rpm-regulator-ldoa15 {
  346.         status = "okay";
  347.         pm8916_l15: regulator-l15 {
  348.             regulator-min-microvolt = <1800000>;
  349.             regulator-max-microvolt = <3300000>;
  350.             qcom,init-voltage = <1800000>;
  351.             status = "okay";
  352.         };
  353.     };
  354.  
  355.     rpm-regulator-ldoa16 {
  356.         status = "okay";
  357.         pm8916_l16: regulator-l16 {
  358.             regulator-min-microvolt = <1800000>;
  359.             regulator-max-microvolt = <3300000>;
  360.             qcom,init-voltage = <1800000>;
  361.             status = "okay";
  362.         };
  363.     };
  364.  
  365.     rpm-regulator-ldoa17 {
  366.         status = "okay";
  367.         pm8916_l17: regulator-l17 {
  368.             regulator-min-microvolt = <2850000>;
  369.             regulator-max-microvolt = <2850000>;
  370.             qcom,init-voltage = <2850000>;
  371.             status = "okay";
  372.         };
  373.     };
  374.  
  375.     rpm-regulator-ldoa18 {
  376.         status = "okay";
  377.         pm8916_l18: regulator-l18 {
  378.             regulator-min-microvolt = <2700000>;
  379.             regulator-max-microvolt = <2700000>;
  380.             qcom,init-voltage = <2700000>;
  381.             status = "okay";
  382.         };
  383.     };
  384. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top