Linux Audio

Check our new training course

Loading...
v5.4
  1// SPDX-License-Identifier: GPL-2.0
  2/*
  3 * Samsung's Exynos4412 based SMDK board device tree source
  4 *
  5 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
  6 *		http://www.samsung.com
  7 *
  8 * Device tree source file for Samsung's SMDK4412 board which is based on
  9 * Samsung's Exynos4412 SoC.
 10 */
 
 
 
 
 11
 12/dts-v1/;
 13#include "exynos4412.dtsi"
 14#include "exynos-mfc-reserved-memory.dtsi"
 15
 16/ {
 17	model = "Samsung SMDK evaluation board based on Exynos4412";
 18	compatible = "samsung,smdk4412", "samsung,exynos4412", "samsung,exynos4";
 19
 20	memory@40000000 {
 21		device_type = "memory";
 22		reg = <0x40000000 0x40000000>;
 23	};
 24
 25	chosen {
 26		bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M init=/linuxrc";
 27		stdout-path = "serial1:115200n8";
 28	};
 29
 30	fixed-rate-clocks {
 31		xxti {
 32			compatible = "samsung,clock-xxti";
 33			clock-frequency = <0>;
 34		};
 35
 36		xusbxti {
 37			compatible = "samsung,clock-xusbxti";
 38			clock-frequency = <24000000>;
 39		};
 40	};
 41};
 42
 43&keypad {
 44	samsung,keypad-num-rows = <3>;
 45	samsung,keypad-num-columns = <8>;
 46	linux,keypad-no-autorepeat;
 47	wakeup-source;
 48	pinctrl-0 = <&keypad_rows &keypad_cols>;
 49	pinctrl-names = "default";
 50	status = "okay";
 51
 52	key_1 {
 53		keypad,row = <1>;
 54		keypad,column = <3>;
 55		linux,code = <2>;
 56	};
 57
 58	key_2 {
 59		keypad,row = <1>;
 60		keypad,column = <4>;
 61		linux,code = <3>;
 62	};
 63
 64	key_3 {
 65		keypad,row = <1>;
 66		keypad,column = <5>;
 67		linux,code = <4>;
 68	};
 69
 70	key_4 {
 71		keypad,row = <1>;
 72		keypad,column = <6>;
 73		linux,code = <5>;
 74	};
 75
 76	key_5 {
 77		keypad,row = <1>;
 78		keypad,column = <7>;
 79		linux,code = <6>;
 80	};
 81
 82	key_A {
 83		keypad,row = <2>;
 84		keypad,column = <6>;
 85		linux,code = <30>;
 86	};
 87
 88	key_B {
 89		keypad,row = <2>;
 90		keypad,column = <7>;
 91		linux,code = <48>;
 92	};
 93
 94	key_C {
 95		keypad,row = <0>;
 96		keypad,column = <5>;
 97		linux,code = <46>;
 98	};
 99
100	key_D {
101		keypad,row = <2>;
102		keypad,column = <5>;
103		linux,code = <32>;
104	};
105
106	key_E {
107		keypad,row = <0>;
108		keypad,column = <7>;
109		linux,code = <18>;
110	};
111};
112
 
 
 
 
 
 
113&pinctrl_1 {
114	keypad_rows: keypad-rows {
115		samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2";
116		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
117		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
118		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
119	};
120
121	keypad_cols: keypad-cols {
122		samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
123			       "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
124		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
125		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
126		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
127	};
128};
129
130&sdhci_2 {
131	bus-width = <4>;
132	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sd2_cd>;
133	pinctrl-names = "default";
134	status = "okay";
135};
136
137&serial_0 {
138	status = "okay";
139};
140
141&serial_1 {
142	status = "okay";
143};
144
145&serial_2 {
146	status = "okay";
147};
148
149&serial_3 {
150	status = "okay";
151};
v4.6
 
  1/*
  2 * Samsung's Exynos4412 based SMDK board device tree source
  3 *
  4 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
  5 *		http://www.samsung.com
  6 *
  7 * Device tree source file for Samsung's SMDK4412 board which is based on
  8 * Samsung's Exynos4412 SoC.
  9 *
 10 * This program is free software; you can redistribute it and/or modify
 11 * it under the terms of the GNU General Public License version 2 as
 12 * published by the Free Software Foundation.
 13*/
 14
 15/dts-v1/;
 16#include "exynos4412.dtsi"
 
 17
 18/ {
 19	model = "Samsung SMDK evaluation board based on Exynos4412";
 20	compatible = "samsung,smdk4412", "samsung,exynos4412", "samsung,exynos4";
 21
 22	memory {
 
 23		reg = <0x40000000 0x40000000>;
 24	};
 25
 26	chosen {
 27		bootargs ="root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc";
 28		stdout-path = &serial_1;
 29	};
 30
 31	fixed-rate-clocks {
 32		xxti {
 33			compatible = "samsung,clock-xxti";
 34			clock-frequency = <0>;
 35		};
 36
 37		xusbxti {
 38			compatible = "samsung,clock-xusbxti";
 39			clock-frequency = <24000000>;
 40		};
 41	};
 42};
 43
 44&keypad {
 45	samsung,keypad-num-rows = <3>;
 46	samsung,keypad-num-columns = <8>;
 47	linux,keypad-no-autorepeat;
 48	wakeup-source;
 49	pinctrl-0 = <&keypad_rows &keypad_cols>;
 50	pinctrl-names = "default";
 51	status = "okay";
 52
 53	key_1 {
 54		keypad,row = <1>;
 55		keypad,column = <3>;
 56		linux,code = <2>;
 57	};
 58
 59	key_2 {
 60		keypad,row = <1>;
 61		keypad,column = <4>;
 62		linux,code = <3>;
 63	};
 64
 65	key_3 {
 66		keypad,row = <1>;
 67		keypad,column = <5>;
 68		linux,code = <4>;
 69	};
 70
 71	key_4 {
 72		keypad,row = <1>;
 73		keypad,column = <6>;
 74		linux,code = <5>;
 75	};
 76
 77	key_5 {
 78		keypad,row = <1>;
 79		keypad,column = <7>;
 80		linux,code = <6>;
 81	};
 82
 83	key_A {
 84		keypad,row = <2>;
 85		keypad,column = <6>;
 86		linux,code = <30>;
 87	};
 88
 89	key_B {
 90		keypad,row = <2>;
 91		keypad,column = <7>;
 92		linux,code = <48>;
 93	};
 94
 95	key_C {
 96		keypad,row = <0>;
 97		keypad,column = <5>;
 98		linux,code = <46>;
 99	};
100
101	key_D {
102		keypad,row = <2>;
103		keypad,column = <5>;
104		linux,code = <32>;
105	};
106
107	key_E {
108		keypad,row = <0>;
109		keypad,column = <7>;
110		linux,code = <18>;
111	};
112};
113
114&mfc {
115	samsung,mfc-r = <0x43000000 0x800000>;
116	samsung,mfc-l = <0x51000000 0x800000>;
117	status = "okay";
118};
119
120&pinctrl_1 {
121	keypad_rows: keypad-rows {
122		samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2";
123		samsung,pin-function = <3>;
124		samsung,pin-pud = <3>;
125		samsung,pin-drv = <0>;
126	};
127
128	keypad_cols: keypad-cols {
129		samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
130			       "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
131		samsung,pin-function = <3>;
132		samsung,pin-pud = <0>;
133		samsung,pin-drv = <0>;
134	};
135};
136
137&sdhci_2 {
138	bus-width = <4>;
139	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sd2_cd>;
140	pinctrl-names = "default";
141	status = "okay";
142};
143
144&serial_0 {
145	status = "okay";
146};
147
148&serial_1 {
149	status = "okay";
150};
151
152&serial_2 {
153	status = "okay";
154};
155
156&serial_3 {
157	status = "okay";
158};