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";
84 phy0: ethernet-phy@5 {
111 #address-cells = <1>;
113 compatible = "jedec,spi-nor";
115 spi-max-frequency = <133000000>;
117 /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */
118 spi-rx-bus-width = <2>; /* 2 SPI Rx lines */
119 spi-tx-bus-width = <1>; /* 1 SPI Tx line */
122 reg = <0x000000 0x010000>;
128 reg = <0x010000 0x0f0000>;
129 label = "failsafe bootloader";
134 reg = <0x100000 0x040000>;
135 label = "failsafe DP firmware";
140 reg = <0x140000 0x0a0000>;
141 label = "failsafe trusted firmware";
146 reg = <0x1e0000 0x020000>;
152 reg = <0x200000 0x010000>;
153 label = "configuration store";
157 reg = <0x210000 0x0f0000>;
158 label = "bootloader";
162 reg = <0x300000 0x040000>;
163 label = "DP firmware";
167 reg = <0x340000 0x0a0000>;
168 label = "trusted firmware";
172 reg = <0x3e0000 0x020000>;
173 label = "bootloader environment";
180 "", "", "", "", "", "", "", "",
181 "", "", "", "", "", "", "", "",
182 "", "", "", "", "", "", "TDO", "TCK",
183 "", "", "", "", "", "", "", "";
188 "", "", "", "", "", "", "TMS", "TDI",
189 "", "", "", "", "", "", "", "",
190 "", "", "", "", "", "", "", "",
191 "", "", "", "", "", "", "", "";
198 compatible = "microcrystal,rv8803";
203 compatible = "kontron,sl28cpld";
205 #address-cells = <1>;
209 compatible = "kontron,sl28cpld-wdt";
211 kontron,assert-wdt-timeout-pin;
215 compatible = "kontron,sl28cpld-fan";
219 sl28cpld_pwm0: pwm@c {
220 compatible = "kontron,sl28cpld-pwm";
225 sl28cpld_pwm1: pwm@e {
226 compatible = "kontron,sl28cpld-pwm";
231 sl28cpld_gpio0: gpio@10 {
232 compatible = "kontron,sl28cpld-gpio";
234 interrupts-extended = <&gpio2 6
235 IRQ_TYPE_EDGE_FALLING>;
240 "GPIO0_CAM0_PWR_N", "GPIO1_CAM1_PWR_N",
241 "GPIO2_CAM0_RST_N", "GPIO3_CAM1_RST_N",
242 "GPIO4_HDA_RST_N", "GPIO5_PWM_OUT",
243 "GPIO6_TACHIN", "GPIO7";
245 interrupt-controller;
246 #interrupt-cells = <2>;
249 sl28cpld_gpio1: gpio@15 {
250 compatible = "kontron,sl28cpld-gpio";
252 interrupts-extended = <&gpio2 6
253 IRQ_TYPE_EDGE_FALLING>;
258 "GPIO8", "GPIO9", "GPIO10", "GPIO11",
261 interrupt-controller;
262 #interrupt-cells = <2>;
265 sl28cpld_gpio2: gpio@1a {
266 compatible = "kontron,sl28cpld-gpo";
272 "LCD0 voltage enable",
273 "LCD0 backlight enable",
274 "eMMC reset", "LVDS bridge reset",
275 "LVDS bridge power-down",
280 sl28cpld_gpio3: gpio@1b {
281 compatible = "kontron,sl28cpld-gpi";
287 "Power button", "Force recovery", "Sleep",
288 "Battery low", "Lid state", "Charging",
289 "Charger present", "";
292 sl28cpld_intc: interrupt-controller@1c {
293 compatible = "kontron,sl28cpld-intc";
295 interrupts-extended = <&gpio2 6
296 IRQ_TYPE_EDGE_FALLING>;
298 interrupt-controller;
299 #interrupt-cells = <2>;
304 compatible = "atmel,24c32";
318 compatible = "atmel,24c32";