Alexander Bersenev | 22f4424 | 2014-06-08 15:08:09 -0300 | [diff] [blame] | 1 | Device-Tree bindings for SUNXI IR controller found in sunXi SoC family |
| 2 | |
| 3 | Required properties: |
Hans de Goede | a4bca4c | 2014-11-20 12:10:47 -0300 | [diff] [blame] | 4 | - compatible : "allwinner,sun4i-a10-ir" or "allwinner,sun5i-a13-ir" |
Alexander Bersenev | 22f4424 | 2014-06-08 15:08:09 -0300 | [diff] [blame] | 5 | - clocks : list of clock specifiers, corresponding to |
| 6 | entries in clock-names property; |
| 7 | - clock-names : should contain "apb" and "ir" entries; |
| 8 | - interrupts : should contain IR IRQ number; |
| 9 | - reg : should contain IO map address for IR. |
| 10 | |
| 11 | Optional properties: |
Sean Wang | 330d432 | 2017-01-13 05:35:37 -0200 | [diff] [blame] | 12 | - linux,rc-map-name: see rc.txt file in the same directory. |
Hans de Goede | 44f8af6 | 2014-11-20 11:59:04 -0300 | [diff] [blame] | 13 | - resets : phandle + reset specifier pair |
Alexander Bersenev | 22f4424 | 2014-06-08 15:08:09 -0300 | [diff] [blame] | 14 | |
| 15 | Example: |
| 16 | |
Marco Franchi | 48c926c | 2017-11-08 14:27:48 -0200 | [diff] [blame^] | 17 | ir0: ir@1c21800 { |
Alexander Bersenev | 22f4424 | 2014-06-08 15:08:09 -0300 | [diff] [blame] | 18 | compatible = "allwinner,sun4i-a10-ir"; |
| 19 | clocks = <&apb0_gates 6>, <&ir0_clk>; |
| 20 | clock-names = "apb", "ir"; |
Hans de Goede | 44f8af6 | 2014-11-20 11:59:04 -0300 | [diff] [blame] | 21 | resets = <&apb0_rst 1>; |
Alexander Bersenev | 22f4424 | 2014-06-08 15:08:09 -0300 | [diff] [blame] | 22 | interrupts = <0 5 1>; |
| 23 | reg = <0x01C21800 0x40>; |
| 24 | linux,rc-map-name = "rc-rc6-mce"; |
| 25 | }; |