* [PATCH v2] arm: imx6: zii: Add i210 PCIe interface to the device tree
@ 2017-04-16 5:45 Chris Healy
2017-04-24 8:47 ` Lucas Stach
0 siblings, 1 reply; 4+ messages in thread
From: Chris Healy @ 2017-04-16 5:45 UTC (permalink / raw)
To: linux-arm-kernel
The board has an Intel i210 Ethernet controller on its PCIe bus. Add a
device tree node for this.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Chris Healy <cphealy@gmail.com>
---
This patch is against for-next of Shawn Guo's tree.
Since v1, this version fixes the spacing by using git send-email instead of gmail
to send the patch.
Thanks,
Chris Healy
---
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi
index 5d94b5e..8375c43 100644
--- a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi
@@ -572,6 +572,18 @@
pinctrl-0 = <&pinctrl_pcie>;
reset-gpio = <&gpio7 12 GPIO_ACTIVE_LOW>;
status = "okay";
+
+ host at 0 {
+ #address-cells = <3>;
+ #size-cells = <2>;
+ reg = <0 0 0 0 0>;
+ device_type = "pci";
+
+ i210: i210 at 0 {
+ reg = <0 0 0 0 0>;
+ device_type = "pci";
+ };
+ };
};
&usdhc2 {
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2] arm: imx6: zii: Add i210 PCIe interface to the device tree
2017-04-16 5:45 [PATCH v2] arm: imx6: zii: Add i210 PCIe interface to the device tree Chris Healy
@ 2017-04-24 8:47 ` Lucas Stach
2017-04-24 14:10 ` Andrew Lunn
0 siblings, 1 reply; 4+ messages in thread
From: Lucas Stach @ 2017-04-24 8:47 UTC (permalink / raw)
To: linux-arm-kernel
Am Samstag, den 15.04.2017, 22:45 -0700 schrieb Chris Healy:
> The board has an Intel i210 Ethernet controller on its PCIe bus. Add a
> device tree node for this.
I wold prefer a better description on why we need this node, as PCIe is
an enumerable bus. Do you need this node to attach a MAC address or
something?
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Chris Healy <cphealy@gmail.com>
> ---
>
> This patch is against for-next of Shawn Guo's tree.
>
> Since v1, this version fixes the spacing by using git send-email instead of gmail
> to send the patch.
>
> Thanks,
>
> Chris Healy
> ---
> arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi
> index 5d94b5e..8375c43 100644
> --- a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi
> @@ -572,6 +572,18 @@
> pinctrl-0 = <&pinctrl_pcie>;
> reset-gpio = <&gpio7 12 GPIO_ACTIVE_LOW>;
> status = "okay";
> +
> + host at 0 {
> + #address-cells = <3>;
> + #size-cells = <2>;
> + reg = <0 0 0 0 0>;
> + device_type = "pci";
> +
> + i210: i210 at 0 {
> + reg = <0 0 0 0 0>;
> + device_type = "pci";
device_type = "pci" is only valid for bridges on the bus, not for
endpoint devices. Please remove.
> + };
> + };
> };
>
> &usdhc2 {
Regards,
Lucas
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] arm: imx6: zii: Add i210 PCIe interface to the device tree
2017-04-24 8:47 ` Lucas Stach
@ 2017-04-24 14:10 ` Andrew Lunn
2017-04-24 14:45 ` Lucas Stach
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2017-04-24 14:10 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Apr 24, 2017 at 10:47:22AM +0200, Lucas Stach wrote:
> Am Samstag, den 15.04.2017, 22:45 -0700 schrieb Chris Healy:
> > The board has an Intel i210 Ethernet controller on its PCIe bus. Add a
> > device tree node for this.
>
> I wold prefer a better description on why we need this node, as PCIe is
> an enumerable bus. Do you need this node to attach a MAC address or
> something?
Hi Lucas
We need to attach an Ethernet switch, using the DSA binding. Please
take a look at Documentation/binding/net/dsa.txt. We need a phandle to
the i210 Ethernet MAC.
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] arm: imx6: zii: Add i210 PCIe interface to the device tree
2017-04-24 14:10 ` Andrew Lunn
@ 2017-04-24 14:45 ` Lucas Stach
0 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2017-04-24 14:45 UTC (permalink / raw)
To: linux-arm-kernel
Hi Andrew,
Am Montag, den 24.04.2017, 16:10 +0200 schrieb Andrew Lunn:
> On Mon, Apr 24, 2017 at 10:47:22AM +0200, Lucas Stach wrote:
> > Am Samstag, den 15.04.2017, 22:45 -0700 schrieb Chris Healy:
> > > The board has an Intel i210 Ethernet controller on its PCIe bus. Add a
> > > device tree node for this.
> >
> > I wold prefer a better description on why we need this node, as PCIe is
> > an enumerable bus. Do you need this node to attach a MAC address or
> > something?
>
> Hi Lucas
>
> We need to attach an Ethernet switch, using the DSA binding. Please
> take a look at Documentation/binding/net/dsa.txt. We need a phandle to
> the i210 Ethernet MAC.
Sure, this rationale seems fine. Please make sure to include it in the
patch description on the next submission.
Regards,
Lucas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-04-24 14:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-16 5:45 [PATCH v2] arm: imx6: zii: Add i210 PCIe interface to the device tree Chris Healy
2017-04-24 8:47 ` Lucas Stach
2017-04-24 14:10 ` Andrew Lunn
2017-04-24 14:45 ` Lucas Stach
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.