mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
A recent update to dtc and changes to the default warnings introduced some new warnings in the DT binding examples: Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.example.dts:23.13-61: Warning (dma_ranges_format): /example-0/dram-controller@1c01000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) Documentation/devicetree/bindings/hwmon/adi,axi-fan-control.example.dts:17.22-28.11: Warning (unit_address_vs_reg): /example-0/fpga-axi@0: node has a unit name, but no reg or ranges property Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.example.dts:34.13-54: Warning (dma_ranges_format): /example-0/memory-controller@2c00000:dma-ranges: "dma-ranges" property has invalid length (24 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 2) Documentation/devicetree/bindings/mfd/st,stpmic1.example.dts:19.15-79.11: Warning (unit_address_vs_reg): /example-0/i2c@0: node has a unit name, but no reg or ranges property Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.example.dts:28.23-31.15: Warning (unit_address_vs_reg): /example-0/mdio@37000000/switch@10: node has a unit name, but no reg or ranges property Documentation/devicetree/bindings/rng/brcm,bcm2835.example.dts:17.5-21.11: Warning (unit_address_vs_reg): /example-0/rng: node has a reg or ranges property, but no unit name Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.example.dts:20.20-43.11: Warning (unit_address_vs_reg): /example-0/soc@0: node has a unit name, but no reg or ranges property Documentation/devicetree/bindings/usb/ingenic,musb.example.dts:18.28-21.11: Warning (unit_address_vs_reg): /example-0/usb-phy@0: node has a unit name, but no reg or ranges property Cc: Maxime Ripard <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: "Nuno Sá" <[email protected]> Cc: Jean Delvare <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Jonathan Hunter <[email protected]> Cc: Lee Jones <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Matt Mackall <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Nicolas Saenz Julienne <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Ray Jui <[email protected]> Cc: Scott Branden <[email protected]> Cc: [email protected] Cc: Mark Brown <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Acked-by: Guenter Roeck <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Rob Herring <[email protected]>
136 lines
3.5 KiB
YAML
136 lines
3.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/memory-controllers/nvidia,tegra186-mc.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: NVIDIA Tegra186 (and later) SoC Memory Controller
|
|
|
|
maintainers:
|
|
- Jon Hunter <[email protected]>
|
|
- Thierry Reding <[email protected]>
|
|
|
|
description: |
|
|
The NVIDIA Tegra186 SoC features a 128 bit memory controller that is split
|
|
into four 32 bit channels to support LPDDR4 with x16 subpartitions. The MC
|
|
handles memory requests for 40-bit virtual addresses from internal clients
|
|
and arbitrates among them to allocate memory bandwidth.
|
|
|
|
Up to 15 GiB of physical memory can be supported. Security features such as
|
|
encryption of traffic to and from DRAM via general security apertures are
|
|
available for video and other secure applications, as well as DRAM ECC for
|
|
automotive safety applications (single bit error correction and double bit
|
|
error detection).
|
|
|
|
properties:
|
|
$nodename:
|
|
pattern: "^memory-controller@[0-9a-f]+$"
|
|
|
|
compatible:
|
|
items:
|
|
- enum:
|
|
- nvidia,tegra186-mc
|
|
- nvidia,tegra194-mc
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
"#address-cells":
|
|
const: 2
|
|
|
|
"#size-cells":
|
|
const: 2
|
|
|
|
ranges: true
|
|
|
|
dma-ranges: true
|
|
|
|
patternProperties:
|
|
"^external-memory-controller@[0-9a-f]+$":
|
|
description:
|
|
The bulk of the work involved in controlling the external memory
|
|
controller on NVIDIA Tegra186 and later is performed on the BPMP. This
|
|
coprocessor exposes the EMC clock that is used to set the frequency at
|
|
which the external memory is clocked and a remote procedure call that
|
|
can be used to obtain the set of available frequencies.
|
|
type: object
|
|
properties:
|
|
compatible:
|
|
items:
|
|
- enum:
|
|
- nvidia,tegra186-emc
|
|
- nvidia,tegra194-emc
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
items:
|
|
- description: external memory clock
|
|
|
|
clock-names:
|
|
items:
|
|
- const: emc
|
|
|
|
nvidia,bpmp:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
description:
|
|
phandle of the node representing the BPMP
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- "#address-cells"
|
|
- "#size-cells"
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/tegra186-clock.h>
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
bus {
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
|
|
memory-controller@2c00000 {
|
|
compatible = "nvidia,tegra186-mc";
|
|
reg = <0x0 0x02c00000 0x0 0xb0000>;
|
|
interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
|
|
ranges = <0x0 0x02c00000 0x0 0x02c00000 0x0 0xb0000>;
|
|
|
|
/*
|
|
* Memory clients have access to all 40 bits that the memory
|
|
* controller can address.
|
|
*/
|
|
dma-ranges = <0x0 0x0 0x0 0x0 0x100 0x0>;
|
|
|
|
external-memory-controller@2c60000 {
|
|
compatible = "nvidia,tegra186-emc";
|
|
reg = <0x0 0x02c60000 0x0 0x50000>;
|
|
interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&bpmp TEGRA186_CLK_EMC>;
|
|
clock-names = "emc";
|
|
|
|
nvidia,bpmp = <&bpmp>;
|
|
};
|
|
};
|
|
};
|
|
|
|
bpmp: bpmp {
|
|
compatible = "nvidia,tegra186-bpmp";
|
|
#clock-cells = <1>;
|
|
};
|