Nuvoton NPCM Peripheral SPI (PSPI) Controller

Schema identifier ($id): "http://devicetree.org/schemas/spi/nuvoton,npcm-pspi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tomer Maimon <tmaimon77@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): spi-controller.yaml#

Nuvoton NPCM Peripheral Serial Peripheral Interface (PSPI) controller. Nuvoton NPCM7xx SOC supports two PSPI channels. Nuvoton NPCM8xx SOC support one PSPI channel.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,npcm750-pspi", "nuvoton,npcm845-pspi"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

PSPI reference clock.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clk_apb5"

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/nuvoton,npcm7xx-reset.h>
#include "dt-bindings/gpio/gpio.h"
spi0: spi@f0200000 {
    compatible = "nuvoton,npcm750-pspi";
    reg = <0xf0200000 0x1000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pspi1_pins>;
    #address-cells = <1>;
    #size-cells = <0>;
    interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk NPCM7XX_CLK_APB5>;
    clock-names = "clk_apb5";
    resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>;
    cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 23: Poleg NPCM7XX

Line 24: Arbel NPCM8XX

Edit this page