Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4355024rwb; Sat, 21 Jan 2023 10:09:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXvsrKwa/dpaDNHPdOJYRVfXanMQEgZm8yrvAQ8P4LzAk89KRKdOS6oozANU0B9dHFR/725C X-Received: by 2002:a05:6402:449a:b0:49e:210a:65f3 with SMTP id er26-20020a056402449a00b0049e210a65f3mr20151113edb.0.1674324588699; Sat, 21 Jan 2023 10:09:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674324588; cv=none; d=google.com; s=arc-20160816; b=oLLX7jxOg3ufwZ7ugAOchScKvY4se72xZ7wMM/iTrgBxJ1J5WEu1+1u5SQ4SMWpqym k/7VHHuYbxE1C9BcSw+eQYSoG6XX/X7m18hC5Hi4oHdasYfqyTG83pJbbiivp2IZzsGb F3dY4ZTc2YpcgJC6LXsMmnwSSp5ETzsPuHwYt3RMTidxMuAo45ntGqgLA61qci74Hz+z qmvS6uYPUqxTlYoNdQL/xHnD5E7E6daf1gN0xmCBPSkOFvaYB1yd9Z1pB2mCS22/IkdF 6uxGxROmeWRwM0ro4Yzml1HirGm8iDFO+5Qh9iPJGnFG6f8OahhN6rIPuE04weZJB0X3 jPlg== 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=YeFLuKFYHtqMsL9Q04zNeAzUIoUCJnJf6k6CUesWfq4=; b=drY+YYoGEmQJaMSe96zISToKhr8OBxuqZN/9IkeMxHwS1ivbRm9vsvtmE30DbYKQ6r nILMxrajrdwBrkqhi1SIgCgqKWgsF9U0iOcdhwTpGvkr5GRD6C4Rs7fUbKbV+3AfeYH1 itzHzmHiBdkfa/jZPVv75UjzwW89AMm6YioKubChd7g5AXmlCFN0UszlMOeisq6sLzlT d7FzHlwkWqhpgcwQwkM9oqa/v6U/D1aQIGdgb3QXGRIcfBjY3jUbR+F5AbT5paFgBf+X liY0Yiwf00VyOnF2TiQVhzgRV0paMS0W6SrRagUjvR/2DMCyOIpB+l/zpfUn0MGMJR+p y44Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pDY7lwMY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a0564020e0b00b0049cb1901e8fsi26646489edh.561.2023.01.21.10.09.35; Sat, 21 Jan 2023 10:09:48 -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=pDY7lwMY; 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 S229912AbjAUR5W (ORCPT + 50 others); Sat, 21 Jan 2023 12:57:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjAUR5V (ORCPT ); Sat, 21 Jan 2023 12:57:21 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C28B52685B; Sat, 21 Jan 2023 09:57:14 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id v6-20020a17090ad58600b00229eec90a7fso3789318pju.0; 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=ArJZNHsUiQZ+fPckPel/K9w7lpytJczckS/CdFTu/Y/OLli+XFj6gNFEvRqWSmfuJv 5EQZXDhzYZz+Ebb/C44Iq+0zNdhHcto2XN/yP1KW2Mq2WbmQJ/ZT/6QzCH6RFhFTeMoV Y1KwTVobr7PyiMetoefM0hLQDuUlUiiepAycIzOSgnTJOgfsSJ1TMGl1TehDdbiGUIdw uCiYlxmQLp7RssZyC5aANB1NLkxteJnrJ+A3AbVcEjXfPhsi0bSp+WhO3LdxSxO2IZJa XJ+oqGIF8HHxm0SCwYqqqca3L2/oxJDyX6pNf+gN+vLyhug2yOCPmR4Nb6uuBHhb2aZS D+uA== X-Gm-Message-State: AFqh2kq3sTCqtOAxJYUBtMRWIxg6JDa9F8o2q55JMvFWcPlcDquYI/mV qjvaMd5OR3HLSyScjHOqWiE= 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 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>; + }; }; -- 2.38.1