From mboxrd@z Thu Jan 1 00:00:00 1970 From: l.stach@pengutronix.de (Lucas Stach) Date: Wed, 01 Aug 2018 12:39:11 +0200 Subject: [PATCH 1/2] ARM: dts: imx7d: Add node for PCIe PHY In-Reply-To: <20180718194424.8844-2-tpiepho@impinj.com> References: <20180718194424.8844-1-tpiepho@impinj.com> <20180718194424.8844-2-tpiepho@impinj.com> Message-ID: <1533119951.20186.5.camel@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Am Mittwoch, den 18.07.2018, 12:44 -0700 schrieb Trent Piepho: > There isn't yet any code in the kernel that uses this device's register, > but there will be some for a PCIe PLL erratum wortkaround. > > This adds the PHY as a new node.??The PCI-e controller node gains a > phandle property that points to it.??There is no driver for the PHY at > this point and all the existing code that relates to the PHY is part of > the PCI-e controller driver (and does not need register access, yet). > > > Cc: Shawn Guo > > Cc: Sascha Hauer > > Cc: Fabio Estevam > > Cc: Richard Zhu > > Cc: Lucas Stach > > Signed-off-by: Trent Piepho > --- > ?Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt | 11 +++++++++++ > ?arch/arm/boot/dts/imx7d.dtsi?????????????????????????????|??9 +++++++++ > ?2 files changed, 20 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt > index cb33421184a0..c7aeda6878ff 100644 > --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt > +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt > @@ -50,6 +50,7 @@ Additional required properties for imx7d-pcie: > ?- reset-names: Must contain the following entires: > > ? ???????- "pciephy" > > ? ???????- "apps" > +- fsl,pcie-phy: A phandle to an fsl,imx-pcie-phy node. > ? > ?Example: > ? > @@ -76,3 +77,13 @@ Example: > > ? clocks = <&clks 144>, <&clks 206>, <&clks 189>; > > ? clock-names = "pcie", "pcie_bus", "pcie_phy"; > > ? }; > + > +* Freescale i.MX7d PCIe PHY > + > +This is the PHY associated with the IMX7d PCIe controller.??It's used by the > +PCI-e controller via the fsl,pcie-phy phandle. > + > +Required properties: > +- compatible: > + - "fsl,imx-pcie-phy" This is too generic. Please change it to "fsl,imx7-pcie-phy". > +- reg: base address and length of the PCIe PHY controller > diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi > index 200714e3feea..31f5c8576251 100644 > --- a/arch/arm/boot/dts/imx7d.dtsi > +++ b/arch/arm/boot/dts/imx7d.dtsi > @@ -94,6 +94,14 @@ > > ? }; > ?}; > ? > +&aips2 { > > > + pcie_phy: pcie-phy at 306d0000 { > > + ??compatible = "fsl,imx-pcie-phy"; > > + ??reg = <0x306d0000 0x10000>; > > + ??status = "disabled"; > > + }; > +}; > + > ?&aips3 { > > > ? usbotg2: usb at 30b20000 { > > ? compatible = "fsl,imx7d-usb", "fsl,imx27-usb"; > @@ -167,6 +175,7 @@ > > ? ?<&src IMX7_RESET_PCIE_CTRL_APPS_EN>; > > ? reset-names = "pciephy", "apps"; > > ? status = "disabled"; > > + fsl,pcie-phy = <&pcie_phy>; > > ? }; > ?}; > ?