* [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding
@ 2025-10-19 13:04 Charan Pedumuru
2025-10-19 13:04 ` [PATCH v4 1/2] arm: dts: ti: omap: am335x-pepper: Fix vmmc-supply property typo Charan Pedumuru
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Charan Pedumuru @ 2025-10-19 13:04 UTC (permalink / raw)
To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Paul Barker, Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I
Cc: linux-mmc, devicetree, linux-kernel, linux-omap, Charan Pedumuru
Create a YAML binding for ti,omap2430-sdhci and fix vmmc-supply
property typo for a DTS file.
Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
---
Note: The property "ti,needs-special-reset" was not removed from DTS cause it will
disrupt the compilation for other compatibles as the node &mmc is used for all
compatibles for some DTS files.
Changes in v4:
- Removed type for the property pinctrl-names.
- Link to v3: https://lore.kernel.org/r/20251011-ti-sdhci-omap-v3-0-9487ef2de559@gmail.com
Changes in v3:
- Reverted the changes on removing ti,needs-special-reset, ti,needs-special-hs-handling
cap-mmc-dual-data-rate from the DTS.
- Fixed a typo to resolve the errors identified by dtb_check.
- Changed commit message to justify the modified changes.
- Defined if-then statements for compatibles to add required properties.
- Removed "ti-hwmods" property from the YAML.
- Link to v2: https://lore.kernel.org/r/20250908-ti-sdhci-omap-v2-0-72927890482f@gmail.com
Changes in v2:
- Changed MAINTAINERS to "Kishon Vijay Abraham".
- Renamed the YAML file name to "ti,omap2430-sdhci.yaml" from
"sdhci-omap.yaml".
- Dropped unnecessary or unused properties from DTS and made these
changes as a seperate commit as there is no user of it.
- Removed previously defined properties like ti,needs-special-reset,
ti,needs-special-hs-handling and cap-mmc-dual-data-rate from the YAML.
- Changed the commit message to elaborate the reasons for modifications.
- Removed the pattern property for pinctrl and redefined it in a regular format.
- Modified the description of the property "clock-frequency".
- Changed the subject line for the binding patch.
- Link to v1: https://lore.kernel.org/r/20250523-ti-sdhci-omap-v1-1-695c6eeac778@gmail.com
---
Charan Pedumuru (2):
arm: dts: ti: omap: am335x-pepper: Fix vmmc-supply property typo
dt-bindings: mmc: ti,omap2430-sdhci: convert to DT schema
.../devicetree/bindings/mmc/sdhci-omap.txt | 43 -----
.../devicetree/bindings/mmc/ti,omap2430-sdhci.yaml | 201 +++++++++++++++++++++
arch/arm/boot/dts/ti/omap/am335x-pepper.dts | 2 +-
3 files changed, 202 insertions(+), 44 deletions(-)
---
base-commit: ed61cb3d78d585209ec775933078e268544fe9a4
change-id: 20250519-ti-sdhci-omap-907f847f7530
Best regards,
--
Charan Pedumuru <charan.pedumuru@gmail.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v4 1/2] arm: dts: ti: omap: am335x-pepper: Fix vmmc-supply property typo
2025-10-19 13:04 [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding Charan Pedumuru
@ 2025-10-19 13:04 ` Charan Pedumuru
2025-10-19 13:04 ` [PATCH v4 2/2] dt-bindings: mmc: ti,omap2430-sdhci: convert to DT schema Charan Pedumuru
2025-10-20 14:27 ` [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding Rob Herring
2 siblings, 0 replies; 10+ messages in thread
From: Charan Pedumuru @ 2025-10-19 13:04 UTC (permalink / raw)
To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Paul Barker, Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I
Cc: linux-mmc, devicetree, linux-kernel, linux-omap, Charan Pedumuru
Rectify a typo for the property "vmmc-supply" to resolve the errors
detected by dtb_check.
Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
---
arch/arm/boot/dts/ti/omap/am335x-pepper.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/ti/omap/am335x-pepper.dts b/arch/arm/boot/dts/ti/omap/am335x-pepper.dts
index e7d561a527fdd9eeb15237ddee4c8db1dfd48edd..10d54e0ad15a7ff9770ad02c224b4b47aa5040de 100644
--- a/arch/arm/boot/dts/ti/omap/am335x-pepper.dts
+++ b/arch/arm/boot/dts/ti/omap/am335x-pepper.dts
@@ -347,7 +347,7 @@ &mmc3 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&wireless_pins>;
- vmmmc-supply = <&v3v3c_reg>;
+ vmmc-supply = <&v3v3c_reg>;
bus-width = <4>;
non-removable;
dmas = <&edma_xbar 12 0 1
--
2.51.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4 2/2] dt-bindings: mmc: ti,omap2430-sdhci: convert to DT schema
2025-10-19 13:04 [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding Charan Pedumuru
2025-10-19 13:04 ` [PATCH v4 1/2] arm: dts: ti: omap: am335x-pepper: Fix vmmc-supply property typo Charan Pedumuru
@ 2025-10-19 13:04 ` Charan Pedumuru
2025-10-20 14:27 ` [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding Rob Herring
2 siblings, 0 replies; 10+ messages in thread
From: Charan Pedumuru @ 2025-10-19 13:04 UTC (permalink / raw)
To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Paul Barker, Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I
Cc: linux-mmc, devicetree, linux-kernel, linux-omap, Charan Pedumuru
Convert TI OMAP SDHCI Controller binding to YAML format.
Changes during Conversion:
- Define new properties like "clocks", "clock-names",
"ti,needs-special-reset", "ti,needs-special-hs-handling",
"pbias-supply", "cap-mmc-dual-data-rate" and "power-domains" to
resolve dtb_check errors.
- Remove "pinctrl-names" and "pinctrl-<n>"
from required as they are not necessary for all DTS files.
- Remove "ti,hwmods" property entirely from the YAML as the
DTS doesn't contain this property for the given compatibles and the
text binding is misleading.
- Add "clocks", "clock-names", "max-frequency" and "ti,needs-special-reset"
to the required properties based on the compatible and the text binding
doesn't mention these properties as required.
- Add missing strings like "default-rev11", "sdr12-rev11", "sdr25-rev11",
"hs-rev11", "sdr25-rev11" and "sleep" to pinctrl-names string array
to resolve errors detected by dtb_check.
Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
---
.../devicetree/bindings/mmc/sdhci-omap.txt | 43 -----
.../devicetree/bindings/mmc/ti,omap2430-sdhci.yaml | 201 +++++++++++++++++++++
2 files changed, 201 insertions(+), 43 deletions(-)
diff --git a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt
deleted file mode 100644
index f91e341e6b36c410275e6f993dd08400be3fc1f8..0000000000000000000000000000000000000000
--- a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-* TI OMAP SDHCI Controller
-
-Refer to mmc.txt for standard MMC bindings.
-
-For UHS devices which require tuning, the device tree should have a "cpu_thermal" node which maps to the appropriate thermal zone. This is used to get the temperature of the zone during tuning.
-
-Required properties:
-- compatible: Should be "ti,omap2430-sdhci" for omap2430 controllers
- Should be "ti,omap3-sdhci" for omap3 controllers
- Should be "ti,omap4-sdhci" for omap4 and ti81 controllers
- Should be "ti,omap5-sdhci" for omap5 controllers
- Should be "ti,dra7-sdhci" for DRA7 and DRA72 controllers
- Should be "ti,k2g-sdhci" for K2G
- Should be "ti,am335-sdhci" for am335x controllers
- Should be "ti,am437-sdhci" for am437x controllers
-- ti,hwmods: Must be "mmc<n>", <n> is controller instance starting 1
- (Not required for K2G).
-- pinctrl-names: Should be subset of "default", "hs", "sdr12", "sdr25", "sdr50",
- "ddr50-rev11", "sdr104-rev11", "ddr50", "sdr104",
- "ddr_1_8v-rev11", "ddr_1_8v" or "ddr_3_3v", "hs200_1_8v-rev11",
- "hs200_1_8v",
-- pinctrl-<n> : Pinctrl states as described in bindings/pinctrl/pinctrl-bindings.txt
-
-Optional properties:
-- dmas: List of DMA specifiers with the controller specific format as described
- in the generic DMA client binding. A tx and rx specifier is required.
-- dma-names: List of DMA request names. These strings correspond 1:1 with the
- DMA specifiers listed in dmas. The string naming is to be "tx"
- and "rx" for TX and RX DMA requests, respectively.
-
-Deprecated properties:
-- ti,non-removable: Compatible with the generic non-removable property
-
-Example:
- mmc1: mmc@4809c000 {
- compatible = "ti,dra7-sdhci";
- reg = <0x4809c000 0x400>;
- ti,hwmods = "mmc1";
- bus-width = <4>;
- vmmc-supply = <&vmmc>; /* phandle to regulator node */
- dmas = <&sdma 61 &sdma 62>;
- dma-names = "tx", "rx";
- };
diff --git a/Documentation/devicetree/bindings/mmc/ti,omap2430-sdhci.yaml b/Documentation/devicetree/bindings/mmc/ti,omap2430-sdhci.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..25a8eecfcd37fba7048e0ffae21168f24d6c99d7
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/ti,omap2430-sdhci.yaml
@@ -0,0 +1,201 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/ti,omap2430-sdhci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI OMAP SDHCI Controller
+
+maintainers:
+ - Kishon Vijay Abraham I <kishon@ti.com>
+
+description:
+ For UHS devices which require tuning, the device tree should have a
+ cpu_thermal node which maps to the appropriate thermal zone. This
+ is used to get the temperature of the zone during tuning.
+
+properties:
+ compatible:
+ enum:
+ - ti,omap2430-sdhci
+ - ti,omap3-sdhci
+ - ti,omap4-sdhci
+ - ti,omap5-sdhci
+ - ti,dra7-sdhci
+ - ti,k2g-sdhci
+ - ti,am335-sdhci
+ - ti,am437-sdhci
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 2
+
+ clock-names:
+ items:
+ - const: fck
+ - const: mmchsdb_fck
+
+ dmas:
+ maxItems: 2
+
+ dma-names:
+ items:
+ - const: tx
+ - const: rx
+
+ pinctrl-names:
+ minItems: 1
+ maxItems: 14
+ items:
+ enum:
+ - default
+ - default-rev11
+ - hs
+ - sdr12
+ - sdr12-rev11
+ - sdr25
+ - sdr25-rev11
+ - sdr50
+ - ddr50-rev11
+ - sdr104-rev11
+ - ddr50
+ - sdr104
+ - ddr_1_8v-rev11
+ - ddr_1_8v
+ - ddr_3_3v
+ - hs-rev11
+ - hs200_1_8v-rev11
+ - hs200_1_8v
+ - sleep
+
+ pinctrl-0:
+ maxItems: 1
+
+ pinctrl-1:
+ maxItems: 1
+
+ pinctrl-2:
+ maxItems: 1
+
+ pinctrl-3:
+ maxItems: 1
+
+ pinctrl-4:
+ maxItems: 1
+
+ pinctrl-5:
+ maxItems: 1
+
+ pinctrl-6:
+ maxItems: 1
+
+ pinctrl-7:
+ maxItems: 1
+
+ pinctrl-8:
+ maxItems: 1
+
+ power-domains:
+ maxItems: 1
+
+ pbias-supply:
+ description:
+ It is used to specify the voltage regulator that provides the bias
+ voltage for certain analog or I/O pads.
+
+ cap-mmc-dual-data-rate:
+ description:
+ A characteristic or capability associated with MultiMediaCard (MMC)
+ interfaces, specifically indicating that the MMC controller
+ supports Dual Data Rate (DDR) mode.
+ type: boolean
+
+ ti,needs-special-reset:
+ description:
+ It indicates that a specific soft reset sequence is required for
+ certain Texas Instruments devices, particularly those with
+ HSMMC (High-Speed MultiMediaCard) controllers.
+ type: boolean
+
+ ti,needs-special-hs-handling:
+ description:
+ It's presence in an MMC controller's DT node signals to the Linux kernel's
+ omap_hsmmc driver that this particular IP block requires special software
+ handling or workarounds to correctly manage High-Speed (HS) modes like
+ SDR25, SDR50, SDR104, DDR50.
+ type: boolean
+
+ ti,non-removable:
+ description:
+ It indicates that a component is not meant to be easily removed or
+ replaced by the user, such as an embedded battery or a non-removable
+ storage slot like eMMC.
+ type: boolean
+ deprecated: true
+
+ clock-frequency:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ It represents the speed at which a clock signal associated with a device
+ or bus operates, measured in Hertz (Hz). This value is crucial for configuring
+ hardware components that require a specific clock speed.
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+allOf:
+ - $ref: sdhci-common.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - ti,dra7-sdhci
+ - ti,k2g-sdhci
+ then:
+ required:
+ - max-frequency
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: ti,k2g-sdhci
+ then:
+ required:
+ - clocks
+ - clock-names
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - ti,am335-sdhci
+ - ti,am437-sdhci
+ then:
+ required:
+ - ti,needs-special-reset
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ mmc@4809c000 {
+ compatible = "ti,dra7-sdhci";
+ reg = <0x4809c000 0x400>;
+ interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
+ max-frequency = <192000000>;
+ sdhci-caps-mask = <0x0 0x400000>;
+ bus-width = <4>;
+ vmmc-supply = <&vmmc>; /* phandle to regulator node */
+ dmas = <&sdma 61>, <&sdma 62>;
+ dma-names = "tx", "rx";
+ };
+...
--
2.51.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding
2025-10-19 13:04 [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding Charan Pedumuru
2025-10-19 13:04 ` [PATCH v4 1/2] arm: dts: ti: omap: am335x-pepper: Fix vmmc-supply property typo Charan Pedumuru
2025-10-19 13:04 ` [PATCH v4 2/2] dt-bindings: mmc: ti,omap2430-sdhci: convert to DT schema Charan Pedumuru
@ 2025-10-20 14:27 ` Rob Herring
2025-10-20 15:44 ` Charan Pedumuru
2 siblings, 1 reply; 10+ messages in thread
From: Rob Herring @ 2025-10-20 14:27 UTC (permalink / raw)
To: Charan Pedumuru
Cc: Ulf Hansson, Krzysztof Kozlowski, Conor Dooley, Paul Barker,
Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I, linux-mmc,
devicetree, linux-kernel, linux-omap
On Sun, Oct 19, 2025 at 01:04:36PM +0000, Charan Pedumuru wrote:
> Create a YAML binding for ti,omap2430-sdhci and fix vmmc-supply
> property typo for a DTS file.
>
> Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
> ---
> Note: The property "ti,needs-special-reset" was not removed from DTS cause it will
> disrupt the compilation for other compatibles as the node &mmc is used for all
> compatibles for some DTS files.
I don't understand. AFIACT, "ti,needs-special-reset" is only used for
the hsmmc driver/binding. But this series for for the sdhci
driver/binding. So shouldn't the property be removed from sdhci nodes
(and the binding), but kept for hsmmc nodes?
Rob
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding
2025-10-20 14:27 ` [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding Rob Herring
@ 2025-10-20 15:44 ` Charan Pedumuru
2025-10-20 15:58 ` Rob Herring
0 siblings, 1 reply; 10+ messages in thread
From: Charan Pedumuru @ 2025-10-20 15:44 UTC (permalink / raw)
To: Rob Herring
Cc: Ulf Hansson, Krzysztof Kozlowski, Conor Dooley, Paul Barker,
Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I, linux-mmc,
devicetree, linux-kernel, linux-omap
On 20-10-2025 19:57, Rob Herring wrote:
> On Sun, Oct 19, 2025 at 01:04:36PM +0000, Charan Pedumuru wrote:
>> Create a YAML binding for ti,omap2430-sdhci and fix vmmc-supply
>> property typo for a DTS file.
>>
>> Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
>> ---
>> Note: The property "ti,needs-special-reset" was not removed from DTS cause it will
>> disrupt the compilation for other compatibles as the node &mmc is used for all
>> compatibles for some DTS files.
>
> I don't understand. AFIACT, "ti,needs-special-reset" is only used for
> the hsmmc driver/binding. But this series for for the sdhci
> driver/binding. So shouldn't the property be removed from sdhci nodes
> (and the binding), but kept for hsmmc nodes?
Yes we can remove that property from sdhci , but &mmc node in DTS is common for all mmc drivers and this "ti,needs-special-reset" property is defined there for one board, so even when I remove it from DTSI for sdhci nodes, the DTS file still contains this property in &mmc node which is also common for other mmc drivers, so even if we remove that property for sdhci node, we still need to define it in YAML to resolve dtb_check. The issue here is not removing the property from sdhci node in DTSI file, but to remove it from &mmc node from a DTS file which is common to all mmc drivers.
Here is the DTS node (ti/omap/am5729-beagleboneai.dts) which contain that property and is common for all mmc drivers.
&mmc2 {
status = "okay";
vmmc-supply = <&vdd_1v8>;
vqmmc-supply = <&vdd_1v8>;
bus-width = <8>;
ti,non-removable;
non-removable;
mmc-pwrseq = <&emmc_pwrseq>;
ti,needs-special-reset;
dmas = <&sdma_xbar 47>, <&sdma_xbar 48>;
dma-names = "tx", "rx";
};
>
> Rob
--
Best Regards,
Charan.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding
2025-10-20 15:44 ` Charan Pedumuru
@ 2025-10-20 15:58 ` Rob Herring
2025-10-21 16:30 ` Charan Pedumuru
2025-10-23 15:40 ` Charan Pedumuru
0 siblings, 2 replies; 10+ messages in thread
From: Rob Herring @ 2025-10-20 15:58 UTC (permalink / raw)
To: Charan Pedumuru
Cc: Ulf Hansson, Krzysztof Kozlowski, Conor Dooley, Paul Barker,
Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I, linux-mmc,
devicetree, linux-kernel, linux-omap
On Mon, Oct 20, 2025 at 10:44 AM Charan Pedumuru
<charan.pedumuru@gmail.com> wrote:
>
>
>
> On 20-10-2025 19:57, Rob Herring wrote:
> > On Sun, Oct 19, 2025 at 01:04:36PM +0000, Charan Pedumuru wrote:
> >> Create a YAML binding for ti,omap2430-sdhci and fix vmmc-supply
> >> property typo for a DTS file.
> >>
> >> Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
> >> ---
> >> Note: The property "ti,needs-special-reset" was not removed from DTS cause it will
> >> disrupt the compilation for other compatibles as the node &mmc is used for all
> >> compatibles for some DTS files.
> >
> > I don't understand. AFIACT, "ti,needs-special-reset" is only used for
> > the hsmmc driver/binding. But this series for for the sdhci
> > driver/binding. So shouldn't the property be removed from sdhci nodes
> > (and the binding), but kept for hsmmc nodes?
>
>
> Yes we can remove that property from sdhci , but &mmc node in DTS is common for all mmc drivers and this "ti,needs-special-reset" property is defined there for one board, so even when I remove it from DTSI for sdhci nodes, the DTS file still contains this property in &mmc node which is also common for other mmc drivers, so even if we remove that property for sdhci node, we still need to define it in YAML to resolve dtb_check. The issue here is not removing the property from sdhci node in DTSI file, but to remove it from &mmc node from a DTS file which is common to all mmc drivers.
>
> Here is the DTS node (ti/omap/am5729-beagleboneai.dts) which contain that property and is common for all mmc drivers.
> &mmc2 {
> status = "okay";
> vmmc-supply = <&vdd_1v8>;
> vqmmc-supply = <&vdd_1v8>;
> bus-width = <8>;
> ti,non-removable;
> non-removable;
> mmc-pwrseq = <&emmc_pwrseq>;
>
> ti,needs-special-reset;
> dmas = <&sdma_xbar 47>, <&sdma_xbar 48>;
> dma-names = "tx", "rx";
>
> };
I'm pretty sure that's not how &mmc2 works and you are confused. I
would suggest you do a dtb->dts pass and compare the results.
Rob
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding
2025-10-20 15:58 ` Rob Herring
@ 2025-10-21 16:30 ` Charan Pedumuru
2025-10-23 15:40 ` Charan Pedumuru
1 sibling, 0 replies; 10+ messages in thread
From: Charan Pedumuru @ 2025-10-21 16:30 UTC (permalink / raw)
To: Rob Herring
Cc: Ulf Hansson, Krzysztof Kozlowski, Conor Dooley, Paul Barker,
Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I, linux-mmc,
devicetree, linux-kernel, linux-omap
On 20-10-2025 21:28, Rob Herring wrote:
> On Mon, Oct 20, 2025 at 10:44 AM Charan Pedumuru
> <charan.pedumuru@gmail.com> wrote:
>>
>>
>>
>> On 20-10-2025 19:57, Rob Herring wrote:
>>> On Sun, Oct 19, 2025 at 01:04:36PM +0000, Charan Pedumuru wrote:
>>>> Create a YAML binding for ti,omap2430-sdhci and fix vmmc-supply
>>>> property typo for a DTS file.
>>>>
>>>> Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
>>>> ---
>>>> Note: The property "ti,needs-special-reset" was not removed from DTS cause it will
>>>> disrupt the compilation for other compatibles as the node &mmc is used for all
>>>> compatibles for some DTS files.
>>>
>>> I don't understand. AFIACT, "ti,needs-special-reset" is only used for
>>> the hsmmc driver/binding. But this series for for the sdhci
>>> driver/binding. So shouldn't the property be removed from sdhci nodes
>>> (and the binding), but kept for hsmmc nodes?
>>
>>
>> Yes we can remove that property from sdhci , but &mmc node in DTS is common for all mmc drivers and this "ti,needs-special-reset" property is defined there for one board, so even when I remove it from DTSI for sdhci nodes, the DTS file still contains this property in &mmc node which is also common for other mmc drivers, so even if we remove that property for sdhci node, we still need to define it in YAML to resolve dtb_check. The issue here is not removing the property from sdhci node in DTSI file, but to remove it from &mmc node from a DTS file which is common to all mmc drivers.
>>
>> Here is the DTS node (ti/omap/am5729-beagleboneai.dts) which contain that property and is common for all mmc drivers.
>> &mmc2 {
>> status = "okay";
>> vmmc-supply = <&vdd_1v8>;
>> vqmmc-supply = <&vdd_1v8>;
>> bus-width = <8>;
>> ti,non-removable;
>> non-removable;
>> mmc-pwrseq = <&emmc_pwrseq>;
>>
>> ti,needs-special-reset;
>> dmas = <&sdma_xbar 47>, <&sdma_xbar 48>;
>> dma-names = "tx", "rx";
>>
>> };
>
> I'm pretty sure that's not how &mmc2 works and you are confused. I
> would suggest you do a dtb->dts pass and compare the results.
Okay, then I will remove ti,needs-special-reset property for sdhci node, above mentioned DTS and from YAML too.
>
> Rob
--
Best Regards,
Charan.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding
2025-10-20 15:58 ` Rob Herring
2025-10-21 16:30 ` Charan Pedumuru
@ 2025-10-23 15:40 ` Charan Pedumuru
2025-10-23 18:22 ` Rob Herring
1 sibling, 1 reply; 10+ messages in thread
From: Charan Pedumuru @ 2025-10-23 15:40 UTC (permalink / raw)
To: Rob Herring
Cc: Ulf Hansson, Krzysztof Kozlowski, Conor Dooley, Paul Barker,
Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I, linux-mmc,
devicetree, linux-kernel, linux-omap
On 20-10-2025 21:28, Rob Herring wrote:
> On Mon, Oct 20, 2025 at 10:44 AM Charan Pedumuru
> <charan.pedumuru@gmail.com> wrote:
>>
>>
>>
>> On 20-10-2025 19:57, Rob Herring wrote:
>>> On Sun, Oct 19, 2025 at 01:04:36PM +0000, Charan Pedumuru wrote:
>>>> Create a YAML binding for ti,omap2430-sdhci and fix vmmc-supply
>>>> property typo for a DTS file.
>>>>
>>>> Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
>>>> ---
>>>> Note: The property "ti,needs-special-reset" was not removed from DTS cause it will
>>>> disrupt the compilation for other compatibles as the node &mmc is used for all
>>>> compatibles for some DTS files.
>>>
>>> I don't understand. AFIACT, "ti,needs-special-reset" is only used for
>>> the hsmmc driver/binding. But this series for for the sdhci
>>> driver/binding. So shouldn't the property be removed from sdhci nodes
>>> (and the binding), but kept for hsmmc nodes?
>>
>>
>> Yes we can remove that property from sdhci , but &mmc node in DTS is common for all mmc drivers and this "ti,needs-special-reset" property is defined there for one board, so even when I remove it from DTSI for sdhci nodes, the DTS file still contains this property in &mmc node which is also common for other mmc drivers, so even if we remove that property for sdhci node, we still need to define it in YAML to resolve dtb_check. The issue here is not removing the property from sdhci node in DTSI file, but to remove it from &mmc node from a DTS file which is common to all mmc drivers.
>>
>> Here is the DTS node (ti/omap/am5729-beagleboneai.dts) which contain that property and is common for all mmc drivers.
>> &mmc2 {
>> status = "okay";
>> vmmc-supply = <&vdd_1v8>;
>> vqmmc-supply = <&vdd_1v8>;
>> bus-width = <8>;
>> ti,non-removable;
>> non-removable;
>> mmc-pwrseq = <&emmc_pwrseq>;
>>
>> ti,needs-special-reset;
>> dmas = <&sdma_xbar 47>, <&sdma_xbar 48>;
>> dma-names = "tx", "rx";
>>
>> };
>
> I'm pretty sure that's not how &mmc2 works and you are confused. I
> would suggest you do a dtb->dts pass and compare the results.
So, I can remove ti,needs-special-hs-handling and cap-mmc-dual-data-rate properties from a similar DTS file along with ti,needs-special-reset as these properties are not used for sdhci-omap driver and are no longer in use, I will remove these properties from YAML too, if this is true. Can you confirm this?
>
> Rob
--
Best Regards,
Charan.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding
2025-10-23 15:40 ` Charan Pedumuru
@ 2025-10-23 18:22 ` Rob Herring
2025-10-24 5:07 ` Charan Pedumuru
0 siblings, 1 reply; 10+ messages in thread
From: Rob Herring @ 2025-10-23 18:22 UTC (permalink / raw)
To: Charan Pedumuru
Cc: Ulf Hansson, Krzysztof Kozlowski, Conor Dooley, Paul Barker,
Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I, linux-mmc,
devicetree, linux-kernel, linux-omap
On Thu, Oct 23, 2025 at 10:40 AM Charan Pedumuru
<charan.pedumuru@gmail.com> wrote:
>
>
>
> On 20-10-2025 21:28, Rob Herring wrote:
> > On Mon, Oct 20, 2025 at 10:44 AM Charan Pedumuru
> > <charan.pedumuru@gmail.com> wrote:
> >>
> >>
> >>
> >> On 20-10-2025 19:57, Rob Herring wrote:
> >>> On Sun, Oct 19, 2025 at 01:04:36PM +0000, Charan Pedumuru wrote:
> >>>> Create a YAML binding for ti,omap2430-sdhci and fix vmmc-supply
> >>>> property typo for a DTS file.
> >>>>
> >>>> Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
> >>>> ---
> >>>> Note: The property "ti,needs-special-reset" was not removed from DTS cause it will
> >>>> disrupt the compilation for other compatibles as the node &mmc is used for all
> >>>> compatibles for some DTS files.
> >>>
> >>> I don't understand. AFIACT, "ti,needs-special-reset" is only used for
> >>> the hsmmc driver/binding. But this series for for the sdhci
> >>> driver/binding. So shouldn't the property be removed from sdhci nodes
> >>> (and the binding), but kept for hsmmc nodes?
> >>
> >>
> >> Yes we can remove that property from sdhci , but &mmc node in DTS is common for all mmc drivers and this "ti,needs-special-reset" property is defined there for one board, so even when I remove it from DTSI for sdhci nodes, the DTS file still contains this property in &mmc node which is also common for other mmc drivers, so even if we remove that property for sdhci node, we still need to define it in YAML to resolve dtb_check. The issue here is not removing the property from sdhci node in DTSI file, but to remove it from &mmc node from a DTS file which is common to all mmc drivers.
> >>
> >> Here is the DTS node (ti/omap/am5729-beagleboneai.dts) which contain that property and is common for all mmc drivers.
> >> &mmc2 {
> >> status = "okay";
> >> vmmc-supply = <&vdd_1v8>;
> >> vqmmc-supply = <&vdd_1v8>;
> >> bus-width = <8>;
> >> ti,non-removable;
> >> non-removable;
> >> mmc-pwrseq = <&emmc_pwrseq>;
> >>
> >> ti,needs-special-reset;
> >> dmas = <&sdma_xbar 47>, <&sdma_xbar 48>;
> >> dma-names = "tx", "rx";
> >>
> >> };
> >
> > I'm pretty sure that's not how &mmc2 works and you are confused. I
> > would suggest you do a dtb->dts pass and compare the results.
>
> So, I can remove ti,needs-special-hs-handling and cap-mmc-dual-data-rate properties from a similar DTS file along with ti,needs-special-reset as these properties are not used for sdhci-omap driver and are no longer in use, I will remove these properties from YAML too, if this is true. Can you confirm this?
If the properties are not used in drivers or .dts files, then yes they
don't need to be in the schema.
I think you just need what you had previously and just drop the
changes to hsmmc nodes.
Rob
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding
2025-10-23 18:22 ` Rob Herring
@ 2025-10-24 5:07 ` Charan Pedumuru
0 siblings, 0 replies; 10+ messages in thread
From: Charan Pedumuru @ 2025-10-24 5:07 UTC (permalink / raw)
To: Rob Herring
Cc: Ulf Hansson, Krzysztof Kozlowski, Conor Dooley, Paul Barker,
Marc Murphy, Tony Lindgren, Kishon Vijay Abraham I, linux-mmc,
devicetree, linux-kernel, linux-omap
On 23-10-2025 23:52, Rob Herring wrote:
> On Thu, Oct 23, 2025 at 10:40 AM Charan Pedumuru
> <charan.pedumuru@gmail.com> wrote:
>>
>>
>>
>> On 20-10-2025 21:28, Rob Herring wrote:
>>> On Mon, Oct 20, 2025 at 10:44 AM Charan Pedumuru
>>> <charan.pedumuru@gmail.com> wrote:
>>>>
>>>>
>>>>
>>>> On 20-10-2025 19:57, Rob Herring wrote:
>>>>> On Sun, Oct 19, 2025 at 01:04:36PM +0000, Charan Pedumuru wrote:
>>>>>> Create a YAML binding for ti,omap2430-sdhci and fix vmmc-supply
>>>>>> property typo for a DTS file.
>>>>>>
>>>>>> Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
>>>>>> ---
>>>>>> Note: The property "ti,needs-special-reset" was not removed from DTS cause it will
>>>>>> disrupt the compilation for other compatibles as the node &mmc is used for all
>>>>>> compatibles for some DTS files.
>>>>>
>>>>> I don't understand. AFIACT, "ti,needs-special-reset" is only used for
>>>>> the hsmmc driver/binding. But this series for for the sdhci
>>>>> driver/binding. So shouldn't the property be removed from sdhci nodes
>>>>> (and the binding), but kept for hsmmc nodes?
>>>>
>>>>
>>>> Yes we can remove that property from sdhci , but &mmc node in DTS is common for all mmc drivers and this "ti,needs-special-reset" property is defined there for one board, so even when I remove it from DTSI for sdhci nodes, the DTS file still contains this property in &mmc node which is also common for other mmc drivers, so even if we remove that property for sdhci node, we still need to define it in YAML to resolve dtb_check. The issue here is not removing the property from sdhci node in DTSI file, but to remove it from &mmc node from a DTS file which is common to all mmc drivers.
>>>>
>>>> Here is the DTS node (ti/omap/am5729-beagleboneai.dts) which contain that property and is common for all mmc drivers.
>>>> &mmc2 {
>>>> status = "okay";
>>>> vmmc-supply = <&vdd_1v8>;
>>>> vqmmc-supply = <&vdd_1v8>;
>>>> bus-width = <8>;
>>>> ti,non-removable;
>>>> non-removable;
>>>> mmc-pwrseq = <&emmc_pwrseq>;
>>>>
>>>> ti,needs-special-reset;
>>>> dmas = <&sdma_xbar 47>, <&sdma_xbar 48>;
>>>> dma-names = "tx", "rx";
>>>>
>>>> };
>>>
>>> I'm pretty sure that's not how &mmc2 works and you are confused. I
>>> would suggest you do a dtb->dts pass and compare the results.
>>
>> So, I can remove ti,needs-special-hs-handling and cap-mmc-dual-data-rate properties from a similar DTS file along with ti,needs-special-reset as these properties are not used for sdhci-omap driver and are no longer in use, I will remove these properties from YAML too, if this is true. Can you confirm this?
>
> If the properties are not used in drivers or .dts files, then yes they
> don't need to be in the schema.
>
> I think you just need what you had previously and just drop the
> changes to hsmmc nodes.
Yes, I understood now, thanks for the clarification.
>
> Rob
--
Best Regards,
Charan.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-10-24 5:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-19 13:04 [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding Charan Pedumuru
2025-10-19 13:04 ` [PATCH v4 1/2] arm: dts: ti: omap: am335x-pepper: Fix vmmc-supply property typo Charan Pedumuru
2025-10-19 13:04 ` [PATCH v4 2/2] dt-bindings: mmc: ti,omap2430-sdhci: convert to DT schema Charan Pedumuru
2025-10-20 14:27 ` [PATCH v4 0/2] dt-bindings: mmc: ti,omap2430-sdhci: Add json schema for the text binding Rob Herring
2025-10-20 15:44 ` Charan Pedumuru
2025-10-20 15:58 ` Rob Herring
2025-10-21 16:30 ` Charan Pedumuru
2025-10-23 15:40 ` Charan Pedumuru
2025-10-23 18:22 ` Rob Herring
2025-10-24 5:07 ` Charan Pedumuru
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).