diff mbox

[9/9] ARM: shmobile: lager.dts: link usb-phy to pci nodes

Message ID 1394128887-4197-10-git-send-email-ben.dooks@codethink.co.uk (mailing list archive)
State Changes Requested
Headers show

Commit Message

Ben Dooks March 6, 2014, 6:01 p.m. UTC
Add the necessary links to add the USB phy nodes to the PCI devices
that are behind the bridges specified.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/boot/dts/r8a7790-lager.dts | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Comments

Sergei Shtylyov March 30, 2014, 7:29 p.m. UTC | #1
Hello.

On 03/06/2014 09:01 PM, Ben Dooks wrote:

> Add the necessary links to add the USB phy nodes to the PCI devices
> that are behind the bridges specified.

> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---
>   arch/arm/boot/dts/r8a7790-lager.dts | 37 +++++++++++++++++++++++++++++++++++++
>   1 file changed, 37 insertions(+)

> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
> index 63d58d6..62f486e 100644
> --- a/arch/arm/boot/dts/r8a7790-lager.dts
> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
> @@ -233,18 +233,55 @@
>   &pci0 {
>   	pinctrl-0 = <&usb0_pins>;
>   	pinctrl-names = "default";
> +	device_type = "pci";
> +
> +	pci@0,1 {
> +		reg = <0x800 0 0 0 0>;
> +		device_type = "pci";
> +		usb-phy = <&usbphy>;
> +	};
> +
> +	pci@0,2 {
> +		reg = <0x1000 0 0 0 0>;
> +		device_type = "pci";
> +		usb-phy = <&usbphy>;
> +	};
>   };
>
>   &pci1 {
>   	status = "okay";
>   	pinctrl-0 = <&usb1_pins>;
>   	pinctrl-names = "default";
> +
> +	pci@0,1 {
> +		reg = <0x800 0 0 0 0>;
> +		device_type = "pci";
> +		usb-phy = <&usbphy>;
> +	};
> +
> +	pci@0,2 {
> +		reg = <0x1000 0 0 0 0>;
> +		device_type = "pci";
> +		usb-phy = <&usbphy>;
> +	};
>   };
>
>   &pci2 {
>   	status = "okay";
>   	pinctrl-0 = <&usb2_pins>;
>   	pinctrl-names = "default";
> +
> +	pci@0,1 {
> +		reg = <0x800 0 0 0 0>;
> +		device_type = "pci";
> +		usb-phy = <&usbphy>;
> +	};
> +
> +	pci@0,2 {
> +		reg = <0x1000 0 0 0 0>;
> +		device_type = "pci";
> +		usb-phy = <&usbphy>;
> +	};
>   };

    I don't see why the internal PCI devices are added to the board file, not 
the SoC file.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Ben Dooks March 30, 2014, 7:47 p.m. UTC | #2
On 30/03/14 20:29, Sergei Shtylyov wrote:
> Hello.
>
> On 03/06/2014 09:01 PM, Ben Dooks wrote:
>
>> Add the necessary links to add the USB phy nodes to the PCI devices
>> that are behind the bridges specified.
>
>> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
>> ---
>>   arch/arm/boot/dts/r8a7790-lager.dts | 37
>> +++++++++++++++++++++++++++++++++++++
>>   1 file changed, 37 insertions(+)
>
>> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts
>> b/arch/arm/boot/dts/r8a7790-lager.dts
>> index 63d58d6..62f486e 100644
>> --- a/arch/arm/boot/dts/r8a7790-lager.dts
>> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
>> @@ -233,18 +233,55 @@
>>   &pci0 {
>>       pinctrl-0 = <&usb0_pins>;
>>       pinctrl-names = "default";
>> +    device_type = "pci";
>> +
>> +    pci@0,1 {
>> +        reg = <0x800 0 0 0 0>;
>> +        device_type = "pci";
>> +        usb-phy = <&usbphy>;
>> +    };
>> +
>> +    pci@0,2 {
>> +        reg = <0x1000 0 0 0 0>;
>> +        device_type = "pci";
>> +        usb-phy = <&usbphy>;
>> +    };
>>   };
>>
>>   &pci1 {
>>       status = "okay";
>>       pinctrl-0 = <&usb1_pins>;
>>       pinctrl-names = "default";
>> +
>> +    pci@0,1 {
>> +        reg = <0x800 0 0 0 0>;
>> +        device_type = "pci";
>> +        usb-phy = <&usbphy>;
>> +    };
>> +
>> +    pci@0,2 {
>> +        reg = <0x1000 0 0 0 0>;
>> +        device_type = "pci";
>> +        usb-phy = <&usbphy>;
>> +    };
>>   };
>>
>>   &pci2 {
>>       status = "okay";
>>       pinctrl-0 = <&usb2_pins>;
>>       pinctrl-names = "default";
>> +
>> +    pci@0,1 {
>> +        reg = <0x800 0 0 0 0>;
>> +        device_type = "pci";
>> +        usb-phy = <&usbphy>;
>> +    };
>> +
>> +    pci@0,2 {
>> +        reg = <0x1000 0 0 0 0>;
>> +        device_type = "pci";
>> +        usb-phy = <&usbphy>;
>> +    };
>>   };
>
>     I don't see why the internal PCI devices are added to the board
> file, not the SoC file.

Thanks, I think they probably do belong in the .dtsi file.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 63d58d6..62f486e 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -233,18 +233,55 @@ 
 &pci0 {
 	pinctrl-0 = <&usb0_pins>;
 	pinctrl-names = "default";
+	device_type = "pci";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
 };
 
 &pci1 {
 	status = "okay";
 	pinctrl-0 = <&usb1_pins>;
 	pinctrl-names = "default";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
 };
 
 &pci2 {
 	status = "okay";
 	pinctrl-0 = <&usb2_pins>;
 	pinctrl-names = "default";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
 };
 
 &usbphy {