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";
31 compatible = "gpio-keys";
34 interrupts-extended = <&sl28cpld_intc
35 4 IRQ_TYPE_EDGE_BOTH>;
36 linux,code = <KEY_POWER>;
41 interrupts-extended = <&sl28cpld_intc
42 5 IRQ_TYPE_EDGE_BOTH>;
43 linux,code = <KEY_SLEEP>;
49 compatible = "gpio-keys-polled";
50 poll-interval = <200>;
53 linux,input-type = <EV_SW>;
54 linux,code = <SW_LID>;
55 gpios = <&sl28cpld_gpio3 4 GPIO_ACTIVE_LOW>;
61 stdout-path = "serial0:115200n8";
83 phy-connection-type = "sgmii";
84 managed = "in-band-status";
91 phy0: ethernet-phy@5 {
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <133000000>;
122 /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */
123 spi-rx-bus-width = <2>; /* 2 SPI Rx lines */
124 spi-tx-bus-width = <1>; /* 1 SPI Tx line */
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
132 reg = <0x000000 0x010000>;
138 reg = <0x010000 0x0f0000>;
139 label = "failsafe bootloader";
144 reg = <0x100000 0x040000>;
145 label = "failsafe DP firmware";
150 reg = <0x140000 0x0a0000>;
151 label = "failsafe trusted firmware";
156 reg = <0x1e0000 0x020000>;
162 reg = <0x200000 0x010000>;
163 label = "configuration store";
167 reg = <0x210000 0x1d0000>;
168 label = "bootloader";
172 reg = <0x3e0000 0x020000>;
173 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";