From patchwork Sat Jan 21 17:56:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111189 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DE7C7C38142 for ; Sat, 21 Jan 2023 17:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NKTp71Ia3KCAMG3qSlq18DzBVejOkyDjgp/Kz5PaNiI=; b=Xb5CB0+aLV1cx1 kl44oNhAaPPFFYqUGoeY3XMfyR7BJDZ/otuKIdNfnBGgpyxp0pIy2bc2zI0sGSkV5/b8Xo4nEY6EM KvKvj/dyqGxj7N4nE9xEmGpDWp6D3wMrG3Ahfu736HOIuPpjK+Kyk2K4mcWzNxWpKZJmzSG4FQRY7 ZdX40PopncGCuQ/Vq3DJy3jtkFqcta3ysLbAr5dFuPuour2qa0LGsVZv5/W2N+RFpb2y/BtjIoncC wHCRM+T9S6wHoIQi2LO8/7F5RTfKlA8y5YItZGvqGb5E1BAYvqNoz3asWMrYr/CACcfzcneSgymZn yQ5dVf3LwcdLMw27v5qQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI6z-00EDwU-Dm; Sat, 21 Jan 2023 17:57:05 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI6w-00EDvE-D7 for linux-amlogic@lists.infradead.org; Sat, 21 Jan 2023 17:57:03 +0000 Received: by mail-pj1-x102b.google.com with SMTP id v6-20020a17090ad58600b00229eec90a7fso3789074pju.0 for ; Sat, 21 Jan 2023 09:57:01 -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=T/VSKDQbMfKNc4vbTKN5x3k2QwZYoCdcG6c1F2hh6IQ=; b=N/OIx3z9t4Uo5fQPEj9bdg0ERvScU+q6xoE8zCh20plLzYMf/9mTCvczSMgf1Khowl D5oxQJjdnSAR9nLO7b9k4CIRgjjscXzMl8LGbuFhen1oHkGcz+fe+yu8meWpsexNJtRZ ijac1+HzMQ7dCjqMcbtaYU54aqUXGQPsqsp89inHtgc/RZzp6bDh7hP0148iWyrL93I/ fLp0j8pz3h1StWibXfIzaSCBMmOc3v/usQPsHlVjGge3iNiBuVjtOp17Hm4AAl1IA00C GP7eBNc0RcVt+TkCmwEPzI0m9/rvS4q53BF4hRDTk7MXCLCW+4rit5dtqLF+xmxy2fph a7zQ== 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=T/VSKDQbMfKNc4vbTKN5x3k2QwZYoCdcG6c1F2hh6IQ=; b=VLPJSlYSLzzcfoKZjamuaut8teuuysvFmAeN7RW8bfQ4k86CGhasMiMHUU73u1Dm3N eF0cnq0p/jVN2MTheda7wF2SviNI6y6tXCa9LF3cF8UDBDEuTVlCfaxnFmaLjhN62Cmg CtMulZf0Yg6YP1o7AFqP/vnzJNut23U7fJ8IhjRRQXlngD4NhiE/R961zi5acfbSJvpo f2+TISBXCuZFCWc/Nv8s1MrkHapSaNOcTElpkGmq5uY3oasE0ScmNSMUYq1cJIPHR3h8 k33Jm6xsEo25lhj/CDwwNkp39H34KqXlz1qYJXqcMmVhuhKv5QF93pyrJeq74lnihIUC dP5A== X-Gm-Message-State: AFqh2koIQlCgXk3/aXCF+KkUT7Swf25kkwW/zJ+sbL8GUSVRrzWNNhDq 3WzGp4AMamuWu2Zni3N0pPU= X-Google-Smtp-Source: AMrXdXvALVURNZxMQoC6IgksCohu866TAnJyj6gUBO2UILqIXRqop3UNiLxFR7pIWHZBawt/TaiS2w== X-Received: by 2002:a17:90b:1652:b0:22b:b6b0:788f with SMTP id il18-20020a17090b165200b0022bb6b0788fmr6011515pjb.14.1674323820858; Sat, 21 Jan 2023 09:57:00 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.56.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:00 -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 , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/9] dt-bindings: usb: Add device id for Genesys Logic hub controller Date: Sat, 21 Jan 2023 17:56:29 +0000 Message-Id: <20230121175639.12818-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095702_465648_4E99BF80 X-CRM114-Status: GOOD ( 10.44 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add usb hub device id for Genesys Logic, Inc. GL852G Hub USB 2.0 root hub. Acked-by: Krzysztof Kozlowski Signed-off-by: Anand Moon --- v3: - add Ack of Krzysztof 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 Sat Jan 21 17:56:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111190 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA574C25B50 for ; Sat, 21 Jan 2023 17:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=69NRQg6blurimXlC2l5uF7zrZzDIpV0m1NKpeEl/U5I=; b=U1r8ObDL7h3pKQ UvEsP3Hg/mgCO/gFVnVbfk94xv0JXtqelf7/4QSKod514wAVgqpF86Gcl2t3+BKj5HTgTqF6hT/nA SiF/+0qJIyqhQYEqMdbeguTyK1vIDqDAQ6ACNFnyYmPH60+W73sQn96c/6KAHtNItaxgXIr5eUoyu gI8NaCD9aK6JFbtymO/KeCy4bsdzDoeI0GQxnhF5828P9u6R6LXwRN9WBTzwvyczN9JujxcV+pcLY x+HTjnu4gxuQyZ74vGb8D+i2BrBkexGwjWS37cBaro0KVFFVn62V95wDcVVVHZ949GoqKRW8duw3y bM0fczt/gzM8g7p4yTPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI74-00EDyg-UW; Sat, 21 Jan 2023 17:57:10 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI72-00EDxZ-Ji; Sat, 21 Jan 2023 17:57:09 +0000 Received: by mail-pl1-x636.google.com with SMTP id z20so5987178plc.2; Sat, 21 Jan 2023 09:57:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NCzHXrbRvsqfgdDEn1XzlqbZnHOfL3rY2EE1BLX+c/4=; b=b6jR9mtPvxcQEgR8UCV6DSGF/rrpXKm+GuXYeJg2HRnf29dsOYV/PqSZ+Us754CymL ncst+0JJTnZSxsjQtsp7WB5bdKkWBSANRN3ndNF59Y4HY5GLHdh3oJCd4vdNIr+darHO QY+42q2vpWPhuodog7an1v0fnXorCWTZIK1g7M/A4eGEw9SMf82BYjnoApvqTHO78Iec nyAFeeC/PovmVgEaiISMwFjXKPS4Y0tq8aglEpBJCUvWcQp5aHYMhWppgNZOcPXTXG7A bXeXdvryMuk8B9TVulgCFwMREwP89NBYJ/+NLaMhuqonL8/8WlLVLuitid1EDUhVSslX ZKng== 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=NCzHXrbRvsqfgdDEn1XzlqbZnHOfL3rY2EE1BLX+c/4=; b=fWORCCDeiTmrMH2cXVvhgYdTAOiy0vzAfX1MGBwpar+be+XkW23I4HwJe4P2pFpIjI l7YzrzRy6i3hftcc522Ed9+uuv5ITUNHR0hv7/WAUMexDb2XPz6XsgxzVOyh5p5RmgeY 1QxFLq0g3u4li8HzAU8BtAN3WgjCTuAVV9UXzAXqjEDiJjiwbgvrTtR5I5W/o5mft8/L pnD+Ng+rArTTbkMw/LY4Nq3ClD071SUtEWwAVQHcEN8isP9WhS7AIHzvCtrckMepi+AQ O3PoRejoZFBrM7W9JruC8TLt08iN5lFkKND3mm9PJklTEH0faMpXtrgM9mogCw56Wv5A ClCA== X-Gm-Message-State: AFqh2krh/Or3RNb0rStHuuHWWkAeV/71/dkhZm4Ov5dAzXVSq6U3qG41 h7xIXKnbS3Kz+mUm2VDORn4= X-Google-Smtp-Source: AMrXdXsNPj1hcK0B4AslGTcdR5QLntv/D2BXxjsaGDR1forilW70eC0xvgukY8NwZRqWGPEkm6dNWw== X-Received: by 2002:a17:903:230f:b0:195:f06f:84fc with SMTP id d15-20020a170903230f00b00195f06f84fcmr6012669plh.40.1674323827571; Sat, 21 Jan 2023 09:57:07 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:07 -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 v3 2/9] ARM: dts: amlogic: Used onboard usb hub reset on odroid c1 Date: Sat, 21 Jan 2023 17:56:30 +0000 Message-Id: <20230121175639.12818-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095708_705941_D76873C1 X-CRM114-Status: GOOD ( 15.76 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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. Reviewed-by: Neil Armstrong Signed-off-by: Anand Moon --- v3 - Add Rev by Neil. update the subject with odroid C1 dropped dr_mode 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 | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 04356bc639fa..04c4bdca0b85 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,15 @@ &usb1_phy { }; &usb1 { + #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 Sat Jan 21 17:56:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111192 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4DA8FC004D4 for ; Sat, 21 Jan 2023 17:57:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DvyZJ4myU4BPur1kn2LImqUGxNZODQ8OhFpuiDy6MV4=; b=GvnkaorNBu61Dy /M9StRLV3/AFmUUwhLrdbr8zTE14iqHJs5OrfovwT4G5MGInJTWVSNbu2OuJSMKQI2ugAuUrX5nVG j0RcVtEqKioBuk1cG/uqq7T0tJYG0jj6YodHDmLu9UCQ5oVWNFgljIOXrEeCAHJZQy1zcRB254Ec1 /zfSfNQWafN0ZSL2sTKQxtg9VgpOowvFvs3irFqJNllYluYmbLciZOKzNlPew2QIK5VxS7uK+7rV4 zorvQPl1MSJWuAA+VYXd596l+Lt15QxcwoT+Jm5qc2+i0oV2ZSL1OjwF5+0dNPFL3o2hTyNg/eg1G 0Cp6SU9ge6lkmn2nA9CQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7E-00EE2r-S6; Sat, 21 Jan 2023 17:57:20 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI79-00EE0P-Ft; Sat, 21 Jan 2023 17:57:16 +0000 Received: by mail-pj1-x102c.google.com with SMTP id y3-20020a17090a390300b00229add7bb36so7754862pjb.4; Sat, 21 Jan 2023 09:57:14 -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=YeFLuKFYHtqMsL9Q04zNeAzUIoUCJnJf6k6CUesWfq4=; b=pDY7lwMY986ChQ8HScW2+zLReDVZwRRACA7C62xlDbgz4uTsE/iTgjsoNINU9aQDcI bS1flQbH1VDhkxrhfrCkA4QgN/rETQ7idnalXvyfXFcFm6jZNTLiNbCa1OGTOrqWfb4t 1UhZEUaU70wCJ3ae9bYW8+E9bk4L63i+nJV/lvg8Rj4+B7ZYmCnpE5uSWsPSIo3XwD5r qeZOprVfCVnuN7ElJKcEr6jwDpCX/RoCc8rFMakOy9TeGAUX7sgS/cAHt3QoNDOkG8r0 Q5TRtfIDSly/1V7UzlpzogAeEA/ifBAOAEss0G1fP17o1EverbouZIIQwDwmoH0vAkWR go+g== 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=YeFLuKFYHtqMsL9Q04zNeAzUIoUCJnJf6k6CUesWfq4=; b=PnjBMXAScD6qf7GrhL8xbk1Edf0UEY+GYCSbbpek65hoJmYTwcW0WcCxtrJ3rG8cjf KFL40TU/ztw4lHrXQaBTzqcahE1/acS52l2f8mSTzVTGMgiR1Je6gIEYfizvOM9n7ZQ0 qnSHZKYgORTFgaXFajZ75sTDvu9cNCP8akPZOck5iSa6jyWc4WYvt4sU0L25RhkSokdE aAxueqT/PnNweJ3r+3yHlwiy/IXtUwB4svjTWeZ9yEQdMD1Mx0S7CD922Ve+ZawjWyDp vXiCNX9fSn1m/8/hxKsFRenBfgsAqpxOsm+Eo2jdA5E9oyDoGalEjtperQP0DTd6KddE 8dfA== X-Gm-Message-State: AFqh2kpQcd26W4GTdIEHqGHFQw+bNdRV0MRqJQZm68p4Gb6gUfqFcXYd sTfLvJ8pkOv1/G7Oi8KB94VFOM0UxS4= X-Google-Smtp-Source: AMrXdXvhKACefD0Rs3Ee7VDiXlFCw3qo0/2fF51ymAE0AMqX52lzeqxWKVPWjOdDMIjMbBD+t1Ra5g== X-Received: by 2002:a05:6a21:6d8c:b0:b1:e8da:d5bc with SMTP id wl12-20020a056a216d8c00b000b1e8dad5bcmr25436775pzb.56.1674323834267; Sat, 21 Jan 2023 09:57:14 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:13 -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 v3 3/9] arm64: dts: amlogic: Used onboard usb hub reset on odroid c2 Date: Sat, 21 Jan 2023 17:56:31 +0000 Message-Id: <20230121175639.12818-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095715_591342_6A9A1BED X-CRM114-Status: GOOD ( 15.83 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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. Reviewed-by: Neil Armstrong Signed-off-by: Anand Moon --- v3 - Add rev by Neil. droped dr_mode 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 | 25 ++++++++----------- 1 file changed, 10 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..70b10934a811 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,15 @@ &usb0 { }; &usb1 { + #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 Sat Jan 21 17:56:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111194 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B65EC38142 for ; Sat, 21 Jan 2023 17:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aH92H9LIH+Ti8+OfbVBt10y3CUtnE+5iCfq0A+WhAMI=; b=ZpKp1SaY80RAXa j2SXh43v8UXnYU5+81+/zigoOVVjUcNgSqJutvn02sAh/G+bv+w8A3M0pvlNCuv3L7h3/ZX3pGhGr exOo75IUmbnkKzIcks01UyGBBAdm/n4ex98Y8U6HOn0vLezCutWM4OZ3hjB6giJqo+261Fj1jnqKb dXyheG1jN98E0rzGY51VgATDBgUsu0CP+NAzRf8cnWu8JPk5DUthAMDdM0s8axWg5dKzlEt5BhLlv /3h57pHCBqeG9u9/sfKupJC/yeqVFZvjjcD9ffeLnT5ETrAmA/C0qoghao4RyNfT1XgQ3gaiasOwm aVmjGr5DuaqQ/1pYx/ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7P-00EE8e-3r; Sat, 21 Jan 2023 17:57:31 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7F-00EE2m-PU for linux-amlogic@lists.infradead.org; Sat, 21 Jan 2023 17:57:23 +0000 Received: by mail-pl1-x62f.google.com with SMTP id k18so7971125pll.5 for ; Sat, 21 Jan 2023 09:57:20 -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=/7SuZc4P45+/SBaDlaz2WkZ7htQPLlLb7VbRabYVtdI=; b=kP7U3BbF4sadebIHCzs1+Lz+rNORdylAzj5dWUqkea0xhy66aWxeL8r7yhN34neUsH eAUDm43C5lXA6WV2OAH+beRIkFhUYCnQs3skvsK58c7wUTN6PimZfExaowTrj6cUUYFD dlMpa/e/bI9cff+OQFKUNvKBjsl1KNGD5En5S6Uj+yJKPZPh2nAuUwopv568YrV8SQy9 W9MMKQsdgYluRXoo2xXX5WkJ/nPvkebnVwyEYMAwePhsWJaokVNCRUc6xEpeTBJkl9iY wT6PbkmvaQXmZ/rWky+ojiqdVlPEarl7BCO6QCjiqc4K7E+JGk0nkRI6sDAJL4VajY8A Y7sA== 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=/7SuZc4P45+/SBaDlaz2WkZ7htQPLlLb7VbRabYVtdI=; b=yb7i9a/k2FNwuzFaK9bmIed4yoQbhyOCkl3JxvP5YDnRx1D0mAbREjMwJbRiTs5PNa GjTdyrxUBvh/3UeQXuCOc7iZIAWKIOSiw720jYkB3kwfTBATPzyBgfdYSEDVeI7JzvoW R8//Vjru4Sjx6FWAoosWM2QNSH/Qsesf1iBzzYR1TKi3g1IJP98Hz8HM1m4MnRaD12ze wPiewpRuXraU9Qd+pVdOSU4XtoXHOI/6cLXuto2l7ctvCc6D4G0Vno65rQjHorKZXQcw tYx3f8ga37pvsVwJCjh4D324lv2x60MW94Jf0cQbIzh1wVrsQvt7FCyEzJWjLHe+C61K P9kQ== X-Gm-Message-State: AFqh2kocBlmLyo2CYgNhlwkka/mF65uQ501Y3FaLf/BX7S9ZDqn1y70N bCsKxzv+hMjAuHAOZvmnNxI= X-Google-Smtp-Source: AMrXdXvpJKSkHiYRPl5XWzj2YzqDC9QAgz57GlKP9VkGjPfRKXn9vxsxzAJoEW2hF7bO5MlzwnB9jA== X-Received: by 2002:a05:6a20:d80e:b0:ac:b2a3:e39c with SMTP id iv14-20020a056a20d80e00b000acb2a3e39cmr18740290pzb.62.1674323840228; Sat, 21 Jan 2023 09:57:20 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:19 -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 v3 4/9] usb: misc: onboard_usb_hub: add Genesys Logic GL852G hub support Date: Sat, 21 Jan 2023 17:56:32 +0000 Message-Id: <20230121175639.12818-5-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095721_878266_4D25023D X-CRM114-Status: GOOD ( 13.70 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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. Acked-by: Matthias Kaehlcke Signed-off-by: Anand Moon --- v3: - Add Ack Matthias 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 Sat Jan 21 17:56:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111193 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47711C25B50 for ; Sat, 21 Jan 2023 17:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lWX9RHU5Hb++yT8n/PJFS8CypXTjsdCF7BNBmdsbhPo=; b=vBzDAMM1o85Cq8 TwM8Zr3eW6eT94EEMmlH/TQ7AyWnX1ngNRkSOBdsL8JxVdx4EQcyOPXqsAHXO2HP3ryndQlQR+0h+ +rIGh+BtAMtkM1I1H+YzouSizAyKoDfmlb5C657BO2mDcnugSvTynFRRbUXGoYV0qCIQIkv5FnrWI Yt/C9gkVeFc8k5BQ5SVn9Lo4Hia0292ITCoGgFMGNcuqKSZm6UC+aAagbCTjDgE5qsvCDcsQniMO4 G8zM6vF3H4Yt5Xp7YEeqOMRzBa4IecMSpelfw6GDcF93PsiJ/VmTUYY2EhAsqZnWtOB2xxPFXpA/x p2CJedrQirMdz/jsXwVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7P-00EE8u-Ec; Sat, 21 Jan 2023 17:57:31 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7L-00EE0P-DW for linux-amlogic@lists.infradead.org; Sat, 21 Jan 2023 17:57:28 +0000 Received: by mail-pj1-x102c.google.com with SMTP id y3-20020a17090a390300b00229add7bb36so7755086pjb.4 for ; Sat, 21 Jan 2023 09:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K8xerOhLO8JTLqzPKced78KygnBvXGTTylBpFDCkDJg=; b=cUDItZmBvVh5WDYr7E2FPoJX+xvQ3P5UMmOmgnyJ6TFVn2TXMGtNx7M1LcUKwM0fXD AFrAcl4Xaund8P53K9cNUAqhScIAmJAQD+tGBomQO7cHHnOT6OP6eXfvvcz7uHSIII/r qaPGgs/bXgrv/zbL+KelfVhdkCL1Mmqf0ZL2Jaai7TXOJBmnxXJjdb6BV14zQwMRtBWs FCeaXi9WYA8z/K31PrxsaMJwdiRjD50jBm3XCn9Cb4O8A7OXQ0WuOsVCmAxQYRQj6W36 0eHAX21cZTvFSoJJR1io0t69icFdxTzyUUakQXGmftBqq+L/0vZOvlDF1k1LjPRHvfSI RvbQ== 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=K8xerOhLO8JTLqzPKced78KygnBvXGTTylBpFDCkDJg=; b=iAREiWW9uKUQ9lNw9+u8ZVAN23FsfNWAsK/JIUq9JR9YHjTxxdAu2D7AEG87NRr6Ef Pu6BTnawufPTnEwnQRnXkaaSBNZ3xJQjzyVXbG2ILu9CQP/Z/aSbTlNgT/oYG4wDFPdY Ttz2Y5pwJ7N7qQ93UufZc6XNh+ut+HhVKCpqVDP7o3UD3DmHiXihG1blQpN3JUf0l/3Y SdYB86b7F66h1tljf+jlNeKAY5YNs2ZmrpsX616pLR8wVsp6Evi8Sn8MIPZkCfw+diGI 1++TTtA07FbnXFcYu+Ayp1lVnqcRACOTHAfNbtQ9gIEye6jpkeBQX10fqQOi3HdkKX/h jnVQ== X-Gm-Message-State: AFqh2kpDeXh6KkwXvt4eTXGS19bEPzMb0Mpe9VC37VVqll+kj1gOg6c2 1JKHZb0pibeFbhOp4u9PeOM= X-Google-Smtp-Source: AMrXdXsIU8tIRkm+vufigl+w38qOxbT1W4mxmURgtnWiSMXQvnsZPPB9L3Pw8OZa8rDBd+2S8LEzHA== X-Received: by 2002:a05:6a20:6a91:b0:b9:92c2:7ed5 with SMTP id bi17-20020a056a206a9100b000b992c27ed5mr4487904pzb.22.1674323847084; Sat, 21 Jan 2023 09:57:27 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.57.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:26 -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 v3 5/9] vendor-prefixes: Add VIA Labs, Inc. Date: Sat, 21 Jan 2023 17:56:33 +0000 Message-Id: <20230121175639.12818-6-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095727_478024_F4292A96 X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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 --- v3: - None 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 Sat Jan 21 17:56:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B98BAC25B50 for ; Sat, 21 Jan 2023 17:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FMg+74/FRRSgVfA6ttuTIF2bPMtia9OvRk3pnayYqsE=; b=q1CT0/F/r9CISq wYm3xdTsIUkFfYIEKrXVCWqGoTugEgpjG9W3/susZoaHFwuok+LYHBt4bgNtVTuqfUpi/ocGstP5Q 04PAgU6thiSKucZ0mJnQ8EVT2e54CJRkcqYRXsT9ZWiKn6QEHtQSAv9UxQ04q6MRmxX5eVedESUpR F4orrhXMeWAim6V4ASVe36HEXf48LX2KBmlqrwlCYSzdFmoseGBVjYeT6Frh3N4jcmBdNqEhOK3CU 4mhKU18NhgI4W728DlVVQZIAmHG1AgFUdQg5vFPBLtr3ZKXJ5fQXbO+bV/USDWu6X679LcSssaNaa pSTOXzMPaHDqgRvJyffw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7X-00EEDS-3z; Sat, 21 Jan 2023 17:57:39 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7T-00EEAe-MB for linux-amlogic@lists.infradead.org; Sat, 21 Jan 2023 17:57:37 +0000 Received: by mail-pj1-x1035.google.com with SMTP id x24-20020a17090ab01800b00229f43b506fso6871671pjq.5 for ; Sat, 21 Jan 2023 09:57:34 -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=YWhDX4KFx106+qYAgyDcB+XV4NL80nKQ25X8LQ/8aus=; b=ptnIGJ7DHlTlXBsb2o7MvDKWy8JBZq11tBcdFBh4UHANl+tKS+pEJZ8tT7YNHuAnyA TSufAnWU1xEd3/+wEjZxB6rDVlH5WeOl6Poo/QwTSMsYdnEpGyznE0IDCxNk2Ob0dUXl aCOfkWwWk/+76atl6KE0kb9cDkgsYb5EY4KfOxSlraTC02RehhvwRUGBJEUfEVv/xmjQ OJ8bda9FoymRtpZNoFKAqotul3t9BkNOyz1/KqMkyCdSats/qU5zirhpKBuHzDXP6N1f B0HaBrk8luJEYD7LQzp9vQN0GtsB2RdF6MZV8WSHiHuega+vq/biFnbASLT0/49mQXH0 h0ZA== 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=YWhDX4KFx106+qYAgyDcB+XV4NL80nKQ25X8LQ/8aus=; b=UttrYfxERR9jXcISJCgOb/RWJ+AU0bE63RlgJxOlFX6P4fH0MZR7B5iMf1Sf6cI7LE c8w4r4mY/C4WXdgFVWYcbBGv22diNkVaBd7pDfCsZjo7JYvUnv1h1jEzHXKS1G++eOyE f3ha/dksrUmWoA3NB0Xh6VtoA524lmeuSB6iXmn2xI/4DorOFd2+kXPKbwyeTFxc6bdk B/57WhP00ZeT1TO6k+sB1J2B86LvR3t98r1Lq5EwqvP+ddkDmBkrLls/7ySCeEA6AlqC 0StPxEpWlso1Dn8AfR5M9d9ylNsb8m9Ic/h2yRI84AsNYP4YfZuJ2OS9tovJl9h7hu56 lGDw== X-Gm-Message-State: AFqh2kpd3PbxEE6Vp8qSzfJMhjIJObnYepGu+8Y0TO8nKw7MsEt4bm0D ZrhbAVHodu27ROgFnQhiPVQ= X-Google-Smtp-Source: AMrXdXtkECfuRVbf5RNXn7jC9dWHZYTvp6jDX/+/JRhq0UUsYz3F5pz49H/ZJ7msZ33qySMylf336w== X-Received: by 2002:a05:6a20:a593:b0:af:aa38:12e0 with SMTP id bc19-20020a056a20a59300b000afaa3812e0mr22380250pzb.34.1674323854075; Sat, 21 Jan 2023 09:57:34 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:33 -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 v3 6/9] dt-bindings: usb: Add Via lab VL817 hub Date: Sat, 21 Jan 2023 17:56:34 +0000 Message-Id: <20230121175639.12818-7-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095735_744625_718F42C1 X-CRM114-Status: GOOD ( 17.23 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Krzysztof Kozlowski --- v3 - address review coments - Krzysztof dropped dr_mode 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 | 71 +++++++++++++++++++ 1 file changed, 71 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..23a13e1d5c7a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml @@ -0,0 +1,71 @@ +# 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: + enum: + - usb2109,2817 + - usb2109,817 + + reg: true + + reset-gpios: + maxItems: 1 + 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: + - compatible + - reg + - reset-gpios + - vdd-supply + - peer-hub + +additionalProperties: false + +examples: + - | + #include + + usb { + #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 Sat Jan 21 17:56:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111196 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30F97C38142 for ; Sat, 21 Jan 2023 17:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YTXl+weDX8uqiWnv/nykgQDnAwwIbW6Z3HXlUKL2GRE=; b=tfiWLQbzqCYjAw F3ajyj+0g95Siea4VX7eTYOosOyIWQpiOqAICb7Z78vyo5Qwbf4CEJNyfK55DVZjHEUU8oYQdXLk8 xW0SGR4oFMh8vyCNfotZ01pBe65EFuwZwn5zhR/5dIY09bnGv57fgxIFNtSOy9gn8umyEgMreQemL PkBLTANCmt1vTLGbbwzpCTfXfiRluN/z8Go87EJG1UENazyomQZNgDz559HoFwrTI/idG5vFPl5Sj e/wSDNg0yEUoiLh7gzBQMk4mKu2FdSPvj113d9k5G1Ryhr6dMAu8MxWO6mjdvJ9bTA0yn/2GvJCWG a+ybfIONeo3ea25Td+BQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7c-00EEHp-RJ; Sat, 21 Jan 2023 17:57:44 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7a-00EEF2-HN; Sat, 21 Jan 2023 17:57:43 +0000 Received: by mail-pl1-x62c.google.com with SMTP id 5so2662268plo.3; Sat, 21 Jan 2023 09:57:41 -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=upFXHM11fb8yyn8//u4LSFSs+SLvgplDwfC/Z4GzEYs=; b=G/niI8tNgy0IBZ45FMpgN9Cg0vU6UMRJC+qgcOkXOl2tZnhL2C1yqOW4EcWnazNiJh iZBus2mj8G0dZKDV100wor82NE05Yi4TpBAmomdVAR8rcz8BS+0QqY6oJ0LJ5Ax2vq/a /hswCL1e6YO2wuNB5uIr+pk7kNbO2Ff2CDQZr0G9JMA5NbaKXRvb8ca2YFRvnrlhR4qr bdDKCqSV78mFdGGHR/qMn2NolU9zfn2YkbApyXVX72Tcur77K7AZ2JW40Jheg0njvbYm ekIXvKsdgiJ68buXJ99N2cwPMUtXr6+AeQDygBNCyXkVVhtQyD/kSrnWEYLmjT9hB4lz CEZA== 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=upFXHM11fb8yyn8//u4LSFSs+SLvgplDwfC/Z4GzEYs=; b=hGQMX7EgdGv+OVVvNRwIcJ1La22pzK2ZtTzM3j+kr2tN7r2Or399ejQm+kdcOP1bs4 8vMhtaUrxpDxuIFzEawEtRtujXwrlhh6JUgg8Ovjz3Vovd+N3DpQKxETyBNI0QuXibi2 8roNWNvvpW0PQSRgrea8wgRiha4ITt30VtfaAgzNt/fEvMjaP2qgKundL/YGEB0iZoDO T9V6boJw+lhOCNfllZ8y2pSmuF+hDI3G6ALaNWSiBDXNwsBJShxeLE35Cr9ywLYcMVUm Ng4/YxGxP/TW7WTg1HwLvvIXFrBpqXRC1OLn8QiRQSCv4u8DZ3PVQbg8fxaZvrMwmIsx g9og== X-Gm-Message-State: AFqh2krm4SURDbJCiIFE9T9YhRWisl6BxQVA1Z0c0q1UjWXCSzgOmN/R mxJ2mdz7cUOOKPlmywP129Y= X-Google-Smtp-Source: AMrXdXuo12QaVYDgvO1xmkU+zpACLfQxEe1cvQTovdbHbEVM3OfIwnNKEqoK0HGMEIyZk6bK+Ppktw== X-Received: by 2002:a05:6a20:2a15:b0:ac:f68:d0f8 with SMTP id e21-20020a056a202a1500b000ac0f68d0f8mr15681592pzh.23.1674323860897; Sat, 21 Jan 2023 09:57:40 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:40 -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 v3 7/9] arm64: dts: amlogic: Used onboard usb hub reset on odroid c4 Date: Sat, 21 Jan 2023 17:56:35 +0000 Message-Id: <20230121175639.12818-8-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095742_598956_6EA469A6 X-CRM114-Status: GOOD ( 16.36 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org On Odroid c4 previously use gpio-hog to reset the usb hub, switch to used on-board usb hub reset to enable the usb hub and enable power to hub. 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 --- v3: - move the usb hub under dwc3 node. dropped dr_mode 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 | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 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..a988015dd2d5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts @@ -28,18 +28,27 @@ sound { }; }; -&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"; +&dwc3 { + /* USB hub supports both USB 2.0 and USB 3.0 root hub */ + #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 Sat Jan 21 17:56:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4302C25B50 for ; Sat, 21 Jan 2023 17:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Jpk29cKGe6woU0RqzxS14X7ACvAF5MFtDdRyxU7rzwo=; b=XxzJwfAAwOIBof K3g/ruBH+S2tjreV0xUc7O19+RDDzoha/D0k3g7wZT3j2p2kwc+TtEe73WLBAGWrhrGr3h9g86T7/ ank5Mxnm0w3e1GRSmIV66eUvssxJOa/G6y2KbEb0+2uwn+hbaafyx+wb684OFGjB+DkuSD9HM+IQx iM33YUw2+I/5QY+wnZifuaarFKOGLZAIFbVcXM8KzBleD2IB4S9QtHEnWhWKK0AW5PGtCaj9eHfKa lbnJ8K/ER0yd1LFRt8tzgBFYswuVtF842AjSoOinipZHp3HBGt6t/9iMPfIdfRyu4Jx6AgYaMuUmo n7JqgMTUpBt97/Cxd51g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7r-00EEQr-1P; Sat, 21 Jan 2023 17:57:59 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7g-00EEJW-5f for linux-amlogic@lists.infradead.org; Sat, 21 Jan 2023 17:57:49 +0000 Received: by mail-pl1-x62b.google.com with SMTP id z20so5987973plc.2 for ; Sat, 21 Jan 2023 09:57:47 -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=KGtMPXG+Aka08SYYYyo/KkQe1dgGt7Jtohr7QlueNXo=; b=CDHKAHMPL7wIv23meaxe+3ZzUxHgMo5m6Tm4N/VqgoAGblTS+VmcmY6flogCoaD980 Z8pvO8Mbg1842kAFblDR2hLPxfoJaT1oUIB0GCNaJP4HD9RDviBwsUTsDW0YTui/cTV/ rLb6waQCHhShKnIkxASdlZoQ7ixPTW/EW1hGuUjg/ZPThzoHLTTa68cpolyDrUaCrUK9 4NxJ4IFDduAxiAYvLCoMPrHhEac+PsDLt7HVQId0Qu96dSUm5mY1iHtjW5+daiYkk++q xiCYnORnV1BVuymOBx/jILTcrrZFKukg/Z9Cp/pvjFBl1niuu+bvDTwINYR77qqkQ1Sn 11zg== 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=KGtMPXG+Aka08SYYYyo/KkQe1dgGt7Jtohr7QlueNXo=; b=0VshSHbbuCNTRVK9faeywF44IC4NtIM/6yaGZRFp5A4+khD5n1SOPHIZPwnLWN+KKC Ifo0zstpF1JORqXdhGs/LF1pIdgP52vkX4S7On9GUlk7jtUo1s8y7hiLSM0YYgCRGoHh 8Af0Ht/u1l1DgN/jCRoSMnWal9JPdRtjkxSkf8TaBRidnwS6W7V+/HMa7NqsO102+1jG e5vu9JEvWnFYSJHZ+iEF43eRlUj6R356AcAnho6IwOv2Utu+3hQ/D8Ct/MBMcKCbBJ7Z 31LB0h1Ss3wbFZ6U6nmvg8KZcFAxIg6nZLGHul6hl20AFF0cBY30DPT3Cp8q2NYBjEtk uRYg== X-Gm-Message-State: AFqh2kprU2n43B9E+fKk5w+WM6MFZJeqC1VMRGAyr+/O7DYgb+9xTs9W sMG/h133iEnX9+DQ5zRcogc= X-Google-Smtp-Source: AMrXdXvI7b8pbgzCZcQDa0EQ94L2M5q99LsBpbLZlfEUjgkB1i5500YQOa7vzYwZfWYDNT4GCK91+Q== X-Received: by 2002:a05:6a20:1601:b0:b8:c659:9d51 with SMTP id l1-20020a056a20160100b000b8c6599d51mr23177312pzj.56.1674323866966; Sat, 21 Jan 2023 09:57:46 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:46 -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 v3 8/9] usb: misc: onboard_usb_hub: add VIA LAB VL817 hub support Date: Sat, 21 Jan 2023 17:56:36 +0000 Message-Id: <20230121175639.12818-9-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095748_243492_A4676316 X-CRM114-Status: GOOD ( 15.70 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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. Acked-by: Matthias Kaehlcke Signed-off-by: Anand Moon --- v3 - Add ack Matthias 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 Sat Jan 21 17:56:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 13111197 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA4A2C004D4 for ; Sat, 21 Jan 2023 17:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oDF/bVkm4xVNL9ZyY/hiXPOy46kJs4Zzi3cd/LRjB9Y=; b=uFVvvuSZD4SqL4 /XuYHBsKS8jzALgEeddCdiSZwEVGtrhY8UaJY1j7W87QOxPApRWwtMboMIMe5XtU83ky86EzKfSD0 5cWzP1wcnw5uSutdDF+WpQJDmaGUw/X0v6zdBuo6FDYfwswxzd8+HIP5LzWPzHA8sVOxqX8PO3Ub7 6yiVwh+QtEn2EIEQggCBJ5C+wcrDhNP2y2GWgO3M85B74Nb4x9k+3mEIdI4JXxRgYf0qTVZzt7DEo dPuTgUdS29eNf8C/Wmm8F8N+fFieX5D4/V5uX/AHVRYcY+XSx5upkPMhVE2cQ5SeyNn6IN1WkoHq8 OtqUO6p38P7HCqPA8tsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7s-00EERj-Ej; Sat, 21 Jan 2023 17:58:00 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJI7k-00EEF2-VX; Sat, 21 Jan 2023 17:57:54 +0000 Received: by mail-pl1-x62c.google.com with SMTP id 5so2662532plo.3; Sat, 21 Jan 2023 09:57: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=0AxWed3glpCmJJFQzDC2lmsR0X3SYh0baoNWzeGiA8c=; b=FHUv3ytZ3dBXrU1hpnFUzfg9Bg6/6D8bJR5hlUGkzuX2Ty1zYInFQ4XzMSszLeUxBr hfDSjcZ3gq+VGkxXGfRzNtcEupWnzneu/Ewe6OkVZkI3VEACcyTWzymEaZjjAyZ5bESy dvWz0Dc+nzr8u40UWtWQbjwenrCEAgOOcOEbxbTuphleTvpSSUEds5tLMIhdpoJhYorx 25258R8Hv+UGniVH60wW3eJlqCSkVrHcUss8pxQrJ8ftVNpQhjQXXgK2NvKU3J9jeC/m FVOKDZ7AyTjCW0nj4Za7LQCdWBC27LSUF+B0XfBfW9JK9i5WtpXgR1g0PqWhSAgidGWF Fesw== 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=0AxWed3glpCmJJFQzDC2lmsR0X3SYh0baoNWzeGiA8c=; b=ZOo5WOOGgVmETUNxKyjf09nc5hUfN98I+89362vrD4Urs9OIRY3F9qV5XZXLkwMZI0 ONVKIYupxoa3JhqKeFzLAZGEj4Vh2h/gSIsH/qIJOuB1O1nHphFBYq8CwgTUww6qvCW+ IgtVGQOw60YU8LQZMpkl8oSB1pZpsYv1FCg0r8L+Wk4ELm5hjqlzZY2w7nTELjSgIY7K hvZfwqK2F73PSQ0vtc1tVYM9IjjpyH0D7MkP/3mqaH7enj3nv4inRunP4P7CtZLkOVW9 JJidtTE7zarnYIao8rbAjX+Rlvlrj1zcKXIbBFvaZ2jNi2JT7Vej/M1rbI/bfnBBEoHI 5tGg== X-Gm-Message-State: AFqh2kqhjR99f42PBOwEdPUgJQOwngq/OVUGlcfhd5dPiil5lNhgOo14 Sc0xcZU0Zc72q/O0xeSFKuc= X-Google-Smtp-Source: AMrXdXsf4SVRTT/ubc3h7M/MP255AO6thHeBSiOMtH0zWpbDTLmZcqnmOpTG2PC1+frJKV42uTpzSg== X-Received: by 2002:a05:6a21:3a48:b0:ad:4be8:5984 with SMTP id zu8-20020a056a213a4800b000ad4be85984mr21508452pzb.27.1674323872673; Sat, 21 Jan 2023 09:57:52 -0800 (PST) Received: from localhost.localdomain ([45.112.3.15]) by smtp.gmail.com with ESMTPSA id r3-20020a632b03000000b00478e14e6e76sm24857374pgr.32.2023.01.21.09.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 09:57:52 -0800 (PST) From: Anand Moon To: Catalin Marinas , Will Deacon Cc: linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , Neil Armstrong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 9/9] arm64: defconfig: Enable USB onboard HUB driver Date: Sat, 21 Jan 2023 17:56:37 +0000 Message-Id: <20230121175639.12818-10-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121175639.12818-1-linux.amoon@gmail.com> References: <20230121175639.12818-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230121_095753_049773_F1819977 X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Enable the USB onboard HUB driver, used on Amlogic boards. Reviewed-by: Neil Armstrong Signed-off-by: Anand Moon --- v3: add rev Neil 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