TI QSPI controller
Schema identifier ($id): "http://devicetree.org/schemas/spi/ti,qspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kousik Sanagavarapu <five231003@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,am4372-qspi", "ti,dra7xxx-qspi"
reg — required here #
Array item rules (items) #
Item 1
base registers
Item 2
mapped memory
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"qspi_base"
Item 2
Exact value (
const):"qspi_mmap"
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fck"
interrupts — required here #
Maximum number of items (maxItems): 1
num-cs — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 1
ti,hwmods — not listed as required here #
Name of the hwmod associated to the QSPI. This is for legacy platforms only.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Deprecated (deprecated): true
syscon-chipselects — not listed as required here #
Handle to system control region containing QSPI chipselect register and offset of that register.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to system control register
Item 2
register offset
spi-max-frequency — not listed as required here #
Maximum SPI clocking speed of the controller in Hz.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/dra7.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@4b300000 {
compatible = "ti,dra7xxx-qspi";
reg = <0x4b300000 0x100>,
<0x5c000000 0x4000000>;
reg-names = "qspi_base", "qspi_mmap";
syscon-chipselects = <&scm_conf 0x558>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&l4per2_clkctrl DRA7_L4PER2_QSPI_CLKCTRL 25>;
clock-names = "fck";
num-cs = <4>;
spi-max-frequency = <48000000>;
interrupts = <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)