xref: /linux/scripts/dtc/include-prefixes/arm/samsung/s3c6410-mini6410.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Samsung's S3C6410 based Mini6410 board device tree source
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (c) 2013 Tomasz Figa <tomasz.figa@gmail.com>
6*724ba675SRob Herring *
7*724ba675SRob Herring * Device tree source file for FriendlyARM Mini6410 board which is based on
8*724ba675SRob Herring * Samsung's S3C6410 SoC.
9*724ba675SRob Herring */
10*724ba675SRob Herring
11*724ba675SRob Herring/dts-v1/;
12*724ba675SRob Herring
13*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
14*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
15*724ba675SRob Herring
16*724ba675SRob Herring#include "s3c6410.dtsi"
17*724ba675SRob Herring
18*724ba675SRob Herring/ {
19*724ba675SRob Herring	model = "FriendlyARM Mini6410 board based on S3C6410";
20*724ba675SRob Herring	compatible = "friendlyarm,mini6410", "samsung,s3c6410";
21*724ba675SRob Herring
22*724ba675SRob Herring	memory@50000000 {
23*724ba675SRob Herring		device_type = "memory";
24*724ba675SRob Herring		reg = <0x50000000 0x10000000>;
25*724ba675SRob Herring	};
26*724ba675SRob Herring
27*724ba675SRob Herring	chosen {
28*724ba675SRob Herring		bootargs = "console=ttySAC0,115200n8 earlyprintk rootwait root=/dev/mmcblk0p1";
29*724ba675SRob Herring	};
30*724ba675SRob Herring
31*724ba675SRob Herring	fin_pll: oscillator-0 {
32*724ba675SRob Herring		compatible = "fixed-clock";
33*724ba675SRob Herring		clock-frequency = <12000000>;
34*724ba675SRob Herring		clock-output-names = "fin_pll";
35*724ba675SRob Herring		#clock-cells = <0>;
36*724ba675SRob Herring	};
37*724ba675SRob Herring
38*724ba675SRob Herring	xusbxti: oscillator-1 {
39*724ba675SRob Herring		compatible = "fixed-clock";
40*724ba675SRob Herring		clock-output-names = "xusbxti";
41*724ba675SRob Herring		clock-frequency = <48000000>;
42*724ba675SRob Herring		#clock-cells = <0>;
43*724ba675SRob Herring	};
44*724ba675SRob Herring
45*724ba675SRob Herring	srom-cs1-bus@18000000 {
46*724ba675SRob Herring		compatible = "simple-bus";
47*724ba675SRob Herring		#address-cells = <1>;
48*724ba675SRob Herring		#size-cells = <1>;
49*724ba675SRob Herring		reg = <0x18000000 0x8000000>;
50*724ba675SRob Herring		ranges;
51*724ba675SRob Herring
52*724ba675SRob Herring		ethernet@18000000 {
53*724ba675SRob Herring			compatible = "davicom,dm9000";
54*724ba675SRob Herring			reg = <0x18000000 0x2 0x18000004 0x2>;
55*724ba675SRob Herring			interrupt-parent = <&gpn>;
56*724ba675SRob Herring			interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
57*724ba675SRob Herring			davicom,no-eeprom;
58*724ba675SRob Herring		};
59*724ba675SRob Herring	};
60*724ba675SRob Herring
61*724ba675SRob Herring	gpio-keys {
62*724ba675SRob Herring		compatible = "gpio-keys";
63*724ba675SRob Herring		pinctrl-names = "default";
64*724ba675SRob Herring		pinctrl-0 = <&gpio_keys>;
65*724ba675SRob Herring		autorepeat;
66*724ba675SRob Herring
67*724ba675SRob Herring		button-k1 {
68*724ba675SRob Herring			label = "K1";
69*724ba675SRob Herring			gpios = <&gpn 0 GPIO_ACTIVE_LOW>;
70*724ba675SRob Herring			linux,code = <2>;
71*724ba675SRob Herring			debounce-interval = <20>;
72*724ba675SRob Herring		};
73*724ba675SRob Herring
74*724ba675SRob Herring		button-k2 {
75*724ba675SRob Herring			label = "K2";
76*724ba675SRob Herring			gpios = <&gpn 1 GPIO_ACTIVE_LOW>;
77*724ba675SRob Herring			linux,code = <3>;
78*724ba675SRob Herring			debounce-interval = <20>;
79*724ba675SRob Herring		};
80*724ba675SRob Herring
81*724ba675SRob Herring		button-k3 {
82*724ba675SRob Herring			label = "K3";
83*724ba675SRob Herring			gpios = <&gpn 2 GPIO_ACTIVE_LOW>;
84*724ba675SRob Herring			linux,code = <4>;
85*724ba675SRob Herring			debounce-interval = <20>;
86*724ba675SRob Herring		};
87*724ba675SRob Herring
88*724ba675SRob Herring		button-k4 {
89*724ba675SRob Herring			label = "K4";
90*724ba675SRob Herring			gpios = <&gpn 3 GPIO_ACTIVE_LOW>;
91*724ba675SRob Herring			linux,code = <5>;
92*724ba675SRob Herring			debounce-interval = <20>;
93*724ba675SRob Herring		};
94*724ba675SRob Herring
95*724ba675SRob Herring		button-k5 {
96*724ba675SRob Herring			label = "K5";
97*724ba675SRob Herring			gpios = <&gpn 4 GPIO_ACTIVE_LOW>;
98*724ba675SRob Herring			linux,code = <6>;
99*724ba675SRob Herring			debounce-interval = <20>;
100*724ba675SRob Herring		};
101*724ba675SRob Herring
102*724ba675SRob Herring		button-k6 {
103*724ba675SRob Herring			label = "K6";
104*724ba675SRob Herring			gpios = <&gpn 5 GPIO_ACTIVE_LOW>;
105*724ba675SRob Herring			linux,code = <7>;
106*724ba675SRob Herring			debounce-interval = <20>;
107*724ba675SRob Herring		};
108*724ba675SRob Herring
109*724ba675SRob Herring		button-k7 {
110*724ba675SRob Herring			label = "K7";
111*724ba675SRob Herring			gpios = <&gpl 11 GPIO_ACTIVE_LOW>;
112*724ba675SRob Herring			linux,code = <8>;
113*724ba675SRob Herring			debounce-interval = <20>;
114*724ba675SRob Herring		};
115*724ba675SRob Herring
116*724ba675SRob Herring		button-k8 {
117*724ba675SRob Herring			label = "K8";
118*724ba675SRob Herring			gpios = <&gpl 12 GPIO_ACTIVE_LOW>;
119*724ba675SRob Herring			linux,code = <9>;
120*724ba675SRob Herring			debounce-interval = <20>;
121*724ba675SRob Herring		};
122*724ba675SRob Herring	};
123*724ba675SRob Herring
124*724ba675SRob Herring	leds {
125*724ba675SRob Herring		compatible = "gpio-leds";
126*724ba675SRob Herring		pinctrl-names = "default";
127*724ba675SRob Herring		pinctrl-0 = <&gpio_leds>;
128*724ba675SRob Herring
129*724ba675SRob Herring		led-1 {
130*724ba675SRob Herring			label = "LED1";
131*724ba675SRob Herring			gpios = <&gpk 4 GPIO_ACTIVE_LOW>;
132*724ba675SRob Herring			linux,default-trigger = "heartbeat";
133*724ba675SRob Herring		};
134*724ba675SRob Herring
135*724ba675SRob Herring		led-2 {
136*724ba675SRob Herring			label = "LED2";
137*724ba675SRob Herring			gpios = <&gpk 5 GPIO_ACTIVE_LOW>;
138*724ba675SRob Herring			linux,default-trigger = "mmc0";
139*724ba675SRob Herring		};
140*724ba675SRob Herring
141*724ba675SRob Herring		led-3 {
142*724ba675SRob Herring			label = "LED3";
143*724ba675SRob Herring			gpios = <&gpk 6 GPIO_ACTIVE_LOW>;
144*724ba675SRob Herring		};
145*724ba675SRob Herring
146*724ba675SRob Herring		led-4 {
147*724ba675SRob Herring			label = "LED4";
148*724ba675SRob Herring			gpios = <&gpk 7 GPIO_ACTIVE_LOW>;
149*724ba675SRob Herring		};
150*724ba675SRob Herring	};
151*724ba675SRob Herring
152*724ba675SRob Herring	buzzer {
153*724ba675SRob Herring		compatible = "pwm-beeper";
154*724ba675SRob Herring		pwms = <&pwm 0 1000000 0>;
155*724ba675SRob Herring		pinctrl-names = "default";
156*724ba675SRob Herring		pinctrl-0 = <&pwm0_out>;
157*724ba675SRob Herring	};
158*724ba675SRob Herring};
159*724ba675SRob Herring
160*724ba675SRob Herring&clocks {
161*724ba675SRob Herring	clocks = <&fin_pll>;
162*724ba675SRob Herring};
163*724ba675SRob Herring
164*724ba675SRob Herring&sdhci0 {
165*724ba675SRob Herring	pinctrl-names = "default";
166*724ba675SRob Herring	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
167*724ba675SRob Herring	bus-width = <4>;
168*724ba675SRob Herring	status = "okay";
169*724ba675SRob Herring};
170*724ba675SRob Herring
171*724ba675SRob Herring&uart0 {
172*724ba675SRob Herring	pinctrl-names = "default";
173*724ba675SRob Herring	pinctrl-0 = <&uart0_data>;
174*724ba675SRob Herring	status = "okay";
175*724ba675SRob Herring};
176*724ba675SRob Herring
177*724ba675SRob Herring&uart1 {
178*724ba675SRob Herring	pinctrl-names = "default";
179*724ba675SRob Herring	pinctrl-0 = <&uart1_data>, <&uart1_fctl>;
180*724ba675SRob Herring	status = "okay";
181*724ba675SRob Herring};
182*724ba675SRob Herring
183*724ba675SRob Herring&uart2 {
184*724ba675SRob Herring	pinctrl-names = "default";
185*724ba675SRob Herring	pinctrl-0 = <&uart2_data>;
186*724ba675SRob Herring	status = "okay";
187*724ba675SRob Herring};
188*724ba675SRob Herring
189*724ba675SRob Herring&uart3 {
190*724ba675SRob Herring	pinctrl-names = "default";
191*724ba675SRob Herring	pinctrl-0 = <&uart3_data>;
192*724ba675SRob Herring	status = "okay";
193*724ba675SRob Herring};
194*724ba675SRob Herring
195*724ba675SRob Herring&pinctrl0 {
196*724ba675SRob Herring	gpio_leds: gpio-leds-pins {
197*724ba675SRob Herring		samsung,pins = "gpk-4", "gpk-5", "gpk-6", "gpk-7";
198*724ba675SRob Herring		samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
199*724ba675SRob Herring	};
200*724ba675SRob Herring
201*724ba675SRob Herring	gpio_keys: gpio-keys-pins {
202*724ba675SRob Herring		samsung,pins = "gpn-0", "gpn-1", "gpn-2", "gpn-3",
203*724ba675SRob Herring				"gpn-4", "gpn-5", "gpl-11", "gpl-12";
204*724ba675SRob Herring		samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
205*724ba675SRob Herring	};
206*724ba675SRob Herring};
207*724ba675SRob Herring
208*724ba675SRob Herring&i2c0 {
209*724ba675SRob Herring	pinctrl-names = "default";
210*724ba675SRob Herring	pinctrl-0 = <&i2c0_bus>;
211*724ba675SRob Herring	status = "okay";
212*724ba675SRob Herring
213*724ba675SRob Herring	eeprom@50 {
214*724ba675SRob Herring		compatible = "atmel,24c08";
215*724ba675SRob Herring		reg = <0x50>;
216*724ba675SRob Herring		pagesize = <16>;
217*724ba675SRob Herring	};
218*724ba675SRob Herring};
219