Documentation / devicetree / bindings / spi / nuvoton,npcm-pspi.yaml


Based on kernel version 6.19. Page generated on 2026-02-12 08:38 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/spi/nuvoton,npcm-pspi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Nuvoton NPCM Peripheral SPI (PSPI) Controller

maintainers:
  - Tomer Maimon <tmaimon77@gmail.com>

allOf:
  - $ref: spi-controller.yaml#

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

properties:
  compatible:
    enum:
      - nuvoton,npcm750-pspi # Poleg NPCM7XX
      - nuvoton,npcm845-pspi # Arbel NPCM8XX

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1
    description: PSPI reference clock.

  clock-names:
    items:
      - const: clk_apb5

  resets:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names
  - resets

unevaluatedProperties: false

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>;
    };