From patchwork Wed Dec 28 10:03:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 637371 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D590CC3DA7C for ; Wed, 28 Dec 2022 10:05:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232806AbiL1KFV (ORCPT ); Wed, 28 Dec 2022 05:05:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232756AbiL1KFI (ORCPT ); Wed, 28 Dec 2022 05:05:08 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D17C1007B; Wed, 28 Dec 2022 02:05:08 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id d7so15626659pll.9; Wed, 28 Dec 2022 02:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=2u7Uk1luvmnMjmFHjGbs37xOdHZWhJfRtivVYvqsKyM=; b=BlOZxQ5+5ju6hXADgDx2hPBqe9r38X9X8SmUUkifVf4KIr45ylB/tSiqMtWEsEbn7Y EhQ1f3ozW+hw3PdFi+cM9TRtoRR/hS7auXKnoNSvzVMGKj/sTmd0GydvJ2XPgdpHwk8T vpSzFMx9qo8J6p+g4uwaMeU0Oqf0Uc82mJEXehu/zEvQLRFmi7v3O+sEbcLpt60y601y r+fHvKFhmSIQ4snrIJRCQ5bRPdlaiNDhA/Q+HdHRbZAlBvflUZndIsQ043Sxxx8UpblI c6XFyqDqC/jaRk4F87Zbj+fCA9iSlDitrUMVhyZZ/NLD2qg5LFgP2IqQEAGEyUoS9W1t LFwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=2u7Uk1luvmnMjmFHjGbs37xOdHZWhJfRtivVYvqsKyM=; b=b6bZRH3/vNGJ+Ap+L5jO202W8k8glKf/r0rYt9EFLzuYENBOILnSorFWJRaXLCHyu7 z3Zy/CHDwbk3mpZdfAAq3WI4vwaKZ0Kyyg9zIWRxc9vTRlcU+dm9PaOpvz0K08aHv4Qh 4QVdvZAjjjAByHOPMlUt/mebZIThl1/kK8BXgDYm/hKgiEInH9xr0cj47mWiFvuX2Kto 0MXtOeiW+2flnw4P9jLufLqggirzxznCCL1om194hYo8BAvSyfIZt5MVKb2mDKsbR0Zu 40xBF3JQHtnH6SNNGOulbQGe4mMQIVWKI4JfDcoN+QBTyWnEw4uE/SQRHvEqMCj/pi6P LHqg== X-Gm-Message-State: AFqh2koK8Id/obqE4gy2m+1hIyg7KHOAQq9DwL3NA6ki0y55MdV/TBw5 FgdrTZXwfU7TAj4ToW2ls3E= X-Google-Smtp-Source: AMrXdXtgp+C1gXCKHzBhlMTiGizZFzt1wSInB/oFAAIr0BnRXXMSGIzeiG4uF2FYYgUW6TOU4+wuGA== X-Received: by 2002:a17:902:b114:b0:192:64a9:62f3 with SMTP id q20-20020a170902b11400b0019264a962f3mr17041434plr.48.1672221907772; Wed, 28 Dec 2022 02:05:07 -0800 (PST) Received: from localhost.localdomain ([45.112.3.26]) by smtp.gmail.com with ESMTPSA id t6-20020a1709027fc600b0019277df45a6sm5794915plb.53.2022.12.28.02.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 02:05:07 -0800 (PST) From: Anand Moon To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Icenowy Zheng Cc: linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 01/11] dt-bindings: usb: Add device id for Genesys Logic hub controller Date: Wed, 28 Dec 2022 10:03:10 +0000 Message-Id: <20221228100321.15949-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221228100321.15949-1-linux.amoon@gmail.com> References: <20221228100321.15949-1-linux.amoon@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add usb hub device id for Genesys Logic, Inc. GL852G-OHG Hub USB 2.0 root hub and Genesys Logic, Inc. GL3523-QFN76 USB 3.1 root hub. Signed-off-by: Anand Moon --- Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml index a9f831448cca..db009f3ef438 100644 --- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml @@ -16,6 +16,8 @@ properties: compatible: enum: - usb5e3,608 + - genesys,usb5e3,610 + - genesys,usb5e3,620 reg: true From patchwork Wed Dec 28 10:03:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 637370 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EDF2C4332F for ; Wed, 28 Dec 2022 10:06:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232694AbiL1KFt (ORCPT ); Wed, 28 Dec 2022 05:05:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232836AbiL1KF2 (ORCPT ); Wed, 28 Dec 2022 05:05:28 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F8310063; Wed, 28 Dec 2022 02:05:27 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id n65-20020a17090a2cc700b0021bc5ef7a14so15654391pjd.0; Wed, 28 Dec 2022 02:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=RV2gKx+ImpgFBjPm9dyBpImlDYC4T4c39ICqJ71RD4Y=; b=m7XOWPjkKjPzvRjq/Gd84qiQH3j0ogxyHrKL6mktIATiS7MLRQjNo9Jze14v8qw70Z M1jYBiz92tL7+wITxqo3KT31+w5qZ/WlpUR0fjRogyrDBDSuFGMPkP76mDgSPFqI7V2T GpPI3jyY3gs7eM8eXYtGZakp1DUgFtNg9rhbyzlEsoDxAdpeQFLZ8LPKSacUJumUHYWl F2axCUDA4ItmZkbPQZP5ZeQC8VcBQN67rVkSOD6izwbe27/mIiSRkf99JxnTixTJgSIL OZRW+gf3oHGo7Z3d7F3g9ztCY3F3iHt3VDMQ7L/+1N7H+NnUGDwxdSFBZ/REy7xDB6Ys EJjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=RV2gKx+ImpgFBjPm9dyBpImlDYC4T4c39ICqJ71RD4Y=; b=ce/v31Oh8MWxn9Gt8eLoUELLub3Oacj1/spQ7DBg38XtEGydCQ/eWI8GLTVTA8+cmw 2jf+O3cXsgOELlCDN10ks/0ypmuHCCez5XahTKdsuk/4q7hFcBabqMWz6hTKtZsi/yNE YKxe4A4/QnFtATqAtgsMbkkWDJ4wKUlahqI8lEXEb1HmdWxJyjk3Q+YdFmDvtbgirTRC aiDTiJuTJixHU+XI2AsyHAgmYs28CjA1YLaLRDZbtOqcUxxT1DQI3pksCnGpqV0kH3hk IAhosoongOtXg/5CeUKRatjgtv1mH7QjHubuTfRyEyne7+GtRCB/Np7AewKn6FeZvwit jbvA== X-Gm-Message-State: AFqh2kqQYA36+oLW0AQGihoD1UXv9ppf1fNdW3ovWah3fbqIPlL9kKiC 77Rbx2ZOry1fSuWUEBScQkw= X-Google-Smtp-Source: AMrXdXsfi0gBxw2JIb1Q3UK0+j1Lw9FOCcImOnvQgu4ReAtjZbecY6rIn56RYxzdOUvzSa5aabpqPA== X-Received: by 2002:a05:6a20:8f2a:b0:9d:efbe:52ae with SMTP id b42-20020a056a208f2a00b0009defbe52aemr38715217pzk.30.1672221926637; Wed, 28 Dec 2022 02:05:26 -0800 (PST) Received: from localhost.localdomain ([45.112.3.26]) by smtp.gmail.com with ESMTPSA id t6-20020a1709027fc600b0019277df45a6sm5794915plb.53.2022.12.28.02.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 02:05:26 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 04/11] arm64: dts: amlogic: Used onboard usb hub reset on odroid n2 Date: Wed, 28 Dec 2022 10:03:13 +0000 Message-Id: <20221228100321.15949-5-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221228100321.15949-1-linux.amoon@gmail.com> References: <20221228100321.15949-1-linux.amoon@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Odroid 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 | 26 ++++++++++--------- 1 file changed, 14 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 667d2b774924..e5ae885c4008 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi @@ -347,6 +347,20 @@ codec { }; }; }; + + usb { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + hub: hub@1 { + /* Genesys Logic GL3523-QFN76 usb hub*/ + compatible = "genesys,usb5e3,620"; + reg = <1>; + vdd-supply = <&hub_5v>; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; + }; + }; }; &acodec { @@ -535,18 +549,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. - */ - hog-0 { - gpio-hog; - gpios = ; - output-high; - line-name = "usb-hub-reset"; - }; }; &hdmi_tx { From patchwork Wed Dec 28 10:03:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 637369 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 926FBC4332F for ; Wed, 28 Dec 2022 10:06:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232559AbiL1KGS (ORCPT ); Wed, 28 Dec 2022 05:06:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232499AbiL1KFs (ORCPT ); Wed, 28 Dec 2022 05:05:48 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAFB5BC4; Wed, 28 Dec 2022 02:05:45 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id m4so15648179pls.4; Wed, 28 Dec 2022 02:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=gzi+Ui9Rw3X+XYHjLsOHBpUgiG35eMVgsV9hKdEu7Iw=; b=YH8WvQt8cfbYK+gfW4TIeFqiqDxUobd13/phjftV4AunnwVimnLVxCaOWioGaN/bsn 8jw9eqQnAAVzvIMYgavXDVzysr8L/3SwZbkSd5uXlClbXiOAxnXjtNIKYVOUkD9ZE3Fc au8QxhvOqZXG76Qn+1uNuk9KR/pPQN5tmYLGMepixNRNhvtPvXezLCM4dPIdQlhMx+ID G+RBJ81P3g62UOD/G6G4tt/i17XvTXWjKMgPO2itpY67HJY0AAB9U1Ik65P9LhxxUMJN GqA2k3wKDIBsLYViLsQvzfH7KCbeeoX/re3RE1VdbUy9xdYqYjnMX616Wc+IprxB6G/N TDhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=gzi+Ui9Rw3X+XYHjLsOHBpUgiG35eMVgsV9hKdEu7Iw=; b=KagUT0/exCN39OaQKdhlfiVEEryw64Lg8943nikSOQy4XD8Ro+zVaelu94OVlQi5ku tTiUq5NUBzt/9JgCgw5tb3s3dCDrtk7NqgFtvx40wimXP6iCS4rn7+VZGjhRLGw5cT+a WtooTeNPOUqROfSztHa5xHvE2ljJdvexU9pdd/4dClE0Rky5hc4yI16e69ndPdWb5j6t 9W3KkoQlc2xc+1w5Pmm0lQv6UQH5GSY6Wc8Hwr/18XvV20frNpCueikiBYxlk3i8B7Cs 2yZp0c0OmFQuJwjCPJCAOtoAnHHzM3uhq87+MLx9m9/+2m4WYG0FGK7rQnDj6CsVyfwP ozcw== X-Gm-Message-State: AFqh2kqBCjHfZhNsDDRCGXbNo8RVnX82s7mWwY5Pa9Fq/2jmRjD1jKIW /PoYiupLAscM9XtbjPkG2NU= X-Google-Smtp-Source: AMrXdXubODrYUscwAMYeQ/mYu7Q4kTIctO/0GrKB0wkpifvIlTYfyORN4CGcMsF8IwOnAfOJ45xYhw== X-Received: by 2002:a17:902:c1c9:b0:192:6544:18b0 with SMTP id c9-20020a170902c1c900b00192654418b0mr17675539plc.63.1672221945196; Wed, 28 Dec 2022 02:05:45 -0800 (PST) Received: from localhost.localdomain ([45.112.3.26]) by smtp.gmail.com with ESMTPSA id t6-20020a1709027fc600b0019277df45a6sm5794915plb.53.2022.12.28.02.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 02:05:44 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski Cc: linux-amlogic@lists.infradead.org, Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 07/11] vendor-prefixes: Add VIA Labs, Inc. Date: Wed, 28 Dec 2022 10:03:16 +0000 Message-Id: <20221228100321.15949-8-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221228100321.15949-1-linux.amoon@gmail.com> References: <20221228100321.15949-1-linux.amoon@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the vendor prefix for VIA Labs, Inc. (VLI) is a leading supplier of USB and USB Power Delivery controllers for multi-functional devices and platforms. Website: https://www.via-labs.com/ Signed-off-by: Anand Moon --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 70ffb3780621..d19b7f9cef4c 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1398,6 +1398,8 @@ patternProperties: description: Vertexcom Technologies, Inc. "^via,.*": description: VIA Technologies, Inc. + "^vialab,.*": + description: VIA Labs, Inc. "^vicor,.*": description: Vicor Corporation "^videostrong,.*": From patchwork Wed Dec 28 10:03:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 637368 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5772AC3DA7C for ; Wed, 28 Dec 2022 10:06:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232845AbiL1KGW (ORCPT ); Wed, 28 Dec 2022 05:06:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232964AbiL1KGA (ORCPT ); Wed, 28 Dec 2022 05:06:00 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B11ADCD; Wed, 28 Dec 2022 02:05:58 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id ge16so12115361pjb.5; Wed, 28 Dec 2022 02:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=fPZOgVkNc1yONsD0VkYpHu5bVHn1CQCfORwR9EnOA3I=; b=WjJcMPv9WalAK0UfWzbf+FjC74rXkGd7zvR9C+aauyHcIUTg83ET0NPPfhMZ2z+bYW muU0+EZj4G5cJOZuc7K84cMNEGAJxKspOO7twzr1AJHxo1mskprstHGbvkkObJONslmZ dEyRT1Siz2dReg/3YiG0TipWKLhGeM9Qf206dwta6gxJ5EwkVOEqkVg1uRTsHUGlgrZi cFOGDQclToPnRRSsgksYCO4vn5L0Ax4N4IyPqS69WCwGil61sFaT5dZ3HHm7pWVYqld0 PqXYr9FGk0P2mxr1fiz4XbNEnnyxOvx4JATu0LIgByrCiBR4tR5/Dz0obxOaJ4fh/Xyk 2nSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=fPZOgVkNc1yONsD0VkYpHu5bVHn1CQCfORwR9EnOA3I=; b=C++UnRo3BieFouP1ArVOanlo+2fG5afTBHv241mOfNf7qF2C3t9LxLxpzUvD0gxTmc /sL6ABztGsU8nIooRHdQUC7DJjrjRrOqRTwq5iEtlBicjzqVHjcz7OgO0rqTjsmuaJMM r/kQpW7oQTqEYEQzi+L9i8aI5m9HSQCoPP+WZPRAWT/EobHUZS+Q+ROwdf0ymqj2ZCHj 6YW6SOaPFqgrn03YINlb4ewVtabZ7v/aY1MemcAA4pw0KsjgIvPvfcaWdxLg6mRSHws3 NMHGjWU0B236/1psS87nWiLKcvad3LRZXWipTgHkCNLSfxL6aiWqQqEeg8I3aEgbxGdS i7jg== X-Gm-Message-State: AFqh2kpf7QYjkVR5WRfBvm2Yifzwdm8K3D3aQWAylVUXH7pMPp01ojzK /ovtCNqb6kCE0fYjpFbJEbw= X-Google-Smtp-Source: AMrXdXvcf7QSIOwii5DQEnsuWcE70e8b9d+bU3dcARNCyDmO7VCBPvY6T7Y5zfT27y2z9/w3aruFeA== X-Received: by 2002:a05:6a20:a687:b0:af:7cf6:1d4b with SMTP id ba7-20020a056a20a68700b000af7cf61d4bmr32717637pzb.23.1672221957637; Wed, 28 Dec 2022 02:05:57 -0800 (PST) Received: from localhost.localdomain ([45.112.3.26]) by smtp.gmail.com with ESMTPSA id t6-20020a1709027fc600b0019277df45a6sm5794915plb.53.2022.12.28.02.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 02:05:57 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 09/11] arm64: dts: meson-sm1-odroid-c4: Used onboard usb hub reset on odroid c4 Date: Wed, 28 Dec 2022 10:03:18 +0000 Message-Id: <20221228100321.15949-10-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221228100321.15949-1-linux.amoon@gmail.com> References: <20221228100321.15949-1-linux.amoon@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Odroid c4 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 --- .../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts index 8c30ce63686e..9b8230d6a9da 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts @@ -26,20 +26,19 @@ led-blue { sound { model = "ODROID-C4"; }; -}; -&gpio { - /* - * WARNING: The USB Hub on the Odroid-C4 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. - */ - hog-0 { - gpio-hog; - gpios = ; - output-high; - line-name = "usb-hub-reset"; + usb { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + hub: hub@1 { + /* Via lab VL817-Q7 usb hub */ + compatible = "vialab,usb2109"; + reg = <1>; + vdd-supply = <&usb_pwr_en>; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; + }; }; };