&i2c1 [
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
status = "okay";
clock-frequency = <100000>;
/*
pca9535_in: pca9535@21 [
compatible = "nxp,pca9535";
pinctrl-names = "default";
pinctrl-0 = <&pca_pins_irq>;
interrupt-parent = <&gpio0>;
interrupts = <20 0x0>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x21>;
];*/
pca9535_out: pca9535@20 [
compatible = "nxp,pca9535";
gpio-controller;
#gpio-cells = <2>;
reg = <0x20>;
];
];
以上是添加带中断的i2c扩展芯片驱动
&i2c1 [
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
status = "okay";
clock-frequency = <100000>;
/*
pca9535_in: pca9535@21 [
compatible = "nxp,pca9535";
pinctrl-names = "default";
pinctrl-0 = <&pca_pins_irq>;
interrupt-parent = <&gpio0>;
interrupts = <20 0x0>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x21>;
];*/
pca9535_out: pca9535@20 [
compatible = "nxp,pca9535";
gpio-controller;
#gpio-cells = <2>;
reg = <0x20>;
];
];
以上是添加带中断的i2c扩展芯片驱动
举报