xref: /linux/scripts/dtc/include-prefixes/arm/samsung/s3c6410-mini6410.dts (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Samsung's S3C6410 based Mini6410 board device tree source
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (c) 2013 Tomasz Figa <tomasz.figa@gmail.com>
6724ba675SRob Herring *
7724ba675SRob Herring * Device tree source file for FriendlyARM Mini6410 board which is based on
8724ba675SRob Herring * Samsung's S3C6410 SoC.
9724ba675SRob Herring */
10724ba675SRob Herring
11724ba675SRob Herring/dts-v1/;
12724ba675SRob Herring
13724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
14724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
15724ba675SRob Herring
16724ba675SRob Herring#include "s3c6410.dtsi"
17724ba675SRob Herring
18724ba675SRob Herring/ {
19724ba675SRob Herring	model = "FriendlyARM Mini6410 board based on S3C6410";
20724ba675SRob Herring	compatible = "friendlyarm,mini6410", "samsung,s3c6410";
21724ba675SRob Herring
22724ba675SRob Herring	memory@50000000 {
23724ba675SRob Herring		device_type = "memory";
24724ba675SRob Herring		reg = <0x50000000 0x10000000>;
25724ba675SRob Herring	};
26724ba675SRob Herring
27724ba675SRob Herring	chosen {
28724ba675SRob Herring		bootargs = "console=ttySAC0,115200n8 earlyprintk rootwait root=/dev/mmcblk0p1";
29724ba675SRob Herring	};
30724ba675SRob Herring
31724ba675SRob Herring	fin_pll: oscillator-0 {
32724ba675SRob Herring		compatible = "fixed-clock";
33724ba675SRob Herring		clock-frequency = <12000000>;
34724ba675SRob Herring		clock-output-names = "fin_pll";
35724ba675SRob Herring		#clock-cells = <0>;
36724ba675SRob Herring	};
37724ba675SRob Herring
38724ba675SRob Herring	xusbxti: oscillator-1 {
39724ba675SRob Herring		compatible = "fixed-clock";
40724ba675SRob Herring		clock-output-names = "xusbxti";
41724ba675SRob Herring		clock-frequency = <48000000>;
42724ba675SRob Herring		#clock-cells = <0>;
43724ba675SRob Herring	};
44724ba675SRob Herring
45724ba675SRob Herring	srom-cs1-bus@18000000 {
46724ba675SRob Herring		compatible = "simple-bus";
47724ba675SRob Herring		#address-cells = <1>;
48724ba675SRob Herring		#size-cells = <1>;
49724ba675SRob Herring		reg = <0x18000000 0x8000000>;
50724ba675SRob Herring		ranges;
51724ba675SRob Herring
52724ba675SRob Herring		ethernet@18000000 {
53724ba675SRob Herring			compatible = "davicom,dm9000";
54*cf0cb2afSKrzysztof Kozlowski			reg = <0x18000000 0x2>, <0x18000004 0x2>;
55724ba675SRob Herring			interrupt-parent = <&gpn>;
56724ba675SRob Herring			interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
57724ba675SRob Herring			davicom,no-eeprom;
58724ba675SRob Herring		};
59724ba675SRob Herring	};
60724ba675SRob Herring
61724ba675SRob Herring	gpio-keys {
62724ba675SRob Herring		compatible = "gpio-keys";
63724ba675SRob Herring		pinctrl-names = "default";
64724ba675SRob Herring		pinctrl-0 = <&gpio_keys>;
65724ba675SRob Herring		autorepeat;
66724ba675SRob Herring
67724ba675SRob Herring		button-k1 {
68724ba675SRob Herring			label = "K1";
69724ba675SRob Herring			gpios = <&gpn 0 GPIO_ACTIVE_LOW>;
70724ba675SRob Herring			linux,code = <2>;
71724ba675SRob Herring			debounce-interval = <20>;
72724ba675SRob Herring		};
73724ba675SRob Herring
74724ba675SRob Herring		button-k2 {
75724ba675SRob Herring			label = "K2";
76724ba675SRob Herring			gpios = <&gpn 1 GPIO_ACTIVE_LOW>;
77724ba675SRob Herring			linux,code = <3>;
78724ba675SRob Herring			debounce-interval = <20>;
79724ba675SRob Herring		};
80724ba675SRob Herring
81724ba675SRob Herring		button-k3 {
82724ba675SRob Herring			label = "K3";
83724ba675SRob Herring			gpios = <&gpn 2 GPIO_ACTIVE_LOW>;
84724ba675SRob Herring			linux,code = <4>;
85724ba675SRob Herring			debounce-interval = <20>;
86724ba675SRob Herring		};
87724ba675SRob Herring
88724ba675SRob Herring		button-k4 {
89724ba675SRob Herring			label = "K4";
90724ba675SRob Herring			gpios = <&gpn 3 GPIO_ACTIVE_LOW>;
91724ba675SRob Herring			linux,code = <5>;
92724ba675SRob Herring			debounce-interval = <20>;
93724ba675SRob Herring		};
94724ba675SRob Herring
95724ba675SRob Herring		button-k5 {
96724ba675SRob Herring			label = "K5";
97724ba675SRob Herring			gpios = <&gpn 4 GPIO_ACTIVE_LOW>;
98724ba675SRob Herring			linux,code = <6>;
99724ba675SRob Herring			debounce-interval = <20>;
100724ba675SRob Herring		};
101724ba675SRob Herring
102724ba675SRob Herring		button-k6 {
103724ba675SRob Herring			label = "K6";
104724ba675SRob Herring			gpios = <&gpn 5 GPIO_ACTIVE_LOW>;
105724ba675SRob Herring			linux,code = <7>;
106724ba675SRob Herring			debounce-interval = <20>;
107724ba675SRob Herring		};
108724ba675SRob Herring
109724ba675SRob Herring		button-k7 {
110724ba675SRob Herring			label = "K7";
111724ba675SRob Herring			gpios = <&gpl 11 GPIO_ACTIVE_LOW>;
112724ba675SRob Herring			linux,code = <8>;
113724ba675SRob Herring			debounce-interval = <20>;
114724ba675SRob Herring		};
115724ba675SRob Herring
116724ba675SRob Herring		button-k8 {
117724ba675SRob Herring			label = "K8";
118724ba675SRob Herring			gpios = <&gpl 12 GPIO_ACTIVE_LOW>;
119724ba675SRob Herring			linux,code = <9>;
120724ba675SRob Herring			debounce-interval = <20>;
121724ba675SRob Herring		};
122724ba675SRob Herring	};
123724ba675SRob Herring
124724ba675SRob Herring	leds {
125724ba675SRob Herring		compatible = "gpio-leds";
126724ba675SRob Herring		pinctrl-names = "default";
127724ba675SRob Herring		pinctrl-0 = <&gpio_leds>;
128724ba675SRob Herring
129724ba675SRob Herring		led-1 {
130724ba675SRob Herring			label = "LED1";
131724ba675SRob Herring			gpios = <&gpk 4 GPIO_ACTIVE_LOW>;
132724ba675SRob Herring			linux,default-trigger = "heartbeat";
133724ba675SRob Herring		};
134724ba675SRob Herring
135724ba675SRob Herring		led-2 {
136724ba675SRob Herring			label = "LED2";
137724ba675SRob Herring			gpios = <&gpk 5 GPIO_ACTIVE_LOW>;
138724ba675SRob Herring			linux,default-trigger = "mmc0";
139724ba675SRob Herring		};
140724ba675SRob Herring
141724ba675SRob Herring		led-3 {
142724ba675SRob Herring			label = "LED3";
143724ba675SRob Herring			gpios = <&gpk 6 GPIO_ACTIVE_LOW>;
144724ba675SRob Herring		};
145724ba675SRob Herring
146724ba675SRob Herring		led-4 {
147724ba675SRob Herring			label = "LED4";
148724ba675SRob Herring			gpios = <&gpk 7 GPIO_ACTIVE_LOW>;
149724ba675SRob Herring		};
150724ba675SRob Herring	};
151724ba675SRob Herring
152724ba675SRob Herring	buzzer {
153724ba675SRob Herring		compatible = "pwm-beeper";
154724ba675SRob Herring		pwms = <&pwm 0 1000000 0>;
155724ba675SRob Herring		pinctrl-names = "default";
156724ba675SRob Herring		pinctrl-0 = <&pwm0_out>;
157724ba675SRob Herring	};
158724ba675SRob Herring};
159724ba675SRob Herring
160724ba675SRob Herring&clocks {
161724ba675SRob Herring	clocks = <&fin_pll>;
162724ba675SRob Herring};
163724ba675SRob Herring
164724ba675SRob Herring&sdhci0 {
165724ba675SRob Herring	pinctrl-names = "default";
166724ba675SRob Herring	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
167724ba675SRob Herring	bus-width = <4>;
168724ba675SRob Herring	status = "okay";
169724ba675SRob Herring};
170724ba675SRob Herring
171724ba675SRob Herring&uart0 {
172724ba675SRob Herring	pinctrl-names = "default";
173724ba675SRob Herring	pinctrl-0 = <&uart0_data>;
174724ba675SRob Herring	status = "okay";
175724ba675SRob Herring};
176724ba675SRob Herring
177724ba675SRob Herring&uart1 {
178724ba675SRob Herring	pinctrl-names = "default";
179724ba675SRob Herring	pinctrl-0 = <&uart1_data>, <&uart1_fctl>;
180724ba675SRob Herring	status = "okay";
181724ba675SRob Herring};
182724ba675SRob Herring
183724ba675SRob Herring&uart2 {
184724ba675SRob Herring	pinctrl-names = "default";
185724ba675SRob Herring	pinctrl-0 = <&uart2_data>;
186724ba675SRob Herring	status = "okay";
187724ba675SRob Herring};
188724ba675SRob Herring
189724ba675SRob Herring&uart3 {
190724ba675SRob Herring	pinctrl-names = "default";
191724ba675SRob Herring	pinctrl-0 = <&uart3_data>;
192724ba675SRob Herring	status = "okay";
193724ba675SRob Herring};
194724ba675SRob Herring
195724ba675SRob Herring&pinctrl0 {
196724ba675SRob Herring	gpio_leds: gpio-leds-pins {
197724ba675SRob Herring		samsung,pins = "gpk-4", "gpk-5", "gpk-6", "gpk-7";
198724ba675SRob Herring		samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
199724ba675SRob Herring	};
200724ba675SRob Herring
201724ba675SRob Herring	gpio_keys: gpio-keys-pins {
202724ba675SRob Herring		samsung,pins = "gpn-0", "gpn-1", "gpn-2", "gpn-3",
203724ba675SRob Herring				"gpn-4", "gpn-5", "gpl-11", "gpl-12";
204724ba675SRob Herring		samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
205724ba675SRob Herring	};
206724ba675SRob Herring};
207724ba675SRob Herring
208724ba675SRob Herring&i2c0 {
209724ba675SRob Herring	pinctrl-names = "default";
210724ba675SRob Herring	pinctrl-0 = <&i2c0_bus>;
211724ba675SRob Herring	status = "okay";
212724ba675SRob Herring
213724ba675SRob Herring	eeprom@50 {
214724ba675SRob Herring		compatible = "atmel,24c08";
215724ba675SRob Herring		reg = <0x50>;
216724ba675SRob Herring		pagesize = <16>;
217724ba675SRob Herring	};
218724ba675SRob Herring};
219