Samsung S3C/S5P/Exynos SoC SPI controller
Schema identifier ($id): "http://devicetree.org/schemas/spi/samsung,spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
All the SPI controller nodes should be represented in the aliases node using the following format 'spi{n}' where n is a unique number for the alias.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"google,gs101-spi","samsung,s3c6410-spi","samsung,s5pv210-spi","samsung,exynos4210-spi","samsung,exynos5433-spi","samsung,exynos850-spi","samsung,exynosautov9-spi","tesla,fsd-spi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"samsung,exynos8895-spi","samsung,exynosautov920-spi"Item 2
Exact value (
const):"samsung,exynos850-spi"
Rule 3
Exact value (
const):"samsung,exynos7-spi"Deprecated (
deprecated):true
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
clock-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
dmas — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
interrupts — required here #
Maximum number of items (maxItems): 1
no-cs-readback — not listed as required here #
The CS line is disconnected, therefore the device should not operate based on CS signalling.
Value type (type): "boolean"
num-cs — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 1
samsung,spi-src-clk — not listed as required here #
If the spi controller includes a internal clock mux to select the clock source for the spi bus clock, this property can be used to indicate the clock to be used for driving the spi bus clock. If not specified, the clock number 0 is used as default.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "clocks", "clock-names", "interrupts", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"samsung,exynos5433-spi","samsung,exynosautov9-spi"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"spi"Item 2
Allowed values (
enum):"spi_busclk0","spi_busclk1","spi_busclk2","spi_busclk3"Item 3
Exact value (
const):"spi_ioclk"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"spi"Item 2
Allowed values (
enum):"spi_busclk0","spi_busclk1","spi_busclk2","spi_busclk3"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos5433.h>
#include <dt-bindings/clock/samsung,s2mps11.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
spi@14d30000 {
compatible = "samsung,exynos5433-spi";
reg = <0x14d30000 0x100>;
interrupts = <GIC_SPI 433 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&pdma0 11>, <&pdma0 10>;
dma-names = "tx", "rx";
#address-cells = <1>;
#size-cells = <0>;
clocks = <&cmu_peric CLK_PCLK_SPI1>,
<&cmu_peric CLK_SCLK_SPI1>,
<&cmu_peric CLK_SCLK_IOCLK_SPI1>;
clock-names = "spi",
"spi_busclk0",
"spi_ioclk";
samsung,spi-src-clk = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi1_bus>;
num-cs = <1>;
cs-gpios = <&gpd6 3 GPIO_ACTIVE_HIGH>;
audio-codec@0 {
compatible = "wlf,wm5110";
reg = <0x0>;
spi-max-frequency = <20000000>;
interrupt-parent = <&gpa0>;
interrupts = <4 IRQ_TYPE_NONE>;
clocks = <&pmu_system_controller 0>,
<&s2mps13_osc S2MPS11_CLK_BT>;
clock-names = "mclk1", "mclk2";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
wlf,micd-detect-debounce = <300>;
wlf,micd-bias-start-time = <0x1>;
wlf,micd-rate = <0x7>;
wlf,micd-dbtime = <0x2>;
wlf,micd-force-micbias;
wlf,micd-configs = <0x0 1 0>;
wlf,hpdet-channel = <1>;
wlf,gpsw = <0x1>;
wlf,inmode = <2 0 2 0>;
wlf,reset = <&gpc0 7 GPIO_ACTIVE_HIGH>;
wlf,ldoena = <&gpf0 0 GPIO_ACTIVE_HIGH>;
/* core supplies */
AVDD-supply = <&ldo18_reg>;
DBVDD1-supply = <&ldo18_reg>;
CPVDD-supply = <&ldo18_reg>;
DBVDD2-supply = <&ldo18_reg>;
DBVDD3-supply = <&ldo18_reg>;
SPKVDDL-supply = <&ldo18_reg>;
SPKVDDR-supply = <&ldo18_reg>;
controller-data {
samsung,spi-feedback-delay = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 22: for S5PV210 and S5PC110