0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2015, 2016 Imagination Technologies Ltd.
0004 *
0005 * IMG Marduk board is also known as Creator Ci40.
0006 */
0007
0008 /dts-v1/;
0009
0010 #include "pistachio.dtsi"
0011
0012 / {
0013 model = "IMG Marduk (Creator Ci40)";
0014 compatible = "img,pistachio-marduk", "img,pistachio";
0015
0016 aliases {
0017 serial0 = &uart0;
0018 serial1 = &uart1;
0019 ethernet0 = &enet;
0020 spi0 = &spfi0;
0021 spi1 = &spfi1;
0022 };
0023
0024 chosen {
0025 bootargs = "root=/dev/sda1 rootwait ro lpj=723968";
0026 stdout-path = "serial1:115200";
0027 };
0028
0029 memory {
0030 device_type = "memory";
0031 reg = <0x00000000 0x10000000>;
0032 };
0033
0034 reg_1v8: fixed-regulator {
0035 compatible = "regulator-fixed";
0036 regulator-name = "aux_adc_vref";
0037 regulator-min-microvolt = <1800000>;
0038 regulator-max-microvolt = <1800000>;
0039 regulator-boot-on;
0040 };
0041
0042 internal_dac_supply: internal-dac-supply {
0043 compatible = "regulator-fixed";
0044 regulator-name = "internal_dac_supply";
0045 regulator-min-microvolt = <1800000>;
0046 regulator-max-microvolt = <1800000>;
0047 };
0048
0049 led-controller {
0050 compatible = "pwm-leds";
0051
0052 led-1 {
0053 label = "marduk:red:heartbeat";
0054 pwms = <&pwm 3 300000>;
0055 max-brightness = <255>;
0056 linux,default-trigger = "heartbeat";
0057 };
0058 };
0059
0060 keys {
0061 compatible = "gpio-keys";
0062 button-1 {
0063 label = "Button 1";
0064 linux,code = <0x101>; /* BTN_1 */
0065 gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
0066 };
0067 button-2 {
0068 label = "Button 2";
0069 linux,code = <0x102>; /* BTN_2 */
0070 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
0071 };
0072 };
0073 };
0074
0075 &internal_dac {
0076 VDD-supply = <&internal_dac_supply>;
0077 };
0078
0079 &spfi1 {
0080 status = "okay";
0081
0082 pinctrl-0 = <&spim1_pins>, <&spim1_quad_pins>, <&spim1_cs0_pin>,
0083 <&spim1_cs1_pin>;
0084 pinctrl-names = "default";
0085 cs-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>, <&gpio0 1 GPIO_ACTIVE_HIGH>;
0086
0087 flash@0 {
0088 compatible = "spansion,s25fl016k", "jedec,spi-nor";
0089 reg = <0>;
0090 spi-max-frequency = <50000000>;
0091 };
0092 };
0093
0094 &uart0 {
0095 status = "okay";
0096 assigned-clock-rates = <114278400>, <1843200>;
0097 };
0098
0099 &uart1 {
0100 status = "okay";
0101 };
0102
0103 &usb {
0104 status = "okay";
0105 };
0106
0107 &enet {
0108 status = "okay";
0109 };
0110
0111 &pin_enet {
0112 drive-strength = <2>;
0113 };
0114
0115 &pin_enet_phy_clk {
0116 drive-strength = <2>;
0117 };
0118
0119 &sdhost {
0120 status = "okay";
0121 bus-width = <4>;
0122 disable-wp;
0123 };
0124
0125 &pin_sdhost_cmd {
0126 drive-strength = <2>;
0127 };
0128
0129 &pin_sdhost_data {
0130 drive-strength = <2>;
0131 };
0132
0133 &pwm {
0134 status = "okay";
0135
0136 pinctrl-0 = <&pwmpdm0_pin>, <&pwmpdm1_pin>, <&pwmpdm2_pin>,
0137 <&pwmpdm3_pin>;
0138 pinctrl-names = "default";
0139 };
0140
0141 &adc {
0142 status = "okay";
0143 vref-supply = <®_1v8>;
0144 adc-reserved-channels = <0x10>;
0145 };
0146
0147 &i2c2 {
0148 status = "okay";
0149 clock-frequency = <400000>;
0150
0151 tpm@20 {
0152 compatible = "infineon,slb9645tt";
0153 reg = <0x20>;
0154 };
0155
0156 };
0157
0158 &i2c3 {
0159 status = "okay";
0160 clock-frequency = <400000>;
0161 };