1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * DTS file for CSR SiRFatlas7 Evaluation Board
4 *
5 * Copyright (c) 2014 Cambridge Silicon Radio Limited, a CSR plc group company.
6 */
7
8/dts-v1/;
9
10/include/ "atlas7.dtsi"
11
12#include <dt-bindings/input/input.h>
13#include <dt-bindings/gpio/gpio.h>
14
15/ {
16	model = "CSR SiRFatlas7 Evaluation Board";
17	compatible = "sirf,atlas7-cb", "sirf,atlas7";
18
19	chosen {
20		bootargs = "console=ttySiRF1,115200 earlyprintk";
21	};
22
23	memory {
24		device_type = "memory";
25		reg = <0x40000000 0x20000000>;
26	};
27
28	reserved-memory {
29		#address-cells = <1>;
30		#size-cells = <1>;
31		ranges;
32
33		vpp_reserved: vpp_mem@5e800000 {
34			compatible = "sirf,reserved-memory";
35			reg = <0x5e800000 0x800000>;
36		};
37
38		nanddisk_reserved: nanddisk@46000000 {
39			reg = <0x46000000 0x200000>;
40			no-map;
41		};
42	};
43
44
45	noc {
46		mediam {
47			nand@17050000 {
48				memory-region = <&nanddisk_reserved>;
49			};
50		};
51
52		gnssm {
53			spi1: spi@18200000 {
54				status = "okay";
55				spiflash: macronix@0{
56					status = "okay";
57					compatible = "macronix,mx25l6405d";
58					reg = <0>;
59					spi-max-frequency = <37500000>;
60					spi-cpha;
61					spi-cpol;
62					#address-cells = <1>;
63					#size-cells = <1>;
64					partitions@0 {
65						label = "myspiboot";
66						reg = <0x0 0x800000>;
67					};
68				};
69			};
70		};
71
72		btm {
73			uart6: uart@11000000 {
74				status = "okay";
75				uart-has-rtscts;
76			};
77		};
78
79		disp-iobg {
80			vpp@13110000 {
81				memory-region = <&vpp_reserved>;
82			};
83		};
84
85		display0: display@0 {
86			compatible = "lvds-panel";
87			source = "lvds.0";
88
89			bl-gpios = <&gpio_1 63 0>;
90			data-lines  = <24>;
91
92			display-timings {
93				native-mode = <&timing0>;
94				timing0: timing0 {
95					clock-frequency = <60000000>;
96					hactive = <1024>;
97					vactive = <600>;
98					hfront-porch = <220>;
99					hback-porch = <100>;
100					hsync-len = <1>;
101					vback-porch = <10>;
102					vfront-porch = <25>;
103					vsync-len = <1>;
104					hsync-active = <0>;
105					vsync-active = <0>;
106					de-active = <1>;
107					pixelclk-active = <1>;
108				};
109			};
110		};
111
112		gpio_keys {
113			compatible = "gpio-keys";
114			status = "okay";
115			#address-cells = <1>;
116			#size-cells = <0>;
117
118			rearview_key {
119				label = "rearview key";
120				linux,code = <KEY_CAMERA>;
121				gpios = <&gpio_1 3 GPIO_ACTIVE_LOW>;
122				debounce_interval = <100>;
123			};
124		};
125
126	};
127};
128