&spi1{
pinctrl-names = "default","sleep";
pinctrl-0 = <&spi1_pins_mx>;
pinctrl-1 = <&spi1_sleep_pins_mx>;
status = "okay";
/delete-property/dmas;
/delete-property/dma-names;
cs-gpios = <&gpioa 4 0>;
sc16is752: sc16is752@0 {
compatible = "nxp,sc16is752";
reg = <0>;
clocks = <&sc16is752_clk>;
reset-gpios = <&gpiod 11 GPIO_ACTIVE_LOW>; // resetpin
interrupt-parent = <&gpiod>; // pd4
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
gpio-controller;
#gpio-cells = <2>;
clock-frequency = <20000000>;
sc16is752_clk: sc16is752_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <1843200>;
};
};
};
[ 1.894651] sc16is752@0 enforce active low on chipselect handle
[ 1.897624] serial serial0: tty port ttySC0 registered
[ 1.898114] spi1.0: ttySC1 at I/O 0x1 (irq = 56, base_baud = 115200) is a SC16IS752
[ 1.898533] serial serial1: tty port ttySC1 registered
[ 1.897624] serial serial0: tty port ttySC0 registered
[ 1.898114] spi1.0: ttySC1 at I/O 0x1 (irq = 56, base_baud = 115200) is a SC16IS752
[ 1.898533] serial serial1: tty port ttySC1 registered
댓글 없음:
댓글 쓰기