sc16is752芯片的功能是支持通过I2C或SPI接口来扩展串口。

Function NamePinmux
SPI_CSPZ3
SPI_MOSIPZ2
SPI_MISOPZ1
SPI_SCLKPZ0
RESETPI2
IRQPZ5
/ {
	clocks {
		clk_sc16is752: clk_sc16is752 {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <14745600>;
		};
	};
};

&spi1 {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&spi1_pins_a>;
	pinctrl-1 = <&spi1_sleep_pins_a>;
	cs-gpios = <&gpioz 3 0>;
	status = "okay";

	sc16is752: sc16is752@0 {
		compatible = "nxp,sc16is752";
		clocks = <&clk_sc16is752>;
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0>;
		interrupt-parent = <&gpioz>;
		interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
		reset-gpios = <&gpioi 2 GPIO_ACTIVE_LOW>;
		spi-max-frequency = <400000>;
		gpio-controller;
		#gpio-cells = <0>;
		status = "okay";
	};
};
作者:SteveChen  创建时间:2024-09-18 14:54
最后编辑:SteveChen  更新时间:2024-09-18 14:54
上一篇:
下一篇: