According to QSDK and OEM tarballs (checked c2600, r7500v2, r7800) 2nd pci slot (pci1, 2,4 GHz card)) on ap148 based boards should operate in gen1 mode.
EA8500 is an exception and according to GPL pcie0 should operate in gen1 mode.
In previous commit we've added the support for this option, so enable it in DT for affected devices.
QSDK ref:
https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/commit/?h=release/endive_preview_cc&id=
f3b07fe309027c52fc163149500cedddd707c506
While at it move the phy transmit termination offset value into dtsi file as it's platform specific.
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
pcie0: pci@1b500000 {
status = "ok";
- phy-tx0-term-offset = <7>;
};
pcie1: pci@1b700000 {
status = "ok";
- phy-tx0-term-offset = <7>;
+ force_gen1 = <1>;
};
nand@1ac00000 {
pcie0: pci@1b500000 {
status = "ok";
- phy-tx0-term-offset = <7>;
};
pcie1: pci@1b700000 {
status = "ok";
- phy-tx0-term-offset = <7>;
+ force_gen1 = <1>;
};
mdio0: mdio {
reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&pcie1_pins>;
pinctrl-names = "default";
+ force_gen1 = <1>;
};
nand@1ac00000 {
pcie0: pci@1b500000 {
status = "ok";
- phy-tx0-term-offset = <7>;
+ force_gen1 = <1>;
};
pcie1: pci@1b700000 {
status = "ok";
- phy-tx0-term-offset = <7>;
};
-
+
pcie2: pci@1b900000 {
status = "ok";
- phy-tx0-term-offset = <7>;
};
-
+
nand@1ac00000 {
status = "ok";
pcie1: pci@1b700000 {
status = "ok";
+ force_gen1 = <1>;
};
nand@1ac00000 {
reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&pcie1_pins>;
pinctrl-names = "default";
+ force_gen1 = <1>;
};
nand@1ac00000 {
pcie0: pci@1b500000 {
status = "ok";
- phy-tx0-term-offset = <7>;
};
pcie1: pci@1b700000 {
status = "ok";
- phy-tx0-term-offset = <7>;
+ force_gen1 = <1>;
};
mdio0: mdio {
perst-gpios = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
+ phy-tx0-term-offset = <7>;
+
status = "disabled";
};
perst-gpios = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
+ phy-tx0-term-offset = <7>;
+
status = "disabled";
};
perst-gpios = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
+ phy-tx0-term-offset = <7>;
+
status = "disabled";
};
reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&pcie1_pins>;
pinctrl-names = "default";
+ force_gen1 = <1>;
};
mdio0: mdio {
pcie0: pci@1b500000 {
status = "ok";
- phy-tx0-term-offset = <7>;
};
pcie1: pci@1b700000 {
status = "ok";
- phy-tx0-term-offset = <7>;
+ force_gen1 = <1>;
};
nand@1ac00000 {