Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1339677pxm; Sat, 26 Feb 2022 12:16:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJziFRnF86z5MG0O0tx1nbI4CEFKpysOJPLogQl9U2lsLVpjuaCBILytW9ZowzRgIDXlliIq X-Received: by 2002:a17:902:7586:b0:14f:687c:9d69 with SMTP id j6-20020a170902758600b0014f687c9d69mr13675265pll.81.1645906597345; Sat, 26 Feb 2022 12:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645906597; cv=none; d=google.com; s=arc-20160816; b=w4SC6SVCN7jHdy5SU8kagWrQCTYUkP96mkk8VrdP/qF+2TcF1iPwgzbwwtZb/bG1eH KxwUZ4T83YKgn3gxKmuDiYhQNz79pzK8hOqJYvU+PAMnt+B1QdD5VS9DxQg3h0sMN9tF PUNB6tD1jv2GtD/izrBzrDnEkJ9LYamFA8tQKAp4AjVSlBcEzstZkg891Jn7PR7ygqv1 F9lm/h6T1lJvcEzZwZrKVc/PuIOKmP+HRFNItthvqMisIrPljjZwnWng5bSFNtDcItC1 OQ2feOR1NorS7Iu44vYFkqrJcs8VnmwaeBmLEts/rErNJBXJB/NkL85wiLzoO8qXcM1Q QsKQ== 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=BiTCbZuuiqDpXPtBKnm7lrk6/Udlslh2uUBYoU46tJs=; b=GfjNKxlkj9Cekm5PP02fx1GrCM2Lr11s988azwWhOTwL1FWSaQsXgcOwmcen69Jkqj b7lTN3W6OQhbeIz9NOmyq3Bti2Xh+Rgfv9PZuc3oR3hsuEla4iJkOx5zf1MmV6FqGLQA kmzuuLBUGXPhfjL7LjSvBjRtlGZDq1pPRVu9MGp3on6lW2h14TwLQ4uCBtSRYHuhG0Yc sdhgKSZuYW6XaTTv7R59Y9jyEppTIVvBst9viniWIx87YXf2J3vXduTVJ25WFfKXY3JA y15dtoOCICYU3qN7rgcrKEfXcBZaq1me8r1gjqw2PXXG5GmrVxsG9mCKic2JLpqFw0cp QOuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WSasS5o8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x10-20020a63aa4a000000b003784b73126csi4164594pgo.356.2022.02.26.12.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:16:37 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WSasS5o8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE062263415; Sat, 26 Feb 2022 12:10:26 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232840AbiBZSnN (ORCPT + 99 others); Sat, 26 Feb 2022 13:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232819AbiBZSmn (ORCPT ); Sat, 26 Feb 2022 13:42:43 -0500 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EF227EDF6; Sat, 26 Feb 2022 10:42:05 -0800 (PST) Received: by mail-qt1-x833.google.com with SMTP id bt3so5511645qtb.0; Sat, 26 Feb 2022 10:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BiTCbZuuiqDpXPtBKnm7lrk6/Udlslh2uUBYoU46tJs=; b=WSasS5o84NKASXBrTz0GFTfqczipyA8RJUMD45mwAouCwMjDQkCS6t2pjJXhrxmBSn PLWHcJxPouyMNX4nMIk/TruxYzycYsolbsI41ian13T7ZeVAhGsvzGkBjaqi93DMWQH6 d0f9ob6wx6JFKGZF43OqG1jGcugSsQv70jm6MWJ2l3+OFUcr8oIMGE44LPvRDx2FqgaS KSkxnrGGKt+ZGAU2I0jKe3mtRVsbmb0DzA4zZAnxUKbqMXNYYZT/yOtsuCTQaXvqcHVx qoPHy4kLtLdfL80nNm3LwsRil7ys1clVLJOn/dSAa+MJ34BaBSqFncf/Y4E648M4QZyf xnog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BiTCbZuuiqDpXPtBKnm7lrk6/Udlslh2uUBYoU46tJs=; b=jcZHSCkE9CxMEsCyErwcy9FIaLupAd4BDSLu+EffsfG9+OySuXWFhopx9m/mb5NoN1 BHlEjbc0tucr/fwbjKp1lv6ek+ftnmXuAxIYp0P6fm0sSSofOWu6NA6uJxSEuY4p4Ano ZBk+j/mo8miHWogaTYcdjfC0oKW/gsNvJfA5V5w1VtqKbexJpiWyCPA3w+a2ApdhE7b7 6/9HpVPn3ye+bxToVxfEEoBe+CMwadE2UiR7l+XrRctJOkPKLNtyW0HaWEJjR9MS5DIg c3z0Fpuk5TCUAiCSdlzfKPnvZiCXDi49+8JNb29f+p3KbgiahAncsh8o5VUce6MEAHYh m7eg== X-Gm-Message-State: AOAM533jZutXoJnb7/xhTNy+LpLnWpg6CrV1Ku/w3r9O0j0HPrjFwHyE ozYqI5oVoG/bCr3A/NzkPSQ= X-Received: by 2002:ac8:58c1:0:b0:2de:4700:122c with SMTP id u1-20020ac858c1000000b002de4700122cmr11185108qta.100.1645900924148; Sat, 26 Feb 2022 10:42:04 -0800 (PST) Received: from master-x64.sparksnet ([2601:153:980:85b1::10]) by smtp.gmail.com with ESMTPSA id p68-20020a378d47000000b006491d2d1450sm2891983qkd.10.2022.02.26.10.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 10:42:04 -0800 (PST) From: Peter Geis To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, michael.riesch@wolfvision.net, Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 10/11] arm64: dts: rockchip: enable dwc3 on quartz64-a Date: Sat, 26 Feb 2022 13:41:46 -0500 Message-Id: <20220226184147.769964-11-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220226184147.769964-1-pgwipeout@gmail.com> References: <20220226184147.769964-1-pgwipeout@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The quartz64 model a has support for both the dwc3 otg port and the dwc3 host port. Add the otg power supply and dwc3 nodes to the device tree to enable support for these. Signed-off-by: Peter Geis --- .../boot/dts/rockchip/rk3566-quartz64-a.dts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index dd7f4b9b686b..141a433429b5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -151,6 +151,16 @@ vcc5v0_usb20_host: vcc5v0_usb20_host { vin-supply = <&vcc5v0_usb>; }; + vcc5v0_usb20_otg: vcc5v0_usb20_otg { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; + regulator-name = "vcc5v0_usb20_otg"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dcdc_boost>; + }; + vcc3v3_sd: vcc3v3_sd { compatible = "regulator-fixed"; enable-active-low; @@ -187,6 +197,10 @@ vcc_wl: vcc_wl { }; }; +&combphy1 { + status = "okay"; +}; + &cpu0 { cpu-supply = <&vdd_cpu>; }; @@ -672,6 +686,29 @@ &usb_host1_ohci { status = "okay"; }; +&usb_host0_xhci { + status = "okay"; +}; + +/* usb3 controller is muxed with sata1 */ +&usb_host1_xhci { + status = "okay"; +}; + +&usb2phy0 { + status = "okay"; +}; + +&usb2phy0_host { + phy-supply = <&vcc5v0_usb20_host>; + status = "okay"; +}; + +&usb2phy0_otg { + phy-supply = <&vcc5v0_usb20_otg>; + status = "okay"; +}; + &usb2phy1 { status = "okay"; }; -- 2.25.1