From nobody Fri Dec 19 13:49:03 2025 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 1DB8C24467E for ; Sat, 11 Oct 2025 08:44:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760172253; cv=none; b=MKVdgswlxJq3y/aF7I2xAE+zAFpdJnExSuOUb4xVj0jUHUGmhLKNYdapQxkC0sHks3IbgBL0RI5LZ+P7dOY6xtw9lVaOGQAS0Ck+WrjrU03ctWdLfzjhXxiSAVKCfQzwi51BYYheaa4hBT/BFngBBqDF3ZVlkzzHutLj7JM4SYI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760172253; c=relaxed/simple; bh=q9sxAETe5OIqVHt+Y4pP5JV4H10TxiWkP+aj8IEeAQI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FJB7W98hPmhj2TYvKaB/jcOizIn5zbOfV5JcF70KW2CDxu4RH/3JaSY0o/NmzrVaaIm2iaNdKMNDcpkXMWiLNC+vdr+G+SwPcQ/PnpolhWXsuSpy6QKikiJtLfPcyqRigEVXenJtJN6OJGo3nzaPK9MvhxWiPfxaPwvMD0mXs/A= 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=kNE4Yrq0; arc=none smtp.client-ip=209.85.210.179 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="kNE4Yrq0" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-7835321bc98so2775371b3a.2 for ; Sat, 11 Oct 2025 01:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760172247; x=1760777047; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=g4PDXn+JxUar3PSQB1k+NUTfw6C2jsat1FHf88GiI/Y=; b=kNE4Yrq0T8f77iHdPJ2xMbv7SCHpB/2oiJyFQN3zyOvxc4HKoYckOweT5HhLHcH8HB VrRxFhK5bFTfbdudl7uGxjD4fHNcGU62ARddWU3tCOCtHKrm+Gt/gB6T0btCqb69dB5O MroS1vlwGXz1Lvy93XzIYRbqBY4sdMg11ty5dxqYYVNdKC+WNmGd56JRYbB0UkFqZTVm xTucVdO842uJuY1KKJ4HV//Qa/qyrELz/7UJk8tF8fIrP0bnS2I1GX1fkYkQd9Ptq9y/ iKrnTLEiLYwvaowalNwdmUuh02BOEEitpfLoCCPJ3/VegJB7QGNFE+soJLoRhw2YWoa9 SCgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760172247; x=1760777047; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g4PDXn+JxUar3PSQB1k+NUTfw6C2jsat1FHf88GiI/Y=; b=KK/iMmhxlbnHYSwyYgoJt7WOnwbAiMYvLi0Pgl1iY1t/XGGnbvOrgUK9UitqeDBkU3 5wclRoIkejEWQI/g6AA8PJyloQbCnTu+gsGqW/LIwQ0ZBU8dtwZNmCLOzwsmbnGsnwrS D5VXgvrgCDvRbm3vzMGGwp9wh4oRb0pBOmhkoKtyg1VpQqUbF46dBduV1pjeJXoH9Gbn VF6URZ7jS4v6F69SVWuKJFGP2m9ugwjn7Ar/zqptzBBmrIXAq0b0aQJ3Ixd/3RMv97Ig 6T5AED4azmrN86zUQ7xzbrJjKfoQ+fYKpwROMlRXBFMAc2qgNYLCwcG3zEauW1xKNwHi XdfQ== X-Forwarded-Encrypted: i=1; AJvYcCU5gRS6o9B2A5g1okr85z3F1o0qkpcFdMYeUkvk7LnInpWRfeiH8FxJtcutT4Hv0e+z7EhCkwN0HaMg0s4=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6P20vWFna1La+hryKunevl11fbJejGyt/j0tcwlgw6W5BOr8r zUFnVsmg9KTqSwRrq4FiUa4t0Q0ws7lTpXo/BITmRjAcvoAcGorhDTq/ounofQ== X-Gm-Gg: ASbGncvtlf7ayMnOlMWYCVb1rGyQjEb3RR3FukdykCAP6UfnkC8Qa5pUIFAotRWBrRU H9sFIWx65bWHbL6p0qfMUjvwSTdQE9bFL1g7FeDTKe1T0WvAr4mc5K4bcl/7Ru2R6G0MFz2ITEI wdBNT4DiWWSf0MdgzuOSi3knUjphgzZEIOiZm/E3CyoaxYcfrAdQFDedjIq8dajvIi8xHMaMsca 57yuFka2c7q8phB38R7HRhYVKkeF6/wvwpA08Z3IlqoApMiGUSD9Q8NSBDmPueyLOyiWMbcjwW/ i4LhiupKEFcg5b22y7b/2MGOoJJJsdNd/fz9qDD34GLkBPmK5DojltgWPhCmDjwBzEHT8nu/iDb OYK9Jls+v2zn4aKTEYDFvRggbXJSDTIR84ooI0Ux8KyweGBM6zniDA09mPo1UOtDpufjVSYthc+ Knjw8= X-Google-Smtp-Source: AGHT+IHIBtYr4kZkVJMMgsx5CGtaN+MoT5AMsvXZeqpen1KOa5fs69vzGtUrVk4aCFZbvjs/plf8Ag== X-Received: by 2002:a05:6a00:2d92:b0:781:1550:1ac7 with SMTP id d2e1a72fcca58-793857098aemr18639763b3a.6.1760172247152; Sat, 11 Oct 2025 01:44:07 -0700 (PDT) Received: from Black-Pearl.localdomain ([157.50.164.155]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-7992d09659esm5401090b3a.45.2025.10.11.01.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Oct 2025 01:44:06 -0700 (PDT) From: Charan Pedumuru Date: Sat, 11 Oct 2025 08:40:24 +0000 Subject: [PATCH v3 2/2] dt-bindings: mmc: ti,omap2430-sdhci: 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: <20251011-ti-sdhci-omap-v3-2-9487ef2de559@gmail.com> References: <20251011-ti-sdhci-omap-v3-0-9487ef2de559@gmail.com> In-Reply-To: <20251011-ti-sdhci-omap-v3-0-9487ef2de559@gmail.com> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Barker , Marc Murphy , Tony Lindgren , Kishon Vijay Abraham I Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Charan Pedumuru X-Mailer: b4 0.14.2 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-" 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 --- .../devicetree/bindings/mmc/sdhci-omap.txt | 43 ----- .../devicetree/bindings/mmc/ti,omap2430-sdhci.yaml | 202 +++++++++++++++++= ++++ 2 files changed, 202 insertions(+), 43 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt b/Documen= tation/devicetree/bindings/mmc/sdhci-omap.txt deleted file mode 100644 index f91e341e6b36c410275e6f993dd08400be3fc1f8..000000000000000000000000000= 0000000000000 --- 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_t= hermal" node which maps to the appropriate thermal zone. This is used to ge= t 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", is controller instance starting 1 - (Not required for K2G). -- pinctrl-names: Should be subset of "default", "hs", "sdr12", "sdr25", "s= dr50", - "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- : Pinctrl states as described in bindings/pinctrl/pinctrl-bi= ndings.txt - -Optional properties: -- dmas: List of DMA specifiers with the controller specific format as des= cribed - 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 =3D "ti,dra7-sdhci"; - reg =3D <0x4809c000 0x400>; - ti,hwmods =3D "mmc1"; - bus-width =3D <4>; - vmmc-supply =3D <&vmmc>; /* phandle to regulator node */ - dmas =3D <&sdma 61 &sdma 62>; - dma-names =3D "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..7683481204b2e222847244b67f9= ae2684db93028 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/ti,omap2430-sdhci.yaml @@ -0,0 +1,202 @@ +# 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 + +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: + $ref: /schemas/types.yaml#/definitions/string-array + 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 ke= rnel's + omap_hsmmc driver that this particular IP block requires special sof= tware + handling or workarounds to correctly manage High-Speed (HS) modes li= ke + 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 de= vice + or bus operates, measured in Hertz (Hz). This value is crucial for c= onfiguring + 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 + mmc@4809c000 { + compatible =3D "ti,dra7-sdhci"; + reg =3D <0x4809c000 0x400>; + interrupts =3D ; + max-frequency =3D <192000000>; + sdhci-caps-mask =3D <0x0 0x400000>; + bus-width =3D <4>; + vmmc-supply =3D <&vmmc>; /* phandle to regulator node */ + dmas =3D <&sdma 61>, <&sdma 62>; + dma-names =3D "tx", "rx"; + }; +... --=20 2.51.0