^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) $id: http://devicetree.org/schemas/mmc/sdhci-pxa.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $schema: http://devicetree.org/meta-schemas/core.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) title: Marvell PXA SDHCI v2/v3 bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - Ulf Hansson <ulf.hansson@linaro.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) allOf:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - $ref: mmc-controller.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - if:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) contains:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) const: marvell,armada-380-sdhci
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) then:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) regs:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) minItems: 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) reg-names:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) minItems: 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) - reg-names
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) else:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) regs:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) reg-names:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) - mrvl,pxav2-mmc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) - mrvl,pxav3-mmc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) - marvell,armada-380-sdhci
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) minItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) maxItems: 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) reg-names:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) items:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) - const: sdhci
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) - const: mbus
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) - const: conf-sdio3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) interrupts:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) clocks:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) minItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) maxItems: 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) clock-names:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) minItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) maxItems: 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) items:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) - const: io
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) - const: core
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) mrvl,clk-delay-cycles:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) description: Specify a number of cycles to delay for tuning.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) $ref: /schemas/types.yaml#/definitions/uint32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) - interrupts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) - clocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) - clock-names
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) unevaluatedProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) #include <dt-bindings/clock/berlin2.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) mmc@d4280800 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) compatible = "mrvl,pxav3-mmc";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) reg = <0xd4280800 0x800>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) bus-width = <8>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) interrupts = <27>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) clocks = <&chip CLKID_SDIO1XIN>, <&chip CLKID_SDIO1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) clock-names = "io", "core";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) non-removable;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) mrvl,clk-delay-cycles = <31>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) mmc@d8000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) compatible = "marvell,armada-380-sdhci";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) reg-names = "sdhci", "mbus", "conf-sdio3";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) reg = <0xd8000 0x1000>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) <0xdc000 0x100>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) <0x18454 0x4>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) interrupts = <0 25 0x4>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) clocks = <&gateclk 17>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) clock-names = "io";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) mrvl,clk-delay-cycles = <0x1F>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) ...