mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 12:32:31 -04:00
Pull devicetree updates from Rob Herring:
"DT core:
- Fix node refcounting in of_find_last_cache_level()
- Constify device_node in of_device_compatible_match()
- Fix 'dma-ranges' handling in bus controller nodes
- Fix handling of initrd start > end
- Improve error reporting in of_irq_init()
- Taint kernel on DT unittest running
- Use strscpy instead of strlcpy
- Add a build target, dt_compatible_check, to check for compatible
strings used in kernel sources against compatible strings in DT
schemas.
- Handle DT_SCHEMA_FILES changes when rebuilding
DT bindings:
- LED bindings for MT6370 PMIC
- Convert Mediatek mtk-gce mailbox, MIPS CPU interrupt controller,
mt7621 I2C, virtio,pci-iommu, nxp,tda998x, QCom fastrpc, qcom,pdc,
and arm,versatile-sysreg to DT schema format
- Add nvmem cells to u-boot,env schema
- Add more LED_COLOR_ID definitions
- Require 'opp-table' uses to be a node
- Various schema fixes to match QEMU 'virt' DT usage
- Tree wide dropping of redundant 'Device Tree Binding' in schema
titles
- More (unevaluated|additional)Properties fixes in schema child nodes
- Drop various redundant minItems equal to maxItems"
* tag 'devicetree-for-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (62 commits)
of: base: Shift refcount decrement in of_find_last_cache_level()
dt-bindings: leds: Add MediaTek MT6370 flashlight
dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator
dt-bindings: mailbox: Convert mtk-gce to DT schema
of: base: make of_device_compatible_match() accept const device node
of: Fix "dma-ranges" handling for bus controllers
of: fdt: Remove unused struct fdt_scan_status
dt-bindings: display: st,stm32-dsi: Handle data-lanes in DSI port node
dt-bindings: timer: Add power-domains for TI timer-dm on K3
dt: Add a check for undocumented compatible strings in kernel
kbuild: take into account DT_SCHEMA_FILES changes while checking dtbs
dt-bindings: interrupt-controller: migrate MIPS CPU interrupt controller text bindings to YAML
dt-bindings: i2c: migrate mt7621 text bindings to YAML
dt-bindings: power: gpcv2: correct patternProperties
dt-bindings: virtio: Convert virtio,pci-iommu to DT schema
dt-bindings: timer: arm,arch_timer: Allow dual compatible string
dt-bindings: arm: cpus: Add kryo240 compatible
dt-bindings: display: bridge: nxp,tda998x: Convert to json-schema
dt-bindings: nvmem: u-boot,env: add basic NVMEM cells
dt-bindings: remoteproc: qcom,adsp: enforce smd-edge schema
...
122 lines
3.5 KiB
YAML
122 lines
3.5 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/mmc/rockchip-dw-mshc.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Rockchip designware mobile storage host controller
|
|
|
|
description:
|
|
Rockchip uses the Synopsys designware mobile storage host controller
|
|
to interface a SoC with storage medium such as eMMC or SD/MMC cards.
|
|
This file documents the combined properties for the core Synopsys dw mshc
|
|
controller that are not already included in the synopsys-dw-mshc-common.yaml
|
|
file and the Rockchip specific extensions.
|
|
|
|
allOf:
|
|
- $ref: "synopsys-dw-mshc-common.yaml#"
|
|
|
|
maintainers:
|
|
- Heiko Stuebner <heiko@sntech.de>
|
|
|
|
# Everything else is described in the common file
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
# for Rockchip RK2928 and before RK3288
|
|
- const: rockchip,rk2928-dw-mshc
|
|
# for Rockchip RK3288
|
|
- const: rockchip,rk3288-dw-mshc
|
|
- items:
|
|
- enum:
|
|
- rockchip,px30-dw-mshc
|
|
- rockchip,rk1808-dw-mshc
|
|
- rockchip,rk3036-dw-mshc
|
|
- rockchip,rk3128-dw-mshc
|
|
- rockchip,rk3228-dw-mshc
|
|
- rockchip,rk3308-dw-mshc
|
|
- rockchip,rk3328-dw-mshc
|
|
- rockchip,rk3368-dw-mshc
|
|
- rockchip,rk3399-dw-mshc
|
|
- rockchip,rk3568-dw-mshc
|
|
- rockchip,rv1108-dw-mshc
|
|
- rockchip,rv1126-dw-mshc
|
|
- const: rockchip,rk3288-dw-mshc
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
minItems: 2
|
|
maxItems: 4
|
|
description:
|
|
Handle to "biu" and "ciu" clocks for the bus interface unit clock and
|
|
the card interface unit clock. If "ciu-drive" and "ciu-sample" are
|
|
specified in clock-names, it should also contain
|
|
handles to these clocks.
|
|
|
|
clock-names:
|
|
minItems: 2
|
|
items:
|
|
- const: biu
|
|
- const: ciu
|
|
- const: ciu-drive
|
|
- const: ciu-sample
|
|
description:
|
|
Apart from the clock-names "biu" and "ciu" two more clocks
|
|
"ciu-drive" and "ciu-sample" are supported. They are used
|
|
to control the clock phases, "ciu-sample" is required for tuning
|
|
high speed modes.
|
|
|
|
rockchip,default-sample-phase:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
minimum: 0
|
|
maximum: 360
|
|
default: 0
|
|
description:
|
|
The default phase to set "ciu-sample" at probing,
|
|
low speeds or in case where all phases work at tuning time.
|
|
If not specified 0 deg will be used.
|
|
|
|
rockchip,desired-num-phases:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
minimum: 0
|
|
maximum: 360
|
|
default: 360
|
|
description:
|
|
The desired number of times that the host execute tuning when needed.
|
|
If not specified, the host will do tuning for 360 times,
|
|
namely tuning for each degree.
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
- clock-names
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/rk3288-cru.h>
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
sdmmc: mmc@ff0c0000 {
|
|
compatible = "rockchip,rk3288-dw-mshc";
|
|
reg = <0xff0c0000 0x4000>;
|
|
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
|
|
<&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
|
|
clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
|
|
resets = <&cru SRST_MMC0>;
|
|
reset-names = "reset";
|
|
fifo-depth = <0x100>;
|
|
max-frequency = <150000000>;
|
|
};
|
|
|
|
...
|