Linux Audio

Check our new training course

Loading...
v4.17
  1/*
  2 * at91sam9x5ek.dtsi - Device Tree file for AT91SAM9x5CM Base board
  3 *
  4 *  Copyright (C) 2012 Atmel,
  5 *                2012 Nicolas Ferre <nicolas.ferre@atmel.com>
  6 *
  7 * Licensed under GPLv2 or later.
  8 */
  9#include "at91sam9x5cm.dtsi"
 10
 11/ {
 12	model = "Atmel AT91SAM9X5-EK";
 13	compatible = "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
 14
 15	chosen {
 16		bootargs = "root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
 17		stdout-path = "serial0:115200n8";
 18	};
 19
 20	ahb {
 21		apb {
 22			mmc0: mmc@f0008000 {
 23				pinctrl-0 = <
 24					&pinctrl_board_mmc0
 25					&pinctrl_mmc0_slot0_clk_cmd_dat0
 26					&pinctrl_mmc0_slot0_dat1_3>;
 27				status = "okay";
 28				slot@0 {
 29					reg = <0>;
 30					bus-width = <4>;
 31					cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
 32				};
 33			};
 34
 35			mmc1: mmc@f000c000 {
 36				pinctrl-0 = <
 37					&pinctrl_board_mmc1
 38					&pinctrl_mmc1_slot0_clk_cmd_dat0
 39					&pinctrl_mmc1_slot0_dat1_3>;
 40				status = "okay";
 41				slot@0 {
 42					reg = <0>;
 43					bus-width = <4>;
 44					cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
 45				};
 46			};
 47
 48			dbgu: serial@fffff200 {
 49				status = "okay";
 50			};
 51
 52			usart0: serial@f801c000 {
 53				atmel,use-dma-rx;
 54				atmel,use-dma-tx;
 55				status = "okay";
 56			};
 57
 58			usb2: gadget@f803c000 {
 59				pinctrl-names = "default";
 60				pinctrl-0 = <&pinctrl_board_usb2>;
 61				atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
 62				status = "okay";
 63			};
 64
 65			i2c0: i2c@f8010000 {
 66				status = "okay";
 67
 68				wm8731: wm8731@1a {
 69					compatible = "wm8731";
 70					reg = <0x1a>;
 71				};
 72			};
 73
 74			adc0: adc@f804c000 {
 75				atmel,adc-ts-wires = <4>;
 76				atmel,adc-ts-pressure-threshold = <10000>;
 77				status = "okay";
 78			};
 79
 80			pinctrl@fffff400 {
 81				camera_sensor {
 82					pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 {
 83						atmel,pins =
 84							<AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* ISI_MCK */
 85					};
 86
 87					pinctrl_sensor_power: sensor_power-0 {
 88						atmel,pins =
 89							<AT91_PIOA 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
 90					};
 91
 92					pinctrl_sensor_reset: sensor_reset-0 {
 93						atmel,pins =
 94							<AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
 95					};
 96				};
 97
 98				mmc0 {
 99					pinctrl_board_mmc0: mmc0-board {
100						atmel,pins =
101							<AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;	/* PD15 gpio CD pin pull up and deglitch */
102					};
103				};
104
105				mmc1 {
106					pinctrl_board_mmc1: mmc1-board {
107						atmel,pins =
108							<AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;	/* PD14 gpio CD pin pull up and deglitch */
109					};
110				};
111
112				usb2 {
113					pinctrl_board_usb2: usb2-board {
114						atmel,pins =
115							<AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;		/* PB16 gpio vbus sense, deglitch */
116					};
117				};
118			};
119
120			spi0: spi@f0000000 {
121				status = "disabled"; /* conflicts with mmc1 */
122				cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
123				m25p80@0 {
124					compatible = "atmel,at25df321a";
125					spi-max-frequency = <50000000>;
126					reg = <0>;
127				};
128			};
129
130			watchdog@fffffe40 {
131				status = "okay";
132			};
133
134			ssc0: ssc@f0010000 {
135				status = "okay";
136			};
137		};
138
139		usb0: ohci@600000 {
140			status = "okay";
141			num-ports = <3>;
142			atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
143					   &pioD 19 GPIO_ACTIVE_LOW
144					   &pioD 20 GPIO_ACTIVE_LOW
145					  >;
146		};
147
148		usb1: ehci@700000 {
149			status = "okay";
150		};
151	};
152
153	sound {
154		compatible = "atmel,sam9x5-wm8731-audio";
155
156		atmel,model = "wm8731 @ AT91SAM9X5EK";
157
158		atmel,audio-routing =
159			"Headphone Jack", "RHPOUT",
160			"Headphone Jack", "LHPOUT",
161			"LLINEIN", "Line In Jack",
162			"RLINEIN", "Line In Jack";
163
164		atmel,ssc-controller = <&ssc0>;
165		atmel,audio-codec = <&wm8731>;
166	};
167};
v3.15
  1/*
  2 * at91sam9x5ek.dtsi - Device Tree file for AT91SAM9x5CM Base board
  3 *
  4 *  Copyright (C) 2012 Atmel,
  5 *                2012 Nicolas Ferre <nicolas.ferre@atmel.com>
  6 *
  7 * Licensed under GPLv2 or later.
  8 */
  9#include "at91sam9x5cm.dtsi"
 10
 11/ {
 12	model = "Atmel AT91SAM9X5-EK";
 13	compatible = "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
 14
 15	chosen {
 16		bootargs = "console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
 
 17	};
 18
 19	ahb {
 20		apb {
 21			mmc0: mmc@f0008000 {
 22				pinctrl-0 = <
 23					&pinctrl_board_mmc0
 24					&pinctrl_mmc0_slot0_clk_cmd_dat0
 25					&pinctrl_mmc0_slot0_dat1_3>;
 26				status = "okay";
 27				slot@0 {
 28					reg = <0>;
 29					bus-width = <4>;
 30					cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
 31				};
 32			};
 33
 34			mmc1: mmc@f000c000 {
 35				pinctrl-0 = <
 36					&pinctrl_board_mmc1
 37					&pinctrl_mmc1_slot0_clk_cmd_dat0
 38					&pinctrl_mmc1_slot0_dat1_3>;
 39				status = "okay";
 40				slot@0 {
 41					reg = <0>;
 42					bus-width = <4>;
 43					cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
 44				};
 45			};
 46
 47			dbgu: serial@fffff200 {
 48				status = "okay";
 49			};
 50
 51			usart0: serial@f801c000 {
 
 
 52				status = "okay";
 53			};
 54
 55			usb2: gadget@f803c000 {
 
 
 56				atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
 57				status = "okay";
 58			};
 59
 60			i2c0: i2c@f8010000 {
 61				status = "okay";
 62
 63				wm8731: wm8731@1a {
 64					compatible = "wm8731";
 65					reg = <0x1a>;
 66				};
 67			};
 68
 
 
 
 
 
 
 69			pinctrl@fffff400 {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 70				mmc0 {
 71					pinctrl_board_mmc0: mmc0-board {
 72						atmel,pins =
 73							<AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;	/* PD15 gpio CD pin pull up and deglitch */
 74					};
 75				};
 76
 77				mmc1 {
 78					pinctrl_board_mmc1: mmc1-board {
 79						atmel,pins =
 80							<AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;	/* PD14 gpio CD pin pull up and deglitch */
 81					};
 82				};
 
 
 
 
 
 
 
 83			};
 84
 85			spi0: spi@f0000000 {
 86				status = "okay";
 87				cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
 88				m25p80@0 {
 89					compatible = "atmel,at25df321a";
 90					spi-max-frequency = <50000000>;
 91					reg = <0>;
 92				};
 93			};
 94
 95			watchdog@fffffe40 {
 96				status = "okay";
 97			};
 98
 99			ssc0: ssc@f0010000 {
100				status = "okay";
101			};
102		};
103
104		usb0: ohci@00600000 {
105			status = "okay";
106			num-ports = <3>;
107			atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
108					   &pioD 19 GPIO_ACTIVE_LOW
109					   &pioD 20 GPIO_ACTIVE_LOW
110					  >;
111		};
112
113		usb1: ehci@00700000 {
114			status = "okay";
115		};
116	};
117
118	sound {
119		compatible = "atmel,sam9x5-wm8731-audio";
120
121		atmel,model = "wm8731 @ AT91SAM9X5EK";
122
123		atmel,audio-routing =
124			"Headphone Jack", "RHPOUT",
125			"Headphone Jack", "LHPOUT",
126			"LLINEIN", "Line In Jack",
127			"RLINEIN", "Line In Jack";
128
129		atmel,ssc-controller = <&ssc0>;
130		atmel,audio-codec = <&wm8731>;
131	};
132};