Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp221008pxb; Thu, 12 Aug 2021 14:55:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVIuF9aPKz3BvkVeWLjhfwIjp82FJM+7MwyD1DUiIegRoBOcHvLE1sJ0OnTphFR/8FsHqp X-Received: by 2002:a17:907:7896:: with SMTP id ku22mr5915060ejc.166.1628805356377; Thu, 12 Aug 2021 14:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628805356; cv=none; d=google.com; s=arc-20160816; b=FDQGjAyZFj1FUBes7/Ucyrdub3imUO035uLzUvTLDe8BF+6z2LGLSdQS49VCsm/BSy U0UgLQIMZqrRHxJqtzzu4zKYHsw33cLrXH4ByjjvYfl4AN7YWETIXNS1F04oqDKQ0kFa lXHBCMQwH8p4OqJ8ZkSSQC1GUczNo2jSG4M+Fi2jgTGPU3gNgCXlAOnl3mdHfiYCF1Dc neaD/mgpFTt8nrsOE6lVfwxKyhVSooppVLhr9PExBX8O0rCU4oQIW/k0qeTT1TSpKRgR uXRz0YkEV9H0z3lRYqbk6ybkCmS6AqqbMICS517Mczv19FSYOLOh7vwJeOaxvI0euxYA 52jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0vSamTyccptzOdkOr+v7GJn23T5SHRt0Wd7iQnG52jY=; b=CD5uMEIjGUQd39ZsleVOsH7TyznvEQ8jDffThhMhEcD1mhH0/h+VJD50P1dnCAPKgh Gvrr7OV6P0jrHrsESKlJxG0OFx1sf68tyZ94QKdEszrs8tYbLOPSAG/baE7Lz53Cq+4g nSfURz2DdxyhLXkrTVbWxxBqVh+tkLm11bUZnmkKkYgirn48EWkFpHxKBQ8CZHVxNQoo DsyHs2KoOMKW/URBOZhE7qFoST90ipXUeiQvhaKq5bHfNJgFR+4mljVIShzzzNxrhgwo 18bPkBjTcAu6MH64U7vtysfghO7ccUC+PBEOpPLe7W8oG8Nzi/G7fQCy02Dk/phxioiu rKzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WsddWCX2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si3341464ejj.302.2021.08.12.14.55.23; Thu, 12 Aug 2021 14:55:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WsddWCX2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238021AbhHLUmx (ORCPT + 99 others); Thu, 12 Aug 2021 16:42:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238024AbhHLUmg (ORCPT ); Thu, 12 Aug 2021 16:42:36 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6C9FC0612A9; Thu, 12 Aug 2021 13:42:05 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id p22so7068116qki.10; Thu, 12 Aug 2021 13:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0vSamTyccptzOdkOr+v7GJn23T5SHRt0Wd7iQnG52jY=; b=WsddWCX2bH0za7uq6RXsMB/yT5Y5kXw5Dfi4StrzwM6j9+0IbgfdtWevLRetgVsmcq FY9rZ8rN7XopwA3C2iMrRvd2jmPgW4oMLutiEKRAntdFlcfMA/c1lxG04WyoA7LKTg7l JydE/tfQVnOAaC6f5uAKubOjH/kQYZUOHPgmanqwU0A/VBdRoloHkxJhutB6Npl+6/79 zkQVpKT/QllZZzFCvA2S+DG2b/klg3GgsSxrvHQf6pd6lrqIGEQeer1L0sikZv4Fba/l enEfwf/qF4NpYUxz2D0hDf3N7elMXpKuKG3D1Jw24k7VBZsX24xzKjbg49QUNj4IQBEH jzfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0vSamTyccptzOdkOr+v7GJn23T5SHRt0Wd7iQnG52jY=; b=oT4+7B/dIvH4f7zSRnXw7c+yXRLkx0Qkrr1aE8qZ1W5jkNKvwwuH89SmOL1RSbALMB /2Hdl8o8Q+EwIdkYI+5S6CAHLmWaD2tkStCdA/dn2FAxETgFDeyYdlgqcgHik5Ewp/y3 N+/gKZbaH49y+5UdusXBY+U9p/USM6qoKxK0KoSaixZfL2rlAl9fqSGy04VeSJ7nzcdF o1PPuh8uKC4p2ZSMeS6mm+qEwOxobG1V0p4kDpsspF2wjKV1BWaaw8S6g0SemGTqawXg bH7K0jEAP9qCncgYg+Qr351LcfXHnajDzThs9ui7eudEwuB62i4OtL4SaBgEzipVoJen HlzA== X-Gm-Message-State: AOAM533Dupmd4rvvLumHdOp9Lu2XJOdEB/787wKfTXlm9RXQ3c7tQVnq G3wV/RUXOQ2jJk1zs4uYiRc= X-Received: by 2002:a05:620a:cea:: with SMTP id c10mr6698474qkj.238.1628800925058; Thu, 12 Aug 2021 13:42:05 -0700 (PDT) Received: from master-laptop.sparksnet ([2601:153:980:85b1:e89f:d077:9161:1bd7]) by smtp.gmail.com with ESMTPSA id m16sm1940361qki.19.2021.08.12.13.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 13:42:04 -0700 (PDT) From: Peter Geis To: Rob Herring , Heiko Stuebner Cc: Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 8/8] arm64: dts: rockchip: add Quartz64-A usb2 support Date: Thu, 12 Aug 2021 16:41:16 -0400 Message-Id: <20210812204116.2303617-9-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210812204116.2303617-1-pgwipeout@gmail.com> References: <20210812204116.2303617-1-pgwipeout@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the nodes and regulators to enable usb2 support on the Quartz64 Model A. Signed-off-by: Peter Geis --- .../boot/dts/rockchip/rk3566-quartz64-a.dts | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index a3cdb6c2bec6..53ea5c13076b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -75,6 +75,22 @@ vcc5v0_usb: vcc5v0_usb { vin-supply = <&vcc12v_dcin>; }; + /* all four ports are controlled by one gpio + * the host ports are sourced from vcc5v0_usb + * the otg port is sourced from vcc5v0_midu + */ + vcc5v0_usb20_host: vcc5v0_usb20_host { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_usb20_host"; + enable-active-high; + gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_usb20_host_en>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc5v0_usb>; + }; + vcc3v3_sd: vcc3v3_sd { compatible = "regulator-fixed"; enable-active-low; @@ -367,6 +383,12 @@ pmic_int_l: pmic-int-l { }; }; + usb2 { + vcc5v0_usb20_host_en: vcc5v0-usb20-host-en { + rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + vcc_sd { vcc_sd_h: vcc-sd-h { rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; @@ -424,3 +446,33 @@ bluetooth { &uart2 { status = "okay"; }; + +&u2phy1_host { + phy-supply = <&vcc5v0_usb20_host>; + status = "okay"; +}; + +&u2phy1_otg { + phy-supply = <&vcc5v0_usb20_host>; + status = "okay"; +}; + +&usb2phy1 { + status = "okay"; +}; + +&usb_host0_ehci { + status = "okay"; +}; + +&usb_host0_ohci { + status = "okay"; +}; + +&usb_host1_ehci { + status = "okay"; +}; + +&usb_host1_ohci { + status = "okay"; +}; -- 2.25.1