Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp449683rdb; Mon, 18 Sep 2023 23:27:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpdheoeK6JK+QFcyBBWESM4QTzGjxSeDlQ5P7lY8D7po5fxPJVGHviuXsHyEG1iDJvcxpd X-Received: by 2002:a05:6a21:3b48:b0:155:bff3:ea1a with SMTP id zy8-20020a056a213b4800b00155bff3ea1amr13196175pzb.33.1695104859492; Mon, 18 Sep 2023 23:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695104859; cv=none; d=google.com; s=arc-20160816; b=mDegnQ4OGd5l2btHTOeVzfLH5LaxCrJspS7MBaej33+Rhd4hVUoHTYCrgKsihalBaZ VjaGcKmdCOkNtTubrNnh9ApCpJebSytq30BAgG4FZAk6IY8VkqvaKfyCFHyq2llasNu9 x9YM+PfDSAx3U/1Us92sgjYCZfgoHZqkyCuH9PzSUNNOzhbK/nZKYRZaKIFBb0aO9R5q Zrc/1CL+vCF6qIIqoCYEubMwN9+VqkavFmsE5BazBJ/ZQpp3MFldfVAbpO703opZ8Xsj M0q2T8IY6TesAT2dZ+AunBdgvZQswP11kTkMnlJtqoHllpGXXC7sArQqkj6poT3K2/IU ofeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=glQJiHiiQFXDprtTfi+FevimcPzsz0WU/CYVveuM5As=; fh=qBoPZlJKgYdLrB2k+hd3cAibnlOF7Qv8FdXXnsBpETY=; b=Bq3POCkCWNn3xU8Pvg4LfRpVB74hyZKa/uMqO5rIwFVB2NjP8NOG/tTEWlpOT+/vmE 1jz4FZOYmyiSO8m4DjSkZOZIJ/Vd4it8ZNz5V+tN10D/I6MsiE8Z7GmxHFGriYu2kW/9 hfDvIrTwswQCFWf1SzlhqzRraW3vPOV+AeoBxMsCUiFdRwDrQepQZWVX5cUdjctxCB9v K9hpJXj5KYjDiwPSGXxkX1VF+RrskynNqYFxgRnGISIhRdxfQfhkOYG8d/3wLEUMcNHH 9Ovr0ev78qtrCDZy1g9EamFeH+hrDCN+Xac238S4MhHfsocvr5ha2m6moMhT6avzxmCd 7afQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eNJnhKmZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x33-20020a056a000be100b00690c23d353asi749133pfu.217.2023.09.18.23.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 23:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eNJnhKmZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4180380A5B7A; Mon, 18 Sep 2023 22:15:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231225AbjISFPP (ORCPT + 99 others); Tue, 19 Sep 2023 01:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbjISFPN (ORCPT ); Tue, 19 Sep 2023 01:15:13 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3D89FC; Mon, 18 Sep 2023 22:15:06 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2c008d8fd07so29866041fa.1; Mon, 18 Sep 2023 22:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695100505; x=1695705305; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=glQJiHiiQFXDprtTfi+FevimcPzsz0WU/CYVveuM5As=; b=eNJnhKmZrhYI+2FiPeDiPL2E/7kH82Nz4L55V8tbrtMePl+AzzX8hpufRVqsizFEy0 vRTEQnlkrYBdBsQer3j92+i0gyVr5s++SqamVGgkXMN92yiciLncR+0eA80yipzT4tEE fGHNuP7wW2h9uBrbDDMXLh5VvJmfaTxNuD8esqQfw5itzVnKwrxBrp6vGNIn8BznlBe9 7JFiC+2jJ4ssAP28m8ZuGJ/ZlhToswY5dYtHuE+6kUpmb+CsJWIddVdm3qhKuFSqwPOp 95SCMiV64IWq87Io9q2ldyC+uUrG3G2mm4AxM9zEVqNNutSPzas/oCfQDcOTg5oD3i48 dgwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695100505; x=1695705305; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=glQJiHiiQFXDprtTfi+FevimcPzsz0WU/CYVveuM5As=; b=di+S47E86abRaIFOG++2toBB8IeecPV1OKAg81RdpelOC3pX6aTbJfKsc/xwPvdi0+ wmVwRAKuBwn0VCeq4Pxj3tAV8qBiVT4GxIR32UGXjjtz8lmLG8OzbknK5mt+wa7JEQTK moiRI56Z+hZqdaxEaCj0fN1RiT3YKhg+pNRIdExJJQjfL5XMuoi9GYmxR5ZVJZJj7Jzc vuuhKQyiaz246CFv2NGwz3KzHoGWTCB+W+5Z9RpI/b8Is3eZIjbTZiUlNATc9I4AR3wl TiK677oDV2Tg+5rnWwNHcpZO6MZPugcbSvL/F12YD5kOqi0mfggpbSoL67A9/0aB4Wpq ngDQ== X-Gm-Message-State: AOJu0YwNpoPNHQNsz0c59gLLD85NaEanlT+R0+S4b+9QWZqRyRH4FD+b fVTRY6A3h73QAOpcCuUJBGAlWeAQ9MjyyOFH6ISLVLYsz5M= X-Received: by 2002:a2e:9791:0:b0:2bd:1cd0:603f with SMTP id y17-20020a2e9791000000b002bd1cd0603fmr8591041lji.45.1695100504861; Mon, 18 Sep 2023 22:15:04 -0700 (PDT) MIME-Version: 1.0 References: <20230918165958.2659-1-tmaimon77@gmail.com> <20230918165958.2659-2-tmaimon77@gmail.com> In-Reply-To: From: Tomer Maimon Date: Tue, 19 Sep 2023 08:14:53 +0300 Message-ID: Subject: Re: [PATCH v1 1/2] dt-binding: usb: ci-hdrc-usb2: document Nuvoton NPCM supprt To: Krzysztof Kozlowski Cc: peter.chen@kernel.org, gregkh@linuxfoundation.org, robh+dt@kernel.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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 22:15:17 -0700 (PDT) Hi Krzysztof Thanks for you comment On Mon, 18 Sept 2023 at 23:18, Krzysztof Kozlowski wrote: > > On 18/09/2023 18:59, Tomer Maimon wrote: > > Nuvoton NPCM BMC SoCs use ChipIdea silicon IP for the USB device controller. > > > > Signed-off-by: Tomer Maimon > > Please use subject prefixes matching the subsystem. You can get them for > example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory > your patch is touching. It's dt-bindings. O.K. Thanks > > > > --- > > .../devicetree/bindings/usb/ci-hdrc-usb2.yaml | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml > > index 1394557517b1..9de4dfe004d1 100644 > > --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml > > +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml > > @@ -16,6 +16,7 @@ properties: > > - enum: > > - chipidea,usb2 > > - lsi,zevio-usb > > + - nuvoton,npcm-udc > > You need SoC specific compatible. O.K. Thanks, > > > - 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? > > > Best regards, > Krzysztof > Best regards, Tomer