Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1214814lqh; Sun, 5 May 2024 23:52:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWOt3KerYaSuw58UoYGUKBUuHJwV/XT8GLCl5Rbkdv2eXG332sfemuo5si3dhvkjH+WA2ywafvLUTIvcxJCZW86Xm5RWM/ijg327w+8Qg== X-Google-Smtp-Source: AGHT+IElc1bXnNOJdQb/kOx546Mv7zIQ62G2pOMksc8rxVhK/0aPFMlZDtcQOAxFEEYOAqn8RGTZ X-Received: by 2002:a05:6830:1c5:b0:6f0:3e78:fd6 with SMTP id r5-20020a05683001c500b006f03e780fd6mr3942787ota.19.1714978341565; Sun, 05 May 2024 23:52:21 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a184-20020a6390c1000000b0062163fd465asi3838187pge.861.2024.05.05.23.52.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 23:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169380-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=NCdGmel1; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-169380-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169380-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 213F2B20DB3 for ; Mon, 6 May 2024 06:52:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB1D24F1FE; Mon, 6 May 2024 06:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NCdGmel1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D843C48CCD; Mon, 6 May 2024 06:52:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714978327; cv=none; b=JKsugWBkOerqjJjzNbGTRUM3leoP+MkAtJTpfe8VATKeDGLCJOoPFrXPaPQ4uu3WhfYTo62psL2G5h64aeZktYUXY+43ajU+3tcG1szZ7hJKh41dFSPqt/06H83p+R+AG9wUSfMxfAL2aOHR4nWB3ziIlaqYbLfFcRwEM9do5EM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714978327; c=relaxed/simple; bh=1ZhKwAWvTu3BzHh+sFnAF1FQ9HqLl02B0Htl61RT1WA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=X3wha62VDH9GG1EMkLDG+ZSn9fXhGrj6kxr5zBS7T5W0+Q4/m0F9tXi0dU41nxKg9nkzBrSQymLqOUbq03aO2Bq+piJvO2CoOd3H/zX25M6z5URSy1+efbp2hRnVlWLeQbv7+Q4hFC6SHnlea8QsuQXQ+rqanvBDJcUNkCd1Y/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NCdGmel1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6151C116B1; Mon, 6 May 2024 06:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714978327; bh=1ZhKwAWvTu3BzHh+sFnAF1FQ9HqLl02B0Htl61RT1WA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NCdGmel1x/0a4A0vaDonkZp9/U54feWgk9HmNJpbuHX54Y3wZLE+7xFPvHQTV3vRV ClGwGoyEzXQossdNomxeXzMBBvmoJVWXkNMQ8A2788LMfZGpEr7bQxBHHOctyY6hfo WXGIXk9O8AUMWqh1QWaebPM1+gGxrMByvqeZXrh/q0QwuQ7Imtw0aPRdgZaG98ofRl DD4K2EETIpqBkFaYxz1gXo5a16yNnNCZyg9OKm9Plt+67zB2zBMDxjJYbRqvOdn9xy bHN5HkS19/nI9wroms8IowQil7q92n1M1L0IHPXwbKilPyhrOpRiB2FLGz3neLIm/5 S6Z5oPeWj29+Q== Message-ID: <595f76bf-5e89-4027-87e5-ff316c699669@kernel.org> Date: Mon, 6 May 2024 08:51:59 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] dt-bindings: phy: Add Sophgo CV1800 USB phy To: Inochi Amaoto , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI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96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/05/2024 03:52, Inochi Amaoto wrote: > The USB phy of Sophgo CV18XX series SoC needs to sense a pin called > "VBUS_DET" to get the right operation mode. If this pin is not > connected, it only supports setting the mode manually. > > Add USB phy bindings for Sophgo CV18XX/SG200X series SoC. .. > + > + clock-names: > + items: > + - const: phy > + - const: app > + - const: stb > + - const: lpm > + > + vbus_det-gpios: No underscores. > + description: GPIO to the USB OTG VBUS detect pin. This should not be > + defined if vbus_det pin and switch pin are connected, which may > + break the VBUS detection. Why is this property of the PHY? VBUS pin goes to the connector, doesn't it? It looks like you combined two or three (!!!) bindings into one. > + maxItems: 1 > + > + sophgo,switch-gpios: > + description: GPIO array for the phy to control connected switch. For Switch? This is a binding of the phy, not switch... > + host mode, the driver will set these GPIOs to low one by one. For Yeah, you mention driver which further confirms this is a property for driver, not hardware. Describe your hardware, not driver behavior. > + device mode, the driver will set these GPIOs to high in reverse > + order. For a reference design, see item description. > + minItems: 1 > + items: > + - description: USB switch operation mode > + - description: USB switch host power control > + > +required: > + - compatible > + - "#phy-cells" > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + phy@48 { > + compatible = "sophgo,cv1800-usb-phy"; > + reg = <0x48 0x4>; > + #phy-cells = <0>; > + clocks = <&clk 92>, <&clk 93>, > + <&clk 94>, <&clk 95>; > + clock-names = "phy", "app", "stb", "lpm"; Make the example complete. Best regards, Krzysztof