forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt
....@@ -12,6 +12,9 @@
1212 Optional properties:
1313 - vdd-supply: Regulator that powers the CAN controller.
1414 - xceiver-supply: Regulator that powers the CAN transceiver.
15
+ - gpio-controller: Indicates this device is a GPIO controller.
16
+ - #gpio-cells: Should be two. The first cell is the pin number and
17
+ the second cell is used to specify the gpio polarity.
1518
1619 Example:
1720 can0: can@1 {
....@@ -19,7 +22,9 @@
1922 reg = <1>;
2023 clocks = <&clk24m>;
2124 interrupt-parent = <&gpio4>;
22
- interrupts = <13 0x2>;
25
+ interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
2326 vdd-supply = <&reg5v0>;
2427 xceiver-supply = <&reg5v0>;
28
+ gpio-controller;
29
+ #gpio-cells = <2>;
2530 };