|
1 | | -// SPDX-License-Identifier: GPL-2.0-or-later |
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
2 | 2 | /* |
3 | 3 | * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board |
4 | 4 | * |
5 | | - * Copyright (C) 2014 Gaël PORTAY <g.portay@overkiz.com> |
| 5 | + * Copyright (C) 2014-2018 Overkiz SAS |
| 6 | + * Author: Antoine Aubert <a.aubert@overkiz.com> |
| 7 | + * Gaël Portay <g.portay@overkiz.com> |
| 8 | + * Kévin Raymond <k.raymond@overkiz.com> |
| 9 | + * Dorian Rocipon <d.rocipon@overkiz.com> |
6 | 10 | */ |
7 | | -/dts-v1/; |
8 | 11 | #include "at91sam9g25.dtsi" |
9 | | -#include <dt-bindings/pwm/pwm.h> |
10 | 12 |
|
11 | 13 | / { |
12 | | - model = "Overkiz Kizbox mini"; |
13 | | - compatible = "overkiz,kizboxmini", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9"; |
14 | | - |
15 | 14 | chosen { |
16 | 15 | bootargs = "ubi.mtd=ubi"; |
17 | 16 | stdout-path = &dbgu; |
|
22 | 21 | }; |
23 | 22 |
|
24 | 23 | clocks { |
25 | | - slow_xtal { |
26 | | - clock-frequency = <32768>; |
27 | | - }; |
28 | | - |
29 | 24 | main_xtal { |
30 | 25 | clock-frequency = <12000000>; |
31 | 26 | }; |
32 | | - }; |
33 | 27 |
|
34 | | - ahb { |
35 | | - nand0: nand@40000000 { |
36 | | - nand-bus-width = <8>; |
37 | | - nand-ecc-mode = "hw"; |
38 | | - atmel,has-pmecc; |
39 | | - atmel,pmecc-cap = <4>; |
40 | | - atmel,pmecc-sector-size = <512>; |
41 | | - nand-on-flash-bbt; |
42 | | - status = "okay"; |
| 28 | + slow_xtal { |
| 29 | + clock-frequency = <32768>; |
| 30 | + }; |
| 31 | + |
| 32 | + adc_op_clk { |
| 33 | + status = "disabled"; |
43 | 34 | }; |
44 | 35 | }; |
45 | 36 |
|
|
63 | 54 | }; |
64 | 55 | }; |
65 | 56 |
|
66 | | - pwm_leds { |
| 57 | + leds: pwm_leds { |
67 | 58 | compatible = "pwm-leds"; |
68 | 59 |
|
69 | | - green { |
| 60 | + led_blue: pwm_blue { |
| 61 | + label = "pwm:blue:user"; |
| 62 | + pwms = <&pwm0 2 10000000 0>; |
| 63 | + max-brightness = <255>; |
| 64 | + linux,default-trigger = "none"; |
| 65 | + status = "disabled"; |
| 66 | + }; |
| 67 | + |
| 68 | + led_green: pwm_green { |
70 | 69 | label = "pwm:green:user"; |
71 | 70 | pwms = <&pwm0 0 10000000 0>; |
72 | 71 | max-brightness = <255>; |
73 | 72 | linux,default-trigger = "default-on"; |
74 | 73 | }; |
75 | 74 |
|
76 | | - red { |
| 75 | + led_red: pwm_red { |
77 | 76 | label = "pwm:red:user"; |
78 | 77 | pwms = <&pwm0 1 10000000 0>; |
79 | 78 | max-brightness = <255>; |
|
82 | 81 | }; |
83 | 82 | }; |
84 | 83 |
|
85 | | -&dbgu { |
| 84 | +&usart0 { |
| 85 | + atmel,use-dma-rx; |
| 86 | + atmel,use-dma-tx; |
86 | 87 | status = "okay"; |
87 | 88 | }; |
88 | 89 |
|
89 | | -&ebi { |
90 | | - pinctrl-0 = <&pinctrl_ebi_addr_nand |
91 | | - &pinctrl_ebi_data_0_7>; |
92 | | - pinctrl-names = "default"; |
93 | | - status = "okay"; |
94 | | - |
95 | | - nand-controller { |
96 | | - pinctrl-0 = <&pinctrl_nand_oe_we |
97 | | - &pinctrl_nand_cs |
98 | | - &pinctrl_nand_rb>; |
99 | | - pinctrl-names = "default"; |
100 | | - status = "okay"; |
101 | | - |
102 | | - nand@3 { |
103 | | - reg = <0x3 0x0 0x800000>; |
104 | | - rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; |
105 | | - cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; |
106 | | - nand-bus-width = <8>; |
107 | | - nand-ecc-mode = "hw"; |
108 | | - nand-ecc-strength = <4>; |
109 | | - nand-ecc-step-size = <512>; |
110 | | - nand-on-flash-bbt; |
111 | | - label = "atmel_nand"; |
112 | | - |
113 | | - partitions { |
114 | | - compatible = "fixed-partitions"; |
115 | | - #address-cells = <1>; |
116 | | - #size-cells = <1>; |
117 | | - |
118 | | - bootstrap@0 { |
119 | | - label = "bootstrap"; |
120 | | - reg = <0x0 0x20000>; |
121 | | - }; |
122 | | - |
123 | | - ubi@20000 { |
124 | | - label = "ubi"; |
125 | | - reg = <0x20000 0x7fe0000>; |
126 | | - }; |
127 | | - }; |
128 | | - }; |
129 | | - }; |
130 | | -}; |
131 | | - |
132 | 90 | &macb0 { |
133 | 91 | phy-mode = "rmii"; |
134 | 92 | status = "okay"; |
|
137 | 95 | &pwm0 { |
138 | 96 | pinctrl-names = "default"; |
139 | 97 | pinctrl-0 = <&pinctrl_pwm0_pwm0_1 |
140 | | - &pinctrl_pwm0_pwm1_1>; |
| 98 | + &pinctrl_pwm0_pwm1_1 |
| 99 | + &pinctrl_pwm0_pwm2_1>; |
141 | 100 | status = "okay"; |
142 | 101 | }; |
143 | 102 |
|
144 | | -&tcb0 { |
145 | | - timer@0 { |
146 | | - compatible = "atmel,tcb-timer"; |
147 | | - reg = <0>; |
148 | | - }; |
| 103 | +&dbgu { |
| 104 | + status = "okay"; |
| 105 | +}; |
149 | 106 |
|
150 | | - timer@1 { |
151 | | - compatible = "atmel,tcb-timer"; |
152 | | - reg = <1>; |
153 | | - }; |
| 107 | +&watchdog { |
| 108 | + status = "okay"; |
154 | 109 | }; |
155 | 110 |
|
156 | | -&usart0 { |
| 111 | +&adc0 { |
| 112 | + status = "disabled"; |
| 113 | +}; |
| 114 | + |
| 115 | +&rtc { |
| 116 | + status = "disabled"; |
| 117 | +}; |
| 118 | + |
| 119 | +&ebi { |
| 120 | + pinctrl-0 = <&pinctrl_ebi_addr_nand |
| 121 | + &pinctrl_ebi_data_0_7>; |
| 122 | + pinctrl-names = "default"; |
157 | 123 | status = "okay"; |
158 | 124 | }; |
159 | 125 |
|
| 126 | +&nand_controller { |
| 127 | + status = "okay"; |
| 128 | + pinctrl-0 = <&pinctrl_nand_oe_we |
| 129 | + &pinctrl_nand_cs |
| 130 | + &pinctrl_nand_rb>; |
| 131 | + pinctrl-names = "default"; |
| 132 | + |
| 133 | + nand@3 { |
| 134 | + reg = <0x3 0x0 0x800000>; |
| 135 | + rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; |
| 136 | + cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; |
| 137 | + nand-bus-width = <8>; |
| 138 | + nand-ecc-mode = "hw"; |
| 139 | + nand-ecc-strength = <4>; |
| 140 | + nand-ecc-step-size = <512>; |
| 141 | + nand-on-flash-bbt; |
| 142 | + label = "atmel_nand"; |
| 143 | + |
| 144 | + partitions { |
| 145 | + compatible = "fixed-partitions"; |
| 146 | + #address-cells = <1>; |
| 147 | + #size-cells = <1>; |
| 148 | + |
| 149 | + bootstrap@0 { |
| 150 | + label = "bootstrap"; |
| 151 | + reg = <0x0 0x20000>; |
| 152 | + }; |
| 153 | + |
| 154 | + ubi@20000 { |
| 155 | + label = "ubi"; |
| 156 | + reg = <0x20000 0x7fe0000>; |
| 157 | + }; |
| 158 | + }; |
| 159 | + }; |
| 160 | +}; |
| 161 | + |
160 | 162 | &usb0 { |
161 | 163 | num-ports = <1>; |
162 | 164 | status = "okay"; |
|
166 | 168 | status = "okay"; |
167 | 169 | }; |
168 | 170 |
|
169 | | -&watchdog { |
170 | | - status = "okay"; |
171 | | -}; |
0 commit comments