Linux Audio

Check our new training course

Loading...
v4.17
  1/*
  2 * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board
  3 *
  4 *  Copyright (C) 2016 Raashid Muhammed <raashidmuhammed@zilogic.com>
  5 *
  6 * Licensed under GPLv2 or later.
  7 */
  8/dts-v1/;
  9#include "at91sam9260.dtsi"
 10
 11/ {
 12	model = "Olimex sam9-l9260";
 13	compatible = "olimex,sam9-l9260", "atmel,at91sam9260", "atmel,at91sam9";
 14
 15	chosen {
 16		stdout-path = "serial0:115200n8";
 17	};
 18
 19	memory {
 20		reg = <0x20000000 0x4000000>;
 21	};
 22
 23	clocks {
 24		slow_xtal {
 25			clock-frequency = <32768>;
 26		};
 27
 28		main_xtal {
 29			clock-frequency = <18432000>;
 30		};
 31	};
 32
 33	ahb {
 34		apb {
 35			tcb0: timer@fffa0000 {
 36				timer@0 {
 37					compatible = "atmel,tcb-timer";
 38					reg = <0>, <1>;
 39				};
 40
 41				timer@2 {
 42					compatible = "atmel,tcb-timer";
 43					reg = <2>;
 44				};
 45			};
 46
 47			mmc0: mmc@fffa8000 {
 48				pinctrl-0 = <
 49					&pinctrl_board_mmc0
 50					&pinctrl_mmc0_clk
 51					&pinctrl_mmc0_slot1_cmd_dat0
 52					&pinctrl_mmc0_slot1_dat1_3>;
 53				status = "okay";
 54
 55				slot@1 {
 56					reg = <1>;
 57					bus-width = <4>;
 58					cd-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
 59					wp-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>;
 60				};
 61			};
 62
 63			macb0: ethernet@fffc4000 {
 64				pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii_alt>;
 65				phy-mode = "mii";
 66				#address-cells = <1>;
 67				#size-cells = <0>;
 68				status = "okay";
 69
 70				ethernet-phy@1 {
 71					reg = <0x1>;
 72				};
 73			};
 74
 75			spi0: spi@fffc8000 {
 76				cs-gpios = <&pioC 11 0>, <0>, <0>, <0>;
 77				status = "okay";
 78
 79				flash@0 {
 80					compatible = "atmel,at45", "atmel,dataflash";
 81					spi-max-frequency = <15000000>;
 82					reg = <0>;
 83				};
 84			};
 85
 86			dbgu: serial@fffff200 {
 87				status = "okay";
 88			};
 89
 90			pinctrl@fffff400 {
 91				mmc0 {
 92					pinctrl_board_mmc0: mmc0-board {
 93						atmel,pins =
 94							<AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH	/* CD pin */
 95							 AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;	/* WP pin */
 96					};
 97				};
 98			};
 99		};
100
101		nand0: nand@40000000 {
102			nand-bus-width = <8>;
103			nand-ecc-mode = "soft";
104			nand-on-flash-bbt = <1>;
105			status = "okay";
106		};
107
108		usb0: ohci@500000 {
109			status = "okay";
110		};
111
112	};
113
114	i2c-gpio-0 {
115		status = "okay";
116	};
117
118	leds {
119		compatible = "gpio-leds";
120
121		pwr_led {
122			label = "sam9-l9260:yellow:pwr";
123			gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
124			linux,default-trigger = "cpu0";
125		};
126
127		status_led {
128			label = "sam9-l9260:green:status";
129			gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
130			linux,default-trigger = "timer";
131		};
132	};
133};
v4.10.11
  1/*
  2 * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board
  3 *
  4 *  Copyright (C) 2016 Raashid Muhammed <raashidmuhammed@zilogic.com>
  5 *
  6 * Licensed under GPLv2 or later.
  7 */
  8/dts-v1/;
  9#include "at91sam9260.dtsi"
 10
 11/ {
 12	model = "Olimex sam9-l9260";
 13	compatible = "olimex,sam9-l9260", "atmel,at91sam9260", "atmel,at91sam9";
 14
 15	chosen {
 16		stdout-path = "serial0:115200n8";
 17	};
 18
 19	memory {
 20		reg = <0x20000000 0x4000000>;
 21	};
 22
 23	clocks {
 24		slow_xtal {
 25			clock-frequency = <32768>;
 26		};
 27
 28		main_xtal {
 29			clock-frequency = <18432000>;
 30		};
 31	};
 32
 33	ahb {
 34		apb {
 
 
 
 
 
 
 
 
 
 
 
 
 35			mmc0: mmc@fffa8000 {
 36				pinctrl-0 = <
 37					&pinctrl_board_mmc0
 38					&pinctrl_mmc0_clk
 39					&pinctrl_mmc0_slot1_cmd_dat0
 40					&pinctrl_mmc0_slot1_dat1_3>;
 41				status = "okay";
 42
 43				slot@1 {
 44					reg = <1>;
 45					bus-width = <4>;
 46					cd-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
 47					wp-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>;
 48				};
 49			};
 50
 51			macb0: ethernet@fffc4000 {
 52				pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii_alt>;
 53				phy-mode = "mii";
 54				#address-cells = <1>;
 55				#size-cells = <0>;
 56				status = "okay";
 57
 58				ethernet-phy@1 {
 59					reg = <0x1>;
 60				};
 61			};
 62
 63			spi0: spi@fffc8000 {
 64				cs-gpios = <&pioC 11 0>, <0>, <0>, <0>;
 65				status = "okay";
 66
 67				flash@0 {
 68					compatible = "atmel,at45", "atmel,dataflash";
 69					spi-max-frequency = <15000000>;
 70					reg = <0>;
 71				};
 72			};
 73
 74			dbgu: serial@fffff200 {
 75				status = "okay";
 76			};
 77
 78			pinctrl@fffff400 {
 79				mmc0 {
 80					pinctrl_board_mmc0: mmc0-board {
 81						atmel,pins =
 82							<AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH	/* CD pin */
 83							 AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;	/* WP pin */
 84					};
 85				};
 86			};
 87		};
 88
 89		nand0: nand@40000000 {
 90			nand-bus-width = <8>;
 91			nand-ecc-mode = "soft";
 92			nand-on-flash-bbt = <1>;
 93			status = "okay";
 94		};
 95
 96		usb0: ohci@500000 {
 97			status = "okay";
 98		};
 99
100	};
101
102	i2c-gpio-0 {
103		status = "okay";
104	};
105
106	leds {
107		compatible = "gpio-leds";
108
109		pwr_led {
110			label = "sam9-l9260:yellow:pwr";
111			gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
112			linux,default-trigger = "cpu0";
113		};
114
115		status_led {
116			label = "sam9-l9260:green:status";
117			gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
118			linux,default-trigger = "timer";
119		};
120	};
121};