From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B69534D398 for ; Thu, 21 May 2026 08:22:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779351753; cv=none; b=JrFHIbe44GItnxcy2CpKQKa1Q6JwZzj+XjNMNE76LnPxhEZj4ZCCsFPFBkAsc5QK1t0jOaljMLnwkNPotFvRSg8N6HfBTsbza1BMpbjFoWAldU12N6uokjlaUGBpJYluKXg+HZpGFa3AMwqzJQOa4cUjHlllImK+OE11PpiSwrg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779351753; c=relaxed/simple; bh=2U4Iz+y/ftIEQD2G9GHkxV5IQLWcE2W5F9DA9bvujfE=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=m3GzOKJKR/JLmDzsOvtMN7fUH/1rwksv2mAVxn/5S0Kf7sbAboonuwUwQnAZ+b5JRdfFPVRlwwE9r67Nke7EOJYzUuzB7shyV/ur6wVY4hbjieeBrjlGLm0jqPYS0/78aH3Cir3evW2zFhKl0Sg3DIRgRT52CChy53jz7BeNCl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Y1RPX4Tr; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Y1RPX4Tr" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-490229aa522so23986645e9.3 for ; Thu, 21 May 2026 01:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779351751; x=1779956551; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=iCcyB5LFRmVcSIROxmyKJG5EejU8FPAzcsI/5iDjdGU=; b=Y1RPX4TrHsw4GfhL/hlzBc7o0EBKZ404MMtMm9nl9sKh2faf3YcHRDm5/fXHxjSYvA ORz13F6JG1EraOGiT/j3w89DwyrifOeytE2R2aHu4JMHRzbGtmLAm6Ql4nkI2ZVD9hOy WPMoiqbRqlmT2D4vP/z0PpAgH/6zOS00Clg5N8D7f1ISkR2DHeth9KRS9yjU/NFmFC8T xfY293wXAVSvGX73fkj+UHxQ9Zjsz+Vc9++YiAkcB3xx/CX5B8/WC5cdRq5syopbcRh/ ggYm+v6uy+DDsNu1wwRopoIdyY3AnbDIJPHubn9aD7PAnkdkE4tZV+D8Jpst0DyyTBF6 CA2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779351751; x=1779956551; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iCcyB5LFRmVcSIROxmyKJG5EejU8FPAzcsI/5iDjdGU=; b=W7G6HWnJT5g6lLa42xonVyHTkZVeucHZUKtojLUCTlzCn4MYWbQwh7n2q9GLgMVCT2 Wac5Nqwzpa2DucViG5hTvNcarr3Bh8YTb8g3zWRFYhvDqxLrzch/O9ilY9d48V9lK2JX LuhIPA5ztAnLVT5To2FFwiSp14XDUXNmyAxE+YntxvmoxC1L5w72+TlGLk8id0Jgcf0U Iu9CK3Fybc9QMFSPgRX8IXrT+WPxL10eFiDLBEbJ4bPAJerZcsvkKeqrVOHp/bhypm6v rTY6fW0YLxwFiYp7dGbz7ArRcp0E32O/znExjjl9wRvJHqISYqVlMS5o6L9NzoMgkazD YWqw== X-Forwarded-Encrypted: i=1; AFNElJ8AWM27IW0Mgbf5j4ZA55INOdHHo0QmLl7QRwooFhfqJSy5jR3alWyM2BFZ/k/gY0uAc76wz3cMLYmD0Rs=@vger.kernel.org X-Gm-Message-State: AOJu0Yw2daqaZhX4T/7r4PYDmidv5LeCeFzdoC7h+B1w1F/4nxKa49E2 A7yjXhnQlQwb5qsriih0RhFeJv/5SaeNz3drU9V46C81Q1PzpoZg5fCg X-Gm-Gg: Acq92OHYLqkvvkXD0okiuHy63AaDUsFKlL76lYV0Fv3ad5zU1PF6HC3/8B8aaksuRqn xN/7W6mXX1IUekIx2zYIVB3jRe2tG/MBgUHLZFzyeGVNF0DeRHqjSw9VGGe1sR4n5Y8eSSQrAoo 1VAlGQgWC96FThMuUXYCUYuF8jVSDLJjaNdJKAF/C+rkrVCsyJ83S0ud6/pZZVZFdYW/ojE+lGj 2MlmKWpMucTp7WRrijFHcLHbu1WD9Y9O7CWqgrzTXXJhJcUcQ+RXSR3ZKJHUfaQ+GRQxiqIfTLt h7301ETHuf9yWD3awwyThhpLxEcWVCMSieQB86fiI0alivePm1nazPYIKXgHuBt0aP4dFNo1+zq IU7lM3L6ET3EgzGrvc2p9wN6I+/KWxKUkVfc5oGp9U93tRIPpW9zktJ60vTbKQty7QVbU5YUZ5U eLJDiB91YedkAYk8agooawEEtYfvNSANLiIYOkAlo7/tTadHFpkFlf2+h/u3jGQgBReTCeuThn X-Received: by 2002:a05:600c:858c:b0:490:778:4fec with SMTP id 5b1f17b1804b1-490360f28f7mr17896195e9.33.1779351750348; Thu, 21 May 2026 01:22:30 -0700 (PDT) Received: from Ansuel-XPS. (host-79-22-5-99.retail.telecomitalia.it. [79.22.5.99]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4903caede9fsm9490145e9.14.2026.05.21.01.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2026 01:22:29 -0700 (PDT) Message-ID: <6a0ec0c5.16c38fd9.2b754a.4dc3@mx.google.com> X-Google-Original-Message-ID: Date: Thu, 21 May 2026 10:22:27 +0200 From: Christian Marangi To: Krzysztof Kozlowski Cc: Michael Turquette , Stephen Boyd , Brian Masney , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Neil Armstrong , Lorenzo Bianconi , Felix Fietkau , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org Subject: Re: [PATCH v8 2/5] dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY References: <20260520150912.11614-1-ansuelsmth@gmail.com> <20260520150912.11614-3-ansuelsmth@gmail.com> <20260521-ambrosial-abiding-lyrebird-9dc86f@quoll> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260521-ambrosial-abiding-lyrebird-9dc86f@quoll> On Thu, May 21, 2026 at 09:44:16AM +0200, Krzysztof Kozlowski wrote: > On Wed, May 20, 2026 at 05:09:07PM +0200, Christian Marangi wrote: > > Add documentation for Airoha AN7581 USB PHY that describe the USB PHY > > for the USB controller. > > > > Airoha AN7581 SoC support a maximum of 2 USB port. The USB 2.0 mode is > > always supported. The USB 3.0 mode is optional and depends on the Serdes > > mode currently configured on the system for the relevant USB port. > > > > To correctly calibrate, the USB 2.0 port require correct value in > > "airoha,usb2-monitor-clk-sel" property. Both the 2 USB 2.0 port permit > > selecting one of the 4 monitor clock for calibration (internal clock not > > exposed to the system) but each port have only one of the 4 actually > > connected in HW hence the correct value needs to be specified in DT > > based on board and the physical port. Normally it's monitor clock 1 for > > USB1 and monitor clock 2 for USB2. > > > > To correctly setup the Serdes mode attached to the USB 3.0 mode, a phys > > property is required with the phandle pointing to the correct Serdes port > > provided by the SCU node. > > > ^^^ here - required but: > I think I have to rephrase it. It's required if the USB3 is used/wanted. In the other case for the USB2 phy is not needed. I will bettet describe this in commit description and on the phys property description. > > + phys: > > + items: > > + - description: phandle to Serdes PHY > > + > > + '#phy-cells': > > + description: The cell contains the mode, PHY_TYPE_USB2 or PHY_TYPE_USB3, > > + as defined in dt-bindings/phy/phy.h. > > + const: 1 > > + > > +required: > > + - compatible > > + - reg > > + - airoha,usb2-monitor-clk-sel > > 'phys' is not required? I think you need it to configure the serdes > correctly, no? > > > + - '#phy-cells' > > + > > +additionalProperties: false > > Best regards, > Krzysztof > -- Ansuel