From patchwork Fri Jan 10 12:39:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andras Szemzo X-Patchwork-Id: 13934585 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 360FFE7719C for ; Fri, 10 Jan 2025 13:11:12 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6h0acd0xVSPRON8i+Df9o27KQB8McJQj75zQupOSQjY=; b=tjEA9YXSqjjss+ Sj/KlVUUEvNs5xVTwTR2e0WdKE4OtkAp7lMG8wNQaoyccb/E3Cc0SYZlL+4E36t3PTFrItvTvqRGa cVpC6uRs7Z9ua9Cbu8TitdFgQdMXTY1bTg/YngvxNZTNJX3i0pi3DlrqidcVna2wqu+s505K/+01p nBNEvremhTAXWDTcdR/QsXCtOyOT91uJQKlLWgg1h4dq2XJUegvVxXcAcqNh9J5aXwWqVU7VToCuF +vnaD4m4VZxOu9qBrskENKDkrZdWQzcv3RZaE492HpAmcYgzAIJ5PsQqP0vdDCNq5/wM9Y0LYqMLj f6SIFZSz0yYqhR7BSrsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tWEn6-0000000FQ4w-0TLI; Fri, 10 Jan 2025 13:11:08 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tWEIs-0000000FJHD-3aSn; Fri, 10 Jan 2025 12:39:56 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-43635796b48so13065385e9.0; Fri, 10 Jan 2025 04:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736512793; x=1737117593; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iZ8T9tfgTsZH3qi3WJce9KzBqzpoMJY1MEAfLWSlohI=; b=ApeXjL9veFFMifM3ADlQlbxRZWi46/cwNU2CLqL2NuXXDDIbPoZ4mb94ivIKcWasTv C+JkdWthnYMpIKnJXgkagvPjIPo8qXLu1dhY09cS8kzRLcrQ3oWrKdWa6pa3ogTRGIin 0jVFN1VKOFIh+JW2KUQQRwKyFlflYT9XVnmQQ0INX/F1y6aJC0RAnGqzKXp48OVNg4su oU+vuP0w+xwzgQyN3xwlEoFjIGyfJ+1jA1/Vj6ud7tyRQtz3efIs49TYYJD/4L15/bn3 09jnFDGRfbAxTzk8IVJFJ4EP4v31w7DyGXIZWN/ah6ctkJlzCfEjQ8trwEHne00QH36w /HOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736512793; x=1737117593; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iZ8T9tfgTsZH3qi3WJce9KzBqzpoMJY1MEAfLWSlohI=; b=Ss9PU0cDJaGz2EQhPLAF8edavi4TCdzVI2UB7SMRWbvHQp2eocEd9szkjUb/WU/U7j pKwNLdLkCjIPahonnAhdd/sKUomzt8gYbXfavn0fvcXjf/7whHjUfNYRCKaGeh25KPIM a0IbS6OUbUmVwSC5bFnyLGW4ejH89wiV/zTU0XPLXjaSONEbrbGrHoU103Hu9MVoiigP LryX1q3lxhyjx9/wk/p4Wg9k68Odp8Y63G3sCSPGE4qsxl1PsiWvTM1InAe2DJe95Nn+ /O9dMiumxuUDcMOXikBteI4cyutrnqEqef+K/jIG480wSD6TF1V9JNAwzYOHzU9PucLI jrMQ== X-Forwarded-Encrypted: i=1; AJvYcCW9qMBMr5EToGZEbzWzvqkTSFR7mPyyjZhMVOZgli/+6RimijrCAMFuehJxmlQ3y8QsnMHVRW97rS+f@lists.infradead.org, AJvYcCWyEISVoB646LmHdkYrT+6ZipE2issv5EplRf+Q3Jh8+XQIM3GOfFO52N1MS6qh9CLTqafbR0fsWOYXe5KwJoGP@lists.infradead.org, AJvYcCXmUrQ8v86D0iEW3qDF4ag20wZJ2Mz4cpbIhe8rJiTv8YP+E7j3EWjHSASJ694IWsmHy/wRjMxSNgoMXWs=@lists.infradead.org X-Gm-Message-State: AOJu0YxzmiZ/vFmzBXwvyqHTe7S/7QDR4JGJh9JOEMdsKhO2zl/pf1hV tlkySz9U/RsRKcW6puW7nU3JkybEHEXL2ay3KC5SA4dfYtksUrFL X-Gm-Gg: ASbGncvEp/irU5Ybae+uhHEA0bBtQi7khPefcchuxnZuEVGT9HG+AWoP7h4nmovNNv0 a5krg6s0MTht/uurr7Y+Jc/3qD3/JRGvjltUnf2G3sQ0KUxZNf4unjUcKfl9EQjNJch1RkIAzn5 A+UxcNiaN17f5WaCqpUXA6q3tG7+jWzrBETSAb8arPOBclfzMfzutS9ppOUXePGqUzAzdXg+TU7 2W9eM+wDGANqIRLpvYATa/PrN4khFCL3krqW43ONTTcNrtpnJT4tfn5MOxbuDK5D9nYK6LjDFLi zQPrs2njfNc= X-Google-Smtp-Source: AGHT+IFy0YLTGe8F+nl8LnieqDiyiyRbcR5k0ayFI05mSwXqdMMGbUO+5rrLK2qTd/ypLoKxWRGH+Q== X-Received: by 2002:a05:600c:5028:b0:434:fa73:a906 with SMTP id 5b1f17b1804b1-436e9d6fe9emr53361615e9.4.1736512792992; Fri, 10 Jan 2025 04:39:52 -0800 (PST) Received: from localhost.localdomain (185.174.17.62.zt.hu. [185.174.17.62]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e2da6401sm86738715e9.2.2025.01.10.04.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2025 04:39:52 -0800 (PST) From: Andras Szemzo To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Linus Walleij , Philipp Zabel , Maxime Ripard Cc: Vinod Koul , Kishon Vijay Abraham I , Ulf Hansson , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Florian Fainelli , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-gpio@vger.kernel.org, linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 10/12] dt-bindings: phy: allwinner: add v853 usb phy Date: Fri, 10 Jan 2025 13:39:21 +0100 Message-Id: <20250110123923.270626-11-szemzo.andras@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250110123923.270626-1-szemzo.andras@gmail.com> References: <20250110123923.270626-1-szemzo.andras@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250110_043954_893265_D6482A43 X-CRM114-Status: GOOD ( 13.36 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Document Allwinner v853 USB phy. Signed-off-by: Andras Szemzo --- .../phy/allwinner,sun8i-v853-usb-phy.yaml | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/allwinner,sun8i-v853-usb-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun8i-v853-usb-phy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun8i-v853-usb-phy.yaml new file mode 100644 index 000000000000..773c3f476db8 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/allwinner,sun8i-v853-usb-phy.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/allwinner,sun8i-v853-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner V853 USB PHY + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +properties: + "#phy-cells": + const: 1 + + compatible: + const: + - allwinner,sun8i-v853-usb-phy + + reg: + items: + - description: PHY Control registers + - description: PHY PMU0 registers + + reg-names: + items: + - const: phy_ctrl + - const: pmu0 + + clocks: + maxItems: 1 + description: USB OHCI PHY bus clock + + clock-names: + const: usb0_phy + + resets: + maxItems: 1 + description: USB OHCI reset + + reset-names: + const: usb0_reset + + usb0_id_det-gpios: + maxItems: 1 + description: GPIO to the USB OTG ID pin + + usb0_vbus_det-gpios: + maxItems: 1 + description: GPIO to the USB OTG VBUS detect pin + + usb0_vbus_power-supply: + description: Power supply to detect the USB OTG VBUS + + usb0_vbus-supply: + description: Regulator controlling USB OTG VBUS + +required: + - "#phy-cells" + - compatible + - clocks + - clock-names + - reg + - reg-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usbphy: phy@4100400 { + #phy-cells = <1>; + compatible = "allwinner,sun8i-v853-usb-phy"; + reg = <0x4100400 0x100>, + <0x4101800 0x100>; + reg-names = "phy_ctrl", + "pmu0"; + clocks = <&ccu CLK_USB_OHCI>; + clock-names = "usb0_phy"; + resets = <&ccu RST_USB_PHY>; + reset-names = "usb0_reset"; + usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; + };