162306a36Sopenharmony_ciNuvoton NPCM Peripheral Serial Peripheral Interface(PSPI) controller driver
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciNuvoton NPCM7xx SOC support two PSPI channels.
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciRequired properties:
662306a36Sopenharmony_ci - compatible : "nuvoton,npcm750-pspi" for Poleg NPCM7XX.
762306a36Sopenharmony_ci				"nuvoton,npcm845-pspi" for Arbel NPCM8XX.
862306a36Sopenharmony_ci - #address-cells : should be 1. see spi-bus.txt
962306a36Sopenharmony_ci - #size-cells : should be 0. see spi-bus.txt
1062306a36Sopenharmony_ci - specifies physical base address and size of the register.
1162306a36Sopenharmony_ci - interrupts : contain PSPI interrupt.
1262306a36Sopenharmony_ci - clocks : phandle of PSPI reference clock.
1362306a36Sopenharmony_ci - clock-names: Should be "clk_apb5".
1462306a36Sopenharmony_ci - pinctrl-names : a pinctrl state named "default" must be defined.
1562306a36Sopenharmony_ci - pinctrl-0 : phandle referencing pin configuration of the device.
1662306a36Sopenharmony_ci - resets : phandle to the reset control for this device.
1762306a36Sopenharmony_ci - cs-gpios: Specifies the gpio pins to be used for chipselects.
1862306a36Sopenharmony_ci            See: Documentation/devicetree/bindings/spi/spi-bus.txt
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciOptional properties:
2162306a36Sopenharmony_ci- clock-frequency : Input clock frequency to the PSPI block in Hz.
2262306a36Sopenharmony_ci		    Default is 25000000 Hz.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_cispi0: spi@f0200000 {
2562306a36Sopenharmony_ci	compatible = "nuvoton,npcm750-pspi";
2662306a36Sopenharmony_ci	reg = <0xf0200000 0x1000>;
2762306a36Sopenharmony_ci	pinctrl-names = "default";
2862306a36Sopenharmony_ci	pinctrl-0 = <&pspi1_pins>;
2962306a36Sopenharmony_ci	#address-cells = <1>;
3062306a36Sopenharmony_ci	#size-cells = <0>;
3162306a36Sopenharmony_ci	interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
3262306a36Sopenharmony_ci	clocks = <&clk NPCM7XX_CLK_APB5>;
3362306a36Sopenharmony_ci	clock-names = "clk_apb5";
3462306a36Sopenharmony_ci	resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>
3562306a36Sopenharmony_ci	cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
3662306a36Sopenharmony_ci};
37