From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 16E043D5225; Mon, 30 Mar 2026 13:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878262; cv=none; b=XUqxSraRWHSuK2eQv+tuPU24yNJW3L3F9oUDqWRlaNj2Ou12qYFSg8FLu34fW4WhfDNFlIFC4Eify1JzejhgkVis8ft2o4BHlkjjJWPagGvLg8GBEyZEPMfMYlu6e3e6ixDQLO7ANoIIrjXtSp2jKqEFagyoNiSZWi5IAzLIzuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878262; c=relaxed/simple; bh=HT2S4uUtT8wmyqvtDS4yj7sOyV7xg6knc4XeDEpIpXo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dwOYCRgSk0jrxycJasKP3a7MlrAPsycTwephLgHG9+aOcHDU+YrXXDznEzorU/ldRpCkNjpbyV2QQ7i64UtrhK5b23Dm4FrhntWPzL/wcoktDlPvs++ZUyvFTFGRR/K974kojKchMzgQOe0RlM/RrJHvCPxTvUfnk2QAZR7+Xzk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=gCr0uHa8; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="gCr0uHa8" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 8C130C58776; Mon, 30 Mar 2026 13:44:48 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 719B65FFA8; Mon, 30 Mar 2026 13:44:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3AA9C104505CA; Mon, 30 Mar 2026 15:44:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878256; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Pffeqr9U3U/KN61RGqMyzqpdMr20pWUmvq0/A2SzNzw=; b=gCr0uHa8LygQz58KdCh9rNyILIAZlmrI7pEdI6c85incQ8UbokAVjrN7R2lH/yExAyxj0r 38fI+ErBrLx47U4YF6RXaqxEeLO9Au29rPYt9xgedfl9eGTDf+BcRALTbblLQqfS3U0/t7 XfGlMi1manbqgZig8v3haL+nf8hE0JxgsCVcn7u3keP/iaXJjytHr0ppeW2NvaP0KB3fpg 38IjjQstojOpRZguc9ya5VcQcw5RLSW/0+cGA42eIuvoevBG4gJjUxt2X/PjoVZjSzNVhz dJvIrIl4RxUQKUSquQVzZns/Sy5IYnRPn+75h0zUeb09Xmf22lZLkhNlfc3s7Q== From: Thomas Richard Date: Mon, 30 Mar 2026 15:43:58 +0200 Subject: [PATCH v2 01/11] dt-bindings: regulator: ti,pbias-regulator: Convert to DT schema 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-1-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Convert PBIAS internal regulator binding to DT schema. Signed-off-by: Thomas Richard --- .../bindings/regulator/pbias-regulator.txt | 32 ------ .../bindings/regulator/ti,pbias-regulator.yaml | 125 +++++++++++++++++= ++++ MAINTAINERS | 1 + 3 files changed, 126 insertions(+), 32 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/pbias-regulator.tx= t b/Documentation/devicetree/bindings/regulator/pbias-regulator.txt deleted file mode 100644 index acbcb452a69a..000000000000 --- a/Documentation/devicetree/bindings/regulator/pbias-regulator.txt +++ /dev/null @@ -1,32 +0,0 @@ -PBIAS internal regulator for SD card dual voltage i/o pads on OMAP SoCs. - -Required properties: -- compatible: - - should be "ti,pbias-dra7" for DRA7 - - should be "ti,pbias-omap2" for OMAP2 - - should be "ti,pbias-omap3" for OMAP3 - - should be "ti,pbias-omap4" for OMAP4 - - should be "ti,pbias-omap5" for OMAP5 - - "ti,pbias-omap" is deprecated -- reg: pbias register offset from syscon base and size of pbias register. -- syscon : phandle of the system control module -- regulator-name : should be - pbias_mmc_omap2430 for OMAP2430, OMAP3 SoCs - pbias_sim_omap3 for OMAP3 SoCs - pbias_mmc_omap4 for OMAP4 SoCs - pbias_mmc_omap5 for OMAP5 and DRA7 SoC - -Optional properties: -- Any optional property defined in bindings/regulator/regulator.txt - -Example: - - pbias_regulator: pbias_regulator { - compatible =3D "ti,pbias-omap"; - reg =3D <0 0x4>; - syscon =3D <&omap5_padconf_global>; - pbias_mmc_reg: pbias_mmc_omap5 { - regulator-name =3D "pbias_mmc_omap5"; - regulator-min-microvolt =3D <1800000>; - regulator-max-microvolt =3D <3000000>; - }; diff --git a/Documentation/devicetree/bindings/regulator/ti,pbias-regulator= .yaml b/Documentation/devicetree/bindings/regulator/ti,pbias-regulator.yaml new file mode 100644 index 000000000000..3e020d87701b --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/ti,pbias-regulator.yaml @@ -0,0 +1,125 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/ti,pbias-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PBIAS internal regulator + +maintainers: + - Thomas Richard + +description: | + PBIAS internal regulator for SD card dual voltage i/o pads on OMAP SoCs. + +properties: + compatible: + items: + - enum: + - ti,pbias-dra7 + - ti,pbias-omap2 + - ti,pbias-omap3 + - ti,pbias-omap4 + - ti,pbias-omap5 + - const: ti,pbias-omap + + reg: + maxItems: 1 + + syscon: + description: Phandle of the system control module + $ref: /schemas/types.yaml#/definitions/phandle + +patternProperties: + '^pbias_*': + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - syscon + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,pbias-omap2 + then: + patternProperties: + '^pbias_*': + properties: + regulator-name: + contains: + enum: + - pbias_mmc_omap2430 + + - if: + properties: + compatible: + contains: + enum: + - ti,pbias-omap3 + then: + patternProperties: + '^pbias_*': + properties: + regulator-name: + contains: + enum: + - pbias_mmc_omap2430 + - pbias_sim_omap3 + + - if: + properties: + compatible: + contains: + enum: + - ti,pbias-omap4 + then: + patternProperties: + '^pbias_*': + properties: + regulator-name: + contains: + enum: + - pbias_mmc_omap4 + + - if: + properties: + compatible: + contains: + enum: + - ti,pbias-dra7 + - ti,pbias-omap5 + then: + patternProperties: + '^pbias_*': + properties: + regulator-name: + contains: + enum: + - pbias_mmc_omap5 + +examples: + - | + bus { + #address-cells =3D <1>; + #size-cells =3D <1>; + + pbias_regulator: pbias_regulator@0 { + compatible =3D "ti,pbias-omap5", "ti,pbias-omap"; + reg =3D <0 0x4>; + syscon =3D <&omap5_padconf_global>; + pbias_mmc_reg: pbias_mmc_omap5 { + regulator-name =3D "pbias_mmc_omap5"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3000000>; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index c3fe46d7c4bc..15052c0f5377 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19406,6 +19406,7 @@ W: http://linux.omap.com/ Q: http://patchwork.kernel.org/project/linux-omap/list/ T: git git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git F: Documentation/devicetree/bindings/arm/ti/omap.yaml +F: Documentation/devicetree/bindings/regulator/ti,pbias-regulator.yaml F: arch/arm/configs/omap2plus_defconfig F: arch/arm/mach-omap2/ F: drivers/bus/omap*.[ch] --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 BA8EC3D47BF; Mon, 30 Mar 2026 13:44:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878263; cv=none; b=LH8rsYBBIuLnMulAjkf3C81JRo5X8EBumT1mmjUaFFrQ0dv/HH4Z8mDdykaVVydembkNl3jPNUPlAsJLGYnQNmbmxt4S/Vf+uGrqW7WsQQ1qn8yhP0Oe093hLh8oEA9ZvkNFlP2FxmrU4Df7EI15bwECpGQsJegP3cgDCTdIF3M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878263; c=relaxed/simple; bh=+Y7TLAq98zcY/oaWAkRsZvxZyWqb/caZue0PV8k6/Z4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ut/GaElXcYW2g9dQ2ZrwQggzaqPYsR88lViKpRasZJz8skEf6E3rXxbexqgjYA6elB7O85DU3J7QUmD0xBtwEW/4K0bqAQuhUN3uOOinBYPUYK2Fudt3t5hq8ooSJeadu0PQlfYuH0DEpDi3B9B5Ir3FsQXqGT1U6gvFfVe1uJc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=1IyQ4faE; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="1IyQ4faE" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 7DFE1C5877C; Mon, 30 Mar 2026 13:44:50 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 65CDF5FFA8; Mon, 30 Mar 2026 13:44:20 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 76BC6104505B1; Mon, 30 Mar 2026 15:44:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878258; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=HSiS+OkbFmD8VHzHUNa7mH8CPeiFd4KbJHDL2dlh9AI=; b=1IyQ4faEkTtBXF+cDn5+XAEYRVDMhiewCUDng4Cls/W4GjA6qAUMNfPOMzUK4nVO4mCT08 VRJr0Xz3o0z02d19auIX4wlZUQBPZKxqrnAmR0T71ka3fn/hgM29IV3JMUYvqC3okKbECN 3eVGNgRCnpq0PovMoj3vktIe5l3I0O/ibwtVvTqbmACLVMqUD1TIbyczfCTRVBSg87yRGy qkDD4Kemz13MWyEm5ckw90GsAJlrXEozyaeKVbKk+kuQ8R0Ky4VooHKBsmIf+tH8FsG1GL GKf7zh8X23w0pfeUob/vsqH/wud+LGCZHmbEcjOPSl3Kr75SmA6z4mm60/XwLw== From: Thomas Richard Date: Mon, 30 Mar 2026 15:43:59 +0200 Subject: [PATCH v2 02/11] dt-bindings: regulator: ti,pbias-regulator: Add pbias_sim_omap4 regulator 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-2-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Define pbias_sim_omap4 regulator for OMAP4. This regulators drives SIM_VDDS supply and allows to unlock USB I/O cell. Signed-off-by: Thomas Richard --- Documentation/devicetree/bindings/regulator/ti,pbias-regulator.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/regulator/ti,pbias-regulator= .yaml b/Documentation/devicetree/bindings/regulator/ti,pbias-regulator.yaml index 3e020d87701b..908fbb46b5cf 100644 --- a/Documentation/devicetree/bindings/regulator/ti,pbias-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/ti,pbias-regulator.yaml @@ -89,6 +89,7 @@ allOf: contains: enum: - pbias_mmc_omap4 + - pbias_sim_omap4 =20 - if: properties: --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 0A29F3D669C; Mon, 30 Mar 2026 13:44:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878265; cv=none; b=bNhfFKp5scngz6Glk2TrsFXQP+Z6Q4xeISb6jEzILgB0BQS5REyHxZ3HF/kA0aSgVI/WWBEMxkuzXOtHbZn5WciWNNBDnG/5enaa+RQBTgnuQa0F5CPyCVW7rHsG7MSro+AahIEZyxJSj5//ZIY0gFyi4E0pMOnMbZbTrCdupQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878265; c=relaxed/simple; bh=T+lgXz5Iuq7Xyz/UOKz0key+XxGIxOFA4cPs64Zx1ZU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EgfJDqOTNQdRbHLk4UCTbSLfSQlEiFOLqEInTyI6Cv5QYFE6iXJZaZCs1f6Wtv5cQOrKirYo1sgplj0PisZ1u0j7iKJ6sl2zAEdVwhbK0f5hDsxhWf1bDbLmc3cBruZiwiHd/GgzExAaUHKYZgKXWpZ1+2+ecaEXsrP3hk0dq1g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=b0LiTRoN; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="b0LiTRoN" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 9BFC11A3037; Mon, 30 Mar 2026 13:44:22 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 69BE95FFA8; Mon, 30 Mar 2026 13:44:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id AA3B0104505DF; Mon, 30 Mar 2026 15:44:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878261; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=8BncPh+xJkGlmXZACvnZW5xd0WAV5aiCq5VNVGQZ02k=; b=b0LiTRoNZ5UWqKyknAP0eHiFxVzIE7QRUEGea9BEB0MwtB2P/m62RAa8mbL6Ljyhjr0qK1 RFozIcFhlOdde4ux3dwIEm8seHvM33pqp4aR0dUvKdFFwgQLl+E+46i6RXf5IhaSW8vpuX 0BrYmYmiYFhGlAGHWsqCPSVnYyM72iO9K/Lv+LrhAm8oUgRHYZQJT7C7wwh9k1TV1GMSF1 vT2ICTqYqoN6yPrSkys3kFTSS9OSlkMT73edQL2IazXAM89/J36QRj2lV1zrHXD7PwInKT qolnmRLv/QYSdfaG8d6PD8KmaGJwq26EZ+srMjXoL0qJgswP4tBMAt2B1rQApw== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:00 +0200 Subject: [PATCH v2 03/11] regulator: pbias: Add pbias SIM regulator for OMAP4 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-3-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Add support for the pbias SIM regulator found on OMAP4 (for USB I/O cell). Signed-off-by: Thomas Richard --- drivers/regulator/pbias-regulator.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/regulator/pbias-regulator.c b/drivers/regulator/pbias-= regulator.c index cd5a0d7e4455..23cc106cd9fb 100644 --- a/drivers/regulator/pbias-regulator.c +++ b/drivers/regulator/pbias-regulator.c @@ -81,6 +81,17 @@ static const struct pbias_reg_info pbias_sim_omap3 =3D { .name =3D "pbias_sim_omap3" }; =20 +static const struct pbias_reg_info pbias_sim_omap4 =3D { + .enable =3D BIT(28) | BIT(20), + .enable_mask =3D BIT(31) | BIT(28) | BIT(20), + .disable_val =3D BIT(31), + .vmode =3D BIT(27), + .enable_time =3D 100, + .pbias_volt_table =3D pbias_volt_table_3_0V, + .n_voltages =3D 2, + .name =3D "pbias_sim_omap4" +}; + static const struct pbias_reg_info pbias_mmc_omap4 =3D { .enable =3D BIT(26) | BIT(22), .enable_mask =3D BIT(26) | BIT(25) | BIT(22), @@ -108,6 +119,7 @@ static struct of_regulator_match pbias_matches[] =3D { { .name =3D "pbias_sim_omap3", .driver_data =3D (void *)&pbias_sim_omap3}, { .name =3D "pbias_mmc_omap4", .driver_data =3D (void *)&pbias_mmc_omap4}, { .name =3D "pbias_mmc_omap5", .driver_data =3D (void *)&pbias_mmc_omap5}, + { .name =3D "pbias_sim_omap4", .driver_data =3D (void *)&pbias_sim_omap4}, }; #define PBIAS_NUM_REGS ARRAY_SIZE(pbias_matches) =20 --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 595553D6CC9; Mon, 30 Mar 2026 13:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878266; cv=none; b=lyR/juPGj8hTa2Q4ej0rp8wcQdnqwHCSUoa3IiizmjeQBhDhJJg3RUjiXW2YgV51/6KylQXIYtBYxLcijYfuqk+SJ60ecX04/m+41HR2llsEAzXnH8vnsFDTDmXaTs4N4HKvf5TyVTvhGSDdONqg9CQrMlQpAL2DyJl3kuYen0A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878266; c=relaxed/simple; bh=8MNJ+Bv8ub/FB+MlzfuB1FeinooVr5Q/BD0cOEEfkQs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lpoZ4/iRpAW23V5uNGsCmqlkcB6GLYv2BuVYYykjOodrRzmWWYxmXnPY6IOnLzIceSgagwnbIohJ+dC3RAi4b+MF3B9tP0yf/dBJk5ZjvRJeddGGW8mPK/wJBzUHVobWQDKZvSOMONJYlMGPsKN0WTTHisqIxib0652yLV8cZ4k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=SaQpQPuO; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="SaQpQPuO" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 345D9C5877C; Mon, 30 Mar 2026 13:44:54 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 18AFE5FFA8; Mon, 30 Mar 2026 13:44:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B756B104505CF; Mon, 30 Mar 2026 15:44:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878263; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=akodHWaK7HBoRiEufEd2ype+lPOoEWK24aZSCPGAgS0=; b=SaQpQPuOuZPVNi/q4U+sw84KswebIOIl/burexQ7dqTQ+TCUvsw2vWUXAQyXODcZSTMQD/ fXaOq1/sh2HXG7MoUGcCfXVcO1pVIvy0z4VJ50Ucx/RTgZ+06fQ0kHDTZbfAYqWhScf6tr RfL3J1e5/fIUKdMtrEvrhr6WqddppJc8WeJJ0iCra7fXwRBIev+Kj1PppuPOEYSLVC7J+9 +1fDVNr7QUHR3Nc2n1xinmT7OLsgYKm5Axvl+hqimtm0W+MPIBMJgwwCQlGT8O2sOjUfTh dEQi6LxlZ7uv7HzJDe0hmvj0xh5hFcAtVgFdRXr5HRxvhip++KEg2jzJhP5sGA== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:01 +0200 Subject: [PATCH v2 04/11] ARM: dts: ti: omap4: Add pbias SIM regulator 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-4-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Add the pbias SIM regulator node for OMAP4. Signed-off-by: Thomas Richard --- arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi b/arch/arm/boot/dts/ti= /omap/omap4-l4.dtsi index 4881dd674393..6904a84a1700 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +++ b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi @@ -697,6 +697,12 @@ pbias_mmc_reg: pbias_mmc_omap4 { regulator-min-microvolt =3D <1800000>; regulator-max-microvolt =3D <3000000>; }; + + pbias_sim_reg: pbias_sim_omap4 { + regulator-name =3D "pbias_sim_omap4"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3000000>; + }; }; }; }; --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 7C3E43D75CD; Mon, 30 Mar 2026 13:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878268; cv=none; b=aUbSARhbMLI99BYNlFlv+awmdBwe82I63dOerbmlIRyAkoRMCDpDHeGWFZ6gJhay0JjH2QIMjk+fzh/mULPqbvsANTmVi7MKON2upFZO4NQn7nqBfTVY9Q2YD+ozweXC2SyKOjIy6+2mgMfbePbqiqPM4TqEE0mm/0traZmHPiY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878268; c=relaxed/simple; bh=xqH9HBUo2uKq07iV0LT/eXOI7R30mY5ED8Qnvvev/JU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kWTGMx+O5Tf8r26oz1ZrT6UrDBkMId9OHp2dXih/58mDcbNvImPQIiwdLHopAeI8AgZFoaJsvTbtITk3M1/K8ClD/l1UIrorGwzpnD1lWjm8TW+NW5azTAqmXu7xON1+AZDix2lYDKm7rxaVVCsLxG7Ove0fDqlJHXd1GSu+w+M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=r3gDV2bK; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="r3gDV2bK" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 36D301A3037; Mon, 30 Mar 2026 13:44:26 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 0CEA15FFA8; Mon, 30 Mar 2026 13:44:26 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7A72E104500D7; Mon, 30 Mar 2026 15:44:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878265; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Ph5+0Z1fEKxt9hAWE1vd2W1+4iqUm1ikNOhACalKAVY=; b=r3gDV2bKgkU4V8h0E7DToblrybrUr5jUoQg5e8VL0PUd20dyWoyDMXUOziG9Oqo9R9INsV EnuLVyUUCUQjfJGVTXFbf8UPsBEZLlezX9C5Pa8PQVR1ceTAnUB6nir1RH8nc2QrJZK7XV SpgCruRZw5Wvfr24jJ4zGct0aSuT4EVps2BWj5RmOPx5GmhhGQYeVukEsRsSu6JLy/srFn RsvnRa6Fvp7DV9XH6K88+FGAw4vRBQPbrB1qIcfGpTrNuoCx2PgYu1umA35cKPa8TwoO0V CT36rEbX9w/sW2DyK0oCE3sqeu+1l2RdkL+6FKLbilcYx93ZckSymu6y1S60UA== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:02 +0200 Subject: [PATCH v2 05/11] mfd: omap-usb-host: Cleanup header includes 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-5-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Remove unused includes (linux/kernel.h, linux/types.h and linux/delay.h). Sort the remaining ones alphabetically. Signed-off-by: Thomas Richard --- drivers/mfd/omap-usb-host.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 4d29a6e2ed87..4e066a17cef0 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -6,19 +6,15 @@ * Author: Keshava Munegowda * Author: Roger Quadros */ -#include -#include -#include -#include -#include #include #include -#include +#include +#include #include +#include #include #include #include -#include =20 #include "omap-usb.h" =20 --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 5601B3D75AF; Mon, 30 Mar 2026 13:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878270; cv=none; b=bPoWbnG6B7R6nWq6iSNFLusoT0UJoxzuws+GHwkzLWDMjhS5ULyDm4/M3c1dDy6BE8eVdRdZ9VHPplU3CsJwOJK3lMSUztc+eQ562DTYsiodJa99+hLpD7L13iGf26V5wiSOv5DKCDFIdKtrhYBdXRWn+cndCmX1dkNQ4G1UCvU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878270; c=relaxed/simple; bh=+38KUZ/Rs7dbW6HrwRQzInMhtrAK0L0P+qLf5Syq1F8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BQyW2j17Lr/WotSYHlkBByaaooI2G2bvheUV2roUHHftVQlV8vP8otqr12TV4Pvg1lWTdPLmC6GMaqD+BE65NAuS6e+5cRAke4yJlf0MBFXSzsuUGKwlqIQR5tKDi+aIZfwoi8ndFGPNwqzfuMNlhmgeOnuFjzpbIk8E6/rBQMc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=yaD15mcC; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="yaD15mcC" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 154BA1A308C; Mon, 30 Mar 2026 13:44:28 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D902F5FFA8; Mon, 30 Mar 2026 13:44:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6F868104505C9; Mon, 30 Mar 2026 15:44:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878266; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Ezp+PRZ6T3jPeC3HkeP1u9t98A2F7H08ZdBPtkGsQ+c=; b=yaD15mcCwqvpt0Y+s7mMyhVNqm7J8ejZLPZmdsbJCE5MH+dhUjGTviuEGrICjpAInpRbyJ ZapT8VHpdp7HePeE1tTKwJ7amWfvczVxBIV3s7cZk38UA8hFOqHzfcxgRDMC5aYNBtvAeg slrem3AJ1mza6Oiedu8w/2eMv3pjVnT3i6NLrY+8STk0qGiBCpFIdf0ehA5BnusZU4HHnC E0/XNr1FR5RMsUxfuDICqS5q3swzJIcbdco/h6+WYGoR6k9G3Z674GMAdTPU46IGbdelwk mb99mPhXge4YYngjKM+tIKNElAG2BHNud6AQRns72Sei9qDulMwBMYD+sFwfFg== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:03 +0200 Subject: [PATCH v2 06/11] mfd: omap-usb-host: Sanitize error path in the probe() 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-6-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Use dev_err_probe() to simplify the code and standardize the error output. Remove -ENOMEM messages, there's already enough output. Signed-off-by: Thomas Richard --- drivers/mfd/omap-usb-host.c | 81 +++++++++++++++++++----------------------= ---- 1 file changed, 34 insertions(+), 47 deletions(-) diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 4e066a17cef0..ac974285be34 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -546,22 +546,17 @@ static int usbhs_omap_probe(struct platform_device *p= dev) dev->platform_data =3D pdata; } =20 - if (!pdata) { - dev_err(dev, "Missing platform data\n"); - return -ENODEV; - } + if (!pdata) + return dev_err_probe(dev, -ENODEV, "Missing platform data\n"); =20 - if (pdata->nports > OMAP3_HS_USB_PORTS) { - dev_info(dev, "Too many num_ports <%d> in platform_data. Max %d\n", - pdata->nports, OMAP3_HS_USB_PORTS); - return -ENODEV; - } + if (pdata->nports > OMAP3_HS_USB_PORTS) + return dev_err_probe(dev, -ENODEV, + "Too many num_ports <%d> in platform_data. Max %d\n", + pdata->nports, OMAP3_HS_USB_PORTS); =20 omap =3D devm_kzalloc(dev, sizeof(*omap), GFP_KERNEL); - if (!omap) { - dev_err(dev, "Memory allocation failed\n"); + if (!omap) return -ENOMEM; - } =20 omap->uhh_base =3D devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(omap->uhh_base)) @@ -614,7 +609,6 @@ static int usbhs_omap_probe(struct platform_device *pde= v) omap->hsic60m_clk =3D devm_kzalloc(dev, i, GFP_KERNEL); =20 if (!omap->utmi_clk || !omap->hsic480m_clk || !omap->hsic60m_clk) { - dev_err(dev, "Memory allocation failed\n"); ret =3D -ENOMEM; goto err_mem; } @@ -648,9 +642,8 @@ static int usbhs_omap_probe(struct platform_device *pde= v) omap->ehci_logic_fck =3D devm_clk_get(dev, "usbhost_120m_fck"); if (IS_ERR(omap->ehci_logic_fck)) { - ret =3D PTR_ERR(omap->ehci_logic_fck); - dev_err(dev, "usbhost_120m_fck failed:%d\n", - ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->ehci_logic_fck), + "usbhost_120m_fck failed\n"); goto err_mem; } } @@ -660,36 +653,36 @@ static int usbhs_omap_probe(struct platform_device *p= dev) /* for OMAP4+ i.e. USBHS REV2+ */ omap->utmi_p1_gfclk =3D devm_clk_get(dev, "utmi_p1_gfclk"); if (IS_ERR(omap->utmi_p1_gfclk)) { - ret =3D PTR_ERR(omap->utmi_p1_gfclk); - dev_err(dev, "utmi_p1_gfclk failed error:%d\n", ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->utmi_p1_gfclk), + "utmi_p1_gfclk failed error\n"); goto err_mem; } =20 omap->utmi_p2_gfclk =3D devm_clk_get(dev, "utmi_p2_gfclk"); if (IS_ERR(omap->utmi_p2_gfclk)) { - ret =3D PTR_ERR(omap->utmi_p2_gfclk); - dev_err(dev, "utmi_p2_gfclk failed error:%d\n", ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->utmi_p2_gfclk), + "utmi_p2_gfclk failed error\n"); goto err_mem; } =20 omap->xclk60mhsp1_ck =3D devm_clk_get(dev, "refclk_60m_ext_p1"); if (IS_ERR(omap->xclk60mhsp1_ck)) { - ret =3D PTR_ERR(omap->xclk60mhsp1_ck); - dev_err(dev, "refclk_60m_ext_p1 failed error:%d\n", ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->xclk60mhsp1_ck), + "refclk_60m_ext_p1 failed error\n"); goto err_mem; } =20 omap->xclk60mhsp2_ck =3D devm_clk_get(dev, "refclk_60m_ext_p2"); if (IS_ERR(omap->xclk60mhsp2_ck)) { - ret =3D PTR_ERR(omap->xclk60mhsp2_ck); - dev_err(dev, "refclk_60m_ext_p2 failed error:%d\n", ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->xclk60mhsp2_ck), + "refclk_60m_ext_p2 failed error\n"); goto err_mem; } =20 omap->init_60m_fclk =3D devm_clk_get(dev, "refclk_60m_int"); if (IS_ERR(omap->init_60m_fclk)) { - ret =3D PTR_ERR(omap->init_60m_fclk); - dev_err(dev, "refclk_60m_int failed error:%d\n", ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->init_60m_fclk), + "refclk_60m_int failed error\n"); goto err_mem; } =20 @@ -706,9 +699,9 @@ static int usbhs_omap_probe(struct platform_device *pde= v) */ omap->utmi_clk[i] =3D devm_clk_get(dev, clkname); if (IS_ERR(omap->utmi_clk[i])) { - ret =3D PTR_ERR(omap->utmi_clk[i]); - dev_err(dev, "Failed to get clock : %s : %d\n", - clkname, ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->utmi_clk[i]), + "Failed to get clock : %s\n", + clkname); goto err_mem; } =20 @@ -716,9 +709,9 @@ static int usbhs_omap_probe(struct platform_device *pde= v) "usb_host_hs_hsic480m_p%d_clk", i + 1); omap->hsic480m_clk[i] =3D devm_clk_get(dev, clkname); if (IS_ERR(omap->hsic480m_clk[i])) { - ret =3D PTR_ERR(omap->hsic480m_clk[i]); - dev_err(dev, "Failed to get clock : %s : %d\n", - clkname, ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->hsic480m_clk[i]), + "Failed to get clock : %s\n", + clkname); goto err_mem; } =20 @@ -726,9 +719,9 @@ static int usbhs_omap_probe(struct platform_device *pde= v) "usb_host_hs_hsic60m_p%d_clk", i + 1); omap->hsic60m_clk[i] =3D devm_clk_get(dev, clkname); if (IS_ERR(omap->hsic60m_clk[i])) { - ret =3D PTR_ERR(omap->hsic60m_clk[i]); - dev_err(dev, "Failed to get clock : %s : %d\n", - clkname, ret); + ret =3D dev_err_probe(dev, PTR_ERR(omap->hsic60m_clk[i]), + "Failed to get clock : %s\n", + clkname); goto err_mem; } } @@ -737,16 +730,14 @@ static int usbhs_omap_probe(struct platform_device *p= dev) ret =3D clk_set_parent(omap->utmi_p1_gfclk, omap->xclk60mhsp1_ck); if (ret !=3D 0) { - dev_err(dev, "xclk60mhsp1_ck set parent failed: %d\n", - ret); + dev_err_probe(dev, ret, "xclk60mhsp1_ck set parent failed\n"); goto err_mem; } } else if (is_ehci_tll_mode(pdata->port_mode[0])) { ret =3D clk_set_parent(omap->utmi_p1_gfclk, omap->init_60m_fclk); if (ret !=3D 0) { - dev_err(dev, "P0 init_60m_fclk set parent failed: %d\n", - ret); + dev_err_probe(dev, ret, "P0 init_60m_fclk set parent failed\n"); goto err_mem; } } @@ -755,16 +746,14 @@ static int usbhs_omap_probe(struct platform_device *p= dev) ret =3D clk_set_parent(omap->utmi_p2_gfclk, omap->xclk60mhsp2_ck); if (ret !=3D 0) { - dev_err(dev, "xclk60mhsp2_ck set parent failed: %d\n", - ret); + dev_err_probe(dev, ret, "xclk60mhsp2_ck set parent failed\n"); goto err_mem; } } else if (is_ehci_tll_mode(pdata->port_mode[1])) { ret =3D clk_set_parent(omap->utmi_p2_gfclk, omap->init_60m_fclk); if (ret !=3D 0) { - dev_err(dev, "P1 init_60m_fclk set parent failed: %d\n", - ret); + dev_err_probe(dev, ret, "P1 init_60m_fclk set parent failed\n"); goto err_mem; } } @@ -775,17 +764,15 @@ static int usbhs_omap_probe(struct platform_device *p= dev) if (dev->of_node) { ret =3D of_platform_populate(dev->of_node, usbhs_child_match_table, NULL, dev); - if (ret) { - dev_err(dev, "Failed to create DT children: %d\n", ret); + dev_err_probe(dev, ret, "Failed to create DT children\n"); goto err_mem; } =20 } else { ret =3D omap_usbhs_alloc_children(pdev); if (ret) { - dev_err(dev, "omap_usbhs_alloc_children failed: %d\n", - ret); + dev_err_probe(dev, ret, "omap_usbhs_alloc_children failed\n"); goto err_mem; } } --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 582813D8121; Mon, 30 Mar 2026 13:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878272; cv=none; b=biXX1F09qwkXDZ8/caHIj4lrqWEdq+RHZ/HrQA8kqPi8eNMTbL6K24W0Qq9LvU6HEOBWzDioyGt3t9As2oB3r5Lw/lwNEQmkgJOkQXZMLJaFMGdmJChLgEQAyZ1vBqehP+qxc80m1P1iDbhy76YMV3TjZPZ44SyTdS5HF75qWOk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878272; c=relaxed/simple; bh=U5bM6M1XI0Rz0zyCn/ENxbb7spjHQrV2vP4E19ZOZO4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qEKxAwjqN541Hfeeb22BEePp++Rzj22pATjBDQg1eIUkws/vUh+IrgLIyG4B5KZQwmGfka/q8Gy+6cR2ljljWwlFDjtJ6P+L+6h1eh6AWwqJPF0WgiHyydyYEfhZ34WNojy+DS2S3yj2G9Jc0mSgl+mtKU9E/d/au7Emf8++NW0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=NPx0PXi9; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="NPx0PXi9" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 0DC6D4E42876; Mon, 30 Mar 2026 13:44:30 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D813A5FFA8; Mon, 30 Mar 2026 13:44:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 2A081104505E1; Mon, 30 Mar 2026 15:44:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878268; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Z9FZkXOZh4Zt1eTlRx67xH+sax/21doUxwEjY+KEWdo=; b=NPx0PXi9S0wfE8+2kIEQZaZIK/wc3jjO/uQauLNYrDY1gDOSveYdBrvsDvt6on2m9OqDFd kpZ2f5CWDy6ZZIbHcSlM2wKyB4mRhGndV0x00tGct7Z71/nDPTaMbz5Tth2koCJCU6d9A/ BeNGEGNkfeUKFrEPQMpTEVD83DPt0EIsO1JXhPctKvlarnE6xBy4GBxpR1OItb8E7yjUez SjEOwoemZN9zueRRlYedQ7wVl6h7UJUhRUEfvTBZD0SLgBRR6t1qFTuKiqAKGF78rYQNQD 4LMVoDw+ax1eytODKjqAlZ3Pego7F0+pzDu6PYYXUlEM94yIJRTvtitJbObwHA== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:04 +0200 Subject: [PATCH v2 07/11] mfd: omap-usb-host: Refactor suspend and resume callbacks 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-7-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 The clock handling logic in suspend and resume callbacks is very similar. Create a new usbhs_clocks_enable() function to avoid code duplication. Also remove ftrace-like debug messages. Signed-off-by: Thomas Richard --- drivers/mfd/omap-usb-host.c | 94 ++++++++++++++++++++++-------------------= ---- 1 file changed, 46 insertions(+), 48 deletions(-) diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index ac974285be34..17a54f0087c3 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -270,48 +270,56 @@ static bool is_ohci_port(enum usbhs_omap_port_mode pm= ode) } } =20 -static int usbhs_runtime_resume(struct device *dev) +static int usbhs_clocks_enable(struct device *dev, bool enable) { - struct usbhs_hcd_omap *omap =3D dev_get_drvdata(dev); - struct usbhs_omap_platform_data *pdata =3D omap->pdata; - int i, r; - - dev_dbg(dev, "usbhs_runtime_resume\n"); + struct usbhs_hcd_omap *omap =3D dev_get_drvdata(dev); + struct usbhs_omap_platform_data *pdata =3D omap->pdata; + int r =3D 0, i; =20 - omap_tll_enable(pdata); - - if (!IS_ERR(omap->ehci_logic_fck)) - clk_prepare_enable(omap->ehci_logic_fck); + if (!enable && !IS_ERR(omap->ehci_logic_fck)) + clk_disable_unprepare(omap->ehci_logic_fck); =20 for (i =3D 0; i < omap->nports; i++) { switch (pdata->port_mode[i]) { case OMAP_EHCI_PORT_MODE_HSIC: if (!IS_ERR(omap->hsic60m_clk[i])) { - r =3D clk_prepare_enable(omap->hsic60m_clk[i]); - if (r) { - dev_err(dev, - "Can't enable port %d hsic60m clk:%d\n", - i, r); + if (enable) { + r =3D clk_prepare_enable(omap->hsic60m_clk[i]); + if (r) { + dev_err(dev, + "Can't enable port %d hsic60m clk:%d\n", + i, r); + } + } else { + clk_disable_unprepare(omap->hsic60m_clk[i]); } } =20 if (!IS_ERR(omap->hsic480m_clk[i])) { - r =3D clk_prepare_enable(omap->hsic480m_clk[i]); - if (r) { - dev_err(dev, - "Can't enable port %d hsic480m clk:%d\n", - i, r); + if (enable) { + r =3D clk_prepare_enable(omap->hsic480m_clk[i]); + if (r) { + dev_err(dev, + "Can't enable port %d hsic480m clk:%d\n", + i, r); + } + } else { + clk_disable_unprepare(omap->hsic480m_clk[i]); } } fallthrough; /* as HSIC mode needs utmi_clk */ =20 case OMAP_EHCI_PORT_MODE_TLL: if (!IS_ERR(omap->utmi_clk[i])) { - r =3D clk_prepare_enable(omap->utmi_clk[i]); - if (r) { - dev_err(dev, - "Can't enable port %d clk : %d\n", - i, r); + if (enable) { + r =3D clk_prepare_enable(omap->utmi_clk[i]); + if (r) { + dev_err(dev, + "Can't enable port %d clk : %d\n", + i, r); + } + } else { + clk_disable_unprepare(omap->utmi_clk[i]); } } break; @@ -320,38 +328,28 @@ static int usbhs_runtime_resume(struct device *dev) } } =20 - return 0; + if (enable && !IS_ERR(omap->ehci_logic_fck)) + r =3D clk_prepare_enable(omap->ehci_logic_fck); + + return r; } =20 -static int usbhs_runtime_suspend(struct device *dev) +static int usbhs_runtime_resume(struct device *dev) { struct usbhs_hcd_omap *omap =3D dev_get_drvdata(dev); struct usbhs_omap_platform_data *pdata =3D omap->pdata; - int i; =20 - dev_dbg(dev, "usbhs_runtime_suspend\n"); - - for (i =3D 0; i < omap->nports; i++) { - switch (pdata->port_mode[i]) { - case OMAP_EHCI_PORT_MODE_HSIC: - if (!IS_ERR(omap->hsic60m_clk[i])) - clk_disable_unprepare(omap->hsic60m_clk[i]); + omap_tll_enable(pdata); =20 - if (!IS_ERR(omap->hsic480m_clk[i])) - clk_disable_unprepare(omap->hsic480m_clk[i]); - fallthrough; /* as utmi_clks were used in HSIC mode */ + return usbhs_clocks_enable(dev, true); +} =20 - case OMAP_EHCI_PORT_MODE_TLL: - if (!IS_ERR(omap->utmi_clk[i])) - clk_disable_unprepare(omap->utmi_clk[i]); - break; - default: - break; - } - } +static int usbhs_runtime_suspend(struct device *dev) +{ + struct usbhs_hcd_omap *omap =3D dev_get_drvdata(dev); + struct usbhs_omap_platform_data *pdata =3D omap->pdata; =20 - if (!IS_ERR(omap->ehci_logic_fck)) - clk_disable_unprepare(omap->ehci_logic_fck); + usbhs_clocks_enable(dev, false); =20 omap_tll_disable(pdata); =20 --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 C54353D812E for ; Mon, 30 Mar 2026 13:44:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878274; cv=none; b=vE9Xe0Uj/Ve/9mzYDlOPOPSYPD7Oqo/lN/JMU41dtNwT/SRcnCz74IVsVRQ49z71IRbaNuPZNDP6Q5ACfrb3nmjYlotC9lCDt1hFB9C5zXSPBqxVvPvqBf/LAWVOdk5VK3bve1iak4zPH8tNCP32RBsgZjEjTnwfNOuEIR35ZYc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878274; c=relaxed/simple; bh=nRJ6UPnMcl/njNnI/5jWkDev+RgC/Nnx7eUq5Tlc3zs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nQMPZ5CXwmq0I8bjn6zINqsSnFOOPqKuYMgiEyRUk6qKC3/97d6ZwbxsD9IXiD21JCxXxdx8RCQOwk4+Q3MwkBx525aFg65xkpXpZ2K9gnFjyUcxCBNo8gC8qM54qeVUkx9Qd5Ehh3L8cjYogSPC+I9ggbGbF0vdNgrdHUWSZpc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=DdNCGxyF; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="DdNCGxyF" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id A74261A308C; Mon, 30 Mar 2026 13:44:31 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7E2CD5FFA8; Mon, 30 Mar 2026 13:44:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4CFF9104505E2; Mon, 30 Mar 2026 15:44:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878270; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=43YiSKVJd8tB68TZBh2TF6NpbQV5qfqvneIm5IzVnCs=; b=DdNCGxyFWgPeJ77l9bODQ718bIpeguEUlcNOMak4cSb3YbmdFbOpSTWdDXB3qkF4zQbIeg huvnPRfcEZwyQA94JQ7CgWz2q4/fVHJOgAjBWOllvrxwMjQYLy9cOhW/AdBzXkAtDljx0+ c6plHSgaWsbtKX1yC6ax0t3/dZVt3XVxUiprNRLWTR+AJw5rG3ev3fSZKtYjzyDRnbKiuN TQQb4OUyoUGjre/mi9bX84h4Pu8utzUxhuKWUovyRaXgaHH47MUo4kpAkkubmZKWY4xJXz Z1ayt2JEuO8+64MnzlnbtwwDnfsLOSC+YSKXwLUWME29cfU4iWSnV9H42EuaYg== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:05 +0200 Subject: [PATCH v2 08/11] dt-bindings: mfd: ti,omap-usb-host: Convert to DT schema 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-8-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Convert OMAP HS USB Host binding to DT schema. The 'ti,hwmods' property is not mandatory anymore as it is no longer required when the omap-usb-host node is a child of a new interconnect target (ti,sysc). Signed-off-by: Thomas Richard --- .../devicetree/bindings/mfd/omap-usb-host.txt | 103 ------------- .../devicetree/bindings/mfd/ti,omap-usb-host.yaml | 161 +++++++++++++++++= ++++ MAINTAINERS | 1 + 3 files changed, 162 insertions(+), 103 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/omap-usb-host.txt b/Docu= mentation/devicetree/bindings/mfd/omap-usb-host.txt deleted file mode 100644 index a0d8c30c2631..000000000000 --- a/Documentation/devicetree/bindings/mfd/omap-usb-host.txt +++ /dev/null @@ -1,103 +0,0 @@ -OMAP HS USB Host - -Required properties: - -- compatible: should be "ti,usbhs-host" -- reg: should contain one register range i.e. start and length -- ti,hwmods: must contain "usb_host_hs" - -Optional properties: - -- num-ports: number of USB ports. Usually this is automatically detected - from the IP's revision register but can be overridden by specifying - this property. A maximum of 3 ports are supported at the moment. - -- portN-mode: String specifying the port mode for port N, where N can be - from 1 to 3. If the port mode is not specified, that port is treated - as unused. When specified, it must be one of the following. - "ehci-phy", - "ehci-tll", - "ehci-hsic", - "ohci-phy-6pin-datse0", - "ohci-phy-6pin-dpdm", - "ohci-phy-3pin-datse0", - "ohci-phy-4pin-dpdm", - "ohci-tll-6pin-datse0", - "ohci-tll-6pin-dpdm", - "ohci-tll-3pin-datse0", - "ohci-tll-4pin-dpdm", - "ohci-tll-2pin-datse0", - "ohci-tll-2pin-dpdm", - -- single-ulpi-bypass: Must be present if the controller contains a single - ULPI bypass control bit. e.g. OMAP3 silicon <=3D ES2.1 - -- clocks: a list of phandles and clock-specifier pairs, one for each entry= in - clock-names. - -- clock-names: should include: - For OMAP3 - * "usbhost_120m_fck" - 120MHz Functional clock. - - For OMAP4+ - * "refclk_60m_int" - 60MHz internal reference clock for UTMI clock mux - * "refclk_60m_ext_p1" - 60MHz external ref. clock for Port 1's UTMI cloc= k mux. - * "refclk_60m_ext_p2" - 60MHz external ref. clock for Port 2's UTMI cloc= k mux - * "utmi_p1_gfclk" - Port 1 UTMI clock mux. - * "utmi_p2_gfclk" - Port 2 UTMI clock mux. - * "usb_host_hs_utmi_p1_clk" - Port 1 UTMI clock gate. - * "usb_host_hs_utmi_p2_clk" - Port 2 UTMI clock gate. - * "usb_host_hs_utmi_p3_clk" - Port 3 UTMI clock gate. - * "usb_host_hs_hsic480m_p1_clk" - Port 1 480MHz HSIC clock gate. - * "usb_host_hs_hsic480m_p2_clk" - Port 2 480MHz HSIC clock gate. - * "usb_host_hs_hsic480m_p3_clk" - Port 3 480MHz HSIC clock gate. - * "usb_host_hs_hsic60m_p1_clk" - Port 1 60MHz HSIC clock gate. - * "usb_host_hs_hsic60m_p2_clk" - Port 2 60MHz HSIC clock gate. - * "usb_host_hs_hsic60m_p3_clk" - Port 3 60MHz HSIC clock gate. - -Required properties if child node exists: - -- #address-cells: Must be 1 -- #size-cells: Must be 1 -- ranges: must be present - -Properties for children: - -The OMAP HS USB Host subsystem contains EHCI and OHCI controllers. -See Documentation/devicetree/bindings/usb/generic-ehci.yaml and -Documentation/devicetree/bindings/usb/generic-ohci.yaml. - -Example for OMAP4: - -usbhshost: usbhshost@4a064000 { - compatible =3D "ti,usbhs-host"; - reg =3D <0x4a064000 0x800>; - ti,hwmods =3D "usb_host_hs"; - #address-cells =3D <1>; - #size-cells =3D <1>; - ranges; - - usbhsohci: ohci@4a064800 { - compatible =3D "ti,ohci-omap3"; - reg =3D <0x4a064800 0x400>; - interrupt-parent =3D <&gic>; - interrupts =3D <0 76 0x4>; - }; - - usbhsehci: ehci@4a064c00 { - compatible =3D "ti,ehci-omap"; - reg =3D <0x4a064c00 0x400>; - interrupt-parent =3D <&gic>; - interrupts =3D <0 77 0x4>; - }; -}; - -&usbhshost { - port1-mode =3D "ehci-phy"; - port2-mode =3D "ehci-tll"; - port3-mode =3D "ehci-phy"; -}; - -&usbhsehci { - phys =3D <&hsusb1_phy 0 &hsusb3_phy>; -}; diff --git a/Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml b/= Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml new file mode 100644 index 000000000000..3b5b041f0321 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml @@ -0,0 +1,161 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/ti,omap-usb-host.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: OMAP HS USB Host + +maintainers: + - Thomas Richard + +properties: + compatible: + const: ti,usbhs-host + + reg: + maxItems: 1 + + ti,hwmods: + const: usb_host_hs + + num-ports: + description: + number of USB ports. Usually this is automatically detected from the= IP's + revision register but can be overridden by specifying this property.= A + maximum of 3 ports are supported at the moment. + maximum: 3 + + single-ulpi-bypass: + $ref: /schemas/types.yaml#/definitions/flag + description: + Must be present if the controller contains a single ULPI bypass cont= rol + bit. e.g. OMAP3 silicon <=3D ES2.1ULPI bypass control bit. + e.g. OMAP3 silicon <=3D ES2.1. + + clocks: + description: clock-specifier + + clock-names: + oneOf: + - items: + - const: usbhost_120m_fck + - items: + - const: refclk_60m_int + - const: refclk_60m_ext_p1 + - const: refclk_60m_ext_p2 + - items: + - const: refclk_60m_int + - const: refclk_60m_ext_p1 + - const: refclk_60m_ext_p2 + - const: usb_host_hs_utmi_p1_clk + - const: usb_host_hs_hsic480m_p1_clk + - const: usb_host_hs_hsic60m_p1_clk + - items: + - const: refclk_60m_int + - const: refclk_60m_ext_p1 + - const: refclk_60m_ext_p2 + - const: usb_host_hs_utmi_p1_clk + - const: usb_host_hs_hsic480m_p1_clk + - const: usb_host_hs_hsic60m_p1_clk + - const: usb_host_hs_utmi_p2_clk + - const: usb_host_hs_hsic480m_p2_clk + - const: usb_host_hs_hsic60m_p2_clk + - items: + - const: refclk_60m_int + - const: refclk_60m_ext_p1 + - const: refclk_60m_ext_p2 + - const: usb_host_hs_utmi_p1_clk + - const: usb_host_hs_hsic480m_p1_clk + - const: usb_host_hs_hsic60m_p1_clk + - const: usb_host_hs_utmi_p2_clk + - const: usb_host_hs_hsic480m_p2_clk + - const: usb_host_hs_hsic60m_p2_clk + - const: usb_host_hs_utmi_p3_clk + - const: usb_host_hs_hsic480m_p3_clk + - const: usb_host_hs_hsic60m_p3_clk + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + +patternProperties: + "^port[0-3]-mode$": + $ref: /schemas/types.yaml#/definitions/string + description: + String specifying the port mode for port N, where N can be from 1 to= 3. + the port mode is not specified, that port is treated as unused. When + specified, it must be one of the following. + enum: + - ehci-phy + - ehci-tll + - ehci-hsic + - ohci-phy-6pin-datse0 + - ohci-phy-6pin-dpdm + - ohci-phy-3pin-datse0 + - ohci-phy-4pin-dpdm + - ohci-tll-6pin-datse0 + - ohci-tll-6pin-dpdm + - ohci-tll-3pin-datse0 + - ohci-tll-4pin-dpdm + - ohci-tll-2pin-datse0 + - ohci-tll-2pin-dpdm + + "^usb@": + type: object + oneOf: + - $ref: /schemas/usb/generic-ohci.yaml# + - $ref: /schemas/usb/generic-ehci.yaml# + +required: + - compatible + - reg + +allOf: + - if: + patternProperties: + "^usb@": true + then: + required: + - ranges + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + bus { + #address-cells =3D <1>; + #size-cells =3D <1>; + + usbhshost: usbhshost@4a064000 { + compatible =3D "ti,usbhs-host"; + reg =3D <0x4a064000 0x800>; + ti,hwmods =3D "usb_host_hs"; + port1-mode =3D "ehci-phy"; + port2-mode =3D "ehci-tll"; + port3-mode =3D "ehci-phy"; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges; + + usbhsohci: usb@4a064800 { + compatible =3D "ti,ohci-omap3"; + reg =3D <0x4a064800 0x400>; + interrupt-parent =3D <&gic>; + interrupts =3D <0 76 0x4>; + }; + + usbhsehci: usb@4a064c00 { + compatible =3D "ti,ehci-omap"; + reg =3D <0x4a064c00 0x400>; + interrupt-parent =3D <&gic>; + interrupts =3D <0 77 0x4>; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 15052c0f5377..d1dadba8ed0a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19406,6 +19406,7 @@ W: http://linux.omap.com/ Q: http://patchwork.kernel.org/project/linux-omap/list/ T: git git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git F: Documentation/devicetree/bindings/arm/ti/omap.yaml +F: Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml F: Documentation/devicetree/bindings/regulator/ti,pbias-regulator.yaml F: arch/arm/configs/omap2plus_defconfig F: arch/arm/mach-omap2/ --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 65B9E3D8909 for ; Mon, 30 Mar 2026 13:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878275; cv=none; b=XQYSGYlvSLEy4E4u4F34jgrdx70Er0nB6QythinUC38Nz1BSF1fSJdqAnQvUUY770n8dZGoSahm2O63M7R8/6vFsOJD21sSsdOyQYV7DM018+q4Nb2yvkNbtMU9BjeWk7jPSHK3W906c3GQBBXbLnA+oZQdLriXYe+8fCfofPuA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878275; c=relaxed/simple; bh=Cj9NeSyIEXVLj6Wm/QzFWa0yRNXVyI3XsroWdRrWvdo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p6ACSizjHZoSFfszVz7xyH+0sBjdykG54BC+qQ07oyVBl8X5nstj3ovoFHVbR2JoCjvpD1WEF2I5TwnqCCL8gt9DIC3DKCj5Rw1HwX6BsKX6TPO2epx1dU3V66C75sWoP38z7Ak0QVc5e6cx4D6loMAKdrMznmMAPaAM7HRjdy8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=JxQRX60v; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="JxQRX60v" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 57B34C58765; Mon, 30 Mar 2026 13:45:03 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3FAB15FFA8; Mon, 30 Mar 2026 13:44:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EBBFE104505E4; Mon, 30 Mar 2026 15:44:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878272; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=8xwevEUsFI6/9OT1toXO+j+2rG7UZIPi3hL72XUS8G4=; b=JxQRX60vgz/BDxDBIepClqWMsCZBoyX3V3XfO5uL1yNmKi0szXlwJ/sGIWm4YobGuIGUXF nOiz6P2R3Am0AP0r4atQukbLCunTbyzDMqMnUJeAAxFA10ihkUHoT5HalB6puV4KRuiKho V4vyf/o+cSxov0QmflYEd5MD/WXGFamUFo5DDkQuCKhSB5QCY5DwDw92XA4n7l66nyehgz Eg1EL/3GTJR1sOZMRN97ZgLTSbdIjsk80tiirFC7/egQRv0MCUhykjghH1Q2yjkFkJE06w 8aFrs/7rYCSDpGIz3asxPu23ifSP87dDkqW4riO5CkWs0gcK1nN03VGJWBAgoA== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:06 +0200 Subject: [PATCH v2 09/11] dt-bindings: mfd: ti,omap-usb-host: Add 'pbias-supply' property 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-9-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Add the 'pbias-supply' property, it is used to specify the voltage regulator that provides the bias voltage for USB cell. Signed-off-by: Thomas Richard --- Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml b/= Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml index 3b5b041f0321..d0a61dec4961 100644 --- a/Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml +++ b/Documentation/devicetree/bindings/mfd/ti,omap-usb-host.yaml @@ -83,6 +83,12 @@ properties: =20 ranges: true =20 + pbias-supply: + $ref: /schemas/types.yaml#/definitions/phandle + description: + It is used to specify the voltage regulator that provides the bias + voltage for certain analog or I/O pads. + patternProperties: "^port[0-3]-mode$": $ref: /schemas/types.yaml#/definitions/string --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 3E86D3D902A for ; Mon, 30 Mar 2026 13:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878277; cv=none; b=D/8i8VwPYormbnqvFn9etL8RywpfyQWt2kd4KQeZVF+pyag9tGAOm3SpV5YRQgWzz8aTEZg2xKeiO+PikApKAwTClOtA0ArlZkK47PmFiRGV6UegMgzKw8jZ4Zt6PzigTnBpYMke1/JokaQCNzwFe2fQu60EEKY3GEhoVXsqd4M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878277; c=relaxed/simple; bh=S3HZghcHxR8VTHdT4bKr6owjthUCOnQ0Mt38RYLJ8Mk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KY8/9nOzWmuMdz8R72sHo1EiUDYvuUAhnApoLfL+by2u2Qbso6EUN60tyiDbo6HIX3/R3p+Bou7RrzAJlzevDfusapCX0yZJKYlYDymlmhsWFmfV7kMp9XkBby2NdveUaOeqQKcOmyTiFiCvD1eWqKQer9e17Hmw5CgxPXhqslQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=D8hvphWD; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="D8hvphWD" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id EC1584E42876; Mon, 30 Mar 2026 13:44:34 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C28EC5FFA8; Mon, 30 Mar 2026 13:44:34 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B11C610450627; Mon, 30 Mar 2026 15:44:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878273; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=JxnHNmFgDEfC8ZkI4lufUhDnXylRO/9U59fNo706pDI=; b=D8hvphWDyZ/PgK6Sbj9zkalHlpyJ8ULGe/rFKUn1DHslWBqfvoqiOTQDF1t0AP9OtpoSoz UoeGu6PlsCsbmE5xDOW6KJhjhghw6zf44ElPWPYS9HuvVF9Z2zwXliPuXKhL5EwK0W+Bxf JKwUQNRhpRc1T4chk6n2u5s3Yj9xlMu3fP4xP3jQUGgFbOawD/NKUp0DrarjB8haEA3HlB O/mbugN3mhzUrw+QprobWKjRFcYsgZEv9UXgkPo/H4Ib1luiEVSHUcKsOlockB2QrnrCGV S7Lr1j95IfiDkDwxgMcpGvgvf0zw87cM8C98VCQ6X9rAF5RyapgzQXNb+91vKg== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:07 +0200 Subject: [PATCH v2 10/11] mfd: omap-usb-host: Add pbias regulator support 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-10-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Add pbias regulator support to enable SIM_VDDS supply and unlock USB I/O cell. Previously, this was handled by the bootloader, now the kernel can take responsibility for managing the PBIAS regulator, ensuring correct operation regardless of the bootloader. Signed-off-by: Thomas Richard --- drivers/mfd/omap-usb-host.c | 55 +++++++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 17a54f0087c3..907fb614d464 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -15,6 +15,8 @@ #include #include #include +#include +#include =20 #include "omap-usb.h" =20 @@ -95,6 +97,8 @@ struct usbhs_hcd_omap { struct usbhs_omap_platform_data *pdata; =20 u32 usbhs_rev; + + struct regulator *pbias; }; /*------------------------------------------------------------------------= -*/ =20 @@ -334,26 +338,60 @@ static int usbhs_clocks_enable(struct device *dev, bo= ol enable) return r; } =20 +static int omap_usbhs_set_pbias(struct device *dev, bool power_on) +{ + struct usbhs_hcd_omap *omap =3D dev_get_drvdata(dev); + int ret; + + if (!omap->pbias) + return 0; + + if (power_on) + ret =3D regulator_enable(omap->pbias); + else + ret =3D regulator_disable(omap->pbias); + + if (ret) + dev_err(dev, "pbias reg %s failed\n", str_enable_disable(power_on)); + + return ret; +} + static int usbhs_runtime_resume(struct device *dev) { struct usbhs_hcd_omap *omap =3D dev_get_drvdata(dev); struct usbhs_omap_platform_data *pdata =3D omap->pdata; + int ret; =20 omap_tll_enable(pdata); =20 - return usbhs_clocks_enable(dev, true); + ret =3D usbhs_clocks_enable(dev, true); + if (ret) + return ret; + + return omap_usbhs_set_pbias(dev, true); } =20 static int usbhs_runtime_suspend(struct device *dev) { struct usbhs_hcd_omap *omap =3D dev_get_drvdata(dev); struct usbhs_omap_platform_data *pdata =3D omap->pdata; + int ret; =20 usbhs_clocks_enable(dev, false); =20 omap_tll_disable(pdata); =20 + ret =3D omap_usbhs_set_pbias(dev, false); + if (ret) + goto err; + return 0; + +err: + omap_tll_enable(pdata); + usbhs_clocks_enable(dev, true); + return ret; } =20 static unsigned omap_usbhs_rev1_hostconfig(struct usbhs_hcd_omap *omap, @@ -562,6 +600,15 @@ static int usbhs_omap_probe(struct platform_device *pd= ev) =20 omap->pdata =3D pdata; =20 + omap->pbias =3D devm_regulator_get_optional(dev, "pbias"); + if (IS_ERR(omap->pbias)) { + if (PTR_ERR(omap->pbias) =3D=3D -ENODEV) + omap->pbias =3D NULL; + else + return dev_err_probe(dev, PTR_ERR(omap->pbias), + "unable to get pbias regulator\n"); + } + /* Initialize the TLL subsystem */ omap_tll_init(pdata); =20 @@ -757,6 +804,10 @@ static int usbhs_omap_probe(struct platform_device *pd= ev) } =20 initialize: + ret =3D omap_usbhs_set_pbias(dev, true); + if (ret) + goto err_mem; + omap_usbhs_init(dev); =20 if (dev->of_node) { @@ -804,6 +855,8 @@ static void usbhs_omap_remove(struct platform_device *p= dev) of_platform_depopulate(&pdev->dev); else device_for_each_child(&pdev->dev, NULL, usbhs_omap_remove_child); + + omap_usbhs_set_pbias(&pdev->dev, false); } =20 static const struct dev_pm_ops usbhsomap_dev_pm_ops =3D { --=20 2.53.0 From nobody Mon Apr 6 09:12:33 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 C46D23DA5AB for ; Mon, 30 Mar 2026 13:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878279; cv=none; b=fW01M+H8cksMhGy86mOsLKBZuy6CXynGd+eJQ7808A9oZq8/prBwX2BkIay1FRyFXs0OSN8f3rX5wHg+4jyYbYSyrF34Eyf62+SX+B/kQYIZWEfR0YgfVANQTvj91n6qUClcDR3z5fgkmbCerWLCUGm2kgT+2Us6Slz2akAi22I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878279; c=relaxed/simple; bh=S+9pZnIR4Ii2mrRay+00UvKlRFHb53jV5wYXLigv92Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gTUVm6Z3efVf+XZoz/psPBDuQviwHjAH82BVHR/3Ym9k0meHOOkYBTR6m+PkBSaQoZKZRrqSvlpHz7rAQYxNZKH+HI4HpffltCG8kptiVtgBiBdW+UE80jQnwOrdUGE2d0TcKTwHuC+3pxePWW73YN803YjdQXT5AMtU4aCzIRU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=rzSDKMu+; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="rzSDKMu+" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 97FA7C58765; Mon, 30 Mar 2026 13:45:06 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7E40F5FFA8; Mon, 30 Mar 2026 13:44:36 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 37E1E104505F2; Mon, 30 Mar 2026 15:44:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774878275; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=+LBatK0e2tx9BdeCCJcMioLXnURJiMafU/RyqrJOQxo=; b=rzSDKMu+Xjq51PHLzGbLDefJ3u9lP54GkkfzPTPl7gCixCnE6+M/f0dZhEe62jutxt1jxp VI7DxfUoBkra0+5SxG+Ta1eDJCxBgrXoKiKtmo0Qdt7B1fYFL7XoB0n8XlPjmX1ycRfXWh IPZ1oLfBuGubkZH2x8WBPC+4J829F++Wgo0Vk0N2sDa8cbqdaRjQWI/LdmjJEvjvejGAQW S7e4RvbdbKpUlUpuMNekbnkyO0RuRjB7STTEuwpUbF9c2d+C2opSvb5UUkznnW6TJrFIAP fEWSpuPShlf1yFZfVzr0qt2XzqurdTyCLFuB3uP8lUv29Cxjf3TVRQBTjkYgQA== From: Thomas Richard Date: Mon, 30 Mar 2026 15:44:08 +0200 Subject: [PATCH v2 11/11] ARM: dts: ti: omap4: Add pbias regulator to the HS USB Host 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260330-omap4-fix-usb-support-v2-11-1c1e11b190dc@bootlin.com> References: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> In-Reply-To: <20260330-omap4-fix-usb-support-v2-0-1c1e11b190dc@bootlin.com> To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones Cc: Thomas Petazzoni , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thomas Richard X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 On OMAP4 add the pbias SIM regulator to the OMAP HS USB Host. Signed-off-by: Thomas Richard --- arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi b/arch/arm/boot/dts/ti= /omap/omap4-l4.dtsi index 6904a84a1700..c5e097f9cd17 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +++ b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi @@ -301,6 +301,7 @@ usbhshost: usbhshost@0 { clock-names =3D "refclk_60m_int", "refclk_60m_ext_p1", "refclk_60m_ext_p2"; + pbias-supply =3D <&pbias_sim_reg>; =20 usbhsohci: usb@800 { compatible =3D "ti,ohci-omap3"; --=20 2.53.0