1 From a189771546b304250cf18b26748edfefb857adbf Mon Sep 17 00:00:00 2001
2 From: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
3 Date: Fri, 14 Oct 2016 11:25:55 +0530
4 Subject: MIPS: DTS: img: add device tree for Marduk board
6 Add support for Imagination Technologies' Marduk board which is based
7 on Pistachio SoC. It is also known as Creator Ci40. Marduk is legacy
8 name and will be there for decades.
10 Documentation for this board can be found on
11 https://docs.creatordev.io/ci40/
13 This patch adds initial support for board with following peripherals:
15 * PWM based heartbeat LED
17 * SPI NOR flash on SPI1
26 (apply from https://patchwork.linux-mips.org/project/linux-mips/list/?submitter=7165)
28 Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
29 Acked-by: Rob Herring <robh@kernel.org>
30 Acked-by: James Hartley <james.hartley@imgtec.com>
32 .../bindings/mips/img/pistachio-marduk.txt | 10 ++
33 arch/mips/boot/dts/img/Makefile | 9 ++
34 arch/mips/boot/dts/img/pistachio_marduk.dts | 163 +++++++++++++++++++++
35 3 files changed, 182 insertions(+)
36 create mode 100644 Documentation/devicetree/bindings/mips/img/pistachio-marduk.txt
37 create mode 100644 arch/mips/boot/dts/img/Makefile
38 create mode 100644 arch/mips/boot/dts/img/pistachio_marduk.dts
41 +++ b/Documentation/devicetree/bindings/mips/img/pistachio-marduk.txt
43 +Imagination Technologies' Pistachio SoC based Marduk Board
44 +==========================================================
46 +Compatible string must be "img,pistachio-marduk", "img,pistachio"
48 +Hardware and other related documentation is available at
49 +https://docs.creatordev.io/ci40/
51 +It is also known as Creator Ci40. Marduk is legacy name and will
52 +be there for decades.
54 +++ b/arch/mips/boot/dts/img/Makefile
56 +dtb-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb
58 +obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
60 +# Force kbuild to make empty built-in.o if necessary
64 +clean-files := *.dtb *.dtb.S
66 +++ b/arch/mips/boot/dts/img/pistachio_marduk.dts
69 + * Copyright (C) 2015, 2016 Imagination Technologies Ltd.
71 + * This program is free software; you can redistribute it and/or modify
72 + * it under the terms of the GNU General Public License version 2 as
73 + * published by the Free Software Foundation.
75 + * IMG Marduk board is also known as Creator Ci40.
80 +#include "pistachio.dtsi"
83 + model = "IMG Marduk (Creator Ci40)";
84 + compatible = "img,pistachio-marduk", "img,pistachio";
95 + bootargs = "root=/dev/sda1 rootwait ro lpj=723968";
96 + stdout-path = "serial1:115200";
100 + device_type = "memory";
101 + reg = <0x00000000 0x10000000>;
104 + reg_1v8: fixed-regulator {
105 + compatible = "regulator-fixed";
106 + regulator-name = "aux_adc_vref";
107 + regulator-min-microvolt = <1800000>;
108 + regulator-max-microvolt = <1800000>;
112 + internal_dac_supply: internal-dac-supply {
113 + compatible = "regulator-fixed";
114 + regulator-name = "internal_dac_supply";
115 + regulator-min-microvolt = <1800000>;
116 + regulator-max-microvolt = <1800000>;
120 + compatible = "pwm-leds";
122 + label = "marduk:red:heartbeat";
123 + pwms = <&pwm 3 300000>;
124 + max-brightness = <255>;
125 + linux,default-trigger = "heartbeat";
130 + compatible = "gpio-keys";
132 + label = "Button 1";
133 + linux,code = <0x101>; /* BTN_1 */
134 + gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
137 + label = "Button 2";
138 + linux,code = <0x102>; /* BTN_2 */
139 + gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
145 + VDD-supply = <&internal_dac_supply>;
151 + pinctrl-0 = <&spim1_pins>, <&spim1_quad_pins>, <&spim1_cs0_pin>,
153 + pinctrl-names = "default";
154 + cs-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>, <&gpio0 1 GPIO_ACTIVE_HIGH>;
157 + compatible = "spansion,s25fl016k", "jedec,spi-nor";
159 + spi-max-frequency = <50000000>;
165 + assigned-clock-rates = <114278400>, <1843200>;
181 + drive-strength = <2>;
185 + drive-strength = <2>;
195 + drive-strength = <2>;
199 + drive-strength = <2>;
205 + pinctrl-0 = <&pwmpdm0_pin>, <&pwmpdm1_pin>, <&pwmpdm2_pin>,
207 + pinctrl-names = "default";
212 + vref-supply = <®_1v8>;
213 + adc-reserved-channels = <0x10>;
218 + clock-frequency = <400000>;
221 + compatible = "infineon,slb9645tt";
229 + clock-frequency = <400000>;