mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
This change is add settings for change calculation of FoM for preset Change-Id: I64a7be0473ad9fd8f100252df40e986e18a5c756
382 lines
8.1 KiB
Devicetree
382 lines
8.1 KiB
Devicetree
#include "sdxlemur-mtp.dtsi"
|
|
|
|
&soc {
|
|
qps615_vreg: qps615_vreg {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "qps615_vreg";
|
|
gpio = <&tlmm 107 GPIO_ACTIVE_HIGH>;
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1000000>;
|
|
enable-active-high;
|
|
regulator-enable-ramp-delay = <4300>;
|
|
};
|
|
|
|
qca_vreg: qca_vreg {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "qca_vreg";
|
|
gpio = <&tlmm 106 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&qps615_vreg>;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
enable-active-high;
|
|
regulator-enable-ramp-delay = <80000>;
|
|
};
|
|
|
|
aqr_vreg: aqr_vreg {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "aqr_vreg";
|
|
gpio = <&tlmm 105 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&qps615_vreg>;
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1000000>;
|
|
enable-active-high;
|
|
regulator-enable-ramp-delay = <10000>;
|
|
};
|
|
|
|
ioss_aqr_rx: qps615_rx@eth0 {
|
|
qcom,dir-rx;
|
|
qcom,rx-filter-ip;
|
|
|
|
qcom,ring-size = <1023>;
|
|
qcom,buff-size = <2048>;
|
|
|
|
qcom,mod-count-min = <64>;
|
|
qcom,mod-count-max = <64>;
|
|
qcom,mod-usecs-min = <30>;
|
|
qcom,mod-usecs-max = <60>;
|
|
};
|
|
|
|
ioss_aqr_tx: qps615_tx@eth0 {
|
|
qcom,dir-tx;
|
|
qcom,ring-size = <1023>;
|
|
qcom,buff-size = <2048>;
|
|
|
|
qcom,mod-count-min = <64>;
|
|
qcom,mod-count-max = <64>;
|
|
qcom,mod-usecs-min = <30>;
|
|
qcom,mod-usecs-max = <60>;
|
|
};
|
|
|
|
ioss_napa_rx: qps615_rx@eth1 {
|
|
qcom,dir-rx;
|
|
qcom,rx-filter-ip;
|
|
|
|
qcom,ring-size = <127>;
|
|
qcom,buff-size = <2048>;
|
|
|
|
qcom,mod-count-min = <64>;
|
|
qcom,mod-count-max = <64>;
|
|
qcom,mod-usecs-min = <30>;
|
|
qcom,mod-usecs-max = <60>;
|
|
};
|
|
|
|
ioss_napa_tx: qps615_tx@eth1 {
|
|
qcom,dir-tx;
|
|
qcom,ring-size = <511>;
|
|
qcom,buff-size = <2048>;
|
|
|
|
qcom,mod-count-min = <64>;
|
|
qcom,mod-count-max = <64>;
|
|
qcom,mod-usecs-min = <30>;
|
|
qcom,mod-usecs-max = <60>;
|
|
};
|
|
};
|
|
|
|
&i2c_5 {
|
|
status = "ok"
|
|
|
|
pcie_i2c_ctrl: pcie_i2c_ctrl {
|
|
compatible = "qcom,pcie0-i2c-ntn3";
|
|
reg = <0x77>;
|
|
gpio-config-reg = <0x801208>;
|
|
ep-reset-reg = <0x801210>;
|
|
ep-reset-gpio-mask = <0xc>;
|
|
version-reg = <0x800000>;
|
|
dump-regs = <0x801330 0x801350 0x801370>;
|
|
reg_update = <0x82c030 0x1
|
|
0x828000 0x3
|
|
0x82bd00 0x8
|
|
0x82c030 0x2
|
|
0x828000 0x3
|
|
0x82bd00 0x8
|
|
0x82c030 0x8
|
|
0x828000 0x1
|
|
0x82bd00 0x8
|
|
0x82c01c 0x10
|
|
0x82c030 0xf
|
|
0x828000 0xf
|
|
0x82b268 0x2>;
|
|
/*FOM for preset caluclation*/
|
|
switch_reg_update = <0x82c02c 0x00000007
|
|
0x824a10 0x00000001
|
|
0x82c030 0x00000008
|
|
0x828000 0x00000001
|
|
0x82b074 0x00000020
|
|
0x82b2bc 0x00000001>;
|
|
};
|
|
};
|
|
|
|
|
|
&pcie0 {
|
|
pcie-i2c-phandle = <&i2c_5>;
|
|
|
|
vreg-3p3-supply = <&qps615_vreg>;
|
|
qcom,phy-sequence = <0x1240 0x03 0x0
|
|
0x1010 0x01 0x0
|
|
0x101c 0x31 0x0
|
|
0x1020 0x01 0x0
|
|
0x1024 0xde 0x0
|
|
0x1028 0x07 0x0
|
|
0x1030 0x97 0x0
|
|
0x1034 0x0c 0x0
|
|
0x1044 0x14 0x0
|
|
0x1048 0x90 0x0
|
|
0x1058 0x0f 0x0
|
|
0x1074 0x06 0x0
|
|
0x1078 0x06 0x0
|
|
0x107c 0x16 0x0
|
|
0x1080 0x16 0x0
|
|
0x1084 0x36 0x0
|
|
0x1088 0x36 0x0
|
|
0x1094 0x08 0x0
|
|
0x10a4 0x46 0x0
|
|
0x10a8 0x04 0x0
|
|
0x10ac 0x0a 0x0
|
|
0x10b0 0x1a 0x0
|
|
0x10b4 0x14 0x0
|
|
0x10b8 0x34 0x0
|
|
0x10bc 0x82 0x0
|
|
0x10c4 0xd0 0x0
|
|
0x10cc 0x55 0x0
|
|
0x10d0 0x55 0x0
|
|
0x10d4 0x03 0x0
|
|
0x10d8 0x55 0x0
|
|
0x10dc 0x55 0x0
|
|
0x10e0 0x05 0x0
|
|
0x110c 0x02 0x0
|
|
0x1154 0x34 0x0
|
|
0x1158 0x12 0x0
|
|
0x115c 0x00 0x0
|
|
0x1168 0x0a 0x0
|
|
0x116c 0x04 0x0
|
|
0x119c 0x88 0x0
|
|
0x1174 0x60 0x0
|
|
0x117c 0x06 0x0
|
|
0x11a0 0x14 0x0
|
|
0x11a8 0x0f 0x0
|
|
0x0220 0x16 0x0
|
|
0x03c0 0x38 0x0
|
|
0x0a20 0x16 0x0
|
|
0x0bc0 0x38 0x0
|
|
0x0364 0xcc 0x0
|
|
0x0368 0x12 0x0
|
|
0x036c 0xcc 0x0
|
|
0x0374 0x4a 0x0
|
|
0x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
|
|
0x0c00 0x1f 0x0
|
|
0x0c08 0x1f 0x0
|
|
0x0c10 0x1f 0x0
|
|
0x0c18 0x1f 0x0
|
|
0x0c20 0x1f 0x0
|
|
0x0bf4 0x1f 0x0
|
|
0x0bfc 0x1f 0x0
|
|
0x0c04 0x1f 0x0
|
|
0x0208 0x0c 0x0
|
|
0x0a08 0x0c 0x0
|
|
0x020c 0x0a 0x0
|
|
0x0a0c 0x0a 0x0
|
|
0x02dc 0x0a 0x0
|
|
0x0adc 0x0a 0x0
|
|
0x0308 0x0b 0x0
|
|
0x0b08 0x0b 0x0
|
|
0x027c 0x10 0x0
|
|
0x0a7c 0x10 0x0
|
|
0x02b4 0x00 0x0
|
|
0x0ab4 0x00 0x0
|
|
0x02ec 0x0f 0x0
|
|
0x0aec 0x0f 0x0
|
|
0x02c4 0x00 0x0
|
|
0x02c8 0x1f 0x0
|
|
0x0ac4 0x00 0x0
|
|
0x0ac8 0x1f 0x0
|
|
0x0030 0x1a 0x0
|
|
0x0034 0x0c 0x0
|
|
0x0830 0x1a 0x0
|
|
0x0834 0x0c 0x0
|
|
0x141c 0xc1 0x0
|
|
0x1490 0x00 0x0
|
|
0x13e0 0x16 0x0
|
|
0x13e4 0x22 0x0
|
|
0x1508 0x02 0x0
|
|
0x14a0 0x16 0x0
|
|
0x1420 0x40 0x0
|
|
0x1584 0x28 0x0
|
|
0x1370 0x2e 0x0
|
|
0x155c 0x2e 0x0
|
|
0x140c 0x1d 0x0
|
|
0x1388 0xaa 0x0
|
|
0x1200 0x00 0x0
|
|
0x1244 0x03 0x0>;
|
|
|
|
iommu-map = <0x0 &apps_smmu 0x0200 0x1>,
|
|
<0x100 &apps_smmu 0x0201 0x1>,
|
|
<0x208 &apps_smmu 0x0202 0x1>,
|
|
<0x210 &apps_smmu 0x0203 0x1>,
|
|
<0x218 &apps_smmu 0x0204 0x1>,
|
|
<0x300 &apps_smmu 0x0207 0x1>,
|
|
<0x400 &apps_smmu 0x0208 0x1>,
|
|
<0x500 &apps_smmu 0x020c 0x1>,
|
|
<0x501 &apps_smmu 0x020e 0x1>;
|
|
};
|
|
|
|
&pcie0_rp {
|
|
#address-cells = <5>;
|
|
#size-cells = <0>;
|
|
|
|
/* BDF 1.0.0 */
|
|
pcie0_bus1_dev0_fn0: pcie0_bus1_dev0_fn0 {
|
|
reg = <0 0 0 0 0>;
|
|
|
|
/* BDF 2.1.0 */
|
|
pcie0_bus2_dev1_fn0: pcie0_bus2_dev1_fn0 {
|
|
reg = <0x800 0x0 0x0 0x0 0x0>;
|
|
};
|
|
|
|
/* BDF 2.2.0 */
|
|
pcie0_bus2_dev2_fn0: pcie0_bus2_dev2_fn0 {
|
|
reg = <0x1000 0x0 0x0 0x0 0x0>;
|
|
};
|
|
|
|
/* BDF 2.3.0 */
|
|
pcie0_bus2_dev3_fn0: pcie0_bus2_dev3_fn0 {
|
|
reg = <0x1800 0x0 0x0 0x0 0x0>;
|
|
qps615_eth0,qps615_eth0@pcie0_rp {
|
|
reg = <0x0 0x0 0x0 0x0 0x0>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&aqr_intn_wol_sig>;
|
|
|
|
compatible = "qcom,ioss-v2-device";
|
|
qcom,phy-rst-gpio = <0>;
|
|
qcom,ioss = <&ioss>;
|
|
qcom,ioss_instance = <0>;
|
|
qcom,ioss_channels =
|
|
<&ioss_aqr_rx>,
|
|
<&ioss_aqr_tx>;
|
|
|
|
qcom,ioss-wol-phy;
|
|
|
|
interrupts-extended = <&tlmm 103 IRQ_TYPE_EDGE_FALLING>;
|
|
interrupt-names = "wol_irq";
|
|
|
|
/* ipa shares this group */
|
|
qcom,iommu-group = <&ipa_eth_group1>;
|
|
phy-supply = <&aqr_vreg>;
|
|
qcom,phy-rst-delay-us = <221000>;
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
};
|
|
/* BDF 5.0.0 */
|
|
pcie0_bus5_dev0_fn0: pcie0_ntn3_eth0 {
|
|
reg = <0x0 0x0 0x0 0x0 0x0>;
|
|
qcom,iommu-group = <ð0_pci_iommu_group>;
|
|
eth0_pci_iommu_group: eth0_pci_iommu_group {
|
|
qcom,iommu-dma = "atomic";
|
|
};
|
|
};
|
|
|
|
qps615_eth1,qps615_eth1@pcie0_rp {
|
|
reg = <0x100 0x0 0x0 0x0 0x0>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&napa_intn_wol_sig>;
|
|
|
|
compatible = "qcom,ioss-v2-device";
|
|
qcom,phy-rst-gpio = <1>;
|
|
qcom,ioss = <&ioss>;
|
|
qcom,ioss_instance = <1>;
|
|
qcom,ioss_channels =
|
|
<&ioss_napa_rx>,
|
|
<&ioss_napa_tx>;
|
|
|
|
qcom,ioss-wol-phy;
|
|
qcom,ioss-wol-magic;
|
|
|
|
interrupts-extended = <&tlmm 81 IRQ_TYPE_EDGE_FALLING>;
|
|
interrupt-names = "wol_irq";
|
|
|
|
/* ipa shares this group */
|
|
qcom,iommu-group = <&ipa_eth_group2>;
|
|
phy-supply = <&qca_vreg>;
|
|
qcom,phy-rst-delay-us = <20000>;
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
};
|
|
/* BDF 5.0.1 */
|
|
pcie0_bus5_dev0_fn1: pcie0_ntn3_eth1 {
|
|
reg = <0x100 0x0 0x0 0x0 0x0>;
|
|
qcom,iommu-group = <ð1_pci_iommu_group>;
|
|
eth1_pci_iommu_group: eth1_pci_iommu_group {
|
|
qcom,iommu-dma = "atomic";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|