1 // SPDX-License-Identifier: GPL-2.0+
3 * Device Tree file for the Kontron SMARC-sAL28 board.
5 * Copyright (C) 2021 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";
33 compatible = "gpio-keys";
36 interrupts-extended = <&sl28cpld_intc
37 4 IRQ_TYPE_EDGE_BOTH>;
38 linux,code = <KEY_POWER>;
43 interrupts-extended = <&sl28cpld_intc
44 5 IRQ_TYPE_EDGE_BOTH>;
45 linux,code = <KEY_SLEEP>;
51 compatible = "gpio-keys-polled";
52 poll-interval = <200>;
55 linux,input-type = <EV_SW>;
56 linux,code = <SW_LID>;
57 gpios = <&sl28cpld_gpio3 4 GPIO_ACTIVE_LOW>;
63 stdout-path = "serial0:115200n8";
84 phy0: ethernet-phy@5 {
94 managed = "in-band-status";
117 compatible = "jedec,spi-nor";
119 spi-max-frequency = <133000000>;
121 /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */
122 spi-rx-bus-width = <2>; /* 2 SPI Rx lines */
123 spi-tx-bus-width = <1>; /* 1 SPI Tx line */
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
131 reg = <0x000000 0x010000>;
137 reg = <0x010000 0x1d0000>;
138 label = "failsafe bootloader";
143 reg = <0x200000 0x010000>;
144 label = "configuration store";
148 reg = <0x210000 0x1d0000>;
149 label = "bootloader";
153 reg = <0x3e0000 0x020000>;
154 label = "bootloader environment";
166 "", "", "", "", "", "", "", "",
167 "", "", "", "", "", "", "", "",
168 "", "", "", "", "", "", "TDO", "TCK",
169 "", "", "", "", "", "", "", "";
174 "", "", "", "", "", "", "TMS", "TDI",
175 "", "", "", "", "", "", "", "",
176 "", "", "", "", "", "", "", "",
177 "", "", "", "", "", "", "", "";
184 compatible = "microcrystal,rv8803";
189 compatible = "kontron,sl28cpld";
191 #address-cells = <1>;
195 compatible = "kontron,sl28cpld-wdt";
197 kontron,assert-wdt-timeout-pin;
201 compatible = "kontron,sl28cpld-fan";
205 sl28cpld_pwm0: pwm@c {
206 compatible = "kontron,sl28cpld-pwm";
211 sl28cpld_pwm1: pwm@e {
212 compatible = "kontron,sl28cpld-pwm";
217 sl28cpld_gpio0: gpio@10 {
218 compatible = "kontron,sl28cpld-gpio";
220 interrupts-extended = <&gpio2 6
221 IRQ_TYPE_EDGE_FALLING>;
226 "GPIO0_CAM0_PWR_N", "GPIO1_CAM1_PWR_N",
227 "GPIO2_CAM0_RST_N", "GPIO3_CAM1_RST_N",
228 "GPIO4_HDA_RST_N", "GPIO5_PWM_OUT",
229 "GPIO6_TACHIN", "GPIO7";
231 interrupt-controller;
232 #interrupt-cells = <2>;
235 sl28cpld_gpio1: gpio@15 {
236 compatible = "kontron,sl28cpld-gpio";
238 interrupts-extended = <&gpio2 6
239 IRQ_TYPE_EDGE_FALLING>;
244 "GPIO8", "GPIO9", "GPIO10", "GPIO11",
247 interrupt-controller;
248 #interrupt-cells = <2>;
251 sl28cpld_gpio2: gpio@1a {
252 compatible = "kontron,sl28cpld-gpo";
258 "LCD0 voltage enable",
259 "LCD0 backlight enable",
260 "eMMC reset", "LVDS bridge reset",
261 "LVDS bridge power-down",
266 sl28cpld_gpio3: gpio@1b {
267 compatible = "kontron,sl28cpld-gpi";
273 "Power button", "Force recovery", "Sleep",
274 "Battery low", "Lid state", "Charging",
275 "Charger present", "";
278 sl28cpld_intc: interrupt-controller@1c {
279 compatible = "kontron,sl28cpld-intc";
281 interrupts-extended = <&gpio2 6
282 IRQ_TYPE_EDGE_FALLING>;
284 interrupt-controller;
285 #interrupt-cells = <2>;
290 compatible = "atmel,24c32";
304 compatible = "atmel,24c32";
315 dsa-tag-protocol = "ocelot-8021q";
319 dsa-tag-protocol = "ocelot-8021q";