From mboxrd@z Thu Jan 1 00:00:00 1970 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 A1134EE49AD for ; Sat, 19 Aug 2023 08:36: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:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wK2YgfjTdXMgOdoU3nvdeWDQ+kGQOSUUArR71xHT5QQ=; b=jEiEdAHmI9FUVI SA35ZMkvF6tTdvceY31c83DRiFIqE0IlFjOyNvFmAfmdILb3GIh91AqQjS3IuJ6ZpyHfHQa3AyW+c DqJG0ZvASTHeW4ZqdizQOvbaGj+u+HF2fszF0t611LJgRENnyk1CQN9wv70arFrcV+lqkobbZwh8z eTC2FVO8RIYttOeoy9IdCPjmEZZtPiMlabOOKM1RXfjPH4nclAduNlo392Y47dB0oXC+F7V8suSB6 bRxGRJqJQ7DokyEfqJtGaJHWE+YvQvw5xlT07G6ZAE3ZVHoSSCw78uHU2xKFjNk6Vip0Lqh3vYa6D p2ZR/fWcyktt0yYVBhuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qXHRS-00AaE1-0g; Sat, 19 Aug 2023 08:36:18 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qXHRP-00AaDC-0y for linux-arm-kernel@lists.infradead.org; Sat, 19 Aug 2023 08:36:16 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99bf91956cdso199452366b.3 for ; Sat, 19 Aug 2023 01:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692434173; x=1693038973; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BDBtWmYqzi/9lap98sdHnoiAOUS5fWqLSgUpQ5yHcg8=; b=V+9qdLiaFCVpY1Tkm+g3WJCnO8uHFCMIGwQrtu3UbD/XWMAsOhz0XSUdYqsC9f3xSE qLC4uFsqBGXKf/cLmfRoLDBqXoQ5awd0UZc4+YyYGFvj8ce6fD69eRijb4NmqXPmK3mz vgWA6Fsv4Qr1M83ci+w1hbCaDBeN+lcxxZ+u6hUXrLDgCIqKWchmy/ofXBjPtPbvJb9t jKwzsf3PRcK6zMTAF5newTIktNR9RHokbZLYjDoMai0U1GFa/oNyhApEhjuBvU/VSqM5 3f7J6iHvizfaI2a7fBkxYlWR1v9Xamid89TTJuFX+Z1ptW9IWUE4hmEZb9SXR3smKB4w Rh7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692434173; x=1693038973; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BDBtWmYqzi/9lap98sdHnoiAOUS5fWqLSgUpQ5yHcg8=; b=U5jWu53TAU0B8PjVi5R3ASpb0pTCi4UgTG3LpTgjvinfVLEwDKGNtEnh+EQFoD7zWe XHIPMjG91+kmh0BIWuwsjskAbU9mnXgzwVpA77b/xfafN+gqLY+41IjNnLUrPrH+IDK8 gz/AuvaL6aBDg5zoIfniGyAY/tAHSFsA2MCfkkn5nr84tZ1m8tw4r7nt20cO3gPVoCM1 FsjPGB+8UnmGfusWax09M9NHRW5olj6O0aMFMCh3QAcN8TcNoMrQLHRZRZ1s/8QstO6K dxAlq4PLpKqPgVG1RD3fSFu17WEQE0+WIPzU9yti8R0rdRBbfadYH6VO4Uhhej2aup8n y0bQ== X-Gm-Message-State: AOJu0YyzCNqEb/mSImG6IQuwTLnQKipNp6GlevkS9vzCAuVCDJxZH3BT qTZYKixXlr3VY0RebCkAUrfxWzWOgku4BypXGFg= X-Google-Smtp-Source: AGHT+IG9aSDFMBTYcEsiQxovHMkUD1SuVY1yIm8Qi0ivlYlrZ6iAac9z2z70JTra3Ik1+KkdydzjMw== X-Received: by 2002:a17:906:ef90:b0:99b:f3f3:e412 with SMTP id ze16-20020a170906ef9000b0099bf3f3e412mr936414ejb.52.1692434172926; Sat, 19 Aug 2023 01:36:12 -0700 (PDT) Received: from [192.168.0.22] ([77.252.47.198]) by smtp.gmail.com with ESMTPSA id c6-20020a170906170600b0099e05fb8f95sm2319361eje.137.2023.08.19.01.36.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Aug 2023 01:36:12 -0700 (PDT) Message-ID: Date: Sat, 19 Aug 2023 10:36:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH 8/8] arm64: dts: exynos: Enable USB support on E850-96 board Content-Language: en-US To: Sam Protsenko , Rob Herring , Thinh Nguyen Cc: JaeHun Jung , Marek Szyprowski , Sylwester Nawrocki , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Greg Kroah-Hartman , Alim Akhtar , Marc Kleine-Budde , Heiko Stuebner , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org References: <20230819031731.22618-1-semen.protsenko@linaro.org> <20230819031731.22618-9-semen.protsenko@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <20230819031731.22618-9-semen.protsenko@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230819_013615_338134_DC5E7C0B X-CRM114-Status: GOOD ( 22.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 19/08/2023 05:17, Sam Protsenko wrote: > The E850-96 board has a micro-USB socket and two USB 2.0 host sockets. > The USB role (host or peripheral) is selected automatically depending on > micro-USB cable attachment state: > - micro-USB cable is attached: USB device role > - micro-USB cable is detached: USB host role > > USB can't act simultaneously as a device and a host, because Exynos850 > SoC has only one USB controller and there are no external USB > controllers on the E850-96 board. So the USB switch chip (specifically > TS3USB221A) connects SoC USB lines either to micro-USB connector or to > USB hub chip (LAN9514), w.r.t. micro-USB cable attachment state. > > When USB works in the host role, Ethernet capability becomes available > too, as LAN9514 chip (providing USB hub) also enables Ethernet PHY and > Ethernet MAC. > > Dynamic role switching is done in gpio-usb-b-connector, using current > micro-USB VBUS line level as a trigger: > - VBUS=high: SoC USB lines are wired to micro-USB socket > - VBUS=low: SoC USB lines are wired to USB hub chip > > In order to make USB host functional when the board is booted with > micro-USB cable disconnected, role-switch-default-mode = "host" is used. > > One can look at E850-96 board schematics [1] to figure out how exactly > all related USB hardware connections and lines reflect into > corresponding device tree definitions. > > As PMIC regulators are not implemented yet, we rely on USB LDOs being > already enabled in the bootloader, and a dummy regulator is provided to > "usbdrd" vdd nodes for now. > > [1] https://www.96boards.org/documentation/consumer/e850-96b/hardware-docs/ > > Signed-off-by: Sam Protsenko > --- > .../boot/dts/exynos/exynos850-e850-96.dts | 58 +++++++++++++++++++ > 1 file changed, 58 insertions(+) > This looks good. Please split the DTS patches from the patchset, so they won't be applied by Greg. Anyway, I finished pulling for this cycle, so this will have to wait till v6.6-rc1. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel