Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp771387rdb; Tue, 19 Sep 2023 09:37:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEqB4RzZeyitxM2AG703RFrdEhNcCCHD4d4AF34S4y94gbir2FxFBpCB7k6kbe0nLOSENv X-Received: by 2002:a17:90b:711:b0:274:df41:c071 with SMTP id s17-20020a17090b071100b00274df41c071mr242971pjz.19.1695141431777; Tue, 19 Sep 2023 09:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695141431; cv=none; d=google.com; s=arc-20160816; b=GdEKSyMM2U5bISDeGdSniIiePmhlBcQZbui2opjgTkERuEU3lgip2CjCSXb7iXX/FY zGV4KSLm6sDmrs4/pEQZ8Hv+xVtjRrIP0fUr1nbIw4JQH41W9x92UJODaKP6RBHkeGn0 OsFURhM52+1dEJlcco9ePq3ZqyOH939lWztLNQcRthaFEkQGUcoWbxI/Q0u0fJRqf7Q9 wVB+QTTmWcUSS0MiViTtgmOM5ReBSAMBecbb+NBvYPSD9JcZ9R3yV7tkRAUmSYnutHOQ GsRqkh45a+3HEDcSG4xxFHnhZlBbK//ZwpXTpNo1qrdRUvZ7sAabZbVZj6uIflMLYySH xGBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Bs5CuFl+1xVSMYLQOycZ/OawaMPCNKmfC4PNu6AnRic=; fh=MMrVJUH3upGqSQqPWWhu8OG2rR6ptt7VF8qlxB+Mb/k=; b=oY2t/E5P86uN8bqG4a2xyJ/tHCOIcLTciOMaDJNa31Kk+gluExI0muTQaWEukSHMm2 YK0F1fDQTXpNMOMEZtGZZRvQEoFLVThLwEMrakTWijRtAVLMFrfYBszb+Nih9sN8yY9U 7u6ZIry871q8HX2iYbLt+IBDj9rhBPNNPV4ey8anuVZ+iVantSbOIOClSkV76WLRtJEY pM27H5TADQm4pvfM0QCYhURpeiXRWT8Xz4J2j1++wZFwNpeO4DEoJq1mHysepVkmPyKb 11HV15Yj1bdaWveNBF5CKcfwzy6/9ibg7CFQV0q0uzibYgRujoIomm29ZWEa5NpAMkGM mF0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WImvJ0PN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id mu18-20020a17090b389200b0025bdaaf0d17si10645235pjb.33.2023.09.19.09.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 09:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WImvJ0PN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CFA508292A7E; Tue, 19 Sep 2023 09:28:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231320AbjISQ2x (ORCPT + 99 others); Tue, 19 Sep 2023 12:28:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjISQ2v (ORCPT ); Tue, 19 Sep 2023 12:28:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53402BE for ; Tue, 19 Sep 2023 09:28:46 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BBAFC433C8; Tue, 19 Sep 2023 16:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695140926; bh=Gs2VeKYvanEmhRbfroqQm1XNSDENhOjKx9E77X+qzDw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WImvJ0PNoZteN42w7al/gnnH+lwAzvx7thtk8cjvknG2YkrhW/o+QsmNUwQER6jrS 8DlDdEMHAA7qTT3YAMwRH6UU96mUJBfl5CDSI+k8dgNNiBqAcqx7aOOSHLiq1iXCfq /pWeAq4E2YoLuxbB5c7bVdaIWj/hYqy7jRwC5/1rtgdIxnJFcRi/azKy5vfkbGRAEO vXlV24Sf4DcR7UoJH0/TysoI69PK9k+u7pdgH1OYtI4juxuEBjTlRU7JzfRnfNpsYC MnM6VYFzy0BGBSZ36Tz/EI54ujxh/LQUitvrn3MI/rzsvsxkyX1vva9i9uaf0OhA/f R0wBWR4b07glA== Received: (nullmailer pid 4059576 invoked by uid 1000); Tue, 19 Sep 2023 16:28:37 -0000 Date: Tue, 19 Sep 2023 11:28:37 -0500 From: Rob Herring To: Tomer Maimon Cc: Krzysztof Kozlowski , peter.chen@kernel.org, gregkh@linuxfoundation.org, krzysztof.kozlowski+dt@linaro.org, xu.yang_2@nxp.com, peng.fan@nxp.com, avifishman70@gmail.com, tali.perry1@gmail.com, joel@jms.id.au, venture@google.com, yuenn@google.com, benjaminfair@google.com, j.neuschaefer@gmx.net, openbmc@lists.ozlabs.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v1 1/2] dt-binding: usb: ci-hdrc-usb2: document Nuvoton NPCM supprt Message-ID: <20230919162837.GA4051010-robh@kernel.org> References: <20230918165958.2659-1-tmaimon77@gmail.com> <20230918165958.2659-2-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 19 Sep 2023 09:28:54 -0700 (PDT) On Tue, Sep 19, 2023 at 04:31:56PM +0300, Tomer Maimon wrote: > On Tue, 19 Sept 2023 at 15:39, Krzysztof Kozlowski > wrote: > > > > On 19/09/2023 07:14, Tomer Maimon wrote: > > >>> - nvidia,tegra20-ehci > > >>> - nvidia,tegra20-udc > > >>> - nvidia,tegra30-ehci > > >>> @@ -325,6 +326,20 @@ properties: > > >>> type: boolean > > >>> deprecated: true > > >>> > > >>> + nuvoton,sysgcr: > > >>> + $ref: /schemas/types.yaml#/definitions/phandle-array > > >>> + items: > > >>> + - items: > > >>> + - description: phandle to syscon that configures usb phy mux. > > >>> + - description: offset of usb phy mux selection. > > >>> + - description: mask usb phy mux selection. > > >>> + - description: value usb phy mux selection. > > >>> + description: > > >>> + A phandle to syscon with three arguments that configure usb phy mux. > > >>> + The argument one is the offset of usb phy mux selection, the argument two > > >>> + is the mask usb phy mux selection, the argument three is the mask usb phy > > >>> + mux selection. > > >> > > >> Sorry, you miss phy driver. Don't use syscon instead of proper hardware > > >> devices. > > > Sorry the role of nuvoton,sysgcr property is to handle a mux between > > > the different devices and not the handle the phy itself, handle the > > > mux done in the GCR. > > > Should we move the nuvoton,sysgcr description to another place in the > > > ci-hdrc-usb2.yaml > > > or > > > Should we use a different driver to handle the mux and call it from > > > the ci-hdrc-npcm driver, If yes which driver should we use? > > > > What is an "usb phy mux"? > We have USB phy that could be connected to USB host (different driver) > or it can be connected to the UDC driver(ChipIdea) Isn't that just role switching? There is a driver framework for that in drivers/usb/roles/. Though it doesn't seem widely used yet. Rob