dt-bindings: mmc: Add Broadcom optional sdio_freq clock

The 72116B0 has improved SDIO controllers that allow the max clock
rate to be increased from a max of 100MHz to a max of 150MHz.
Optional "sdio_freq" clock is used to drive the bus clock if present
optional property "clock-frequency" specifies a base clock frequency
in Hz that overrides the base clock frequency in the CAPS registers.

Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220520183108.47358-2-kdasu.kdev@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Kamal Dasu 2022-05-20 14:31:07 -04:00 committed by Ulf Hansson
parent 8574adf522
commit 2f8690ef64

View file

@ -10,9 +10,6 @@ maintainers:
- Al Cooper <alcooperx@gmail.com> - Al Cooper <alcooperx@gmail.com>
- Florian Fainelli <f.fainelli@gmail.com> - Florian Fainelli <f.fainelli@gmail.com>
allOf:
- $ref: mmc-controller.yaml#
properties: properties:
compatible: compatible:
oneOf: oneOf:
@ -42,23 +39,46 @@ properties:
maxItems: 1 maxItems: 1
clocks: clocks:
maxItems: 1 minItems: 1
description: items:
handle to core clock for the sdhci controller. - description: handle to core clock for the sdhci controller
- description: handle to improved 150Mhz clock for sdhci controller (Optional clock)
clock-names: clock-names:
minItems: 1
items: items:
- const: sw_sdio - const: sw_sdio
- const: sdio_freq # Optional clock
clock-frequency:
description:
Maximum operating frequency of sdio_freq sdhci controller clock
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 100000000
maximum: 150000000
sdhci,auto-cmd12: sdhci,auto-cmd12:
type: boolean type: boolean
description: Specifies that controller should use auto CMD12 description: Specifies that controller should use auto CMD12
allOf:
- $ref: mmc-controller.yaml#
- if:
properties:
clock-names:
contains:
const: sdio_freq
then:
required:
- clock-frequency
required: required:
- compatible - compatible
- reg - reg
- interrupts - interrupts
- clocks - clocks
- clock-names
unevaluatedProperties: false unevaluatedProperties: false