| .. | .. |
|---|
| 12 | 12 | Optional properties: |
|---|
| 13 | 13 | - vdd-supply: Regulator that powers the CAN controller. |
|---|
| 14 | 14 | - 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. |
|---|
| 15 | 18 | |
|---|
| 16 | 19 | Example: |
|---|
| 17 | 20 | can0: can@1 { |
|---|
| .. | .. |
|---|
| 19 | 22 | reg = <1>; |
|---|
| 20 | 23 | clocks = <&clk24m>; |
|---|
| 21 | 24 | interrupt-parent = <&gpio4>; |
|---|
| 22 | | - interrupts = <13 0x2>; |
|---|
| 25 | + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 23 | 26 | vdd-supply = <®5v0>; |
|---|
| 24 | 27 | xceiver-supply = <®5v0>; |
|---|
| 28 | + gpio-controller; |
|---|
| 29 | + #gpio-cells = <2>; |
|---|
| 25 | 30 | }; |
|---|