Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp102877rdd; Wed, 22 Nov 2023 10:26:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJOJH4W6OA2gNs/OQBjwGVKeZpYEUiELnilFppaaVMOVvlOT5lAlwkCOTH61JqxI02zDEq X-Received: by 2002:a17:90b:3ecc:b0:280:3b2:d37a with SMTP id rm12-20020a17090b3ecc00b0028003b2d37amr3359920pjb.18.1700677586239; Wed, 22 Nov 2023 10:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700677586; cv=none; d=google.com; s=arc-20160816; b=OxYAebUSIPvaJ+ODpAGW65FiKcWT31d1VtKFPzi+V1rTa9RC9iIfYwou7y7NJbHtk0 EYqC05LUkbvc5tNZwkFkK+upH+9JLIJXhn08Wj0opZXBHSqYDGQJcdVo3xpbub+y1GbJ CqRHsFr4kRPVbNEasDGbgK3DZLVw2dDKF5UV8WuctLIr2fJLXZnb1ALl/D0gxIUTRPu2 2iFltxuhIwpIOTX3sXtT4dkMGEnpEnBKuy0ipOP2YXTLJDT8ZnvIHMqQFT63YmXQMMu1 vOKnFgnlE/QeEuHaKQNXmhGBW+zNZBOQITrUqiSqpBTY98QK/wxwcJrybX0X1aW8/8ZU +jag== 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=+t8tXe6ccmmDxngyTtST79lozTn11v8rTEVF91HUREg=; fh=ya7TQWNBVSztpMO0vkTWbY/Rqh2qZl2P4YmPkilG7Ew=; b=ckh7w/YR8DJ/peRbssA5RSSwnvNijNWXQfj1sGoSlLvm/yvbQCRZblL9b0b0Dks8kA up4kNl082i3KeSAhBsb/TAhmVR104Ror7xSufcSACa2h0ZjNzSnPuHjllvMm/NLZI6cJ Y46QoZS7FwbMLQAE7HCdMpOaHQWUxisB49mBsPa8sk9FviEcXuqItcCMKsMHSGaztGME hvPGljT+Xs5q7apsLPo67FR/La+GXPzaIn8TTuIrnVWxAimruBsOmnpLpVyr88Wb5IM9 wKjO3k6NRSDTF2RaAQmyEMxGJAEa8Py9irApHtoYCk1Twa3m+5FZJ2TWN1a0dyuHA0yn +CSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OoU9CU73; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d2-20020a17090a2a4200b002839d007771si165957pjg.55.2023.11.22.10.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 10:26:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OoU9CU73; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7AC38808724F; Wed, 22 Nov 2023 10:25:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344449AbjKVSYq (ORCPT + 99 others); Wed, 22 Nov 2023 13:24:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344276AbjKVSYc (ORCPT ); Wed, 22 Nov 2023 13:24:32 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2514DA4; Wed, 22 Nov 2023 10:24:29 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-280109daaaaso84811a91.3; Wed, 22 Nov 2023 10:24:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700677468; x=1701282268; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+t8tXe6ccmmDxngyTtST79lozTn11v8rTEVF91HUREg=; b=OoU9CU73x5gtbHjAjtnaLA8Nw3NOWKjoDTkewGBvnj4+yz59NBJBlo0XpEXwV2Azy/ My2AysBgqmkmG7lsXJHhLUvJfj43znaOpxKufL2DLfstc4cMbopaJSqQoehlmrL33yTD yjovi0RfG3aGmw8KbXsLGdD8g6shQV8fn7+pLK17ZKgzsNULk6VJcY0uv/pC/GNe7B6V yI5r6SqIyBgdMfffFxB5+bnmfORwFySxA0RUMC/yNs9dQKFyy654F1QyYRRFhkNeAfAH be7bjfRwGMZKVhPMVgX8JixzuU7J5yS3/7D48FctJ43TLp1hcb+3lQce6OAF5sMgK8gx PR5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700677468; x=1701282268; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+t8tXe6ccmmDxngyTtST79lozTn11v8rTEVF91HUREg=; b=fgTLNHIbia+IWsKrtLFWHmXi4/PTFPTMq9TNxIYBx6IWFUJuDFPwrRBte+yMLTmM0A 4qZkJ/fpNAWSk7VezDqVzG3EI3RUPI61N7SxN7Vvnr9MaqbkYFdimCfOdGMx4uMVzxzi Z7T2hGGm9uMXFmZ2BL69j3CKDr5gIPGMTr5vXDfXeZvWHaDQHvtjSGbTzBn+LPKYhDAM wZNNTDNZlo7OyVLRe7rr4/+0dhQDwv5VjM5CD7q0YxLg7YyQOhYL28BRv8V/c9MsDzE3 dgrYDjNCXlZLSz9WCZdv6Aaflf549GQ2wvDk8AVdZpNcdOafFFIMeo6yC8MbwLT4IMW2 Rw4g== X-Gm-Message-State: AOJu0Yy+RU9eN5eFVxPwmXpUHxVVwmnNeN5LgmBLI5/HRFxAYt0+v9XO 3exx6KLmAWbk72RkWgk3imsMP6RoUY/bCw== X-Received: by 2002:a17:90b:4d0e:b0:27f:f7e9:cad9 with SMTP id mw14-20020a17090b4d0e00b0027ff7e9cad9mr3347137pjb.36.1700677468567; Wed, 22 Nov 2023 10:24:28 -0800 (PST) Received: from localhost.localdomain ([49.205.245.83]) by smtp.gmail.com with ESMTPSA id x17-20020a170902ea9100b001cf6783fd41sm4897980plb.17.2023.11.22.10.24.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 10:24:28 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: Anand Moon , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/2] arm64: dts: amlogic: Used onboard usb hub reset on odroid n2 Date: Wed, 22 Nov 2023 23:53:47 +0530 Message-ID: <20231122182351.63214-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231122182351.63214-1-linux.amoon@gmail.com> References: <20231122182351.63214-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 10:25:15 -0800 (PST) On Odroid n2/n2+ previously use gpio-hog to reset the usb hub, switch to used on-board usb hub reset to enable the usb hub and enable power to hub. Signed-off-by: Anand Moon --- .../dts/amlogic/meson-g12b-odroid-n2.dtsi | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi index 91c9769fda20..9e671444eca6 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi @@ -31,6 +31,30 @@ hub_5v: regulator-hub_5v { enable-active-high; }; + /* USB hub supports both USB 2.0 and USB 3.0 root hub */ + usb-hub { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + /* 2.0 hub on port 1 */ + hub_2_0: hub@1 { + compatible = "usb5e3,610"; + reg = <1>; + peer-hub = <&hub_3_0>; + vdd-supply = <&usb_pwr_en>; + }; + + /* 3.0 hub on port 4 */ + hub_3_0: hub@2 { + compatible = "usb5e3,620"; + reg = <2>; + peer-hub = <&hub_2_0>; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_5v>; + }; + }; + sound { compatible = "amlogic,axg-sound-card"; model = "ODROID-N2"; @@ -234,18 +258,6 @@ &gpio { "PIN_3", /* GPIOX_17 */ "PIN_5", /* GPIOX_18 */ "PIN_36"; /* GPIOX_19 */ - /* - * WARNING: The USB Hub on the Odroid-N2 needs a reset signal - * to be turned high in order to be detected by the USB Controller - * This signal should be handled by a USB specific power sequence - * in order to reset the Hub when USB bus is powered down. - */ - usb-hub-hog { - gpio-hog; - gpios = ; - output-high; - line-name = "usb-hub-reset"; - }; }; &i2c3 { -- 2.42.0