0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 /*
0003 * Device Tree file for the Chameleon96
0004 *
0005 * Copyright (c) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
0006 */
0007
0008 #include <dt-bindings/gpio/gpio.h>
0009
0010 #include "socfpga_cyclone5.dtsi"
0011
0012 / {
0013 model = "Novetech Chameleon96";
0014 compatible = "novtech,chameleon96", "altr,socfpga-cyclone5", "altr,socfpga";
0015
0016 chosen {
0017 bootargs = "earlyprintk";
0018 stdout-path = "serial0:115200n8";
0019 };
0020
0021 memory@0 {
0022 name = "memory";
0023 device_type = "memory";
0024 reg = <0x0 0x20000000>; /* 512MB */
0025 };
0026
0027 regulator_3_3v: regulator {
0028 compatible = "regulator-fixed";
0029 regulator-name = "3.3V";
0030 regulator-min-microvolt = <3300000>;
0031 regulator-max-microvolt = <3300000>;
0032 };
0033
0034 leds {
0035 compatible = "gpio-leds";
0036
0037 user_led1 {
0038 label = "green:user1";
0039 gpios = <&porta 14 GPIO_ACTIVE_LOW>;
0040 linux,default-trigger = "heartbeat";
0041 };
0042
0043 user_led2 {
0044 label = "green:user2";
0045 gpios = <&porta 22 GPIO_ACTIVE_LOW>;
0046 linux,default-trigger = "mmc0";
0047 };
0048
0049 user_led3 {
0050 label = "green:user3";
0051 gpios = <&porta 25 GPIO_ACTIVE_LOW>;
0052 linux,default-trigger = "none";
0053 };
0054
0055 user_led4 {
0056 label = "green:user4";
0057 gpios = <&portb 3 GPIO_ACTIVE_LOW>;
0058 panic-indicator;
0059 linux,default-trigger = "none";
0060 };
0061 };
0062 };
0063
0064 &gpio0 {
0065 status = "okay";
0066 };
0067
0068 &gpio1 {
0069 status = "okay";
0070 };
0071
0072 &i2c0 {
0073 /* On Low speed expansion */
0074 label = "LS-I2C0";
0075 status = "okay";
0076 };
0077
0078 &i2c1 {
0079 /* On Low speed expansion */
0080 label = "LS-I2C1";
0081 status = "okay";
0082 };
0083
0084 &i2c2 {
0085 status = "okay";
0086 };
0087
0088 &i2c3 {
0089 /* On High speed expansion */
0090 label = "HS-I2C2";
0091 status = "okay";
0092 };
0093
0094 &mmc0 {
0095 vmmc-supply = <®ulator_3_3v>;
0096 vqmmc-supply = <®ulator_3_3v>;
0097 status = "okay";
0098 };
0099
0100 &spi0 {
0101 /* On High speed expansion */
0102 label = "HS-SPI1";
0103 status = "okay";
0104 };
0105
0106 &spi1 {
0107 /* On Low speed expansion */
0108 label = "LS-SPI0";
0109 status = "okay";
0110 };
0111
0112 &uart0 {
0113 /* On Low speed expansion */
0114 label = "LS-UART1";
0115 status = "okay";
0116 };
0117
0118 &uart1 {
0119 /* On Low speed expansion */
0120 label = "LS-UART0";
0121 status = "okay";
0122 };
0123
0124 &usbphy0 {
0125 status = "okay";
0126 };
0127
0128 &usb1 {
0129 status = "okay";
0130 };