hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/arm/boot/dts/gemini-sq201.dts
....@@ -28,7 +28,7 @@
2828 compatible = "gpio-keys";
2929
3030 button-setup {
31
- debounce-interval = <50>;
31
+ debounce-interval = <100>;
3232 wakeup-source;
3333 linux,code = <KEY_SETUP>;
3434 label = "factory reset";
....@@ -41,14 +41,12 @@
4141 compatible = "gpio-leds";
4242 led-green-info {
4343 label = "sq201:green:info";
44
- /* Conflict with parallel flash */
4544 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
4645 default-state = "on";
4746 linux,default-trigger = "heartbeat";
4847 };
4948 led-green-usb {
5049 label = "sq201:green:usb";
51
- /* Conflict with parallel and NAND flash */
5250 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
5351 default-state = "off";
5452 linux,default-trigger = "usb-host";
....@@ -126,15 +124,10 @@
126124
127125 soc {
128126 flash@30000000 {
129
- /*
130
- * Flash access can be enabled, with the side effect
131
- * of disabling access to GPIO LED on GPIO0[20] which
132
- * reuse one of the parallel flash chip select lines.
133
- * Also the default firmware on the machine has the
134
- * problem that since it uses the flash, the two LEDS
135
- * on the right become numb.
136
- */
137
- /* status = "okay"; */
127
+ status = "okay";
128
+ pinctrl-names = "enabled", "disabled";
129
+ pinctrl-0 = <&pflash_default_pins>;
130
+ pinctrl-1 = <&pflash_disabled_pins>;
138131 /* 16MB of flash */
139132 reg = <0x30000000 0x01000000>;
140133
....@@ -157,9 +150,7 @@
157150 mux {
158151 function = "gpio0";
159152 groups = "gpio0fgrp",
160
- "gpio0ggrp",
161
- "gpio0hgrp",
162
- "gpio0kgrp";
153
+ "gpio0hgrp";
163154 };
164155 };
165156 /*
....@@ -170,6 +161,18 @@
170161 mux {
171162 function = "gpio1";
172163 groups = "gpio1dgrp";
164
+ };
165
+ };
166
+ /*
167
+ * These GPIO groups will be mapped in over some
168
+ * of the flash pins when the flash is not in
169
+ * active use.
170
+ */
171
+ pflash_disabled_pins: pinctrl-pflash-disabled {
172
+ mux {
173
+ function = "gpio0";
174
+ groups = "gpio0ggrp", "gpio0igrp", "gpio0jgrp",
175
+ "gpio0kgrp";
173176 };
174177 };
175178 pinctrl-gmii {
....@@ -286,7 +289,15 @@
286289 };
287290 };
288291
289
- ata@63000000 {
292
+ ide@63000000 {
293
+ status = "okay";
294
+ };
295
+
296
+ usb@68000000 {
297
+ status = "okay";
298
+ };
299
+
300
+ usb@69000000 {
290301 status = "okay";
291302 };
292303 };