Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp101789rdd; Wed, 22 Nov 2023 10:24:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvMhryLFlmNzmmfW/4ufaDml5otihBaJerXJ8rcfLsaxHHf0UKtd6PfWt9UasK0yw4328u X-Received: by 2002:a17:90b:3b51:b0:280:1a19:6dd5 with SMTP id ot17-20020a17090b3b5100b002801a196dd5mr3358864pjb.36.1700677476333; Wed, 22 Nov 2023 10:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700677476; cv=none; d=google.com; s=arc-20160816; b=C95Qo9RDRmH189D2sWNhfzGJiK954o98MiTASID6WPe6cuiMXu7dAm3VydCni6iFby 2nYOkusCukaakGKWo+6RyXl11MHVicyxCGxtCMeF1JA164I6h1UNwt8BUnUAvCXfi2g2 l5QDQkmDVhN5tiBTR/y6cuLYU+LivFISP71acyFV/tAI1E7JfhZLYkmcGInLcH3satfn PzB/0w30g0b0uMRYyrhw4FcsLwVrRvvmex/B8O+rmL+JK21wGlEZ0iRsPszcNiAB8QPU Suf8oQqWL3ICUXdqmPUZzqe/CYi0v7QI4xtgKYEOscRd+nGDm9338+ALSxIvI5KUoHJ5 7PSw== 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=MjfB/97B7loi+XRCLgCE3Hiw3P88msCGByWuf340tpY=; fh=jay4Kww+mdq3zJQhM4PRMH6W4D9Xkh2c+6in7JziTNQ=; b=RD+KIR7DkagcXTJO4JQxkl3lNmqoxXBCU1Hj0x9HcBNjydoXeAP9pjfJBpBrkRXIrK pxqYqN6DffUCxZVN/m1vPktWzRljqF8C1d071y2ZYcyAEGasJewucsISzuCXyvGl+k9m iQDV+ASoQ6BBwOqR8XkiuV2eUsV/lTP0H/kHJwRPHVcCp0wc94HbYpTefYhAnXcFdleZ TXMntw8JjkXoVVmbQP1amuGfEtpZXP5DRyzu/TnxN+uJyy3n1qZ7hRAInUN3vNdewQ6q rk5asXLzmklscu+G1Xj8x19ln0L+ow6pM+XXmbQaUMRm6VpuVPRZeGuStcIAwDVw8M9y fK8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fpvGcMfo; 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 g13-20020a17090a128d00b0028103a8ad9csi103949pja.68.2023.11.22.10.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 10:24:36 -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=fpvGcMfo; 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 B425F8270DD2; Wed, 22 Nov 2023 10:24:34 -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 S1344087AbjKVSYb (ORCPT + 99 others); Wed, 22 Nov 2023 13:24:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235027AbjKVSY2 (ORCPT ); Wed, 22 Nov 2023 13:24:28 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E111B9; Wed, 22 Nov 2023 10:24:24 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1cf669b711fso290935ad.2; Wed, 22 Nov 2023 10:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700677464; x=1701282264; 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=MjfB/97B7loi+XRCLgCE3Hiw3P88msCGByWuf340tpY=; b=fpvGcMfoZIyygbykG/s/Qxs9laKclVNSV+bWVIlm7ckMLFZQrufq5OrWUVpy9hjN1V rZ5nqpISJVqzx0kdTMK+aSMdpA1Mks2tGNu5FyzwiJKGJe5c54nzwm73f4dAChu9RYHe qFSKL5glsVSaEfcdae0WPaDPAbJdO5P0o2jfM4DC4VeUQ0yntHB6K/sxfWldLQTiJLCy JA2xN1qyM2e0H/vnJ1TIMe/zYIf6EZZhVV96CB2hGEkTeX7XKPSAja3bBAzAwaT/F8/w vIYCtpaVBQuScbpANz3cps630EHoYnV9mw9kJSP7+YyhDs0WQbIeIxOyXC7spXrBKFZT mGVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700677464; x=1701282264; 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=MjfB/97B7loi+XRCLgCE3Hiw3P88msCGByWuf340tpY=; b=UqsIzgQSnQKt3IsCOuK1H9XTar79jj6tNcafDB0e423tLmMOei5eYl5K2hsSL1HzGm lOGtP079HSznLKZpAv5AJrSpWlntcoFDN40y5Pw5VryGbfXV3DCloToVWfQZW91VjBgp R4i540R7TnCH2CxNcKexdOuDRczQYssZQd4GWPqxCYTKEzpkmmA0yUyji5+tIj/6TMNF 6jCZxBSiTau2JId+SI6MrtYfsuNK/elOWAP2U7CfHqZ3pwAhA+oaUxvF9iREj7jmF5ek kVKusMZ1WLsl1NpGx0Q3cy2BJ+Y8X04XmqOByqk5fnuWTkTwzlqFY4thlCD5dy75RfFv /6Dg== X-Gm-Message-State: AOJu0Yw7RfV3Ax0saylAa3lPS/JuUWapejcig9WuflRSD4sDGD7UAkfb wV7HfRXqzQGvgPNZ0MCrOcE= X-Received: by 2002:a17:902:e741:b0:1cf:59df:241 with SMTP id p1-20020a170902e74100b001cf59df0241mr3486737plf.52.1700677463793; Wed, 22 Nov 2023 10:24:23 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 10:24:23 -0800 (PST) From: Anand Moon To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng Cc: Anand Moon , Neil Armstrong , linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub Date: Wed, 22 Nov 2023 23:53:46 +0530 Message-ID: <20231122182351.63214-2-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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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]); Wed, 22 Nov 2023 10:24:35 -0800 (PST) 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. Onboard USB hub supports USB 3.x and USB 2.0 peer controllers. which has a common reset pin and power supply. peer-hub phandle each peer controller with proper gpio reset and help each peer power on during initialization and power off during suspend. Signed-off-by: Anand Moon --- v4: Fix the description of peer-hub and update the commit message. Schematics of the Odroid N2+ https://dn.odroid.com/S922X/ODROID-N2/Schematic/odroid-n2_rev0.6_20210121.pdf 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 | 67 +++++++++++++++++-- 1 file changed, 63 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml index ee08b9c3721f..bc3b3f4c8473 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,48 @@ 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: + onboard USB hub supports USB 3.x and USB 2.0 peer controllers. + which has a common reset pin and power supply. + peer-hub phandle each peer controller with proper gpio reset + and help each peer power on during initialization + and power off during suspend. 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 +82,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>; + }; + }; -- 2.42.0