WIP FPC-III support
[linux/fpc-iii.git] / arch / mips / boot / dts / img / pistachio_marduk.dts
bloba8708783f04bce60d8127eac9ca54511c3b3e098
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (C) 2015, 2016 Imagination Technologies Ltd.
4  *
5  * IMG Marduk board is also known as Creator Ci40.
6  */
8 /dts-v1/;
10 #include "pistachio.dtsi"
12 / {
13         model = "IMG Marduk (Creator Ci40)";
14         compatible = "img,pistachio-marduk", "img,pistachio";
16         aliases {
17                 serial0 = &uart0;
18                 serial1 = &uart1;
19                 ethernet0 = &enet;
20                 spi0 = &spfi0;
21                 spi1 = &spfi1;
22         };
24         chosen {
25                 bootargs = "root=/dev/sda1 rootwait ro lpj=723968";
26                 stdout-path = "serial1:115200";
27         };
29         memory {
30                 device_type = "memory";
31                 reg =  <0x00000000 0x10000000>;
32         };
34         reg_1v8: fixed-regulator {
35                 compatible = "regulator-fixed";
36                 regulator-name = "aux_adc_vref";
37                 regulator-min-microvolt = <1800000>;
38                 regulator-max-microvolt = <1800000>;
39                 regulator-boot-on;
40         };
42         internal_dac_supply: internal-dac-supply {
43                 compatible = "regulator-fixed";
44                 regulator-name = "internal_dac_supply";
45                 regulator-min-microvolt = <1800000>;
46                 regulator-max-microvolt = <1800000>;
47         };
49         led-controller {
50                 compatible = "pwm-leds";
52                 led-1 {
53                         label = "marduk:red:heartbeat";
54                         pwms = <&pwm 3 300000>;
55                         max-brightness = <255>;
56                         linux,default-trigger = "heartbeat";
57                 };
58         };
60         keys {
61                 compatible = "gpio-keys";
62                 button@1 {
63                         label = "Button 1";
64                         linux,code = <0x101>; /* BTN_1 */
65                         gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
66                 };
67                 button@2 {
68                         label = "Button 2";
69                         linux,code = <0x102>; /* BTN_2 */
70                         gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
71                 };
72         };
75 &internal_dac {
76         VDD-supply = <&internal_dac_supply>;
79 &spfi1 {
80         status = "okay";
82         pinctrl-0 = <&spim1_pins>, <&spim1_quad_pins>, <&spim1_cs0_pin>,
83                     <&spim1_cs1_pin>;
84         pinctrl-names = "default";
85         cs-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>, <&gpio0 1 GPIO_ACTIVE_HIGH>;
87         flash@0 {
88                 compatible = "spansion,s25fl016k", "jedec,spi-nor";
89                 reg = <0>;
90                 spi-max-frequency = <50000000>;
91         };
94 &uart0 {
95         status = "okay";
96         assigned-clock-rates = <114278400>, <1843200>;
99 &uart1 {
100         status = "okay";
103 &usb {
104         status = "okay";
107 &enet {
108         status = "okay";
111 &pin_enet {
112         drive-strength = <2>;
115 &pin_enet_phy_clk {
116         drive-strength = <2>;
119 &sdhost {
120         status = "okay";
121         bus-width = <4>;
122         disable-wp;
125 &pin_sdhost_cmd {
126         drive-strength = <2>;
129 &pin_sdhost_data {
130         drive-strength = <2>;
133 &pwm {
134         status = "okay";
136         pinctrl-0 = <&pwmpdm0_pin>, <&pwmpdm1_pin>, <&pwmpdm2_pin>,
137                     <&pwmpdm3_pin>;
138         pinctrl-names = "default";
141 &adc {
142         status = "okay";
143         vref-supply = <&reg_1v8>;
144         adc-reserved-channels = <0x10>;
147 &i2c2 {
148         status = "okay";
149         clock-frequency = <400000>;
151         tpm@20 {
152                 compatible = "infineon,slb9645tt";
153                 reg = <0x20>;
154         };
158 &i2c3 {
159         status = "okay";
160         clock-frequency = <400000>;