linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Enable PCIe PHY support in Cygnus
@ 2015-11-18 18:16 Ray Jui
  2015-11-18 18:16 ` [PATCH] ARM: dts: enable PCIe PHY support for Cygnus Ray Jui
  2015-11-25  0:12 ` [PATCH] Enable PCIe PHY support in Cygnus Florian Fainelli
  0 siblings, 2 replies; 9+ messages in thread
From: Ray Jui @ 2015-11-18 18:16 UTC (permalink / raw)
  To: linux-arm-kernel

This patch enales PCIe PHY in device tree for Broadcom Cygnus based platforms

This patch is developed based on v4.4-rc1 and available here:
https://github.com/Broadcom/cygnus-linux/tree/cygnus-pcie-phy-dt-v1

Ray Jui (1):
  ARM: dts: enable PCIe PHY support for Cygnus

 arch/arm/boot/dts/bcm-cygnus.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: enable PCIe PHY support for Cygnus
  2015-11-18 18:16 [PATCH] Enable PCIe PHY support in Cygnus Ray Jui
@ 2015-11-18 18:16 ` Ray Jui
  2015-11-23 18:50   ` Ray Jui
  2015-11-23 18:57   ` Scott Branden
  2015-11-25  0:12 ` [PATCH] Enable PCIe PHY support in Cygnus Florian Fainelli
  1 sibling, 2 replies; 9+ messages in thread
From: Ray Jui @ 2015-11-18 18:16 UTC (permalink / raw)
  To: linux-arm-kernel

Enable PCIe PHY for both PCIe root complexes on Cygnus

Signed-off-by: Ray Jui <rjui@broadcom.com>
---
 arch/arm/boot/dts/bcm-cygnus.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi
index 2778533..5df5300 100644
--- a/arch/arm/boot/dts/bcm-cygnus.dtsi
+++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
@@ -91,6 +91,21 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
+		pcie_phy: phy at 0301d0a0 {
+			compatible = "brcm,cygnus-pcie-phy";
+			reg = <0x0301d0a0 0x14>;
+
+			pcie0_phy: phy at 0 {
+				reg = <0>;
+				#phy-cells = <0>;
+			};
+
+			pcie1_phy: phy at 1 {
+				reg = <1>;
+				#phy-cells = <0>;
+			};
+		};
+
 		pinctrl: pinctrl at 0x0301d0c8 {
 			compatible = "brcm,cygnus-pinmux";
 			reg = <0x0301d0c8 0x30>,
@@ -161,6 +176,9 @@
 			ranges = <0x81000000 0 0	  0x28000000 0 0x00010000
 				  0x82000000 0 0x20000000 0x20000000 0 0x04000000>;
 
+			phys = <&pcie0_phy>;
+			phy-names = "pcie-phy";
+
 			status = "disabled";
 		};
 
@@ -182,6 +200,9 @@
 			ranges = <0x81000000 0 0	  0x48000000 0 0x00010000
 				  0x82000000 0 0x40000000 0x40000000 0 0x04000000>;
 
+			phys = <&pcie1_phy>;
+			phy-names = "pcie-phy";
+
 			status = "disabled";
 		};
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: enable PCIe PHY support for Cygnus
  2015-11-18 18:16 ` [PATCH] ARM: dts: enable PCIe PHY support for Cygnus Ray Jui
@ 2015-11-23 18:50   ` Ray Jui
  2015-11-23 18:57   ` Scott Branden
  1 sibling, 0 replies; 9+ messages in thread
From: Ray Jui @ 2015-11-23 18:50 UTC (permalink / raw)
  To: linux-arm-kernel

Any comment on this DT change to enable PCIe PHY support for Cygnus?

Note the PHY driver has been accepted and is in v4.4.

Thanks,

Ray

On 11/18/2015 10:16 AM, Ray Jui wrote:
> Enable PCIe PHY for both PCIe root complexes on Cygnus
>
> Signed-off-by: Ray Jui <rjui@broadcom.com>
> ---
>   arch/arm/boot/dts/bcm-cygnus.dtsi | 21 +++++++++++++++++++++
>   1 file changed, 21 insertions(+)
>
> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi
> index 2778533..5df5300 100644
> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi
> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
> @@ -91,6 +91,21 @@
>   		#address-cells = <1>;
>   		#size-cells = <1>;
>
> +		pcie_phy: phy at 0301d0a0 {
> +			compatible = "brcm,cygnus-pcie-phy";
> +			reg = <0x0301d0a0 0x14>;
> +
> +			pcie0_phy: phy at 0 {
> +				reg = <0>;
> +				#phy-cells = <0>;
> +			};
> +
> +			pcie1_phy: phy at 1 {
> +				reg = <1>;
> +				#phy-cells = <0>;
> +			};
> +		};
> +
>   		pinctrl: pinctrl at 0x0301d0c8 {
>   			compatible = "brcm,cygnus-pinmux";
>   			reg = <0x0301d0c8 0x30>,
> @@ -161,6 +176,9 @@
>   			ranges = <0x81000000 0 0	  0x28000000 0 0x00010000
>   				  0x82000000 0 0x20000000 0x20000000 0 0x04000000>;
>
> +			phys = <&pcie0_phy>;
> +			phy-names = "pcie-phy";
> +
>   			status = "disabled";
>   		};
>
> @@ -182,6 +200,9 @@
>   			ranges = <0x81000000 0 0	  0x48000000 0 0x00010000
>   				  0x82000000 0 0x40000000 0x40000000 0 0x04000000>;
>
> +			phys = <&pcie1_phy>;
> +			phy-names = "pcie-phy";
> +
>   			status = "disabled";
>   		};
>
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: enable PCIe PHY support for Cygnus
  2015-11-18 18:16 ` [PATCH] ARM: dts: enable PCIe PHY support for Cygnus Ray Jui
  2015-11-23 18:50   ` Ray Jui
@ 2015-11-23 18:57   ` Scott Branden
  1 sibling, 0 replies; 9+ messages in thread
From: Scott Branden @ 2015-11-23 18:57 UTC (permalink / raw)
  To: linux-arm-kernel

Ray,

Patch looks good.

On 15-11-18 10:16 AM, Ray Jui wrote:
> Enable PCIe PHY for both PCIe root complexes on Cygnus
>
> Signed-off-by: Ray Jui <rjui@broadcom.com>
Acked-by: Scott Branden <sbranden@broadcom.com>

> ---
>   arch/arm/boot/dts/bcm-cygnus.dtsi | 21 +++++++++++++++++++++
>   1 file changed, 21 insertions(+)
>
> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi
> index 2778533..5df5300 100644
> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi
> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
> @@ -91,6 +91,21 @@
>   		#address-cells = <1>;
>   		#size-cells = <1>;
>
> +		pcie_phy: phy at 0301d0a0 {
> +			compatible = "brcm,cygnus-pcie-phy";
> +			reg = <0x0301d0a0 0x14>;
> +
> +			pcie0_phy: phy at 0 {
> +				reg = <0>;
> +				#phy-cells = <0>;
> +			};
> +
> +			pcie1_phy: phy at 1 {
> +				reg = <1>;
> +				#phy-cells = <0>;
> +			};
> +		};
> +
>   		pinctrl: pinctrl at 0x0301d0c8 {
>   			compatible = "brcm,cygnus-pinmux";
>   			reg = <0x0301d0c8 0x30>,
> @@ -161,6 +176,9 @@
>   			ranges = <0x81000000 0 0	  0x28000000 0 0x00010000
>   				  0x82000000 0 0x20000000 0x20000000 0 0x04000000>;
>
> +			phys = <&pcie0_phy>;
> +			phy-names = "pcie-phy";
> +
>   			status = "disabled";
>   		};
>
> @@ -182,6 +200,9 @@
>   			ranges = <0x81000000 0 0	  0x48000000 0 0x00010000
>   				  0x82000000 0 0x40000000 0x40000000 0 0x04000000>;
>
> +			phys = <&pcie1_phy>;
> +			phy-names = "pcie-phy";
> +
>   			status = "disabled";
>   		};
>
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] Enable PCIe PHY support in Cygnus
  2015-11-18 18:16 [PATCH] Enable PCIe PHY support in Cygnus Ray Jui
  2015-11-18 18:16 ` [PATCH] ARM: dts: enable PCIe PHY support for Cygnus Ray Jui
@ 2015-11-25  0:12 ` Florian Fainelli
  2015-12-01 23:12   ` Florian Fainelli
  1 sibling, 1 reply; 9+ messages in thread
From: Florian Fainelli @ 2015-11-25  0:12 UTC (permalink / raw)
  To: linux-arm-kernel

On 18/11/15 10:16, Ray Jui wrote:
> This patch enales PCIe PHY in device tree for Broadcom Cygnus based platforms
> 
> This patch is developed based on v4.4-rc1 and available here:
> https://github.com/Broadcom/cygnus-linux/tree/cygnus-pcie-phy-dt-v1
> 
> Ray Jui (1):
>   ARM: dts: enable PCIe PHY support for Cygnus

Applied to devicetree/next with Scott's Acked-by, thanks!
-- 
Florian

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] Enable PCIe PHY support in Cygnus
  2015-11-25  0:12 ` [PATCH] Enable PCIe PHY support in Cygnus Florian Fainelli
@ 2015-12-01 23:12   ` Florian Fainelli
  2015-12-01 23:16     ` Ray Jui
  2015-12-01 23:18     ` Arnd Bergmann
  0 siblings, 2 replies; 9+ messages in thread
From: Florian Fainelli @ 2015-12-01 23:12 UTC (permalink / raw)
  To: linux-arm-kernel

On 24/11/15 16:12, Florian Fainelli wrote:
> On 18/11/15 10:16, Ray Jui wrote:
>> This patch enales PCIe PHY in device tree for Broadcom Cygnus based platforms
>>
>> This patch is developed based on v4.4-rc1 and available here:
>> https://github.com/Broadcom/cygnus-linux/tree/cygnus-pcie-phy-dt-v1
>>
>> Ray Jui (1):
>>   ARM: dts: enable PCIe PHY support for Cygnus
> 
> Applied to devicetree/next with Scott's Acked-by, thanks!

This caused the DTC compiler to warn:

Warning (reg_format): "reg" property in /axi/phy at 0301d0a0/phy at 0 has
invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /axi/phy at 0301d0a0/phy at 1 has
invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells
value for /axi/phy at 0301d0a0/phy at 0
Warning (avoid_default_addr_size): Relying on default #size-cells value
for /axi/phy at 0301d0a0/phy at 0
Warning (avoid_default_addr_size): Relying on default #address-cells
value for /axi/phy at 0301d0a0/phy at 1
Warning (avoid_default_addr_size): Relying on default #size-cells value
for /axi/phy at 0301d0a0/phy at 1
  CC      drivers/base/power/runtime.o
  DTC     arch/arm/boot/dts/bcm911360k.dtb
  CC      lib/bitmap.o

I added an #address-cells = <0> and #size-cells = <1> to fix this, since
your reg property is a single digit.
-- 
Florian

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] Enable PCIe PHY support in Cygnus
  2015-12-01 23:12   ` Florian Fainelli
@ 2015-12-01 23:16     ` Ray Jui
  2015-12-01 23:18     ` Arnd Bergmann
  1 sibling, 0 replies; 9+ messages in thread
From: Ray Jui @ 2015-12-01 23:16 UTC (permalink / raw)
  To: linux-arm-kernel



On 12/1/2015 3:12 PM, Florian Fainelli wrote:
> On 24/11/15 16:12, Florian Fainelli wrote:
>> On 18/11/15 10:16, Ray Jui wrote:
>>> This patch enales PCIe PHY in device tree for Broadcom Cygnus based platforms
>>>
>>> This patch is developed based on v4.4-rc1 and available here:
>>> https://github.com/Broadcom/cygnus-linux/tree/cygnus-pcie-phy-dt-v1
>>>
>>> Ray Jui (1):
>>>    ARM: dts: enable PCIe PHY support for Cygnus
>>
>> Applied to devicetree/next with Scott's Acked-by, thanks!
>
> This caused the DTC compiler to warn:
>
> Warning (reg_format): "reg" property in /axi/phy at 0301d0a0/phy at 0 has
> invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
> Warning (reg_format): "reg" property in /axi/phy at 0301d0a0/phy at 1 has
> invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
> Warning (avoid_default_addr_size): Relying on default #address-cells
> value for /axi/phy at 0301d0a0/phy at 0
> Warning (avoid_default_addr_size): Relying on default #size-cells value
> for /axi/phy at 0301d0a0/phy at 0
> Warning (avoid_default_addr_size): Relying on default #address-cells
> value for /axi/phy at 0301d0a0/phy at 1
> Warning (avoid_default_addr_size): Relying on default #size-cells value
> for /axi/phy at 0301d0a0/phy at 1
>    CC      drivers/base/power/runtime.o
>    DTC     arch/arm/boot/dts/bcm911360k.dtb
>    CC      lib/bitmap.o
>
> I added an #address-cells = <0> and #size-cells = <1> to fix this, since
> your reg property is a single digit.
>

Sorry I missed that. Both are required properties.

Thanks!

Ray

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] Enable PCIe PHY support in Cygnus
  2015-12-01 23:12   ` Florian Fainelli
  2015-12-01 23:16     ` Ray Jui
@ 2015-12-01 23:18     ` Arnd Bergmann
  2015-12-01 23:20       ` Florian Fainelli
  1 sibling, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2015-12-01 23:18 UTC (permalink / raw)
  To: linux-arm-kernel

On Tuesday 01 December 2015 15:12:41 Florian Fainelli wrote:
>   CC      lib/bitmap.o
> 
> I added an #address-cells = <0> and #size-cells = <1> to fix this, since
> your reg property is a single digit.

Did you mean #address-cells = <1> and #size-cells = <0>?

	Arnd

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] Enable PCIe PHY support in Cygnus
  2015-12-01 23:18     ` Arnd Bergmann
@ 2015-12-01 23:20       ` Florian Fainelli
  0 siblings, 0 replies; 9+ messages in thread
From: Florian Fainelli @ 2015-12-01 23:20 UTC (permalink / raw)
  To: linux-arm-kernel

On 01/12/15 15:18, Arnd Bergmann wrote:
> On Tuesday 01 December 2015 15:12:41 Florian Fainelli wrote:
>>   CC      lib/bitmap.o
>>
>> I added an #address-cells = <0> and #size-cells = <1> to fix this, since
>> your reg property is a single digit.
> 
> Did you mean #address-cells = <1> and #size-cells = <0>?

Ermm, yes, thanks for catching this..
-- 
Florian

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-12-01 23:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18 18:16 [PATCH] Enable PCIe PHY support in Cygnus Ray Jui
2015-11-18 18:16 ` [PATCH] ARM: dts: enable PCIe PHY support for Cygnus Ray Jui
2015-11-23 18:50   ` Ray Jui
2015-11-23 18:57   ` Scott Branden
2015-11-25  0:12 ` [PATCH] Enable PCIe PHY support in Cygnus Florian Fainelli
2015-12-01 23:12   ` Florian Fainelli
2015-12-01 23:16     ` Ray Jui
2015-12-01 23:18     ` Arnd Bergmann
2015-12-01 23:20       ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).