Linux Audio

Check our new training course

Loading...
v4.17
  1/*
  2 * at91sam9rlek.dts - Device Tree file for Atmel at91sam9rl reference board
  3 *
  4 *  Copyright (C) 2014 Microchip
  5 *  Alexandre Belloni <alexandre.belloni@free-electrons.com>
  6 *
  7 * Licensed under GPLv2 only
  8 */
  9/dts-v1/;
 10#include "at91sam9rl.dtsi"
 11
 12/ {
 13	model = "Atmel at91sam9rlek";
 14	compatible = "atmel,at91sam9rlek", "atmel,at91sam9rl", "atmel,at91sam9";
 15
 16	chosen {
 17		bootargs = "rootfstype=ubifs root=ubi0:rootfs ubi.mtd=5 rw";
 18		stdout-path = "serial0:115200n8";
 19	};
 20
 21	memory {
 22		reg = <0x20000000 0x4000000>;
 23	};
 24
 25	clocks {
 26		slow_xtal {
 27			clock-frequency = <32768>;
 28		};
 29
 30		main_xtal {
 
 31			clock-frequency = <12000000>;
 32		};
 33	};
 34
 35	ahb {
 36		fb0: fb@500000 {
 37			display = <&display0>;
 
 
 38			status = "okay";
 39
 40			display0: display {
 41				bits-per-pixel = <16>;
 42				atmel,lcdcon-backlight;
 43				atmel,dmacon = <0x1>;
 44				atmel,lcdcon2 = <0x80008002>;
 45				atmel,guard-time = <1>;
 46				atmel,lcd-wiring-mode = "RGB";
 47
 48				display-timings {
 49					native-mode = <&timing0>;
 50					timing0: timing0 {
 51						clock-frequency = <4965000>;
 52						hactive = <240>;
 53						vactive = <320>;
 54						hback-porch = <1>;
 55						hfront-porch = <33>;
 56						vback-porch = <1>;
 57						vfront-porch = <0>;
 58						hsync-len = <5>;
 59						vsync-len = <1>;
 60						hsync-active = <1>;
 61						vsync-active = <1>;
 62					};
 63				};
 64			};
 65		};
 66
 67		ebi: ebi@10000000 {
 68			pinctrl-0 = <&pinctrl_ebi_addr_nand>;
 69			pinctrl-names = "default";
 70			status = "okay";
 71
 72			nand_controller: nand-controller {
 73				status = "okay";
 74				pinctrl-0 = <&pinctrl_nand_oe_we
 75					     &pinctrl_nand_cs
 76					     &pinctrl_nand_rb>;
 77				pinctrl-names = "default";
 78
 79				nand@3 {
 80					reg = <0x3 0x0 0x800000>;
 81					rb-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
 82					cs-gpios = <&pioB 6 GPIO_ACTIVE_HIGH>;
 83					nand-bus-width = <8>;
 84					nand-ecc-mode = "soft";
 85					nand-on-flash-bbt;
 86					label = "atmel_nand";
 87
 88					partitions {
 89						compatible = "fixed-partitions";
 90						#address-cells = <1>;
 91						#size-cells = <1>;
 92
 93						at91bootstrap@0 {
 94							label = "at91bootstrap";
 95							reg = <0x0 0x40000>;
 96						};
 97
 98						bootloader@40000 {
 99							label = "bootloader";
100							reg = <0x40000 0x80000>;
101						};
102
103						bootloaderenv@c0000 {
104							label = "bootloader env";
105							reg = <0xc0000 0xc0000>;
106						};
107
108						dtb@180000 {
109							label = "device tree";
110							reg = <0x180000 0x80000>;
111						};
112
113						kernel@200000 {
114							label = "kernel";
115							reg = <0x200000 0x600000>;
116						};
117
118						rootfs@800000 {
119							label = "rootfs";
120							reg = <0x800000 0x0f800000>;
121						};
122					};
123				};
124			};
125		};
126
127		apb {
128			tcb0: timer@fffa0000 {
129				timer@0 {
130					compatible = "atmel,tcb-timer";
131					reg = <0>, <1>;
132				};
133
134				timer@2 {
135					compatible = "atmel,tcb-timer";
136					reg = <2>;
137				};
 
 
 
 
138			};
 
139
 
140			mmc0: mmc@fffa4000 {
141				pinctrl-0 = <
142					&pinctrl_board_mmc0
143					&pinctrl_mmc0_clk
144					&pinctrl_mmc0_slot0_cmd_dat0
145					&pinctrl_mmc0_slot0_dat1_3>;
146				status = "okay";
147				slot@0 {
148					reg = <0>;
149					bus-width = <4>;
150					cd-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
151				};
152			};
153
154			usart0: serial@fffb0000 {
155				pinctrl-0 = <
156					&pinctrl_usart0
157					&pinctrl_usart0_rts
158					&pinctrl_usart0_cts>;
159				status = "okay";
160			};
161
162			adc0: adc@fffd0000 {
163				pinctrl-names = "default";
164				pinctrl-0 = <
165					&pinctrl_adc0_ad0
166					&pinctrl_adc0_ad1
167					&pinctrl_adc0_ad2
168					&pinctrl_adc0_ad3
169					&pinctrl_adc0_ad4
170					&pinctrl_adc0_ad5
171					&pinctrl_adc0_adtrg>;
172				atmel,adc-ts-wires = <4>;
173				status = "okay";
174			};
175
176			usb0: gadget@fffd4000 {
177				atmel,vbus-gpio = <&pioA 8 GPIO_ACTIVE_HIGH>;
178				status = "okay";
179			};
180
181			spi0: spi@fffcc000 {
182				status = "okay";
183				cs-gpios = <&pioA 28 0>, <0>, <0>, <0>;
184				mtd_dataflash@0 {
185					compatible = "atmel,at45", "atmel,dataflash";
186					spi-max-frequency = <15000000>;
187					reg = <0>;
188				};
189			};
190
191			pwm0: pwm@fffc8000 {
192				status = "okay";
193
194				pinctrl-names = "default";
195				pinctrl-0 = <&pinctrl_pwm0_pwm1_2>,
196					<&pinctrl_pwm0_pwm2_2>;
197			};
198
199			dbgu: serial@fffff200 {
200				status = "okay";
201			};
202
203			pinctrl@fffff400 {
204				mmc0 {
205					pinctrl_board_mmc0: mmc0-board {
206						atmel,pins =
207							<AT91_PIOA 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
208					};
209				};
210			};
211
212			watchdog@fffffd40 {
213				status = "okay";
 
 
214			};
215
216			rtc@fffffe00 {
217				status = "okay";
218			};
219		};
220	};
221
222	pwmleds {
223		compatible = "pwm-leds";
224
225		ds1 {
226			label = "ds1";
227			pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
228			max-brightness = <255>;
229		};
230
231		ds2 {
232			label = "ds2";
233			pwms = <&pwm0 2 5000 PWM_POLARITY_INVERTED>;
234			max-brightness = <255>;
235		};
236	};
237
238	leds {
239		compatible = "gpio-leds";
240
241		ds3 {
242			label = "ds3";
243			gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
244			linux,default-trigger = "heartbeat";
245		};
246	};
247
248	gpio_keys {
249		compatible = "gpio-keys";
250
251		right_click {
252			label = "right_click";
253			gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
254			linux,code = <273>;
255			wakeup-source;
256		};
257
258		left_click {
259			label = "left_click";
260			gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
261			linux,code = <272>;
262			wakeup-source;
263		};
264	};
265
266	i2c-gpio-0 {
267		status = "okay";
268	};
269
270	i2c-gpio-1 {
271		status = "okay";
272	};
273};
v3.15
  1/*
  2 * at91sam9rlek.dts - Device Tree file for Atmel at91sam9rl reference board
  3 *
  4 *  Copyright (C) 2014  Alexandre Belloni <alexandre.belloni@free-electrons.com>
 
  5 *
  6 * Licensed under GPLv2 only
  7 */
  8/dts-v1/;
  9#include "at91sam9rl.dtsi"
 10
 11/ {
 12	model = "Atmel at91sam9rlek";
 13	compatible = "atmel,at91sam9rlek", "atmel,at91sam9rl", "atmel,at91sam9";
 14
 15	chosen {
 16		bootargs = "console=ttyS0,115200 rootfstype=ubifs root=ubi0:rootfs ubi.mtd=5 rw";
 
 17	};
 18
 19	memory {
 20		reg = <0x20000000 0x4000000>;
 21	};
 22
 23	clocks {
 24		#address-cells = <1>;
 25		#size-cells = <1>;
 26		ranges;
 27
 28		main_clock: clock {
 29			compatible = "atmel,osc", "fixed-clock";
 30			clock-frequency = <12000000>;
 31		};
 32	};
 33
 34	ahb {
 35		nand0: nand@40000000 {
 36			nand-bus-width = <8>;
 37			nand-ecc-mode = "soft";
 38			nand-on-flash-bbt = <1>;
 39			status = "okay";
 40
 41			at91bootstrap@0 {
 42				label = "at91bootstrap";
 43				reg = <0x0 0x40000>;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 44			};
 
 45
 46			bootloader@40000 {
 47				label = "bootloader";
 48				reg = <0x40000 0x80000>;
 49			};
 50
 51			bootloaderenv@c0000 {
 52				label = "bootloader env";
 53				reg = <0xc0000 0xc0000>;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 54			};
 
 55
 56			dtb@180000 {
 57				label = "device tree";
 58				reg = <0x180000 0x80000>;
 59			};
 
 
 60
 61			kernel@200000 {
 62				label = "kernel";
 63				reg = <0x200000 0x600000>;
 64			};
 65
 66			rootfs@800000 {
 67				label = "rootfs";
 68				reg = <0x800000 0x0f800000>;
 69			};
 70		};
 71
 72		apb {
 73			mmc0: mmc@fffa4000 {
 74				pinctrl-0 = <
 75					&pinctrl_board_mmc0
 76					&pinctrl_mmc0_clk
 77					&pinctrl_mmc0_slot0_cmd_dat0
 78					&pinctrl_mmc0_slot0_dat1_3>;
 79				status = "okay";
 80				slot@0 {
 81					reg = <0>;
 82					bus-width = <4>;
 83					cd-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
 84				};
 85			};
 86
 87			usart0: serial@fffb0000 {
 88				pinctrl-0 = <
 89					&pinctrl_usart0
 90					&pinctrl_usart0_rts
 91					&pinctrl_usart0_cts>;
 92				status = "okay";
 93			};
 94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 95			dbgu: serial@fffff200 {
 96				status = "okay";
 97			};
 98
 99			pinctrl@fffff400 {
100				mmc0 {
101					pinctrl_board_mmc0: mmc0-board {
102						atmel,pins =
103							<AT91_PIOA 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
104					};
105				};
106			};
107
108			pmc: pmc@fffffc00 {
109				main: mainck {
110					clock-frequency = <12000000>;
111				};
112			};
113
114			watchdog@fffffd40 {
115				status = "okay";
116			};
117		};
118	};
119
120	leds {
121		compatible = "gpio-leds";
122
123		ds1 {
124			label = "ds1";
125			gpios = <&pioD 15 GPIO_ACTIVE_LOW>;
 
126		};
127
128		ds2 {
129			label = "ds2";
130			gpios = <&pioD 16 GPIO_ACTIVE_LOW>;
 
131		};
 
 
 
 
132
133		ds3 {
134			label = "ds3";
135			gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
136			linux,default-trigger = "heartbeat";
137		};
138	};
139
140	gpio_keys {
141		compatible = "gpio-keys";
142
143		right_click {
144			label = "right_click";
145			gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
146			linux,code = <273>;
147			gpio-key,wakeup;
148		};
149
150		left_click {
151			label = "left_click";
152			gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
153			linux,code = <272>;
154			gpio-key,wakeup;
155		};
 
 
 
 
 
 
 
 
156	};
157};