From patchwork Wed Jan 18 04:44:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2143291wrn; Tue, 17 Jan 2023 20:47:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXvGyqJOBgMXPGwR9K4nNs+xwGNXDdafKyl2TMHVgpEsgA7WEsRWi94FapgZph0KvS6a7ZCu X-Received: by 2002:a05:6402:1f87:b0:49d:221b:4b3f with SMTP id c7-20020a0564021f8700b0049d221b4b3fmr5667005edc.21.1674017220137; Tue, 17 Jan 2023 20:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017220; cv=none; d=google.com; s=arc-20160816; b=Wp4FV959uesUmVh7/1aFF+jh4YULc2L+T98fdtWz8uQwZLNPokcfDw3+2+FnqZYnbN iGFmmLsc8HvpAnR2q4YgI1b5cN17TC+gy0lJZ9yP9GcBJJ0/quFfBMpCxIgchupBaoqJ iIpimWtPjSsvTx0a4+Btz8lzAEY/Hn+UZSDoP24GXpk2K8z2mIQyDau61vLrX7fmJkdx 7Pzm8xoryBjGXgS6Jhxb/d5H1XWNPy0tIOyEcqi/RRkpxOia9+bK+W6Iwacg5SpmL+SH L+hRkeuYnBHUoNt7ovNnjXsmtN+YvMDM85leC3qNpSxYxpKKvGe7MKLv8Jx3MLSAGmD8 4MpA== 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=e0lxoOUkcJ/KOLZdzC6xz5CbicZbR5gNovvjCwKsceY=; b=jVJ3LoUEQGMZ38dOQTe32OLH6U9DkJEU0yQkspdJGtFPDqTsIxBV5JHRIBjlmM4KdQ xSRcqQJdFeUHhgCVRPjk46Vz6ppCxSJH2zdeyPwomjUeoAZJbPJggsNOifJDE0pVvVtZ keNtC/fvu56a5mUxJ0PuGE4K90nU3pCtAhjP34H6C25YoYFi1B+amG+YZW7fdRKugcW7 xGIPNS2hlfsHH4rhbmrO5leWUxa9dPeLunfrLAYs6YKq8Y5u50D4UCoWUHLz3WgMwWs0 /folWPj6TQ4dl6vm7QGKgp8wVCALmu4RCAOu6WfOYfhbZVWuVOJzcHScnOfHyXuj9+Qd QHzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="FlNH3KI/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a056402431300b0049e1788de1fsi10094829edc.236.2023.01.17.20.46.36; Tue, 17 Jan 2023 20:47:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="FlNH3KI/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbjAREom (ORCPT + 99 others); Tue, 17 Jan 2023 23:44:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjAREok (ORCPT ); Tue, 17 Jan 2023 23:44:40 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E8405140B; Tue, 17 Jan 2023 20:44:40 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id 200so19081947pfx.7; Tue, 17 Jan 2023 20:44:40 -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=e0lxoOUkcJ/KOLZdzC6xz5CbicZbR5gNovvjCwKsceY=; b=FlNH3KI/EFjf8IyzwPj+igW93Y54628YVdmx3JyIHJYM1z+hoiIughWE8487BLc0VY LaoGu1ukTP5MqqXtUNtGgyvgUjtDxOXaDOeAxDiEu4XI4Buyaa4dANpe8I0X4DDckE3x DX2YxL129EW71ig7VuDmKLBFAwqbg3zFqaf5bUEKk1d7noYuk9wJwcHbFeqaKopbpM8f n7HDnt9fZF01dx+G+QT6Dp6JMrpj0orQd15Hadu8rdodgyWbjrAyT2Wl5kGm+WlHFVei HL1qYXq8pNVCsGSvrAtF5zXu26BLNFmzTjleFxu7I3DktoMagyOht/6OTBRdeM1/MWet bfaw== 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=e0lxoOUkcJ/KOLZdzC6xz5CbicZbR5gNovvjCwKsceY=; b=BHWEX46fYZfi8dYBiz07zwx/1AXiOT2MVYb5JAgpAQ59/esUl6bRo92E0bNizaUbxV To76+Cxi2fB6Cd9q9CFwoYfQ/Rtg2TxjgQ2hcJg6OnGZud8L9xO1e13NPJGeTQfFq4Kb 4DAMLtO7yUaCBc6pW9OfegVXMEdh9sJFubHzJpwuPtjgY9L/cknQwMdqAIpuTBn7MfVn gRS2KmeLwyemgaJiKKEHNOj3ieaMqMVirh9At88NmEVWdcYCQVPiojJ7vU2OyXbQqiil COBwl74JgiKTn7UJJ9qMZ0s5IijgAo7albeWPTykpoW+8JN7acNEov2vvKLfqMwXGcWX AUbg== X-Gm-Message-State: AFqh2koMAjIGHO7sSLa0kMFdGdsXm/tb1R3ly0I0RpAdTUTEARW7JSUx bVmj0nCbHfKYUs9rnr7Nqak= X-Received: by 2002:a62:3684:0:b0:574:3cde:385a with SMTP id d126-20020a623684000000b005743cde385amr5917372pfa.32.1674017079488; Tue, 17 Jan 2023 20:44:39 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:44:39 -0800 (PST) From: Anand Moon To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Icenowy Zheng Cc: linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/9] dt-bindings: usb: Add device id for Genesys Logic hub controller Date: Wed, 18 Jan 2023 04:44:09 +0000 Message-Id: <20230118044418.875-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334280630672482?= X-GMAIL-MSGID: =?utf-8?q?1755334280630672482?= Add usb hub device id for Genesys Logic, Inc. GL852G Hub USB 2.0 root hub. Signed-off-by: Anand Moon Acked-by: Krzysztof Kozlowski --- v2: - drop the vendor name from compatible string. - drop the -OTG and -QFN76 suffix from commit message. - drop the GL3523 USB 3.1 root hub device id. --- Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml index a9f831448cca..cc4cf92b70d1 100644 --- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml @@ -16,6 +16,7 @@ properties: compatible: enum: - usb5e3,608 + - usb5e3,610 reg: true From patchwork Wed Jan 18 04:44:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2143372wrn; Tue, 17 Jan 2023 20:47:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXs38rynHwLPaEh8QyTUPamvMPOPe4cM1vcjlU+hpqg3BdvYSADktVEiELXca0/LMzmpDAyc X-Received: by 2002:a05:6402:4441:b0:49c:91d8:e989 with SMTP id o1-20020a056402444100b0049c91d8e989mr5066778edb.42.1674017234958; Tue, 17 Jan 2023 20:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017234; cv=none; d=google.com; s=arc-20160816; b=pwdqqcljzSZ5iANGEmxjx0DcNdaUnIwaBqGsW1cnqRKozL+rp/emEbLdlwefkS3CGf 0DSDxTWJriPLd2uzj3JwvolsisVIfT+b6mK3XMXLLXfKx2CCb8Zk1Ipv2K6Ciu7LhWo+ iPbUdWAz+Shk1PoHZ7KD84MSgVFniKMpIm8hXdS2YhzrB4mEUvTFLQ9jq9D+EsFcc1l8 324LmwiUh+hh8MNaX8PcJnLIzqDFZiqBD5hlGwXjaZJZuMk9WHTbqtrBh9FXpho5CMJw oZFQTyphEhSL/Y8Hwj6Yt37HFC5j4XpLj2WSmWIJa5UiqWVvtSuHyGZ92WAOZNpWasft smDA== 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=hOZIHycE9J4e+QjHg9b0KwNQ3/76PPTpjk62HfVA/Y0=; b=0yihGkcsu0RU60hOdgQuDJa9MwVOtlr1rTfg34iRHn3hQ3TeZECmjHrPKyxDdPPT5e lAHgJ1EAvNBT3BQx2oyZwMrT81aW69dXetuI/UuqtC3dc7GqVutuKXSUzRRATKDApgdX Nw2mf1QpqAMkEd4Rm223N54U9Nwuf5xXHDLGsMtkNj4tE8lXLLiNTYEvpHrYapaKwhDX yt7SAHYXl5qpzRLWaftVJ1cjUggGqDL7dy/QlJLGQddv5sJPoOxBCKdNeXwjbdfWmVXI 61spxrJLTPVGEbL8yHv0BH3rSyBikmeyu3WTmAe2As/hC0lexXTksnRuPx7Jf2AbCbvv 0SMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OJuw6le0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a05640242ce00b00492b7aa564bsi43909578edc.379.2023.01.17.20.46.51; Tue, 17 Jan 2023 20:47:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OJuw6le0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbjAREow (ORCPT + 99 others); Tue, 17 Jan 2023 23:44:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjAREos (ORCPT ); Tue, 17 Jan 2023 23:44:48 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD6285529A; Tue, 17 Jan 2023 20:44:46 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id 141so23666951pgc.0; Tue, 17 Jan 2023 20:44:46 -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=hOZIHycE9J4e+QjHg9b0KwNQ3/76PPTpjk62HfVA/Y0=; b=OJuw6le0pCCAULCnT1UzwWJNBacWJkKrbd/NOWxdmdIpKeNJl+KuBpxAJU0lhgAj82 Az+VloMvKZMSNoSLxnVhk0DnG82GaMNSnGvd7WyDZFNrY1sElMr5KZaaiT7JcbZzBEDI BGHaYwe2DPyRcLPpqGXdFJvu+ZPTxePpFogNXwsxAn9IhdhFkC2n/t8WejM1zSa79t7p 9EPwmUdf0/xonjMwlTmZ/g6pAEYB1xHEHMyW2tvhOqpKVDBGnhqA5smuD4jW/MGOC1Yl RqWf8pGAckns4JS/9KHOacHQpNFuF1Q8/5dMzzYP1qQQLeTMzv6qfQ3KljxZViULmBcJ Brbg== 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=hOZIHycE9J4e+QjHg9b0KwNQ3/76PPTpjk62HfVA/Y0=; b=gnc3fmCVi1DsnyJqw5ESM42rpbllrIkOADBIuSWiA93NxK2dl1m10iKto9gFeuFGK9 e5PXnyU/Expb8TnaoknvniV9FCaggmN7p9BFqnTljW/4hjjuzn84SZu2gCTxK+dZcDIg E46H2ifgyLeP+mmejV6Fangn1tTqLr8NMkVvwqrsSLLSq5nqYODkqbDhrusMoz+HmJoD cCSpbYFPWTdGydcz4lmBbo7K2LIR0vqzQy/Is4OhEH08ySRiVOkafs2V80WJVTTNHfu4 MnuTPAcyqvFDEkVeDmq/joaaulqMsGRB6uvSlJaNMy9Q8fNxvQlrGaV9uFKKcuGYYbJi wpmw== X-Gm-Message-State: AFqh2kppOvfJllLnAk5BqJvrucYd1I03iUCWY5iDY3yBwBX38LgZVve5 K4UCN+q5qDLzp7t1ziJlY/0= X-Received: by 2002:aa7:9a12:0:b0:587:25ea:4fcb with SMTP id w18-20020aa79a12000000b0058725ea4fcbmr4641059pfj.19.1674017085950; Tue, 17 Jan 2023 20:44:45 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:44:45 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/9] ARM: dts: amlogic: Used onboard usb hub reset to enable usb hub Date: Wed, 18 Jan 2023 04:44:10 +0000 Message-Id: <20230118044418.875-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334295883020622?= X-GMAIL-MSGID: =?utf-8?q?1755334295883020622?= On Odroid c1 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 usb hub. Add usb hub regulator as per the schematic. Signed-off-by: Anand Moon Reviewed-by: Neil Armstrong --- v2 - drop the vendor name from compatible string. - move the hub node to USB controller node. - drop the usb_otg_pwr since it only liked to OTG port and link p5v0 to the vdd-supply. --- arch/arm/boot/dts/meson8b-odroidc1.dts | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 04356bc639fa..d1f9ce4742a8 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -281,19 +281,6 @@ &gpio_ao { "J7 Header Pin 6", "J7 Header Pin 5", "J7 Header Pin 7", "HDMI_CEC", "SYS_LED", "", ""; - - /* - * WARNING: The USB Hub on the Odroid-C1/C1+ 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 { - gpio-hog; - gpios = ; - output-high; - line-name = "usb-hub-reset"; - }; }; &ir_receiver { @@ -381,5 +368,16 @@ &usb1_phy { }; &usb1 { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; status = "okay"; + + hub@1 { + /* Genesys Logic GL852G usb hub */ + compatible = "usb5e3,610"; + reg = <1>; + vdd-supply = <&p5v0>; + reset-gpio = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>; + }; }; From patchwork Wed Jan 18 04:44:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44963 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2143514wrn; Tue, 17 Jan 2023 20:47:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXv2l4LejztjVYpPc8okNXwYZC1l3vzxguRWEpR7lCEdZaVCycB0wo5eb96h7uoDMRgY6u8u X-Received: by 2002:a50:ee17:0:b0:499:ccfc:dd0b with SMTP id g23-20020a50ee17000000b00499ccfcdd0bmr5506012eds.17.1674017265751; Tue, 17 Jan 2023 20:47:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017265; cv=none; d=google.com; s=arc-20160816; b=BmAzPei+12cMV8IzrtDKQJsOOXT5fpe3+e+pJpg55CJXl+rxQ7g7h0jb4tffFsMDTZ 8fFC/XTj31Q9OvBYVBHzOXgXy42SHd+QFAU5THKfkwJTn1g/InJV/eU9FUSkdOknMlAA +KI7fX6ehdUHlndC+Kb6641lRGg1drp61HFkvrS6/5on+SEMMsIlSgYtjXZffEB/a1px yAL4HB3N/QOhu3e/fUSPkuuJVGjMXBp3hJbDFy93K78/+mLNQ3GyTZXTgtMKKNsqGZUA jalRF+e7sIy+YmCZkf6E2w8mAOcwfnGYzREnRzfQ06v+GPMD2wEuNpW2474OckxDLYWu h/dA== 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=itXWojnygtxjpIeaCDfV4R7hBZ6s5zXg2DD6bBlDmBs=; b=yROGQ1AnA65BRi99Z6WVj+iog9hVCv280mGFxuwNUO8K8hnjDIHiXRsBlRZ83r+62e HjWxH3pV3VvcI4LgirMEWiHtFUi7oByZytEnAMa02ADce1xgrdJMDHsFGHfJg/XYxABt raxq0Ub1Ix/nuAHAlDf5bSQvrNX2JYkS8z153psBvtcF7U6W2X1koZPkJzkFgkfNvDH9 Ecdz24NDpbzyUP/3HJo/f05mYNXqeFLL2d0C93stEE2D69h0vdM9GV52zBpI+hhhygzq snKW7akNeks5zzv4A8x4alnyxlv3XbLFrWxnTeHljhPKAdOIwp+aGB1ILF9hbmmFL0AM WcpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eftewbe2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a0564020e0b00b0049cb1901e8fsi15239464edh.561.2023.01.17.20.47.20; Tue, 17 Jan 2023 20:47:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eftewbe2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbjAREo7 (ORCPT + 99 others); Tue, 17 Jan 2023 23:44:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbjAREoy (ORCPT ); Tue, 17 Jan 2023 23:44:54 -0500 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06750577D2; Tue, 17 Jan 2023 20:44:52 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id 127so7981932pfe.4; Tue, 17 Jan 2023 20:44:52 -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=itXWojnygtxjpIeaCDfV4R7hBZ6s5zXg2DD6bBlDmBs=; b=eftewbe2CBi/5TV64gKK9OavY/tDi6b+9se+BEA3Z28iy4AcsbG082daQioK7e3Loi 804DCiNVLoBU7Mh3a2+1Li+ryCxBdytyRgUd00pGZsFgDegiZiKbMWPY9mZwcMMUPbQY SOi7EZ3xkmngdy0yPw7iMuvyve+0A8DhScdS/+HQwhB2tWzssJE4qPcgy4sEuBGzcaYf Bmb9MsJMk/PGphbVBl7Op+mFA71C5FNYN8qO5cu8jiC1v+eMPCV2hKmSnVSkRYzpeYXc oUpqg6WrvR1pt60FnCNTD0kWYUTVMPE9WZTa1cH84ZuYbQjp5tjOy7x64Lpx3x9f5Rsa 8f1g== 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=itXWojnygtxjpIeaCDfV4R7hBZ6s5zXg2DD6bBlDmBs=; b=i0VUYEIpU708b43lmCEV0/y0uYcaB6XIBJPqdPERp9LUl0swq+yVV8AryScpkVtBm6 odhdrJ+rohGIG9yoonIUT4ZFK4V/8kPUfMonckMTLuFel8u5/JfVJMjGLHZosuMI2N12 wr4UDVhX5eo/TEaP4/tHhNWkF/Ngv5g3tc+Z3BsvEl2xh1vFnukeg4PD22+skrmt9hpu qqX0FWs/0G1wrqTsPoERaXyrcGaOyBXpKJb6Ghmh8OmObQGz5zaHX7oD01aTxtrInLA1 0oMVxIMdAZxYrX7Stv3aV2LrHeY+oM0FylggvOG4NiS88YhzFhuIhgfrOpR4dD86x6Bs CGMA== X-Gm-Message-State: AFqh2krrLprpl5CwztZT4FrZr8piha1Y2xfxzH656XUv6KWeu95S4Txa Ft8JTu+T5hYW3FIihI3nTVY= X-Received: by 2002:a05:6a00:2986:b0:58c:8bdd:2e3c with SMTP id cj6-20020a056a00298600b0058c8bdd2e3cmr5927506pfb.20.1674017092407; Tue, 17 Jan 2023 20:44:52 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:44:52 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/9] arm64: dts: amlogic: Used onboard usb hub reset on odroid c2 Date: Wed, 18 Jan 2023 04:44:11 +0000 Message-Id: <20230118044418.875-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334328704550362?= X-GMAIL-MSGID: =?utf-8?q?1755334328704550362?= On Odroid c2 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 Reviewed-by: Neil Armstrong --- v2 - drop the vendor name from compatible string. - move the hub node to USB controller node. - drop the usb_otg_pwr since it only liked to OTG port and link p5v0 to the vdd-supply. --- .../boot/dts/amlogic/meson-gxbb-odroidc2.dts | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 201596247fd9..01356437a077 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -250,21 +250,6 @@ eth_phy0: ethernet-phy@0 { }; }; -&gpio_ao { - /* - * WARNING: The USB Hub on the Odroid-C2 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 { status = "okay"; pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; @@ -414,5 +399,16 @@ &usb0 { }; &usb1 { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; status = "okay"; + + hub@1 { + /* Genesys Logic GL852G USB 2.0 hub */ + compatible = "usb5e3,610"; + reg = <1>; + vdd-supply = <&p5v0>; + reset-gpio = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>; + }; }; From patchwork Wed Jan 18 04:44:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44962 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2143487wrn; Tue, 17 Jan 2023 20:47:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXt7LVNzLA9azXNT5qEjRr6BsS3NcuV42uq8jaSrsXCAxEqc5NExr8F54MwAOMmU/0evX0Ny X-Received: by 2002:a05:6402:3786:b0:499:8849:5fac with SMTP id et6-20020a056402378600b0049988495facmr6200886edb.40.1674017257152; Tue, 17 Jan 2023 20:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017257; cv=none; d=google.com; s=arc-20160816; b=vTSAv5qzTzEGGw3MzxeKYye0vl3FDWgel1pPBz25XoJXc0HGPHzxMV1lNpml0FCWB3 O3vVYiy2czzlFLx1H5uaGJ4+vJkX1AOHQ7fGtL5tdbVbCyQalT0T9AB2vS/e9xsz2mG8 VYtHJTpwOpejZvwgYhPJfUyEOs87cch9E1vQ+w5Whej2TT3jnN03VCfEWjcjWadEbqDs HdhmAEElqg4yANCbxnZWOgsXEvWnrbEvGylMYrEHX4xrpX/sVLMkdlL6/zgpurDG9KQu hndzMaZBT2CIyUNQfPAx6SFb0NIC9tHlYwzD68T6BZtxpMuRdhRrvqzJ5dL1/BbQgY0M s+1A== 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=D62QMVerlbHiyJGnbiMPg5OFumoXXbcE1NYnWS92Nek=; b=iyX62tYJMbwCS7EFYpI8lXqD4gwgxCFiv8s9F+XO/A+K0iY3heiFvh8cnFQ5M4msQe Qbgvpy5FuJ+6bDacXIvJS1Lha8KARwX74+w6OphMY1ylLzriZBg7qPuC3yvV54AxI6Oz PQP1Y6/rU6wHUO3G2S0FlejcgnRkLpLo7jxs1k9vzV53Nzkes/8oa3Wl8dogJVllZQgU dQyNc3xXTP4NllwfiUxwsi1XMy0VpDFZv82Phza12OGRiWPfQbmKozlDwsGrpD8Xk/bc mTa8ZGsF9pBeToaQlFiaRMkRwMaOgC1cVeLY9+3FVqvjfrB8XBloORolJir6z/a/XDHX sUNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YnwAJLYY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg9-20020a170907a40900b008650ce2979asi23228861ejc.544.2023.01.17.20.47.14; Tue, 17 Jan 2023 20:47:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YnwAJLYY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbjAREpN (ORCPT + 99 others); Tue, 17 Jan 2023 23:45:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjAREpA (ORCPT ); Tue, 17 Jan 2023 23:45:00 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9878654B3E; Tue, 17 Jan 2023 20:44:58 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id 141so23667206pgc.0; Tue, 17 Jan 2023 20:44: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=D62QMVerlbHiyJGnbiMPg5OFumoXXbcE1NYnWS92Nek=; b=YnwAJLYYmNrSJ2611D8WOEipldiLlKr60N05t7pGUjMqmf/PaOVcD+iBQ/bEdKOGuK Aznvm7XYmCkQNTrBzKwF1SqJRuIWi6i3zbCKL3UOOOymZ2ruJYhTeJqwcRECp7kGHL7d DI4VR2JmcSEDpYKFERHE4BJumSUntUJkuA+9tFf34Pj5nS91b7eQv0Dgo/+1suXw/AQd NPyUZByJZq0f2mcsSqBGDwcD0cSBeBJZaGQKTJ83jCyCTU/tMA5RJGXg4lMZa426XsJk wYinfYfa0HKImcaD3Qyqr6aqNS6D4mvxFqWwYSfJFIL2Bv9UhxAHUKi3VRspIi7ll9aR DzUQ== 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=D62QMVerlbHiyJGnbiMPg5OFumoXXbcE1NYnWS92Nek=; b=JDPFo4g/Iu1Op4thv7yNVTsmbzouCJn653pAZSz8qPKERyWLl5KHVvFYUQ+vzf6yM6 tT0v1qjH5sAnFuj8ovBVmENRmQ76gm9uvYfbyCpkJwqWRC6qc3BzwvI5nCjFWNFiwD3W 2eiZCKRVaSBylO5sbcd444YygoK+LLSEpzC6LgDa0tZ64zKFGxEDCaQlvp9Jy8bV3XmM dsOyZob5XZeIeBY4aptPobwiiCGumSLSSU+H25blX2GAEhhzRbrNXOl2569RCGQvOChC sNhdFZdBehOIEbzvbXmRNy03d7siaTvti7Ayi/JiRrBwv/UHAhJqMenNz4vV2q5dTBUE BYOA== X-Gm-Message-State: AFqh2koYne3ALRuLUo/D/AVqglGhp7MJtb435285AVkPO1FzrOiT7a66 fNZ5ZSNE53MCFnkwXguHsf0= X-Received: by 2002:a62:1507:0:b0:581:6069:5c00 with SMTP id 7-20020a621507000000b0058160695c00mr6413991pfv.28.1674017098355; Tue, 17 Jan 2023 20:44:58 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:44:57 -0800 (PST) From: Anand Moon To: Matthias Kaehlcke , Greg Kroah-Hartman Cc: linux-amlogic@lists.infradead.org, Alexander Stein , Johan Hovold , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/9] usb: misc: onboard_usb_hub: add Genesys Logic GL852G hub support Date: Wed, 18 Jan 2023 04:44:12 +0000 Message-Id: <20230118044418.875-5-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334319305027816?= X-GMAIL-MSGID: =?utf-8?q?1755334319305027816?= Genesys Logic GL852G is a 4-port USB 2.0 STT hub that has a reset pin to toggle and a 5.0V core supply exported though an integrated LDO is available for powering it. Add the support for this hub, for controlling the reset pin and the core power supply. Signed-off-by: Anand Moon Acked-by: Matthias Kaehlcke --- v2: - fix the compatible string - drop the -OHG suffix from commit message. - Add reset delay. --- drivers/usb/misc/onboard_usb_hub.c | 1 + drivers/usb/misc/onboard_usb_hub.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c index 94e7966e199d..9bf59792fb94 100644 --- a/drivers/usb/misc/onboard_usb_hub.c +++ b/drivers/usb/misc/onboard_usb_hub.c @@ -409,6 +409,7 @@ static void onboard_hub_usbdev_disconnect(struct usb_device *udev) static const struct usb_device_id onboard_hub_id_table[] = { { USB_DEVICE(VENDOR_ID_GENESYS, 0x0608) }, /* Genesys Logic GL850G USB 2.0 */ + { USB_DEVICE(VENDOR_ID_GENESYS, 0x0610) }, /* Genesys Logic GL852G USB 2.0 */ { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2514) }, /* USB2514B USB 2.0 */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x0411) }, /* RTS5411 USB 3.1 */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 */ diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h index 62129a6a1ba5..163fc07abf25 100644 --- a/drivers/usb/misc/onboard_usb_hub.h +++ b/drivers/usb/misc/onboard_usb_hub.h @@ -26,11 +26,16 @@ static const struct onboard_hub_pdata genesys_gl850g_data = { .reset_us = 3, }; +static const struct onboard_hub_pdata genesys_gl852g_data = { + .reset_us = 50, +}; + static const struct of_device_id onboard_hub_match[] = { { .compatible = "usb424,2514", .data = µchip_usb424_data, }, { .compatible = "usb451,8140", .data = &ti_tusb8041_data, }, { .compatible = "usb451,8142", .data = &ti_tusb8041_data, }, { .compatible = "usb5e3,608", .data = &genesys_gl850g_data, }, + { .compatible = "usb5e3,610", .data = &genesys_gl852g_data, }, { .compatible = "usbbda,411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,414", .data = &realtek_rts5411_data, }, From patchwork Wed Jan 18 04:44:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44966 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2143997wrn; Tue, 17 Jan 2023 20:49:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXtxoS2msPHZusWFQHrpDri70ZhPDyLM27H/Rz5qxA33W219fvDSf1XzVR+hu4E2hcfq1jbQ X-Received: by 2002:a17:90a:5a45:b0:229:2bbb:261f with SMTP id m5-20020a17090a5a4500b002292bbb261fmr6395382pji.8.1674017363178; Tue, 17 Jan 2023 20:49:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017363; cv=none; d=google.com; s=arc-20160816; b=X0mDAP8eWbEXTZoi1rhg23LbcUdLkThnhfINHB5yaWBQ9gxe9aD1A00MOESxPJBFkD OKVeS1ctfO5N6lfxXqJuPFwnnjSAOu1ijQ6DnWBF6Kfqi1VsaMmm3JIgzuVEvrA1eN4u ugPfFKYFdVDOj/r7t+cQL1B+fLiT/p5AXhqZjq5GAAdEjr8yQxh67Gf2FRxr3Oo164op appFRy1wx+tubzKOySsKHGlVu+phgZBYxto5wnB9atnjySNsqlxeY7P67GKjPg+kmtny yhFynr8tFEfd/tNY1+tv8jb/wTLmg/+izomc7XpRvHkuET6ds7a5Jw/ZRikYX7mcRY2b FL0A== 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=PfihuVFwjd5d3eUYDaVupZrTOejihs/ApCisILxFErw=; b=btLwx8gFAYuGgkmWh8L19jYZi5HcKAJhGI5tGjUxfQP8MplZBYXSid+KKPiygvwK0t 5mvwAOgHjw6/+5gZ3Ghe3/uGkdzZ/TUSwTzVMSvy1m+g2eoXCHhN5YDTokGJW8Wn/qgt VZwpJ8/bqPOWMeot5dB/1UgceW0wnFCjoFldPPUawIMPmLV+GQV8MscAjHgB2LUe33eP JUjSwVHeq3zPcQZPP6Mp7anmdofqHGQv4KWe1KZFr0sNiR6OGHb1/E3Jr8yOevbKMxnD iDaoIrZdr7NRojgOMJEU5OaVMyt6L6eZkZVCeB6q5Pa5I1N7gBCLNiULh8G5+Bxzxk+k 5dEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iIZ7zPl+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a635607000000b0049800401654si14087971pgb.348.2023.01.17.20.49.10; Tue, 17 Jan 2023 20:49:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iIZ7zPl+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbjAREpl (ORCPT + 99 others); Tue, 17 Jan 2023 23:45:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbjAREpQ (ORCPT ); Tue, 17 Jan 2023 23:45:16 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4293658649; Tue, 17 Jan 2023 20:45:05 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id 141so23667311pgc.0; Tue, 17 Jan 2023 20:45:05 -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=PfihuVFwjd5d3eUYDaVupZrTOejihs/ApCisILxFErw=; b=iIZ7zPl+O+toE3nPuz0aILU48jCG0tEOyL1xKTUO7wLHUYujqTmYAwqEqKKVHgKecJ LXU4VOntZP0lF9/kvYUdGa+JgcU6C4P9vvUjg1KcN6YSXHzE6gOUR6DdAGvax8go/t9a 1gDk60IpS5taasM3iCzOMJNgu7OJpz8VQzIF3gwq04XLUnmgqMbF8P+b+se/HsXRZULS qJcElls5l4zMZa5YjwzfAZ+8+sMgI+Uf+1SkTBw3PdiCN6g3texCwlIneHxByniKWdxL SODuxoM4s/KYhZiaylSHIKbDkTwwMSFJoWwDrZbB1ddWubwiylfEhp1OR8aTUSFuBCph 2EDg== 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=PfihuVFwjd5d3eUYDaVupZrTOejihs/ApCisILxFErw=; b=uRdEND3Ayz4YF+PMX+Ix5ZgAmAPJPfWDK6MtOV/SVeH1Ij7JQwtOrT5ChwPgRPQrjX A4Pzp1WHcjaBmgrVVB2iRjktLnTIl/51e7yFTIBGZxWH+tEXrVzSXnzBSiVaXNnlBQcY P9UuEtqe14zXbN0t8isMnMw62oy06M/8twfd1MNcGyyaBQh/Rc5OsTcNApRU/Y8dk1PM Zwe+wsCftqtU8J+WmB/yNqeMvWSpY3FGdpOIQYwXtV78TE35LLZIBISwijRzNU4MhpkT 9+EnjpQp8jA9f3oo7BUo2mUgmZk396YaHAriceTE3/y0VEHxd8AOENliEzPrn4KL4n7y eG0A== X-Gm-Message-State: AFqh2kpBBMDf+EaP5s41XLvfnGINXxe0+rbZb0rnYUX/kHewwGB9TOqI 6mtvvA3KLlZWULS03K9v6qLPoWlmphs= X-Received: by 2002:a62:15d2:0:b0:58d:be61:8bc5 with SMTP id 201-20020a6215d2000000b0058dbe618bc5mr6584900pfv.13.1674017104956; Tue, 17 Jan 2023 20:45:04 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.45.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:45:04 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski Cc: linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/9] vendor-prefixes: Add VIA Labs, Inc. Date: Wed, 18 Jan 2023 04:44:13 +0000 Message-Id: <20230118044418.875-6-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334430776119018?= X-GMAIL-MSGID: =?utf-8?q?1755334430776119018?= Add the vendor prefix for VIA Labs, Inc. (VLI) is a supplier of USB and USB Power Delivery controllers for multi-functional devices and platforms. Website: https://www.via-labs.com/ Acked-by: Krzysztof Kozlowski Signed-off-by: Anand Moon --- V2: - drop Drop marketing, so without "leading". - add Ack of Krzysztof --- 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 Jan 18 04:44:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2143677wrn; Tue, 17 Jan 2023 20:48:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXvpcd2liqZtqp2qdMyyULRFNbjHXT5KiSGfo54MvNTNS/AeolN0+CoGv9eelbX4wUuARP9H X-Received: by 2002:a17:906:eb54:b0:7c1:8ba6:6eb3 with SMTP id mc20-20020a170906eb5400b007c18ba66eb3mr5354502ejb.35.1674017300201; Tue, 17 Jan 2023 20:48:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017300; cv=none; d=google.com; s=arc-20160816; b=Yp9YMXj/Gx8R1jktEB1Q+rECt8dDHWwGFko9OomPeYkir9CNsGBIB/tyiwbWR9hV/2 vOv8Qg1lS8+YVNSGKeBbeQLnW3sm2DFhuGYMehUnSkOsmNrRLiTEhBeQa+zVRplWUueN w/VMWiqEITlOAgaZ4Mc4adOhfRsdlDrCR3Zi/OCr0OgLus7qs7Y7PtQeNTLQnePgOnTg b3Xi1JBhfZj/buRpkSA1CRSB9UZB0chQryFJqzI6dcTID3km65xWvyRRgaBjox9eh6w5 sL2KXuojvFzHQVgvBei9pX6/EcLsBdQI2q4HlZswTjoSFKm8o1l7cKKLpojC+uzAZd78 +B/A== 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=D9wEzdn/c8hs3xBU3OhkMlpPcDlGtL5RVLAepqVXl6k=; b=AdzhsTbPT5OZ2rd8o4tNMC9ErevyEFtnX/lwjdlHAj9QLZ0xYa7Yy8nWi48VT/0Uxj 2/1FfJFp+eiRZ0OqXEDdjuzSkuHGFhLs+H7MumB+UNKi0c0o8R+rrntfprclS41FbTqJ 9eQsIo4jdErnx+nLk8U+kX1yT/lPmGGfodpYIYQbC60btQg56RZVRC9m7mbeGJPZNveh tTUa4b/V+BIrNNxIuP6J6nQ/CKn9SFDvaS4VMaT0+MRhqcsBdnWCn3FncRl1p1wGY13e oGz5rkY/MxZ6JnNYcI0D/p4YiLLNln7VzKNj0gGQuWZBnt/3q1YspLBg7BN6v4eJ/tYm iRYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="NoE/U94A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a056402511400b0045a1dbedd92si39999920edd.35.2023.01.17.20.47.56; Tue, 17 Jan 2023 20:48:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="NoE/U94A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229561AbjAREp4 (ORCPT + 99 others); Tue, 17 Jan 2023 23:45:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbjAREp1 (ORCPT ); Tue, 17 Jan 2023 23:45:27 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BBA35828A; Tue, 17 Jan 2023 20:45:12 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id d9so35692852pll.9; Tue, 17 Jan 2023 20:45:12 -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=D9wEzdn/c8hs3xBU3OhkMlpPcDlGtL5RVLAepqVXl6k=; b=NoE/U94AsD+nnLqS+qyPulEfwZ6sTlpux/8dEzgM5sVE10YacMHwL/POKz6F744lNw E95VHpCINwOpN6j0fvHU2iqNSb8yO9WqbHeRVM/+LPnoAoPdWiydWTw+PfgBs/Hbf/vK IZoAl111CVJHa3nT+AoG/TWPuUSs/2buJRjrmYl355FjZadYJPRVwEAvxeWlGWIVhbcH 6Vw5/MxSGpAbk0HxkDvOD+M2Fc660onxKYqGvuMJOL0PwgUXDlAxcsxyZWHVk6dj1zip c48JmGa8yjKifc2EGERR3GxkaYJj8gQAGliYo/SqTYcx7J7lbQY3xq4cnIF8TBJC/irw rl4A== 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=D9wEzdn/c8hs3xBU3OhkMlpPcDlGtL5RVLAepqVXl6k=; b=leo9QajN2c9uQlmV88rHBTbDJ3FkkhsAdvQJdetbXT7dr0N6cMceuFwVyBaSU4wmG4 ZhdoTnXV7uqYO6kwvUPtodOWVA/0ZFcO20U9ISiSwMdsY9YQnnTJhWPdfd7e7TAzU8e/ tefU/QvWSv6WnJ0wWqjJgtlxIs9Nh13ppvD8vCESULCnLsFkD+30eCNommSX2J1mRkqO 5gawQqsYKWPq3kVHyoIx4rV2Vu+pirtEshvYEvZfBjXrOOwWBZrDEIgDDp2+kR+298cZ 4kXgFZCtulyN1HejqMEvq9HBxzByLGtX3AYdJD3g9dBFTIwOuKhGde3FkczRgiI+A6k5 gikA== X-Gm-Message-State: AFqh2kpb6FW7ALuLfXTd1OHPGpsSpeNTFkoGzT7sHXghtSWufGuldD/Y 4LVfQlxHlcJ8RYBB9RXtQKCaMKClE14= X-Received: by 2002:a05:6a20:1611:b0:b5:d50a:4aad with SMTP id l17-20020a056a20161100b000b5d50a4aadmr7989744pzj.39.1674017111729; Tue, 17 Jan 2023 20:45:11 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:45:11 -0800 (PST) From: Anand Moon To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski Cc: linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/9] dt-bindings: usb: Add binding for Via lab VL817 hub controller Date: Wed, 18 Jan 2023 04:44:14 +0000 Message-Id: <20230118044418.875-7-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334364343112661?= X-GMAIL-MSGID: =?utf-8?q?1755334364343112661?= The VIA Lab VL817 is a USB 3.1 Gen 1 hub and USB 2.0 hub controller that features 4 downstream ports and 1 otg, with an internal 5V regulator and has external reset pin. Add a device tree binding for its USB protocol part. The internal LDO is not covered by this and can just be modelled as a fixed regulator. Add combo of USB 2.0 and USB 3.0 root hub using peer-hub. Signed-off-by: Anand Moon --- v2 - fix the compatible string and fix the $id - update the commit message. - update the example for use peer-hub node because it combo of USB 2.0 and USB 3.0 hub. - rename the yaml file from vialab,vl817q7.yaml to vialab,vl817.yaml as q7 suffix is ued for USB 3.1 and q5 suffix is used for USB 2.0. --- .../devicetree/bindings/usb/vialab,vl817.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/vialab,vl817.yaml diff --git a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml new file mode 100644 index 000000000000..5f9771e22058 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/vialab,vl817.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Via labs VL817 USB 3.1 hub controller + +maintainers: + - Anand Moon + +allOf: + - $ref: usb-device.yaml# + +properties: + compatible: + items: + - enum: + - usb2109,2817 + - usb2109,817 + + reg: true + + reset-gpios: + description: GPIO controlling the RESET# pin. + + vdd-supply: + description: + 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: + - peer-hub + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + usb { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + /* 2.0 hub on port 1 */ + hub_2_0: hub@1 { + compatible = "usb2109,2817"; + reg = <1>; + vdd-supply = <&vcc_5v>; + peer-hub = <&hub_3_0>; + reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; + }; + + /* 3.1 hub on port 4 */ + hub_3_0: hub@2 { + compatible = "usb2109,817"; + reg = <2>; + vdd-supply = <&vcc_5v>; + peer-hub = <&hub_2_0>; + reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; + }; + }; From patchwork Wed Jan 18 04:44:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44965 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2143766wrn; Tue, 17 Jan 2023 20:48:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXsmmq0j4zxYNIBnrXEt0fcY2OkEByNhzTIhunoriWTDi2Dfyo3gr75nB4coFIzKlfe/sslV X-Received: by 2002:a05:6402:e9c:b0:47e:eaae:9a69 with SMTP id h28-20020a0564020e9c00b0047eeaae9a69mr5626523eda.41.1674017317587; Tue, 17 Jan 2023 20:48:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017317; cv=none; d=google.com; s=arc-20160816; b=RkQeYWIacyTX2TY/n2mXsZFVH+XKB9J3BaSTBHFoL+eq0woMZp1RzmxIfMwtQhHwvQ Gi6AFJEP9gCtHc7tow9o6rZ+uyDJPN8pbcw0qhiSHGEYAbZdgLmrLzYZNcscwbsrM5iO r48jq7XZWIONjZfbSxFWS0fixPS5o31DRPCMPDTi+kNheYaZ/+qUcfTwLyivv4nVKqW1 y8xpSerRZadRHcf4j6bIPImEkMqX0kFZEIlNl0EEsLMFTn0mFbklWsouUz2p1Wp2QLOs wQPbMM2dUqJjj6Q4vaI9NQXSijSlzdfLd8vR9+IFwTyRSD8U6y5AzyRW1ULOD0V/eP4f 6eaA== 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=PqdFnWHjWAHKmuM+PoO/HnCy2n74on+Ymq3rYfqeAJE=; b=ZjkMX0S25valZ3O25uc22/NkSOaVU8+R+reEyHcF6M/q/IxU3W/qDnH9MPIhx4KYDb SpN2UhGvfck84G2xnAqGDV3Ziq+jaQsxQj83ZQiYGF6VQ4PEe/p6Q5bklU+J49E5wpcS SSzTZWMJVu3vPhb2eJ7eTrevbIM3Sj83T5FNi2C9Sf1K++5ovMM+3X6gn+hM7ofVY0Ox ZiKIuzUf0cWCDEp5vSlJ8HWsK9cuTfBJh8AN3gUYJW7GXNR6eKHpNtk0CZ3+3iGhJYOX xrzP+phNFE1oSe4VSpvDbvy4jKHyes1S/+lhN/+ogV5QY9CGxrhogAZ+UTUo8bSWNKQx aaZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DlSEsi0K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg13-20020a170907970d00b00870dcdc205fsi8836245ejc.483.2023.01.17.20.48.13; Tue, 17 Jan 2023 20:48:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DlSEsi0K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229614AbjAREqE (ORCPT + 99 others); Tue, 17 Jan 2023 23:46:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbjAREp2 (ORCPT ); Tue, 17 Jan 2023 23:45:28 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 951CA58660; Tue, 17 Jan 2023 20:45:18 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id r18so23621003pgr.12; Tue, 17 Jan 2023 20:45:18 -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=PqdFnWHjWAHKmuM+PoO/HnCy2n74on+Ymq3rYfqeAJE=; b=DlSEsi0KQ9JhYv/iu2q45d2JfoC8+2CKC7ECut2BUh35plePrVMWf4mebvkknGUrr5 2pSFeKYmW65ZfjxlunY/SaR/XzEVnZNUk2w6uKzOJ0jRyNuERB5VAjFCiKHDKgoMFB6M duxipMvK5ckycVBRkseYba+l6G6zF5o8fcW9qqf8/0JKtBgK+T3Mx0toVEr+TcLg68zt tSx6hUgrL7MUPOQrBGjTmT4iM7gB4MDM/9VSsi9rOsHrz/WhgYHS2b9383b9mtHvJn4W 4MBT8Jcou5EwffrVcWfbev08iHwYTuOL+qc9fV6ggSZNK83+TvGTHWz055RIGcoYCTWd wdzw== 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=PqdFnWHjWAHKmuM+PoO/HnCy2n74on+Ymq3rYfqeAJE=; b=pNd58ipT5jcMfUatkFrZ4lE95Mpv+I2CHaoyR0ZI4hW8md012+r9M+46geurSUlhXm A0aFRW5iTasfPbFJRjUzbdk5/xiPy+LIc0LO5YrN+JGwSKGQ3FexGVQjF4kDlrwOnemT gLWQd9VJr526JCsSK/N1iU0r8OvaKDWrB2Dey4XRA2nh27SRV1MI8yySaBoV0kh2KEM+ 1cN2ne0POtBipDnsquuTk6kk+HURVke7WyE1mSIo4GD0bJ9TIhx72pdHcwU00no7ljvs 9z456s4Y/fDU5pm/tYhTgsIZ/TdCne9MlK8vyrsxFd1+Y6hjxxz22LAb/FJtabBEZpfL lqJw== X-Gm-Message-State: AFqh2kroxs89TdfnJVjwxt/33QQrp9zZWIZumzsS0SfnWGw93myT5abv mTPl/6C0IwlhtSItWo4Jqhw= X-Received: by 2002:a05:6a00:2354:b0:580:cf1a:f2b5 with SMTP id j20-20020a056a00235400b00580cf1af2b5mr8704552pfj.12.1674017118519; Tue, 17 Jan 2023 20:45:18 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:45:17 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 7/9] arm64: dts: amlogic: Used onboard usb hub reset on odroid c4 Date: Wed, 18 Jan 2023 04:44:15 +0000 Message-Id: <20230118044418.875-8-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334382693961453?= X-GMAIL-MSGID: =?utf-8?q?1755334382693961453?= 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. USB hub is combination of USB 2.0 and USB 3.0 root hub so use peer-hub node to link then. Signed-off-by: Anand Moon --- v2: - fix the compatible string. - Fix the hub node to use peer-hub to link the usb 2.0 and usb 3.0. --- .../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 36 ++++++++++++------- 1 file changed, 23 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..d04768a66bfe 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,30 @@ 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 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 = "usb2109,2817"; + reg = <1>; + peer-hub = <&hub_3_0>; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_5v>; + }; + + /* 3.1 hub on port 4 */ + hub_3_0: hub@2 { + compatible = "usb2109,817"; + reg = <2>; + peer-hub = <&hub_2_0>; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_5v>; + }; }; }; From patchwork Wed Jan 18 04:44:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44967 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2144236wrn; Tue, 17 Jan 2023 20:50:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXsuQLqeq5I49ATOiCD0ue16nHSGJnlplmQWwHuU7CUEyIjRmofWiA5Oyx8QJRTC3QakcXz9 X-Received: by 2002:a17:907:cca4:b0:7c0:f719:838d with SMTP id up36-20020a170907cca400b007c0f719838dmr17143371ejc.36.1674017414747; Tue, 17 Jan 2023 20:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017414; cv=none; d=google.com; s=arc-20160816; b=UUR1AFd7pTYyjc2yOyoJAIEnxsqnLCSDwodplDIf7eZWE/4KBxYO+LfVETCem1QEyj coLTOK6wa9h6r8u+W1fudS+p7nx1w4eRxBwKVjsihC44n0LdOR8xS7Mo0KIvpC9yOl4t tEfhNyopOoIaCDCeHEyd/4F/IDE7msaej1tKZT9WcUCVChCGw5VLbCKTyk5vwtzF5GMN R3o3CznSNKe7keJH1qgw9EUh6MAJR3swNjWCpX2uDYL46XCngL38Z4lozi90ftmFW1GJ tS3gz6Lp+OR+TkQu7nMq64/aJu084vM/rh2Kw38DCPkq4PVhYgEVILBrNJTdmaLOmWLe IFYA== 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=wqZvv1Cxb0t6cisyG3CZwbwpWlMQdpI86dZp44hCMJE=; b=XcfgyiutiRMze0w2xfWC8RLUb0FoaEZEVBK1JWwoPuGWmfoeCsmQpOgLbNt0eyMuYa pxtrRhsFxTG4ia3UJItSWs50XYwn/lGyPCrtRd4wWPhS0nuDqquqM+GDr7wW7A+0VFkP ityMydLz5ac9gwM6RptV/+gI6a9w8SIGgdMRL1EZx037YDCcgAril44zYqfZUJNg+us+ H0++Xx4bkkjcmH/1MO2DSzUs3Cc5cX7OLElipjYbNAQKoT6m5DAn+/ReuA/9NKQqzZJG X8EWs4ljkRLzgtFGiylQ+10QatAjVN5069FMtQTpaJExIWDRfz3vqCISEp2Rbj/pNMwc tWNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ic8i3YOM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wv1-20020a170907080100b007ae10525573si38187158ejb.671.2023.01.17.20.49.51; Tue, 17 Jan 2023 20:50:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ic8i3YOM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229739AbjAREqX (ORCPT + 99 others); Tue, 17 Jan 2023 23:46:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjAREpf (ORCPT ); Tue, 17 Jan 2023 23:45:35 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E50D58282; Tue, 17 Jan 2023 20:45:24 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id 7so23652841pga.1; Tue, 17 Jan 2023 20:45:24 -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=wqZvv1Cxb0t6cisyG3CZwbwpWlMQdpI86dZp44hCMJE=; b=Ic8i3YOMVPjMMlQf/D1uuQd3aP2Lhx409y7YULdVTLd/7eN673woYXVvEUvFyyQ/cY YBxR3xFENzl0TNGqcM1Hkgxyu7aINGAzAB1kc+1+u7guIL4HZVMoNnCjpUZvEAH36B8R kH3CyXA3TA4Rdyf6M0E7iNNzT2fmY6LpFKLVDYqOXCYPj/TCETbg5D9c2Oa8Jim4pI0V 5BJOwjd5P3eBifZpbpmn7hwyZhYiNB7IvHUuigXKaUNpZgEkrzhLVioIXAXjoiS+3q3D 2uGn1JxItYJYM19wHMNeje6B/wWFOZ+pJ/MXh477y6DP9oTzv0MXkLbvCI/1R/Ps3C0R 1eFQ== 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=wqZvv1Cxb0t6cisyG3CZwbwpWlMQdpI86dZp44hCMJE=; b=Jp9T53zJODpWNFzRMMgUuwRHCAWkKBFgGeVP8gRNyT3l62Thz3Cd6w370ABJPkQ9VJ PQHtLbv853ruZPY3nwRi9FbQpd6TAyD1ygK5qzpeb92/D+UTfNkI/rdvpeFDLt/vKAPN MWBbTtiXOMeBF92vSvieTDUT/n+SzNtXUnBIbNlRgQ6NnxQq0TUBnDIHgQh7QPTgkt3u uJtIvLh2paU2p873N7/37p0i6PSCu0fMtHF3g3Nzf6V0C4VjJCpeYEKSjW8uevmaVzbu YA+lpcOLuoXhuXJFibGQxHe9fvD/6WIKCQ5K5/U+3ZHadpa4U3Tp4Btrm8YnHuosvPy3 XiPg== X-Gm-Message-State: AFqh2krkMGrR7fBJklSodL+gVZRi/gWERBAV3gt6upZz40kCDXYvS7uL j6+JoLsZt+HwkWdpvhGnoq8= X-Received: by 2002:a62:be0f:0:b0:588:d6c1:66f9 with SMTP id l15-20020a62be0f000000b00588d6c166f9mr5333009pff.31.1674017124362; Tue, 17 Jan 2023 20:45:24 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:45:24 -0800 (PST) From: Anand Moon To: Matthias Kaehlcke , Greg Kroah-Hartman Cc: linux-amlogic@lists.infradead.org, Alexander Stein , Johan Hovold , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 8/9] usb: misc: onboard_usb_hub: add VIA LAB VL817 hub support Date: Wed, 18 Jan 2023 04:44:16 +0000 Message-Id: <20230118044418.875-9-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334484952437129?= X-GMAIL-MSGID: =?utf-8?q?1755334484952437129?= VIA LAB VL817 is a 4-port USB 3.1 hub and USB 2.0 root hub that has a reset pin to toggle and a 5.0V core supply exported though an integrated LDO is available for powering it. Add the support for this hub, for controlling the reset pin and the core power supply. Add USB device id's for USB 2.0 and USB 3.0 root hub. Signed-off-by: Anand Moon Acked-by: Matthias Kaehlcke --- v2 - fix the compatible string and update the commit message - update the USB device id for USB 3.0 and USB 2.0 root hub. --- drivers/usb/misc/onboard_usb_hub.c | 3 +++ drivers/usb/misc/onboard_usb_hub.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c index 9bf59792fb94..945d4e7125ea 100644 --- a/drivers/usb/misc/onboard_usb_hub.c +++ b/drivers/usb/misc/onboard_usb_hub.c @@ -335,6 +335,7 @@ static struct platform_driver onboard_hub_driver = { #define VENDOR_ID_MICROCHIP 0x0424 #define VENDOR_ID_REALTEK 0x0bda #define VENDOR_ID_TI 0x0451 +#define VENDOR_ID_VIA 0x2109 /* * Returns the onboard_hub platform device that is associated with the USB @@ -417,6 +418,8 @@ static const struct usb_device_id onboard_hub_id_table[] = { { USB_DEVICE(VENDOR_ID_REALTEK, 0x5414) }, /* RTS5414 USB 2.1 */ { USB_DEVICE(VENDOR_ID_TI, 0x8140) }, /* TI USB8041 3.0 */ { USB_DEVICE(VENDOR_ID_TI, 0x8142) }, /* TI USB8041 2.0 */ + { USB_DEVICE(VENDOR_ID_VIA, 0x0817) }, /* VIA VL817 3.1 */ + { USB_DEVICE(VENDOR_ID_VIA, 0x2817) }, /* VIA VL817 2.0 */ {} }; MODULE_DEVICE_TABLE(usb, onboard_hub_id_table); diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h index 163fc07abf25..0a943a154649 100644 --- a/drivers/usb/misc/onboard_usb_hub.h +++ b/drivers/usb/misc/onboard_usb_hub.h @@ -30,6 +30,10 @@ static const struct onboard_hub_pdata genesys_gl852g_data = { .reset_us = 50, }; +static const struct onboard_hub_pdata vialab_vl817_data = { + .reset_us = 10, +}; + static const struct of_device_id onboard_hub_match[] = { { .compatible = "usb424,2514", .data = µchip_usb424_data, }, { .compatible = "usb451,8140", .data = &ti_tusb8041_data, }, @@ -40,6 +44,8 @@ static const struct of_device_id onboard_hub_match[] = { { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,414", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,5414", .data = &realtek_rts5411_data, }, + { .compatible = "usb2109,817", .data = &vialab_vl817_data, }, + { .compatible = "usb2109,2817", .data = &vialab_vl817_data, }, {} }; From patchwork Wed Jan 18 04:44:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 44968 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2144368wrn; Tue, 17 Jan 2023 20:50:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXv46OT4K9qc/Df3bXheWYp2Ii2+LuYd//XUmYS6TvmAdW0Bm6hzLjkZ2WbJLBSrZuv9G0l1 X-Received: by 2002:a17:906:78b:b0:7c1:9b07:32cd with SMTP id l11-20020a170906078b00b007c19b0732cdmr5657762ejc.39.1674017451288; Tue, 17 Jan 2023 20:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017451; cv=none; d=google.com; s=arc-20160816; b=Xu09DnpoCV+S273LwNCNYiqPPIb8YQjEnUTmx4TAcmsWA4+cFR6GJyba/9fplz4BNT 8DCrI4EGKeWLHBj6h7Lv1Mem5eYlPtFuexjVM64U/gc1ndVujer256ucJNejCzd8+E4x O2tR5TDzH+7JeQ8FrcDEPUfBhCERXnSMo3dfZz8YwdlDX0ftsg2bJJU83ptnUS23DIek 2wBtvLKMpVYywRnIV352MOyJYj4tOJDP7l2v75lYNe2+ChKE1VlP8RksS1+t9M8AHcYG j4mfnI7mYcRbiBy2NQd+XOw+Y6JidZAWOJImxoSUYYg5BpZzW17DPXuJ6A9BswDlWeoe wi7Q== 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=bgLdZY95SndgcyNayQmxOdJ0Ym9jsDdjWpZ5HTkP+n4=; b=IdigJD0moxEhCkAwIMuhJyzlhN7/ffZ0Dpa7Kd7mILgVfVY6LhWyKUDGhbEknmN0kT 94pUfaxHCsisuBka4fm/qrBfeLiFeJtLi0735X68TxNJpa/HB+j0n/9ZHa4Vq6h4IqcI najzvXKGYX6L5uxhlAIMNZcYCk6UrdztLYmcCYlyJ9ZwD4HXCRfTBeLI3AMoFxLAxCXa C2T/NWaFEC4d4jidyIqMLTZnirVRrO4J6G0rg1It+6PAr6A+xCeW98tzDSD9xIF8wBEF 2rDhmDDsgvAKhbbbVESMufevYxZYV1wjLDrLPXNrcj3q3NzH20Y1ETDYFyJuD3TF40cm nELQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kA04TT2S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm25-20020a0564020c9900b004856bba2c8fsi31258350edb.514.2023.01.17.20.50.27; Tue, 17 Jan 2023 20:50:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kA04TT2S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbjAREqf (ORCPT + 99 others); Tue, 17 Jan 2023 23:46:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjAREpo (ORCPT ); Tue, 17 Jan 2023 23:45:44 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85D45582A8 for ; Tue, 17 Jan 2023 20:45:30 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id 78so23639955pgb.8 for ; Tue, 17 Jan 2023 20:45:30 -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=bgLdZY95SndgcyNayQmxOdJ0Ym9jsDdjWpZ5HTkP+n4=; b=kA04TT2SWyelTnwWu3VzoKC2lS+ElZrLAswlaptiKeua2oH/N/FOx9BPJCBF03Upyw Ea1TY0Q7sa/dgvR1Fm05BnsLeHS0EhPAL/pZ1BCsQVYDQnAKtEjMR+qxoxy9GVvrJm5W Z4hXbul8TcR0WliJSP9LMGT2VxNuRvvPoFPqQF4tEgLa7K5W0z3qxYXi4szwoHjCq2t1 a7pJyUduDg/fJt6gJ3M+Xb7lJUsvh+Koh/GxjlHBdOAgWDb4ZaHB4RIpNjhInUjUp9/O dayYfKZ4Cbe7Jfk0XLRiau3EregczJwjfRQWb5xlAv/FNzH5g8dP1FqqmJcL3azVTi7T BorA== 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=bgLdZY95SndgcyNayQmxOdJ0Ym9jsDdjWpZ5HTkP+n4=; b=R8teJApgi0TiWzSuD+RQROypDQ1uwP7FrSX+0CpJibAxHY6K+vj9/umyRJ2xFp62Pr BCA7ExzpfPPbPkfa7PH40gn4nmcsdLSieV2Kfx4Pz/+qhcYV+fX2esfCTBJSGXuGcpth 3/ksHn/1QqFagxiTiHMqUefkyVOXZCSTCZOqBv8jswYVCxgmKiZ1csyNaAM/xXZWuSnY tl13yfbPHaZ3ReT8UToJ64Gk3M3rfHXJ6pJzG1vXkD48XlDdDTxe1ViaCZwzV4IM26zj avVEb8I3CdoxBLfwNjbUCkvhnZLRtLcWLMtCNamzvCE1HRQ2gOfoBPRgEstp2EkC8FJw rHZw== X-Gm-Message-State: AFqh2krNAC86RrPyQYNpD4fbzDUp0OlLJ818WV+ET6oFHW25YK7nrpan fJAEHD1gzeJ2T+bPfyXDXlPZ4s6ojrQ= X-Received: by 2002:a62:6104:0:b0:588:a156:6a3d with SMTP id v4-20020a626104000000b00588a1566a3dmr6242169pfb.26.1674017129702; Tue, 17 Jan 2023 20:45:29 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id i1-20020a056a00004100b00581a156b920sm8682770pfk.132.2023.01.17.20.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:45:29 -0800 (PST) From: Anand Moon To: Catalin Marinas , Will Deacon Cc: linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 9/9] arm64: defconfig: Enable USB onboard HUB driver Date: Wed, 18 Jan 2023 04:44:17 +0000 Message-Id: <20230118044418.875-10-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118044418.875-1-linux.amoon@gmail.com> References: <20230118044418.875-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_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755334523109987521?= X-GMAIL-MSGID: =?utf-8?q?1755334523109987521?= Enable the USB onboard HUB driver, used on Amlogic boards. Signed-off-by: Anand Moon Reviewed-by: Neil Armstrong --- v2: - none --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 851e8f9be06d..42c3528a2473 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -923,6 +923,7 @@ CONFIG_USB_SERIAL_CP210X=m CONFIG_USB_SERIAL_FTDI_SIO=m CONFIG_USB_SERIAL_OPTION=m CONFIG_USB_HSIC_USB3503=y +CONFIG_USB_ONBOARD_HUB=m CONFIG_NOP_USB_XCEIV=y CONFIG_USB_GADGET=y CONFIG_USB_RENESAS_USBHS_UDC=m