Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-binding: mmc: microchip,sdhci-pic32: convert text based binding to json schema

Update text binding to YAML.
Changes during conversion:
Add appropriate include statements for interrupts and clock-names
to resolve errors identified by `dt_binding_check` and `dtbs_check`.

Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20250507-mchp-sdhci-v1-2-ed29de05295a@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Charan Pedumuru and committed by
Ulf Hansson
e760eab4 eb68ba4a

+66 -29
-29
Documentation/devicetree/bindings/mmc/microchip,sdhci-pic32.txt
··· 1 - * Microchip PIC32 SDHCI Controller 2 - 3 - This file documents differences between the core properties in mmc.txt 4 - and the properties used by the sdhci-pic32 driver. 5 - 6 - Required properties: 7 - - compatible: Should be "microchip,pic32mzda-sdhci" 8 - - interrupts: Should contain interrupt 9 - - clock-names: Should be "base_clk", "sys_clk". 10 - See: Documentation/devicetree/bindings/resource-names.txt 11 - - clocks: Phandle to the clock. 12 - See: Documentation/devicetree/bindings/clock/clock-bindings.txt 13 - - pinctrl-names: A pinctrl state names "default" must be defined. 14 - - pinctrl-0: Phandle referencing pin configuration of the SDHCI controller. 15 - See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 16 - 17 - Example: 18 - 19 - sdhci@1f8ec000 { 20 - compatible = "microchip,pic32mzda-sdhci"; 21 - reg = <0x1f8ec000 0x100>; 22 - interrupts = <191 IRQ_TYPE_LEVEL_HIGH>; 23 - clocks = <&rootclk REF4CLK>, <&rootclk PB5CLK>; 24 - clock-names = "base_clk", "sys_clk"; 25 - bus-width = <4>; 26 - cap-sd-highspeed; 27 - pinctrl-names = "default"; 28 - pinctrl-0 = <&pinctrl_sdhc1>; 29 - };
+66
Documentation/devicetree/bindings/mmc/microchip,sdhci-pic32.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mmc/microchip,sdhci-pic32.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Microchip PIC32 SDHI Controller 8 + 9 + description: 10 + The Microchip PIC32 family of microcontrollers (MCUs) includes models with 11 + Secure Digital Host Controller Interface (SDHCI) controllers, allowing them 12 + to interface with Secure Digital (SD) cards. This interface is used for reading, 13 + writing, and managing data on SD cards, enabling storage and data transfer 14 + capabilities in embedded systems. 15 + 16 + allOf: 17 + - $ref: mmc-controller.yaml 18 + 19 + maintainers: 20 + - Ulf Hansson <ulf.hansson@linaro.org> 21 + 22 + properties: 23 + compatible: 24 + const: microchip,pic32mzda-sdhci 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + interrupts: 30 + maxItems: 1 31 + 32 + clocks: 33 + maxItems: 2 34 + 35 + clock-names: 36 + items: 37 + - const: base_clk 38 + - const: sys_clk 39 + 40 + required: 41 + - compatible 42 + - reg 43 + - interrupts 44 + - clocks 45 + - clock-names 46 + - pinctrl-names 47 + - pinctrl-0 48 + 49 + unevaluatedProperties: false 50 + 51 + examples: 52 + - | 53 + #include <dt-bindings/interrupt-controller/irq.h> 54 + #include <dt-bindings/clock/microchip,pic32-clock.h> 55 + mmc@1f8ec000 { 56 + compatible = "microchip,pic32mzda-sdhci"; 57 + reg = <0x1f8ec000 0x100>; 58 + interrupts = <191 IRQ_TYPE_LEVEL_HIGH>; 59 + clocks = <&rootclk REF4CLK>, <&rootclk PB5CLK>; 60 + clock-names = "base_clk", "sys_clk"; 61 + bus-width = <4>; 62 + cap-sd-highspeed; 63 + pinctrl-names = "default"; 64 + pinctrl-0 = <&pinctrl_sdhc1>; 65 + }; 66 + ...