Re: [PATCH v1 5/6] dtb: xgene: Remove clock nodes
On Mon, May 30, 2016 at 12:34 AM, Matthias Bruggerwrote: > > > On 27/05/16 09:22, Iyappan Subramanian wrote: >> >> Since the MDIO will be responsible for clock reset, removing the clock >> nodes from shadowcat xge0 and storm sgenet1. >> >> Signed-off-by: Iyappan Subramanian >> Tested-by: Fushen Chen >> Tested-by: Toan Le >> --- >> arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 12 >> arch/arm64/boot/dts/apm/apm-storm.dtsi | 18 -- >> 2 files changed, 4 insertions(+), 26 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi >> b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi >> index 8106957..f27563d 100644 >> --- a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi >> +++ b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi >> @@ -299,17 +299,6 @@ >> clock-output-names = "pcie1clk"; >> }; >> >> - xge0clk: xge0clk@1f61c000 { >> - compatible = "apm,xgene-device-clock"; >> - #clock-cells = <1>; >> - clocks = < 0>; >> - reg = <0x0 0x1f61c000 0x0 0x1000>; >> - reg-names = "csr-reg"; >> - enable-mask = <0x3>; >> - csr-mask = <0x3>; >> - clock-output-names = "xge0clk"; >> - }; >> - > > > mdio@0x1f61 has xge0clk as input (patch 4), so deleting the node here > will break the device tree. I suppose the mdio consumes the menetclk as in > apm-storm.dtsi. I added back xge0clk. > > Regards, > Matthias > > >> xge1clk: xge1clk@1f62c000 { >> compatible = "apm,xgene-device-clock"; >> #clock-cells = <1>; >> @@ -643,7 +632,6 @@ >> interrupts = <0 96 4>, >> <0 97 4>; >> dma-coherent; >> - clocks = < 0>; >> local-mac-address = [00 01 73 00 00 01]; >> phy-connection-type = "sgmii"; >> phy-handle = <>; >> diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi >> b/arch/arm64/boot/dts/apm/apm-storm.dtsi >> index 18f694ea..f631fe4 100644 >> --- a/arch/arm64/boot/dts/apm/apm-storm.dtsi >> +++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi >> @@ -237,20 +237,11 @@ >> clocks = < 0>; >> reg = <0x0 0x1f21c000 0x0 0x1000>; >> reg-names = "csr-reg"; >> - csr-mask = <0x3>; >> + csr-mask = <0xa>; >> + enable-mask = <0xf>; >> clock-output-names = "sge0clk"; >> }; >> >> - sge1clk: sge1clk@1f21c000 { >> - compatible = "apm,xgene-device-clock"; >> - #clock-cells = <1>; >> - clocks = < 0>; >> - reg = <0x0 0x1f21c000 0x0 0x1000>; >> - reg-names = "csr-reg"; >> - csr-mask = <0xc>; >> - clock-output-names = "sge1clk"; >> - }; >> - >> xge0clk: xge0clk@1f61c000 { >> compatible = "apm,xgene-device-clock"; >> #clock-cells = <1>; >> @@ -938,9 +929,9 @@ >> reg-names = "enet_csr", "ring_csr", "ring_cmd"; >> interrupts = <0x0 0x3c 0x4>; >> dma-coherent; >> - clocks = < 0>; >> /* mac address will be overwritten by the >> bootloader */ >> local-mac-address = [00 00 00 00 00 00]; >> + clocks = < 0>; >> phy-connection-type = "rgmii"; >> phy-handle = <>; >> }; >> @@ -955,8 +946,8 @@ >> interrupts = <0x0 0xA0 0x4>, >> <0x0 0xA1 0x4>; >> dma-coherent; >> - clocks = < 0>; >> local-mac-address = [00 00 00 00 00 00]; >> + clocks = < 0>; >> phy-connection-type = "sgmii"; >> phy-handle = <>; >> }; >> @@ -972,7 +963,6 @@ >> <0x0 0xAD 0x4>; >> port-id = <1>; >> dma-coherent; >> - clocks = < 0>; >> local-mac-address = [00 00
Re: [PATCH v1 5/6] dtb: xgene: Remove clock nodes
On 27/05/16 09:22, Iyappan Subramanian wrote: Since the MDIO will be responsible for clock reset, removing the clock nodes from shadowcat xge0 and storm sgenet1. Signed-off-by: Iyappan SubramanianTested-by: Fushen Chen Tested-by: Toan Le --- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 12 arch/arm64/boot/dts/apm/apm-storm.dtsi | 18 -- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi index 8106957..f27563d 100644 --- a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi +++ b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi @@ -299,17 +299,6 @@ clock-output-names = "pcie1clk"; }; - xge0clk: xge0clk@1f61c000 { - compatible = "apm,xgene-device-clock"; - #clock-cells = <1>; - clocks = < 0>; - reg = <0x0 0x1f61c000 0x0 0x1000>; - reg-names = "csr-reg"; - enable-mask = <0x3>; - csr-mask = <0x3>; - clock-output-names = "xge0clk"; - }; - mdio@0x1f61 has xge0clk as input (patch 4), so deleting the node here will break the device tree. I suppose the mdio consumes the menetclk as in apm-storm.dtsi. Regards, Matthias xge1clk: xge1clk@1f62c000 { compatible = "apm,xgene-device-clock"; #clock-cells = <1>; @@ -643,7 +632,6 @@ interrupts = <0 96 4>, <0 97 4>; dma-coherent; - clocks = < 0>; local-mac-address = [00 01 73 00 00 01]; phy-connection-type = "sgmii"; phy-handle = <>; diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index 18f694ea..f631fe4 100644 --- a/arch/arm64/boot/dts/apm/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi @@ -237,20 +237,11 @@ clocks = < 0>; reg = <0x0 0x1f21c000 0x0 0x1000>; reg-names = "csr-reg"; - csr-mask = <0x3>; + csr-mask = <0xa>; + enable-mask = <0xf>; clock-output-names = "sge0clk"; }; - sge1clk: sge1clk@1f21c000 { - compatible = "apm,xgene-device-clock"; - #clock-cells = <1>; - clocks = < 0>; - reg = <0x0 0x1f21c000 0x0 0x1000>; - reg-names = "csr-reg"; - csr-mask = <0xc>; - clock-output-names = "sge1clk"; - }; - xge0clk: xge0clk@1f61c000 { compatible = "apm,xgene-device-clock"; #clock-cells = <1>; @@ -938,9 +929,9 @@ reg-names = "enet_csr", "ring_csr", "ring_cmd"; interrupts = <0x0 0x3c 0x4>; dma-coherent; - clocks = < 0>; /* mac address will be overwritten by the bootloader */ local-mac-address = [00 00 00 00 00 00]; + clocks = < 0>; phy-connection-type = "rgmii"; phy-handle = <>; }; @@ -955,8 +946,8 @@ interrupts = <0x0 0xA0 0x4>, <0x0 0xA1 0x4>; dma-coherent; - clocks = < 0>; local-mac-address = [00 00 00 00 00 00]; + clocks = < 0>; phy-connection-type = "sgmii"; phy-handle = <>; }; @@ -972,7 +963,6 @@ <0x0 0xAD 0x4>; port-id = <1>; dma-coherent; - clocks = < 0>; local-mac-address = [00 00 00 00 00 00]; phy-connection-type = "sgmii"; phy-handle = <>;
[PATCH v1 5/6] dtb: xgene: Remove clock nodes
Since the MDIO will be responsible for clock reset, removing the clock nodes from shadowcat xge0 and storm sgenet1. Signed-off-by: Iyappan SubramanianTested-by: Fushen Chen Tested-by: Toan Le --- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 12 arch/arm64/boot/dts/apm/apm-storm.dtsi | 18 -- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi index 8106957..f27563d 100644 --- a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi +++ b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi @@ -299,17 +299,6 @@ clock-output-names = "pcie1clk"; }; - xge0clk: xge0clk@1f61c000 { - compatible = "apm,xgene-device-clock"; - #clock-cells = <1>; - clocks = < 0>; - reg = <0x0 0x1f61c000 0x0 0x1000>; - reg-names = "csr-reg"; - enable-mask = <0x3>; - csr-mask = <0x3>; - clock-output-names = "xge0clk"; - }; - xge1clk: xge1clk@1f62c000 { compatible = "apm,xgene-device-clock"; #clock-cells = <1>; @@ -643,7 +632,6 @@ interrupts = <0 96 4>, <0 97 4>; dma-coherent; - clocks = < 0>; local-mac-address = [00 01 73 00 00 01]; phy-connection-type = "sgmii"; phy-handle = <>; diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index 18f694ea..f631fe4 100644 --- a/arch/arm64/boot/dts/apm/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi @@ -237,20 +237,11 @@ clocks = < 0>; reg = <0x0 0x1f21c000 0x0 0x1000>; reg-names = "csr-reg"; - csr-mask = <0x3>; + csr-mask = <0xa>; + enable-mask = <0xf>; clock-output-names = "sge0clk"; }; - sge1clk: sge1clk@1f21c000 { - compatible = "apm,xgene-device-clock"; - #clock-cells = <1>; - clocks = < 0>; - reg = <0x0 0x1f21c000 0x0 0x1000>; - reg-names = "csr-reg"; - csr-mask = <0xc>; - clock-output-names = "sge1clk"; - }; - xge0clk: xge0clk@1f61c000 { compatible = "apm,xgene-device-clock"; #clock-cells = <1>; @@ -938,9 +929,9 @@ reg-names = "enet_csr", "ring_csr", "ring_cmd"; interrupts = <0x0 0x3c 0x4>; dma-coherent; - clocks = < 0>; /* mac address will be overwritten by the bootloader */ local-mac-address = [00 00 00 00 00 00]; + clocks = < 0>; phy-connection-type = "rgmii"; phy-handle = <>; }; @@ -955,8 +946,8 @@ interrupts = <0x0 0xA0 0x4>, <0x0 0xA1 0x4>; dma-coherent; - clocks = < 0>; local-mac-address = [00 00 00 00 00 00]; + clocks = < 0>; phy-connection-type = "sgmii"; phy-handle = <>; }; @@ -972,7 +963,6 @@ <0x0 0xAD 0x4>; port-id = <1>; dma-coherent; - clocks = < 0>; local-mac-address = [00 00 00 00 00 00]; phy-connection-type = "sgmii"; phy-handle = <>; -- 1.9.1