1 // SPDX-License-Identifier: GPL-2.0+
3 * Device Tree file for the Kontron SMARC-sAL28 board.
5 * Copyright (C) 2019 Michael Walle <michael@walle.cc>
10 #include "fsl-ls1028a.dtsi"
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
16 model = "Kontron SMARC-sAL28";
17 compatible = "kontron,sl28", "fsl,ls1028a";
29 compatible = "gpio-keys";
32 interrupts-extended = <&sl28cpld_intc
33 4 IRQ_TYPE_EDGE_BOTH>;
34 linux,code = <KEY_POWER>;
39 interrupts-extended = <&sl28cpld_intc
40 5 IRQ_TYPE_EDGE_BOTH>;
41 linux,code = <KEY_SLEEP>;
47 compatible = "gpio-keys-polled";
48 poll-interval = <200>;
51 linux,input-type = <EV_SW>;
52 linux,code = <SW_LID>;
53 gpios = <&sl28cpld_gpio3 4 GPIO_ACTIVE_LOW>;
59 stdout-path = "serial0:115200n8";
77 phy-connection-type = "sgmii";
78 managed = "in-band-status";
85 phy0: ethernet-phy@5 {
112 #address-cells = <1>;
114 compatible = "jedec,spi-nor";
116 spi-max-frequency = <133000000>;
118 /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */
119 spi-rx-bus-width = <2>; /* 2 SPI Rx lines */
120 spi-tx-bus-width = <1>; /* 1 SPI Tx line */
123 reg = <0x000000 0x010000>;
129 reg = <0x010000 0x0f0000>;
130 label = "failsafe bootloader";
135 reg = <0x100000 0x040000>;
136 label = "failsafe DP firmware";
141 reg = <0x140000 0x0a0000>;
142 label = "failsafe trusted firmware";
147 reg = <0x1e0000 0x020000>;
153 reg = <0x200000 0x010000>;
154 label = "configuration store";
158 reg = <0x210000 0x0f0000>;
159 label = "bootloader";
163 reg = <0x300000 0x040000>;
164 label = "DP firmware";
168 reg = <0x340000 0x0a0000>;
169 label = "trusted firmware";
173 reg = <0x3e0000 0x020000>;
174 label = "bootloader environment";
181 "", "", "", "", "", "", "", "",
182 "", "", "", "", "", "", "", "",
183 "", "", "", "", "", "", "TDO", "TCK",
184 "", "", "", "", "", "", "", "";
189 "", "", "", "", "", "", "TMS", "TDI",
190 "", "", "", "", "", "", "", "",
191 "", "", "", "", "", "", "", "",
192 "", "", "", "", "", "", "", "";
199 compatible = "microcrystal,rv8803";
204 compatible = "kontron,sl28cpld";
206 #address-cells = <1>;
210 compatible = "kontron,sl28cpld-wdt";
212 kontron,assert-wdt-timeout-pin;
216 compatible = "kontron,sl28cpld-fan";
220 sl28cpld_pwm0: pwm@c {
221 compatible = "kontron,sl28cpld-pwm";
226 sl28cpld_pwm1: pwm@e {
227 compatible = "kontron,sl28cpld-pwm";
232 sl28cpld_gpio0: gpio@10 {
233 compatible = "kontron,sl28cpld-gpio";
235 interrupts-extended = <&gpio2 6
236 IRQ_TYPE_EDGE_FALLING>;
241 "GPIO0_CAM0_PWR_N", "GPIO1_CAM1_PWR_N",
242 "GPIO2_CAM0_RST_N", "GPIO3_CAM1_RST_N",
243 "GPIO4_HDA_RST_N", "GPIO5_PWM_OUT",
244 "GPIO6_TACHIN", "GPIO7";
246 interrupt-controller;
247 #interrupt-cells = <2>;
250 sl28cpld_gpio1: gpio@15 {
251 compatible = "kontron,sl28cpld-gpio";
253 interrupts-extended = <&gpio2 6
254 IRQ_TYPE_EDGE_FALLING>;
259 "GPIO8", "GPIO9", "GPIO10", "GPIO11",
262 interrupt-controller;
263 #interrupt-cells = <2>;
266 sl28cpld_gpio2: gpio@1a {
267 compatible = "kontron,sl28cpld-gpo";
273 "LCD0 voltage enable",
274 "LCD0 backlight enable",
275 "eMMC reset", "LVDS bridge reset",
276 "LVDS bridge power-down",
281 sl28cpld_gpio3: gpio@1b {
282 compatible = "kontron,sl28cpld-gpi";
288 "Power button", "Force recovery", "Sleep",
289 "Battery low", "Lid state", "Charging",
290 "Charger present", "";
293 sl28cpld_intc: interrupt-controller@1c {
294 compatible = "kontron,sl28cpld-intc";
296 interrupts-extended = <&gpio2 6
297 IRQ_TYPE_EDGE_FALLING>;
299 interrupt-controller;
300 #interrupt-cells = <2>;
305 compatible = "atmel,24c32";
319 compatible = "atmel,24c32";