# Copyright (c) 2023 Stephen Boylan <stephen.boylan@beechwoods.com>
# SPDX-License-Identifier: Apache-2.0

description: Raspberry Pi Pico SPI via PIO

compatible: "raspberrypi,pico-spi-pio"

include: ["spi-controller.yaml", "raspberrypi,pico-pio-device.yaml", "reset-device.yaml"]

properties:
  clk-gpios:
    type: phandle-array
    required: true
    description: |
      Output pin for SPI clock

  mosi-gpios:
    type: phandle-array
    description: |
      Output pin for Master Out Slave In.

  miso-gpios:
    type: phandle-array
    description: |
      Input pin for Master In Slave Out.

  sio-gpios:
    type: phandle-array
    description: |
      Single I/O gpio info

      GPIO input/output pin for 3-wire mode.

  clocks:
    required: true
