aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2021-06-10 15:26:15 +0530
committerVinod Koul <vkoul@kernel.org>2021-06-10 15:27:45 +0530
commitca96b68f3013241430bda1bf34580a52def65c48 (patch)
tree6535fb53c257254141c3ee26820029742875d2b8
parent976fd46417e3ed90828e478ad9949e75ab681afc (diff)
arm64: dts: qcom: sa8155p-adp: Enable ethernet nodesa8155p/ethqos
Enable the ethernode, add the phy node and pinctrl for ethernet Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--arch/arm64/boot/dts/qcom/sa8155p-adp.dts82
1 files changed, 82 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts
index a33c98910a15..b1d1d4c45c5d 100644
--- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts
+++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts
@@ -306,8 +306,90 @@
};
};
+&ethernet {
+ status = "okay";
+
+ snps,reset-gpio = <&tlmm 79 GPIO_ACTIVE_LOW>;
+ snps,reset-active-low;
+ snps,reset-delays-us = <0 11000 70000>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&ethernet_defaults>;
+
+ phy-handle = <&rgmii_phy>;
+ phy-mode = "rgmii";
+ mdio {
+ #address-cells = <0x1>;
+ #size-cells = <0x0>;
+
+ compatible = "snps,dwmac-mdio";
+
+ /* Microchip KSZ9031RNX PHY */
+ rgmii_phy: phy@0 {
+ reg = <0x0>;
+ device_type = "ethernet-phy";
+ //compatible = "ethernet-phy-ieee802.3-c22";
+ };
+ };
+};
+
&tlmm {
gpio-reserved-ranges = <0 4>;
+
+ ethernet_defaults: ethernet-defaults {
+ int {
+ pins = "gpio124";
+ function = "rgmii_int";
+ bias-disable;
+ drive-strength = <8>;
+ };
+ mdc {
+ pins = "gpio7";
+ function = "rgmii_mdc";
+ bias-pull-up;
+ };
+ mdio {
+ pins = "gpio75";
+ function = "rgmii_mdio";
+ bias-pull-up;
+ };
+ tx {
+ pins = "gpio122", "gpio4", "gpio5", "gpio6";
+ function = "rgmii_tx";
+ bias-pull-up;
+ drive-strength = <16>;
+ };
+ rx {
+ pins = "gpio117", "gpio118", "gpio119", "gpio120";
+ function = "rgmii_rx";
+ bias-disable;
+ drive-strength = <2>;
+ };
+ tx-ctl {
+ pins = "gpio121";
+ function = "rgmii_ctl";
+ bias-pull-up;
+ drive-strength = <16>;
+ };
+ rx-ctl {
+ pins = "gpio116";
+ function = "rgmii_ctl";
+ bias-disable;
+ drive-strength = <2>;
+ };
+ tx-ck {
+ pins = "gpio63";
+ function = "rgmii_ck";
+ bias-pull-up;
+ drive-strength = <16>;
+ };
+ rx-ck {
+ pins = "gpio115";
+ function = "rgmii_ck";
+ bias-disable;
+ drive-strength = <2>;
+ };
+ };
};
&uart2 {