xref: /freebsd/sys/contrib/device-tree/Bindings/spi/nuvoton,npcm-pspi.txt (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel VadotNuvoton NPCM Peripheral Serial Peripheral Interface(PSPI) controller driver
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotNuvoton NPCM7xx SOC support two PSPI channels.
4c66ec88fSEmmanuel Vadot
5c66ec88fSEmmanuel VadotRequired properties:
6*7ef62cebSEmmanuel Vadot - compatible : "nuvoton,npcm750-pspi" for Poleg NPCM7XX.
7*7ef62cebSEmmanuel Vadot				"nuvoton,npcm845-pspi" for Arbel NPCM8XX.
8c66ec88fSEmmanuel Vadot - #address-cells : should be 1. see spi-bus.txt
9c66ec88fSEmmanuel Vadot - #size-cells : should be 0. see spi-bus.txt
10c66ec88fSEmmanuel Vadot - specifies physical base address and size of the register.
11c66ec88fSEmmanuel Vadot - interrupts : contain PSPI interrupt.
12c66ec88fSEmmanuel Vadot - clocks : phandle of PSPI reference clock.
13c66ec88fSEmmanuel Vadot - clock-names: Should be "clk_apb5".
14c66ec88fSEmmanuel Vadot - pinctrl-names : a pinctrl state named "default" must be defined.
15c66ec88fSEmmanuel Vadot - pinctrl-0 : phandle referencing pin configuration of the device.
16c66ec88fSEmmanuel Vadot - resets : phandle to the reset control for this device.
17c66ec88fSEmmanuel Vadot - cs-gpios: Specifies the gpio pins to be used for chipselects.
18c66ec88fSEmmanuel Vadot            See: Documentation/devicetree/bindings/spi/spi-bus.txt
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel VadotOptional properties:
21c66ec88fSEmmanuel Vadot- clock-frequency : Input clock frequency to the PSPI block in Hz.
22c66ec88fSEmmanuel Vadot		    Default is 25000000 Hz.
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadotspi0: spi@f0200000 {
25c66ec88fSEmmanuel Vadot	compatible = "nuvoton,npcm750-pspi";
26c66ec88fSEmmanuel Vadot	reg = <0xf0200000 0x1000>;
27c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
28c66ec88fSEmmanuel Vadot	pinctrl-0 = <&pspi1_pins>;
29c66ec88fSEmmanuel Vadot	#address-cells = <1>;
30c66ec88fSEmmanuel Vadot	#size-cells = <0>;
31c66ec88fSEmmanuel Vadot	interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
32c66ec88fSEmmanuel Vadot	clocks = <&clk NPCM7XX_CLK_APB5>;
33c66ec88fSEmmanuel Vadot	clock-names = "clk_apb5";
34c66ec88fSEmmanuel Vadot	resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>
35c66ec88fSEmmanuel Vadot	cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
36c66ec88fSEmmanuel Vadot};
37