Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1460194rdb; Sat, 18 Nov 2023 18:35:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAe84DiV3Fnnlz1zmamkb6LF/HXxmPWphHqslOwZvMVlBh+upAdvAsGzKzwVEdCx/A0uda X-Received: by 2002:a05:6a20:4418:b0:187:f58d:daf2 with SMTP id ce24-20020a056a20441800b00187f58ddaf2mr5433013pzb.58.1700361347569; Sat, 18 Nov 2023 18:35:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700361347; cv=none; d=google.com; s=arc-20160816; b=e8lpkGSigfyn4hBqmNBjs+birx6Y8ToN0l9JT6CQLVi73b+EUy12VR3QORKey90Wad ATh2Reo6NCNJeWhoONIlXjs12QyHAsKNlnAk5Yynb3YICTDYSh7hMvoY96LInPCwNoF0 ZzEphJ99ZjSl9DIyL3tNJcz3yF9WjGlUwOVtvCoJAClcCBkYRgt+P/bNy4inGhQnh7oa NCsSyuAjyZb0ziOq1dkANabWGpFhY9sYm9cQN3bK2O45kj+ia5dpxsh9Vx7KhNf8dad0 Oa/UI8g7XpMn/vVhcGHyOkJtOpexdWttGQXji9mLc4SVBEfEkrvdi+xWr+PAoKBXrPPc 9gZA== 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=5I2bEA6cqofY2I8eKS0KNcDRLfU1oI5gxtSXCZkpuPA=; fh=B9o6ufrO/l47cr5tSHv2c5mI7F7lXggOD4n6+E71jM0=; b=PbJlLLzWnoH2jxZuFriNsKZ9qPDTVEYXhCtPC6Rd62DZfTLEeF4v8VSHeEWI+1XVsj eXXs8V5/y6pCB6DPd5e5Q6DtOzILgaD+6P0bHmr1JrLRCukrE5sIbS8ixzFwellltxxD 8XDpOTnzpUdJ0x6/chiRKI/MkC7pTz3syUi3NcW/AFXXu6Mj9M51vbDAWnariNwgBoDm QyCvTzUm9yHjFz/YIsPpR+pO/KYWDDaFB8UhjSWXQJdI8g896ZusCEtxoSsWoFitNuUB RTRqW1QkRVSPrpa2zexdSvPCtmDxIF4sSxL3YibBqRJqsvY8/kM8emWit8HWUG7l6zQd FeMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=darAMRyy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bz9-20020a056a02060900b005be18ddf8b4si5930600pgb.646.2023.11.18.18.35.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:35:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=darAMRyy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 836D3804B000; Sat, 18 Nov 2023 18:35:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230248AbjKSCfX (ORCPT + 99 others); Sat, 18 Nov 2023 21:35:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjKSCfV (ORCPT ); Sat, 18 Nov 2023 21:35:21 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444BC93; Sat, 18 Nov 2023 18:35:18 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1cc921a4632so29207335ad.1; Sat, 18 Nov 2023 18:35:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700361318; x=1700966118; 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=5I2bEA6cqofY2I8eKS0KNcDRLfU1oI5gxtSXCZkpuPA=; b=darAMRyypCmCUy3BgZ09zDz78omS8B9+zznQLnHdUjZ46EPgtCFVDxhsgQopLpaM7h IKGShJV76JSgVW5zhk2DAeTFhiJLMX9EJ33tdCboss/JjQiTvulqWRuGfd93jwExNF7u uC9uIc/2TIgBWwXzevFc3Gj3WGF+OJLa28cNpi6xZV85d3v/GoNKWJZGLd1RzOHqV4RC 5RrtIBedJNyTmIVOgmkhEqxQ5e174+/+7gyWSOCq5hlHhae/aYzteob/wfuxHgiMEaB4 4Hfs0MF3eQlpNwVFg3ea8MAblV7Eop8h/xwXUfVXQe6RqTqGL12HPEbtPJW5aHwjfXBk 1FHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700361318; x=1700966118; 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=5I2bEA6cqofY2I8eKS0KNcDRLfU1oI5gxtSXCZkpuPA=; b=EN2TevnmSL+AZ/AcUG/3sUCDQy1cGLXL2X064mRzA2lmq8JE4TRqGh8SHF1vy/ag6B 2038ksuHmTrNGdO7tfgf6gpCOx2+lHXYrkQqO798P6VRunIFU/I17UGemQIOmnSwJBr3 BsifEZV2cPUMg2w4jDFT1YBqtP4uDfh8KuywKyhWl7TB5ORZrJZ/1XtdOc9h6QrfTkml 28kKMDxArmLqEFoj6G/0zBdjCrUpvKvju/V/S59bWfacJPdmCQU2XWIIBrzvz3pfWZtW G3gUIx745XJxyRhNz7WHj7F1SQA2gC/qx1EpI9w0NHFKKL4j9UpBOeyEgDqygqCP1DLv fAUw== X-Gm-Message-State: AOJu0YwD/9+Ti+e5bvzeYXSwTD3bxKHRZXFRJaob+4vI+oMnLos4bubl C6wENt5wVNQ28hdFXP3FQHY= X-Received: by 2002:a17:902:ec02:b0:1cc:4467:a563 with SMTP id l2-20020a170902ec0200b001cc4467a563mr4361440pld.3.1700361317659; Sat, 18 Nov 2023 18:35:17 -0800 (PST) Received: from localhost.localdomain ([49.205.245.83]) by smtp.gmail.com with ESMTPSA id j8-20020a170902da8800b001cf53cd1508sm1526207plx.67.2023.11.18.18.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:35:17 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: Anand Moon , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] arm64: dts: amlogic: Used onboard usb hub reset on odroid n2 Date: Sun, 19 Nov 2023 08:04:51 +0530 Message-ID: <20231119023454.1591-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231119023454.1591-1-linux.amoon@gmail.com> References: <20231119023454.1591-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 18 Nov 2023 18:35:46 -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 --- v3: none v2: none v1: none --- .../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