From nobody Sat Jul 25 04:55:57 2026 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 3A0BE37F00C for ; Fri, 17 Jul 2026 18:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784311614; cv=none; b=jGM6Qt4qt5TQaQE/HEp4E7cNflTmXKUkskGK85mdlwfE87mzIXqTbLISsduUnaVN9/kqJQbIc72Hknry2ZOQaLUjbN8mJWZIqVyL9ueWeVw8yoH1H/TunSdI2euNvHWwMF4l0VxHTiEoxgcevUmMtdz1M5Z/4KxzIrkcj8/tYLc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784311614; c=relaxed/simple; bh=+v6zUGdaY85Do0AaXBBpVTholu8Imfhu/0Sj1o6gKm0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=qniH2SNePpZTf168X16IhAiiVFAyrYJ1wf2OLa95VLFgRJrfD90f+f/6xikCuOAAZfM9JK3Jazn/tFZx/ezGd+bFp/1bO62oXpSBkaUtvB9xQRJLuptzZxan2T49Fb/rqfP4y2IIfa2gPPU1QrYXcnGpLWPz+AIsDIe5c3ZQZfI= 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=bTPE0xSf; arc=none smtp.client-ip=209.85.215.176 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="bTPE0xSf" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-ca6a6181273so606851a12.1 for ; Fri, 17 Jul 2026 11:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784311610; x=1784916410; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=iLC7NB3P45Wnxo9kh67hc9jfjq1FpvDhoHTvr5AoAu4=; b=bTPE0xSfjAb9Z2EI/Yvst5rIg0/MyTEeh8/NxRFhN976h9PNxCYFj7Bo3+b9RuAiYW FmaAAy7g7HNqm2i9J87ws39yGsqKtCLJ4QIZFkLyBHMY9Pma8KbRPFAGDLNjymnKDV2V NtAhZmVG5ok6gepCt/wE7gFR38zDcswiIHuwmUB17aWo9wphpYQ4QSZcia5ONkW4Pytz 3EGscxDYAJlJntKEytdv0dxlmkRdYGJHVxljCs+E4dn2pLwgUWqKYiDGx+I9ivFKG0hH hH/fJHNAkHZkYmnCwXM44j+BbFmcxThtyDpJ9Y6WTcuM0W5lOuPYb+dyh9ySw1gknyki QeIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784311610; x=1784916410; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=iLC7NB3P45Wnxo9kh67hc9jfjq1FpvDhoHTvr5AoAu4=; b=E+BPyFjCIHuBJ/9GVv6H2LkVBzLGAHYbgTm9AnpFi2DeB6Ym6F8jC5s4vSzvBwV4SP gQylgtsoY4OxB/aaa0uU942Ne4HdSLxgkbhSdNSSSZSDrH46Xi94t6Fc9zYvE/7F8pl0 o+U1DscRZOlj3TPXfO3un4l637B5lQVwYNoCb0rd6O8wjJNuYxqFAiaizTAwLDrlz6DC cwI/eJlre3MW6A11hoXiTxZ+QZQV+ruidq2ijkVB/GwjBoQEvwo0TJCHZkFmbGOGod6d CCMP7pB/btlTB5uN1hQ0HTy6U7ZvUmW7hmcs/MZOLWYNO3moOEmXq94L/jhQmswyH/kr HqdQ== X-Gm-Message-State: AOJu0YwUUqTRIGMjeaQ620yE+Jp3wEIaOpcPNlXM97uMHep+MF0oOB1m nq7chwjHn1yLgbzzoY9T6T6V7SPV140OnLM/FCDBS44rEio1x3UJ+bsc X-Gm-Gg: AfdE7cmURbuop02V29KW01DC0bo+kOjc0rErW1g68JSx0FOC2AmOKyOqjBBkE68bKrB +CJKZFjLgt5GToTdD10QG4Bk0+aw4zIQvDECyf6N8e+iuxZ3qPOJZpJN2jd2eWnJk0p4FsJ9dmr AfQ4WhH9OQ49MV73/En1D4VJwCFJOQvIonBRAvPBtTSATVek3T23UjN8WUp+W/cHGqnPJGeCvir GWa2csOwC0Evwjy+hc/f3jMmAwsuhKib4uOigYVhIft1sz0GzG0XjOwEz3ivfGgjJQP3t4AK9QJ WkPHK214GOCsUzzaAOCJyt8u6vGoZzXieObSPPw1/q2yihJaPLMz0HaXO8fSeG9ml/sZa/wnceZ mRf0nz70PMG2d1+sdMxjB4ZX9se+Kog6YI6O6yJCDsDgjQujHUBHstMln0C6Iw74R/sQdkj/77K Avrv+gLiAmlZggSw== X-Received: by 2002:a17:903:3bd0:b0:2cc:f4d4:29a0 with SMTP id d9443c01a7336-2cf3493b6ccmr32413675ad.3.1784311610511; Fri, 17 Jul 2026 11:06:50 -0700 (PDT) Received: from [172.28.140.252] ([2409:40c2:5425:b99:7cf7:c083:fd30:1cea]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13ce2cbb7c5sm7115280c88.10.2026.07.17.11.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 11:06:49 -0700 (PDT) From: Bhargav Joshi Date: Fri, 17 Jul 2026 23:36:33 +0530 Subject: [PATCH] regulator: dt-bindigs: ti,pbias-omap: 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: <20260717-ti-pbias-omap-v1-1-527848131801@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXMQQqDMBBA0avIrB2IokZ7FXERx2mdQjVkbBEkd zfV5Vv8f4ByEFZ4ZAcE/onKuiQUeQY0u+XFKFMylKZsjDUVboJ+FKe4fpzH2rREXW0b6gpIjQ/ 8lP369cNt/Y5vpu0/gRhPrw4ahHEAAAA= X-Change-ID: 20260704-ti-pbias-omap-508cc9576c91 To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tony Lindgren Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, goledhruva@gmail.com, m-chawdhry@ti.com, daniel.baluta@gmail.com, simona.toaca@nxp.com, j.bhargav.u@gmail.com X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784311599; l=5419; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=+v6zUGdaY85Do0AaXBBpVTholu8Imfhu/0Sj1o6gKm0=; b=nNx9W5EMiHd+rRyF7NLAKrwdVQIOAVHb5IUQLml1o0mAMg88k/YdOApPn9v5LrqeBqtlkdNS7 nniil08/avpDqL8rVjzjSr8qdMY+tOyDtjAu0BGEuruYbiesJkeGWnQ X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= Convert Texas Instruments PBIAS internal regulator from text to DT schema. No Functional changes are introduced. Signed-off-by: Bhargav Joshi --- .../bindings/regulator/pbias-regulator.txt | 32 ----- .../bindings/regulator/ti,pbias-omap.yaml | 152 +++++++++++++++++= ++++ 2 files changed, 152 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-omap.yaml= b/Documentation/devicetree/bindings/regulator/ti,pbias-omap.yaml new file mode 100644 index 000000000000..61a4dc87c48c --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/ti,pbias-omap.yaml @@ -0,0 +1,152 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/ti,pbias-omap.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments PBIAS internal regulator. + +maintainers: + - Tony Lindgren + +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: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle of the system control module + + pbias_mmc_omap2430: + type: object + $ref: regulator.yaml# + + properties: + regulator-name: + const: pbias_mmc_omap2430 + + required: + - regulator-name + + unevaluatedProperties: false + + pbias_sim_omap3: + type: object + $ref: regulator.yaml# + + properties: + regulator-name: + const: pbias_sim_omap3 + + required: + - regulator-name + + unevaluatedProperties: false + + pbias_mmc_omap4: + type: object + $ref: regulator.yaml# + + properties: + regulator-name: + const: pbias_mmc_omap4 + + required: + - regulator-name + + unevaluatedProperties: false + + pbias_mmc_omap5: + type: object + $ref: regulator.yaml# + + properties: + regulator-name: + const: pbias_mmc_omap5 + + required: + - regulator-name + + unevaluatedProperties: false + +required: + - compatible + - reg + - syscon + +oneOf: + - required: + - pbias_mmc_omap2430 + - required: + - pbias_sim_omap3 + - required: + - pbias_mmc_omap4 + - required: + - pbias_mmc_omap5 + +allOf: + - $ref: regulator.yaml# + + - if: + properties: + compatible: + contains: + enum: + - ti,pbias-omap2 + then: + required: + - pbias_mmc_omap2430 + - if: + properties: + compatible: + contains: + const: ti,pbias-omap3 + then: + oneOf: + - required: + - pbias_mmc_omap2430 + - required: + - pbias_sim_omap3 + - if: + properties: + compatible: + contains: + const: ti,pbias-omap4 + then: + required: + - pbias_mmc_omap4 + - if: + properties: + compatible: + contains: + enum: + - ti,pbias-omap5 + - ti,pbias-dra7 + then: + required: + - pbias_mmc_omap5 + +unevaluatedProperties: false + +examples: + - | + 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>; + }; + }; --- base-commit: 1e9cdc2ea15adf4a821eefedabf6c0c8cf0b6a55 change-id: 20260704-ti-pbias-omap-508cc9576c91 Best regards, --=20 Bhargav