Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1920485imm; Fri, 6 Jul 2018 08:45:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeUGG4GUbqlLndtLQ5gBbhECeie+i6vloGU5zaLogtUz4g0RhqYqBVXJNqd95osjUpP8NEk X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr10817677plb.208.1530891911853; Fri, 06 Jul 2018 08:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530891911; cv=none; d=google.com; s=arc-20160816; b=ZDzImj1lYudzU74z/v1THccRTdZXet5mOnHzZGSuxyeFj8uzxbYh5DN8tKzea7S8LE Rfvd5S1h4Mq2AXaVGU8nkuARfDXOgviN7KCWudXenOojGmxvh2yLJAOaU7QSNrvBzinH q1zWD4EMo2+eTDPtRUFPsgscITnERo7P8IeTVDaLIsBD0sXWdzYMH1W+iTCgsZ2JVjQS MaiqF/lZKVmAPdDKz0Zgt3qN9gm+5JINzVYffa5kINC+t+vxuKfv24aK9cnHTUr7HNxx IYLNq7gfxAsUk3xAGPeL0/CfsG+B0XXe5zK31RHf0YSiLd2zdqbrh0RVCDG+7qiFENyE s2pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=jnP5XbekRurcod7fPZq8ka2Q7ocAJ/MATCmcwn7Wd48=; b=JxnDLPRYPg4fHRHPVSUhfGJ0RRfULm/lzxEeGf+GGsbDO9gNEBQcUJpyoen+6gG7Mq qClL/lO/q3Xb765RxR8E8tn6IcOCCXYhy2TmsD6XYbRSmpZD39abEo1/27vNQ7C4mehe ULDPdq/PRT64RJ5J8aPzUguv/6mwZD/6+O0eSNO2LjEAnD+A+vV46oZ1N5AdS0Abx9jp dO+nwvayvrgsataJIKY3MiCKGstGRtVOqxbL0Ec2YBP8oppdP6MvfZE68Vi59e1t+J3P ktxXLI/AsmB7sJjexdKwp5wHgwywmtiMr/bv/AZFuOD3M2NZk1IHcq4tqfHzRTOJzCpI i+mQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z73-v6si7987110pgz.284.2018.07.06.08.44.57; Fri, 06 Jul 2018 08:45:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933171AbeGFPoP (ORCPT + 99 others); Fri, 6 Jul 2018 11:44:15 -0400 Received: from hermes.aosc.io ([199.195.250.187]:53675 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932598AbeGFPoO (ORCPT ); Fri, 6 Jul 2018 11:44:14 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 3115E643C0; Fri, 6 Jul 2018 15:43:59 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Kishon Vijay Abraham I Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v2 3/9] arm64: allwinner: dts: h6: add USB2-related device nodes Date: Fri, 6 Jul 2018 23:37:59 +0800 Message-Id: <20180706153805.25842-4-icenowy@aosc.io> In-Reply-To: <20180706153805.25842-1-icenowy@aosc.io> References: <20180706153805.25842-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allwinner H6 has two USB2 ports, one OTG and one host-only. Add device tree nodes related to them. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 90 ++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index c72da8cd9ef5..62fc0f5e10ba 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -174,6 +174,96 @@ status = "disabled"; }; + usb2otg: usb@5100000 { + compatible = "allwinner,sun8i-a33-musb"; + reg = <0x05100000 0x0400>; + clocks = <&ccu CLK_BUS_OTG>; + resets = <&ccu RST_BUS_OTG>; + interrupts = ; + interrupt-names = "mc"; + phys = <&usb2phy 0>; + phy-names = "usb"; + extcon = <&usb2phy 0>; + status = "disabled"; + }; + + usb2phy: phy@5100400 { + compatible = "allwinner,sun50i-h6-usb-phy"; + reg = <0x05100400 0x14>, + <0x05101800 0x4>, + <0x05311800 0x4>; + reg-names = "phy_ctrl", + "pmu0", + "pmu3"; + clocks = <&ccu CLK_USB_PHY0>, + <&ccu CLK_USB_PHY3>; + clock-names = "usb0_phy", + "usb3_phy"; + resets = <&ccu RST_USB_PHY0>, + <&ccu RST_USB_PHY3>; + reset-names = "usb0_reset", + "usb3_reset"; + status = "disabled"; + #phy-cells = <1>; + }; + + ehci0: usb@5101000 { + compatible = "allwinner,sun50i-h6-ehci", "generic-ehci"; + reg = <0x05101000 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_OHCI0>, + <&ccu CLK_BUS_EHCI0>, + <&ccu CLK_USB_OHCI0>; + resets = <&ccu RST_BUS_OHCI0>, + <&ccu RST_BUS_EHCI0>; + status = "disabled"; + }; + + ohci0: usb@5101400 { + compatible = "allwinner,sun50i-h6-ohci", "generic-ohci"; + reg = <0x05101400 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_OHCI0>, + <&ccu CLK_USB_OHCI0>; + resets = <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + + usb3phy: phy@5210000 { + compatible = "allwinner,sun50i-h6-usb3-phy"; + reg = <0x5210000 0x10000>; + clocks = <&ccu CLK_USB_PHY1>; + resets = <&ccu RST_USB_PHY1>; + #phy-cells = <0>; + status = "disabled"; + }; + + ehci3: usb@5311000 { + compatible = "allwinner,sun50i-h6-ehci", "generic-ehci"; + reg = <0x05311000 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_OHCI3>, + <&ccu CLK_BUS_EHCI3>, + <&ccu CLK_USB_OHCI3>; + resets = <&ccu RST_BUS_OHCI3>, + <&ccu RST_BUS_EHCI3>; + phys = <&usb2phy 3>; + phy-names = "usb"; + status = "disabled"; + }; + + ohci3: usb@5311400 { + compatible = "allwinner,sun50i-h6-ohci", "generic-ohci"; + reg = <0x05311400 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_OHCI3>, + <&ccu CLK_USB_OHCI3>; + resets = <&ccu RST_BUS_OHCI3>; + phys = <&usb2phy 3>; + phy-names = "usb"; + status = "disabled"; + }; + r_ccu: clock@7010000 { compatible = "allwinner,sun50i-h6-r-ccu"; reg = <0x07010000 0x400>; -- 2.17.1