xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/pm9g45.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * pm9g45.dts - Device Tree file for Ronetix pm9g45 board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot/dts-v1/;
8*f126890aSEmmanuel Vadot#include "at91sam9g45.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Ronetix pm9g45";
12*f126890aSEmmanuel Vadot	compatible = "ronetix,pm9g45", "atmel,at91sam9g45", "atmel,at91sam9";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200";
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	memory@70000000 {
19*f126890aSEmmanuel Vadot		reg = <0x70000000 0x8000000>;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	clocks {
23*f126890aSEmmanuel Vadot		slow_xtal {
24*f126890aSEmmanuel Vadot		      clock-frequency = <32768>;
25*f126890aSEmmanuel Vadot		};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot		main_xtal {
28*f126890aSEmmanuel Vadot		      clock-frequency = <12000000>;
29*f126890aSEmmanuel Vadot		};
30*f126890aSEmmanuel Vadot	};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot	ahb {
33*f126890aSEmmanuel Vadot		apb {
34*f126890aSEmmanuel Vadot			dbgu: serial@ffffee00 {
35*f126890aSEmmanuel Vadot				status = "okay";
36*f126890aSEmmanuel Vadot			};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot			pinctrl@fffff200 {
39*f126890aSEmmanuel Vadot				nand {
40*f126890aSEmmanuel Vadot					pinctrl_nand_rb: nand-rb-0 {
41*f126890aSEmmanuel Vadot						atmel,pins =
42*f126890aSEmmanuel Vadot							<AT91_PIOD 3 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
43*f126890aSEmmanuel Vadot					};
44*f126890aSEmmanuel Vadot				};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot				mmc {
47*f126890aSEmmanuel Vadot					pinctrl_board_mmc: mmc0-board {
48*f126890aSEmmanuel Vadot						atmel,pins =
49*f126890aSEmmanuel Vadot							<AT91_PIOD 6 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;	/* PD6 gpio CD pin pull_up and deglitch */
50*f126890aSEmmanuel Vadot					};
51*f126890aSEmmanuel Vadot				};
52*f126890aSEmmanuel Vadot			};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot			tcb0: timer@fff7c000 {
55*f126890aSEmmanuel Vadot				timer@0 {
56*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
57*f126890aSEmmanuel Vadot					reg = <0>, <1>;
58*f126890aSEmmanuel Vadot				};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot				timer@2 {
61*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
62*f126890aSEmmanuel Vadot					reg = <2>;
63*f126890aSEmmanuel Vadot				};
64*f126890aSEmmanuel Vadot			};
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot			mmc0: mmc@fff80000 {
67*f126890aSEmmanuel Vadot				pinctrl-0 = <
68*f126890aSEmmanuel Vadot					&pinctrl_board_mmc
69*f126890aSEmmanuel Vadot					&pinctrl_mmc0_slot0_clk_cmd_dat0
70*f126890aSEmmanuel Vadot					&pinctrl_mmc0_slot0_dat1_3>;
71*f126890aSEmmanuel Vadot				pinctrl-names = "default";
72*f126890aSEmmanuel Vadot				status = "okay";
73*f126890aSEmmanuel Vadot				slot@0 {
74*f126890aSEmmanuel Vadot					reg = <0>;
75*f126890aSEmmanuel Vadot					bus-width = <4>;
76*f126890aSEmmanuel Vadot					cd-gpios = <&pioD 6 GPIO_ACTIVE_HIGH>;
77*f126890aSEmmanuel Vadot				};
78*f126890aSEmmanuel Vadot			};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot			macb0: ethernet@fffbc000 {
81*f126890aSEmmanuel Vadot				phy-mode = "rmii";
82*f126890aSEmmanuel Vadot				status = "okay";
83*f126890aSEmmanuel Vadot			};
84*f126890aSEmmanuel Vadot		};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot		ebi: ebi@10000000 {
87*f126890aSEmmanuel Vadot			status = "okay";
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot			nand_controller: nand-controller {
90*f126890aSEmmanuel Vadot				status = "okay";
91*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
92*f126890aSEmmanuel Vadot				pinctrl-names = "default";
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot				nand@3 {
95*f126890aSEmmanuel Vadot					reg = <0x3 0x0 0x800000>;
96*f126890aSEmmanuel Vadot					rb-gpios = <&pioD 3 GPIO_ACTIVE_HIGH>;
97*f126890aSEmmanuel Vadot					cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
98*f126890aSEmmanuel Vadot					nand-bus-width = <8>;
99*f126890aSEmmanuel Vadot					nand-ecc-mode = "soft";
100*f126890aSEmmanuel Vadot					nand-on-flash-bbt;
101*f126890aSEmmanuel Vadot					label = "atmel_nand";
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot					partitions {
104*f126890aSEmmanuel Vadot						compatible = "fixed-partitions";
105*f126890aSEmmanuel Vadot						#address-cells = <1>;
106*f126890aSEmmanuel Vadot						#size-cells = <1>;
107*f126890aSEmmanuel Vadot
108*f126890aSEmmanuel Vadot						at91bootstrap@0 {
109*f126890aSEmmanuel Vadot							label = "at91bootstrap";
110*f126890aSEmmanuel Vadot							reg = <0x0 0x20000>;
111*f126890aSEmmanuel Vadot						};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot						barebox@20000 {
114*f126890aSEmmanuel Vadot							label = "barebox";
115*f126890aSEmmanuel Vadot							reg = <0x20000 0x40000>;
116*f126890aSEmmanuel Vadot						};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot						bareboxenv@60000 {
119*f126890aSEmmanuel Vadot							label = "bareboxenv";
120*f126890aSEmmanuel Vadot							reg = <0x60000 0x1A0000>;
121*f126890aSEmmanuel Vadot						};
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot						kernel@200000 {
124*f126890aSEmmanuel Vadot							label = "bareboxenv2";
125*f126890aSEmmanuel Vadot							reg = <0x200000 0x300000>;
126*f126890aSEmmanuel Vadot						};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot						kernel@500000 {
129*f126890aSEmmanuel Vadot							label = "root";
130*f126890aSEmmanuel Vadot							reg = <0x500000 0x400000>;
131*f126890aSEmmanuel Vadot						};
132*f126890aSEmmanuel Vadot
133*f126890aSEmmanuel Vadot						data@900000 {
134*f126890aSEmmanuel Vadot							label = "data";
135*f126890aSEmmanuel Vadot							reg = <0x900000 0x8340000>;
136*f126890aSEmmanuel Vadot						};
137*f126890aSEmmanuel Vadot					};
138*f126890aSEmmanuel Vadot				};
139*f126890aSEmmanuel Vadot			};
140*f126890aSEmmanuel Vadot		};
141*f126890aSEmmanuel Vadot
142*f126890aSEmmanuel Vadot		usb0: ohci@700000 {
143*f126890aSEmmanuel Vadot			status = "okay";
144*f126890aSEmmanuel Vadot			num-ports = <2>;
145*f126890aSEmmanuel Vadot		};
146*f126890aSEmmanuel Vadot
147*f126890aSEmmanuel Vadot		usb1: ehci@800000 {
148*f126890aSEmmanuel Vadot			status = "okay";
149*f126890aSEmmanuel Vadot		};
150*f126890aSEmmanuel Vadot	};
151*f126890aSEmmanuel Vadot
152*f126890aSEmmanuel Vadot	leds {
153*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
154*f126890aSEmmanuel Vadot
155*f126890aSEmmanuel Vadot		led0 {
156*f126890aSEmmanuel Vadot			label = "led0";
157*f126890aSEmmanuel Vadot			gpios = <&pioD 0 GPIO_ACTIVE_LOW>;
158*f126890aSEmmanuel Vadot			linux,default-trigger = "nand-disk";
159*f126890aSEmmanuel Vadot		};
160*f126890aSEmmanuel Vadot
161*f126890aSEmmanuel Vadot		led1 {
162*f126890aSEmmanuel Vadot			label = "led1";
163*f126890aSEmmanuel Vadot			gpios = <&pioD 31 GPIO_ACTIVE_HIGH>;
164*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
165*f126890aSEmmanuel Vadot		};
166*f126890aSEmmanuel Vadot	};
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot	gpio_keys {
169*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
170*f126890aSEmmanuel Vadot		#address-cells = <1>;
171*f126890aSEmmanuel Vadot		#size-cells = <0>;
172*f126890aSEmmanuel Vadot
173*f126890aSEmmanuel Vadot		right {
174*f126890aSEmmanuel Vadot			label = "SW4";
175*f126890aSEmmanuel Vadot			gpios = <&pioE 7 GPIO_ACTIVE_LOW>;
176*f126890aSEmmanuel Vadot			linux,code = <106>;
177*f126890aSEmmanuel Vadot		};
178*f126890aSEmmanuel Vadot
179*f126890aSEmmanuel Vadot		up {
180*f126890aSEmmanuel Vadot			label = "SW3";
181*f126890aSEmmanuel Vadot			gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
182*f126890aSEmmanuel Vadot			linux,code = <103>;
183*f126890aSEmmanuel Vadot		};
184*f126890aSEmmanuel Vadot	};
185*f126890aSEmmanuel Vadot};
186