mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-07 14:19:35 +00:00
arm64: dts: qcom: sa8155p-adp: Enable ethernet node
Enable the ethernet node, add the phy node and pinctrl for ethernet. [bhsharma: Correct ethernet/rgmii related pinmuxs, specify multi-queues and plug in the PHY interrupt for WOL] Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220325163537.1579969-3-bhupesh.sharma@linaro.org
This commit is contained in:
parent
05f333b746
commit
c5cb42cc84
@ -47,6 +47,65 @@ vreg_s4a_1p8: smps4 {
|
|||||||
|
|
||||||
vin-supply = <&vreg_3p3>;
|
vin-supply = <&vreg_3p3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mtl_rx_setup: rx-queues-config {
|
||||||
|
snps,rx-queues-to-use = <4>;
|
||||||
|
snps,rx-sched-sp;
|
||||||
|
|
||||||
|
queue0 {
|
||||||
|
snps,dcb-algorithm;
|
||||||
|
snps,map-to-dma-channel = <0x0>;
|
||||||
|
snps,route-up;
|
||||||
|
snps,priority = <0x1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
queue1 {
|
||||||
|
snps,dcb-algorithm;
|
||||||
|
snps,map-to-dma-channel = <0x1>;
|
||||||
|
snps,route-ptp;
|
||||||
|
};
|
||||||
|
|
||||||
|
queue2 {
|
||||||
|
snps,avb-algorithm;
|
||||||
|
snps,map-to-dma-channel = <0x2>;
|
||||||
|
snps,route-avcp;
|
||||||
|
};
|
||||||
|
|
||||||
|
queue3 {
|
||||||
|
snps,avb-algorithm;
|
||||||
|
snps,map-to-dma-channel = <0x3>;
|
||||||
|
snps,priority = <0xC>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
mtl_tx_setup: tx-queues-config {
|
||||||
|
snps,tx-queues-to-use = <4>;
|
||||||
|
snps,tx-sched-wrr;
|
||||||
|
|
||||||
|
queue0 {
|
||||||
|
snps,weight = <0x10>;
|
||||||
|
snps,dcb-algorithm;
|
||||||
|
snps,priority = <0x0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
queue1 {
|
||||||
|
snps,weight = <0x11>;
|
||||||
|
snps,dcb-algorithm;
|
||||||
|
snps,priority = <0x1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
queue2 {
|
||||||
|
snps,weight = <0x12>;
|
||||||
|
snps,dcb-algorithm;
|
||||||
|
snps,priority = <0x2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
queue3 {
|
||||||
|
snps,weight = <0x13>;
|
||||||
|
snps,dcb-algorithm;
|
||||||
|
snps,priority = <0x3>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&apps_rsc {
|
&apps_rsc {
|
||||||
@ -303,6 +362,44 @@ vreg_l18c_0p88: ldo18 {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ðernet {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
snps,reset-gpio = <&tlmm 79 GPIO_ACTIVE_LOW>;
|
||||||
|
snps,reset-active-low;
|
||||||
|
snps,reset-delays-us = <0 11000 70000>;
|
||||||
|
|
||||||
|
snps,ptp-ref-clk-rate = <250000000>;
|
||||||
|
snps,ptp-req-clk-rate = <96000000>;
|
||||||
|
|
||||||
|
snps,mtl-rx-config = <&mtl_rx_setup>;
|
||||||
|
snps,mtl-tx-config = <&mtl_tx_setup>;
|
||||||
|
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <ðernet_defaults>;
|
||||||
|
|
||||||
|
phy-handle = <&rgmii_phy>;
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
max-speed = <1000>;
|
||||||
|
|
||||||
|
mdio {
|
||||||
|
#address-cells = <0x1>;
|
||||||
|
#size-cells = <0x0>;
|
||||||
|
|
||||||
|
compatible = "snps,dwmac-mdio";
|
||||||
|
|
||||||
|
/* Micrel KSZ9031RNZ PHY */
|
||||||
|
rgmii_phy: phy@7 {
|
||||||
|
reg = <0x7>;
|
||||||
|
|
||||||
|
interrupt-parent = <&tlmm>;
|
||||||
|
interrupts-extended = <&tlmm 124 IRQ_TYPE_EDGE_FALLING>; /* phy intr */
|
||||||
|
device_type = "ethernet-phy";
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&qupv3_id_1 {
|
&qupv3_id_1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -490,4 +587,53 @@ mux {
|
|||||||
drive-strength = <2>;
|
drive-strength = <2>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ethernet_defaults: ethernet-defaults {
|
||||||
|
mdc {
|
||||||
|
pins = "gpio7";
|
||||||
|
function = "rgmii";
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
|
||||||
|
mdio {
|
||||||
|
pins = "gpio59";
|
||||||
|
function = "rgmii";
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
|
||||||
|
rgmii-rx {
|
||||||
|
pins = "gpio117", "gpio118", "gpio119", "gpio120", "gpio115", "gpio116";
|
||||||
|
function = "rgmii";
|
||||||
|
bias-disable;
|
||||||
|
drive-strength = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
rgmii-tx {
|
||||||
|
pins = "gpio122", "gpio4", "gpio5", "gpio6", "gpio114", "gpio121";
|
||||||
|
function = "rgmii";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <16>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy-intr {
|
||||||
|
pins = "gpio124";
|
||||||
|
function = "emac_phy";
|
||||||
|
bias-disable;
|
||||||
|
drive-strength = <8>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pps {
|
||||||
|
pins = "gpio81";
|
||||||
|
function = "emac_pps";
|
||||||
|
bias-disable;
|
||||||
|
drive-strength = <8>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy-reset {
|
||||||
|
pins = "gpio79";
|
||||||
|
function = "gpio";
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <16>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user