From patchwork Sun Nov 19 02:34:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 166663 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1462505vqn; Sat, 18 Nov 2023 18:35:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSYE5b8ormR+hJC+6MJZPv9RNUzk85Ud0yr6EiGFmS+cSc47ukjHr5QrMtXsUcBdc5hwUw X-Received: by 2002:ac8:5810:0:b0:418:1565:ed50 with SMTP id g16-20020ac85810000000b004181565ed50mr4907479qtg.66.1700361349532; Sat, 18 Nov 2023 18:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700361349; cv=none; d=google.com; s=arc-20160816; b=R78lHkXzRYk5kcTMJ6l6xrw3xnCJzK8PW+YKxlnBbZyefhLlp31b1/2UvNKz66M6a8 j/79M2qAzFY9/zo6XFuXRNG0ymRjWq/u3/MMoX4XRnV5scsqf59qdN6CjZ1JsvC5rPf7 Jhr5Bog2g6hP2KKCl8nNB0ifaCE2HtEiJzcNKE2cE+EYeCeEnKya4SgdbfowaRIqGE+n tzB2/1L5+WPFw7/IO2itwu2S/IpMj/cDOt8QdeT61T8AAtdGsdYjxKJCMApoF8rQS09t dtwHhGXSp0HTB0Y3vODyXS1bLoBuZ+hc4QrOt8Rw69JIT2QEGOiSfBLOrOK/2pz9UkRf TX4Q== 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=RQqBHD1pNFJN4NsX+ra9VnsIZ1CONUZRLDig94ie5kI=; fh=uyOjp4zmbjbbKYsM8s0KJB11cfdSNgYCsO4Z7uoEH84=; b=02UQiSO5NWVOXjJdoahQl2jn1ijvIUwLvCiEH7eyPHLOvVoFztxUZs0cosW7L0aqG4 aCJUqmm7LvDqznPDKCPB8AuhCiICNbV4J1KtPsfsN7F996lWD8sEhpZ8EfbXKi639me6 OM6l0m0dFgoChB/LO13CJk/ubeUA2tes7fhNz1msrJyhgvrFqiAZBOCEPbBWNmYBRD9p Q7VvTEH68XlHkShbywlp2EphpQK8oe4He+rLgmiwiGkWmmzjVHZHyJ/IEsgI3qg0MG0M uxVsRMtlLMjvOO2ZELoJk+e9HYJgjKEs64ku/6TLQCAHUjnsPjkoyPorYTmN+WwV637J 8jMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JLCe8yfQ; 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id fh14-20020a056a00390e00b00690bc2ac50asi5511503pfb.246.2023.11.18.18.35.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:35:49 -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=JLCe8yfQ; 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 64E0580AEB15; Sat, 18 Nov 2023 18:35:48 -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 S230223AbjKSCfT (ORCPT + 99 others); Sat, 18 Nov 2023 21:35:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjKSCfS (ORCPT ); Sat, 18 Nov 2023 21:35:18 -0500 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 954DBF2; Sat, 18 Nov 2023 18:35:14 -0800 (PST) Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-6d648679605so1833426a34.1; Sat, 18 Nov 2023 18:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700361313; x=1700966113; 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=RQqBHD1pNFJN4NsX+ra9VnsIZ1CONUZRLDig94ie5kI=; b=JLCe8yfQ+MGAABssCMs/ZsUP3MR51moL78HHM4CWH4LE5pjLN169G4TING3+Ho70Dt brJ4G4e6/l9YE705B0RFF2IXKHBTQYv57tWAwcHlI4yXaTeMHELTMgYfkPjSb5IQxBfv cpkjxIyzL3iByb0B7nLZQ4bmkt3yjqU2IWSHvjvToCT+3iKDdy76LroJWuuf8P6Ax2JG +6Z7SbtteXEzsTsZUHmnfnEqRX3aIxLceKxTXfjwUYJnnY8hLgG16yH0jKCDcVuUdhvB 0qjlRva3CMQ1Cq3mzkCvtoeVrgt0nJ5OLmNeCFcK5guNs1VHM4w+xZqnuf8jHKYm99WE vyjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700361313; x=1700966113; 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=RQqBHD1pNFJN4NsX+ra9VnsIZ1CONUZRLDig94ie5kI=; b=qQpUMoxEQpgoxk8FdLk3pfsIYsD71dpocVdojkzYg7zmv91rXhfaBnPoVPrgi07SMg lHgrhA+ZnFkeawhWY1+s/ZV0vZoqrMlGFX4zrITZgRKg64TPdwJrYw0La76UWAxrrPcl DnYqM0dYkxaqDsk+jA5jETU0oQ7guDVbeDJEKcspCQao8sjrtzZI4fiuGZ1SkJarBXNv WvKV+iuIGhtcTHDVmTJdZ1c2J2LONkbua/Gz8cGT43cZSxlnDyD+2xxYn0TEgwh4zbFq sFNKPC5N9Box5piGuoItU1xr7xW+1ByXx08CD4alpNLebQjJY7aCqUUgDkqrnEbmqpDC v3PA== X-Gm-Message-State: AOJu0YyIzP0MPwxnBwH9oNLjGWGlpSc4uRPV7bksnI9OeGjypcIzWCMR uH/tZqUCNTc3d/TgGMU05NkuhlY8x8c= X-Received: by 2002:a9d:6410:0:b0:6c4:a349:4b10 with SMTP id h16-20020a9d6410000000b006c4a3494b10mr4285820otl.28.1700361313033; Sat, 18 Nov 2023 18:35:13 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:35:12 -0800 (PST) From: Anand Moon To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng Cc: Anand Moon , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub Date: Sun, 19 Nov 2023 08:04:50 +0530 Message-ID: <20231119023454.1591-2-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 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:48 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782958102094555972 X-GMAIL-MSGID: 1782958102094555972 Add the binding example for the USB3.1 Genesys Logic GL3523 integrates with USB 3.1 Gen 1 Super Speed and USB 2.0 High-Speed hub. Signed-off-by: Anand Moon --- V3: fix the dt_binding_check error, added new example for Genesys GL3523 v2: added Genesys GL3523 binding v1: none --- .../bindings/usb/genesys,gl850g.yaml | 63 +++++++++++++++++-- 1 file changed, 59 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml index ee08b9c3721f..f8e88477fa11 100644 --- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml @@ -9,9 +9,6 @@ title: Genesys Logic USB hub controller maintainers: - Icenowy Zheng -allOf: - - $ref: usb-device.yaml# - properties: compatible: enum: @@ -27,12 +24,44 @@ properties: vdd-supply: description: - the regulator that provides 3.3V core power to the hub. + phandle to the regulator that provides power to the hub. + + peer-hub: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to the peer hub on the controller. required: - compatible - reg +allOf: + - $ref: usb-device.yaml# + - if: + properties: + compatible: + contains: + enum: + - usb5e3,608 + then: + properties: + peer-hub: false + vdd-supply: false + reset-gpios: true + + - if: + properties: + compatible: + contains: + enum: + - usb5e3,610 + - usb5e3,620 + then: + properties: + peer-hub: true + vdd-supply: true + reset-gpios: true + additionalProperties: false examples: @@ -49,3 +78,29 @@ examples: reset-gpios = <&pio 7 2 GPIO_ACTIVE_LOW>; }; }; + + - | + #include + usb { + 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>; + reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_5v>; + }; + + /* 3.1 hub on port 4 */ + hub_3_0: hub@2 { + compatible = "usb5e3,620"; + reg = <2>; + peer-hub = <&hub_2_0>; + reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_5v>; + }; + }; From patchwork Sun Nov 19 02:34:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 166662 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1462495vqn; Sat, 18 Nov 2023 18:35:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHB++VgOkA1QH1NBuweZeUixK3d8kur77BY3xwzT888X04xgTStiDlzClr1iYpJ58KZGiw9 X-Received: by 2002:a05:6a20:9189:b0:184:26d8:db7e with SMTP id v9-20020a056a20918900b0018426d8db7emr4710000pzd.14.1700361346337; Sat, 18 Nov 2023 18:35:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700361346; cv=none; d=google.com; s=arc-20160816; b=UJaUgOTuro+M4ZqavbMTj8ZKowp6qhTCu8nnvUGQhWJrvBnjaYCwP/T7uISrbMxVh+ +WR1rPYVOHMKgZyLcdODmvzu63W7WlvHNIcw1NE0WPIkVZfqfzpajRtcIAMyylU4RkFs /pFURBBIkp6NvhQxx3EsObL89nPxZvtKYeqefuZ5P8x/EuNA53SU4Uvgyv+1nMmGCfDT 5GREIX79j3sbTjfAoYH8FXv7yPf9csdIk749smtbXX6T6RGnRTweCJ9mbGcw8BFBDG0P T4h7StYiKXCWJAjFP1JEpUi5fYqX74AZrHPvm9PsExdFGGUmqjvoT+zaif5pipfcusi5 ZzJw== 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 Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a21-20020a056a000c9500b006cb686c08f4si1491822pfv.211.2023.11.18.18.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:35:46 -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 4511480AEB1C; Sat, 18 Nov 2023 18:35:45 -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 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:45 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782958099195868671 X-GMAIL-MSGID: 1782958099195868671 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 {