1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree file for the Chameleon96
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (c) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot#include "socfpga_cyclone5.dtsi"
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot/ {
13*f126890aSEmmanuel Vadot	model = "Novetech Chameleon96";
14*f126890aSEmmanuel Vadot	compatible = "novtech,chameleon96", "altr,socfpga-cyclone5", "altr,socfpga";
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	chosen {
17*f126890aSEmmanuel Vadot		bootargs = "earlyprintk";
18*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	memory@0 {
22*f126890aSEmmanuel Vadot		name = "memory";
23*f126890aSEmmanuel Vadot		device_type = "memory";
24*f126890aSEmmanuel Vadot		reg = <0x0 0x20000000>; /* 512MB */
25*f126890aSEmmanuel Vadot	};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot	regulator_3_3v: regulator {
28*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
29*f126890aSEmmanuel Vadot		regulator-name = "3.3V";
30*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
31*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot	leds {
35*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot		user_led1 {
38*f126890aSEmmanuel Vadot			label = "green:user1";
39*f126890aSEmmanuel Vadot			gpios = <&porta 14 GPIO_ACTIVE_LOW>;
40*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
41*f126890aSEmmanuel Vadot		};
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot		user_led2 {
44*f126890aSEmmanuel Vadot			label = "green:user2";
45*f126890aSEmmanuel Vadot			gpios = <&porta 22 GPIO_ACTIVE_LOW>;
46*f126890aSEmmanuel Vadot			linux,default-trigger = "mmc0";
47*f126890aSEmmanuel Vadot		};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot		user_led3 {
50*f126890aSEmmanuel Vadot			label = "green:user3";
51*f126890aSEmmanuel Vadot			gpios = <&porta 25 GPIO_ACTIVE_LOW>;
52*f126890aSEmmanuel Vadot			linux,default-trigger = "none";
53*f126890aSEmmanuel Vadot		};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot		user_led4 {
56*f126890aSEmmanuel Vadot			label = "green:user4";
57*f126890aSEmmanuel Vadot			gpios = <&portb 3 GPIO_ACTIVE_LOW>;
58*f126890aSEmmanuel Vadot			panic-indicator;
59*f126890aSEmmanuel Vadot			linux,default-trigger = "none";
60*f126890aSEmmanuel Vadot		};
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot&gpio0 {
65*f126890aSEmmanuel Vadot	status = "okay";
66*f126890aSEmmanuel Vadot};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot&gpio1 {
69*f126890aSEmmanuel Vadot	status = "okay";
70*f126890aSEmmanuel Vadot};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot&i2c0 {
73*f126890aSEmmanuel Vadot	/* On Low speed expansion */
74*f126890aSEmmanuel Vadot	label = "LS-I2C0";
75*f126890aSEmmanuel Vadot	status = "okay";
76*f126890aSEmmanuel Vadot};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot&i2c1 {
79*f126890aSEmmanuel Vadot	/* On Low speed expansion */
80*f126890aSEmmanuel Vadot	label = "LS-I2C1";
81*f126890aSEmmanuel Vadot	status = "okay";
82*f126890aSEmmanuel Vadot};
83*f126890aSEmmanuel Vadot
84*f126890aSEmmanuel Vadot&i2c2 {
85*f126890aSEmmanuel Vadot	status = "okay";
86*f126890aSEmmanuel Vadot};
87*f126890aSEmmanuel Vadot
88*f126890aSEmmanuel Vadot&i2c3 {
89*f126890aSEmmanuel Vadot	/* On High speed expansion */
90*f126890aSEmmanuel Vadot	label = "HS-I2C2";
91*f126890aSEmmanuel Vadot	status = "okay";
92*f126890aSEmmanuel Vadot};
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot&mmc0 {
95*f126890aSEmmanuel Vadot	vmmc-supply = <&regulator_3_3v>;
96*f126890aSEmmanuel Vadot	vqmmc-supply = <&regulator_3_3v>;
97*f126890aSEmmanuel Vadot	status = "okay";
98*f126890aSEmmanuel Vadot};
99*f126890aSEmmanuel Vadot
100*f126890aSEmmanuel Vadot&spi0 {
101*f126890aSEmmanuel Vadot	/* On High speed expansion */
102*f126890aSEmmanuel Vadot	label = "HS-SPI1";
103*f126890aSEmmanuel Vadot	status = "okay";
104*f126890aSEmmanuel Vadot};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot&spi1 {
107*f126890aSEmmanuel Vadot	/* On Low speed expansion */
108*f126890aSEmmanuel Vadot	label = "LS-SPI0";
109*f126890aSEmmanuel Vadot	status = "okay";
110*f126890aSEmmanuel Vadot};
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot&uart0 {
113*f126890aSEmmanuel Vadot	/* On Low speed expansion */
114*f126890aSEmmanuel Vadot	label = "LS-UART1";
115*f126890aSEmmanuel Vadot	status = "okay";
116*f126890aSEmmanuel Vadot};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot&uart1 {
119*f126890aSEmmanuel Vadot	/* On Low speed expansion */
120*f126890aSEmmanuel Vadot	label = "LS-UART0";
121*f126890aSEmmanuel Vadot	status = "okay";
122*f126890aSEmmanuel Vadot};
123*f126890aSEmmanuel Vadot
124*f126890aSEmmanuel Vadot&usbphy0 {
125*f126890aSEmmanuel Vadot	status = "okay";
126*f126890aSEmmanuel Vadot};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot&usb1 {
129*f126890aSEmmanuel Vadot	status = "okay";
130*f126890aSEmmanuel Vadot};
131