From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: [PATCH 7/7] ARM: dts: Use ti-sysc module driver for omap4 musb Date: Fri, 29 Sep 2017 15:34:11 -0700 Message-ID: <20170929223411.9691-8-tony@atomide.com> References: <20170929223411.9691-1-tony@atomide.com> Return-path: In-Reply-To: <20170929223411.9691-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, =?UTF-8?q?Beno=C3=AEt=20Cousson?= , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Bin Liu List-Id: devicetree@vger.kernel.org Let's make use of the generic ti-sysc module for musb to have a child device with working runtime PM. Cc: Bin Liu Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/omap4.dtsi | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -1105,19 +1105,31 @@ reg-names = "otghs_control"; }; - usb_otg_hs: usb_otg_hs@4a0ab000 { - compatible = "ti,omap4-musb"; - reg = <0x4a0ab000 0x7ff>; - interrupts = , ; - interrupt-names = "mc", "dma"; + target-module@4a0ab000 { + compatible = "ti,sysc-omap4"; ti,hwmods = "usb_otg_hs"; - usb-phy = <&usb2_phy>; - phys = <&usb2_phy>; - phy-names = "usb2-phy"; - multipoint = <1>; - num-eps = <16>; - ram-bits = <12>; - ctrl-module = <&omap_control_usbotg>; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x4a0ab000 0x4>, + <0x4a0ab004 0x4>, + <0x4a0ab008 0x4>; + reg-names = "rev", "sysc", "syss"; + ranges = <0 0x4a0ab000 0x1000>; + + usb_otg_hs: otg@0 { + compatible = "ti,omap4-musb"; + reg = <0x0 0x7ff>; + interrupts = , + ; + interrupt-names = "mc", "dma"; + usb-phy = <&usb2_phy>; + phys = <&usb2_phy>; + phy-names = "usb2-phy"; + multipoint = <1>; + num-eps = <16>; + ram-bits = <12>; + ctrl-module = <&omap_control_usbotg>; + }; }; aes1: aes@4b501000 { -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony@atomide.com (Tony Lindgren) Date: Fri, 29 Sep 2017 15:34:11 -0700 Subject: [PATCH 7/7] ARM: dts: Use ti-sysc module driver for omap4 musb In-Reply-To: <20170929223411.9691-1-tony@atomide.com> References: <20170929223411.9691-1-tony@atomide.com> Message-ID: <20170929223411.9691-8-tony@atomide.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Let's make use of the generic ti-sysc module for musb to have a child device with working runtime PM. Cc: Bin Liu Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/omap4.dtsi | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -1105,19 +1105,31 @@ reg-names = "otghs_control"; }; - usb_otg_hs: usb_otg_hs at 4a0ab000 { - compatible = "ti,omap4-musb"; - reg = <0x4a0ab000 0x7ff>; - interrupts = , ; - interrupt-names = "mc", "dma"; + target-module at 4a0ab000 { + compatible = "ti,sysc-omap4"; ti,hwmods = "usb_otg_hs"; - usb-phy = <&usb2_phy>; - phys = <&usb2_phy>; - phy-names = "usb2-phy"; - multipoint = <1>; - num-eps = <16>; - ram-bits = <12>; - ctrl-module = <&omap_control_usbotg>; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x4a0ab000 0x4>, + <0x4a0ab004 0x4>, + <0x4a0ab008 0x4>; + reg-names = "rev", "sysc", "syss"; + ranges = <0 0x4a0ab000 0x1000>; + + usb_otg_hs: otg at 0 { + compatible = "ti,omap4-musb"; + reg = <0x0 0x7ff>; + interrupts = , + ; + interrupt-names = "mc", "dma"; + usb-phy = <&usb2_phy>; + phys = <&usb2_phy>; + phy-names = "usb2-phy"; + multipoint = <1>; + num-eps = <16>; + ram-bits = <12>; + ctrl-module = <&omap_control_usbotg>; + }; }; aes1: aes at 4b501000 { -- 2.14.2