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 #address-cells = <1>;
120 compatible = "jedec,spi-nor";
122 spi-max-frequency = <133000000>;
124 /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */
125 spi-rx-bus-width = <2>; /* 2 SPI Rx lines */
126 spi-tx-bus-width = <1>; /* 1 SPI Tx line */
129 reg = <0x000000 0x010000>;
135 reg = <0x010000 0x0f0000>;
136 label = "failsafe bootloader";
141 reg = <0x100000 0x040000>;
142 label = "failsafe DP firmware";
147 reg = <0x140000 0x0a0000>;
148 label = "failsafe trusted firmware";
153 reg = <0x1e0000 0x020000>;
159 reg = <0x200000 0x010000>;
160 label = "configuration store";
164 reg = <0x210000 0x1d0000>;
165 label = "bootloader";
169 reg = <0x3e0000 0x020000>;
170 label = "bootloader environment";
177 "", "", "", "", "", "", "", "",
178 "", "", "", "", "", "", "", "",
179 "", "", "", "", "", "", "TDO", "TCK",
180 "", "", "", "", "", "", "", "";
185 "", "", "", "", "", "", "TMS", "TDI",
186 "", "", "", "", "", "", "", "",
187 "", "", "", "", "", "", "", "",
188 "", "", "", "", "", "", "", "";
195 compatible = "microcrystal,rv8803";
200 compatible = "kontron,sl28cpld";
202 #address-cells = <1>;
206 compatible = "kontron,sl28cpld-wdt";
208 kontron,assert-wdt-timeout-pin;
212 compatible = "kontron,sl28cpld-fan";
216 sl28cpld_pwm0: pwm@c {
217 compatible = "kontron,sl28cpld-pwm";
222 sl28cpld_pwm1: pwm@e {
223 compatible = "kontron,sl28cpld-pwm";
228 sl28cpld_gpio0: gpio@10 {
229 compatible = "kontron,sl28cpld-gpio";
231 interrupts-extended = <&gpio2 6
232 IRQ_TYPE_EDGE_FALLING>;
237 "GPIO0_CAM0_PWR_N", "GPIO1_CAM1_PWR_N",
238 "GPIO2_CAM0_RST_N", "GPIO3_CAM1_RST_N",
239 "GPIO4_HDA_RST_N", "GPIO5_PWM_OUT",
240 "GPIO6_TACHIN", "GPIO7";
242 interrupt-controller;
243 #interrupt-cells = <2>;
246 sl28cpld_gpio1: gpio@15 {
247 compatible = "kontron,sl28cpld-gpio";
249 interrupts-extended = <&gpio2 6
250 IRQ_TYPE_EDGE_FALLING>;
255 "GPIO8", "GPIO9", "GPIO10", "GPIO11",
258 interrupt-controller;
259 #interrupt-cells = <2>;
262 sl28cpld_gpio2: gpio@1a {
263 compatible = "kontron,sl28cpld-gpo";
269 "LCD0 voltage enable",
270 "LCD0 backlight enable",
271 "eMMC reset", "LVDS bridge reset",
272 "LVDS bridge power-down",
277 sl28cpld_gpio3: gpio@1b {
278 compatible = "kontron,sl28cpld-gpi";
284 "Power button", "Force recovery", "Sleep",
285 "Battery low", "Lid state", "Charging",
286 "Charger present", "";
289 sl28cpld_intc: interrupt-controller@1c {
290 compatible = "kontron,sl28cpld-intc";
292 interrupts-extended = <&gpio2 6
293 IRQ_TYPE_EDGE_FALLING>;
295 interrupt-controller;
296 #interrupt-cells = <2>;
301 compatible = "atmel,24c32";
315 compatible = "atmel,24c32";