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 0x1d0000>;
139 label = "failsafe bootloader";
144 reg = <0x200000 0x010000>;
145 label = "configuration store";
149 reg = <0x210000 0x1d0000>;
150 label = "bootloader";
154 reg = <0x3e0000 0x020000>;
155 label = "bootloader environment";
163 "", "", "", "", "", "", "", "",
164 "", "", "", "", "", "", "", "",
165 "", "", "", "", "", "", "TDO", "TCK",
166 "", "", "", "", "", "", "", "";
171 "", "", "", "", "", "", "TMS", "TDI",
172 "", "", "", "", "", "", "", "",
173 "", "", "", "", "", "", "", "",
174 "", "", "", "", "", "", "", "";
181 compatible = "microcrystal,rv8803";
186 compatible = "kontron,sl28cpld";
188 #address-cells = <1>;
192 compatible = "kontron,sl28cpld-wdt";
194 kontron,assert-wdt-timeout-pin;
198 compatible = "kontron,sl28cpld-fan";
202 sl28cpld_pwm0: pwm@c {
203 compatible = "kontron,sl28cpld-pwm";
208 sl28cpld_pwm1: pwm@e {
209 compatible = "kontron,sl28cpld-pwm";
214 sl28cpld_gpio0: gpio@10 {
215 compatible = "kontron,sl28cpld-gpio";
217 interrupts-extended = <&gpio2 6
218 IRQ_TYPE_EDGE_FALLING>;
223 "GPIO0_CAM0_PWR_N", "GPIO1_CAM1_PWR_N",
224 "GPIO2_CAM0_RST_N", "GPIO3_CAM1_RST_N",
225 "GPIO4_HDA_RST_N", "GPIO5_PWM_OUT",
226 "GPIO6_TACHIN", "GPIO7";
228 interrupt-controller;
229 #interrupt-cells = <2>;
232 sl28cpld_gpio1: gpio@15 {
233 compatible = "kontron,sl28cpld-gpio";
235 interrupts-extended = <&gpio2 6
236 IRQ_TYPE_EDGE_FALLING>;
241 "GPIO8", "GPIO9", "GPIO10", "GPIO11",
244 interrupt-controller;
245 #interrupt-cells = <2>;
248 sl28cpld_gpio2: gpio@1a {
249 compatible = "kontron,sl28cpld-gpo";
255 "LCD0 voltage enable",
256 "LCD0 backlight enable",
257 "eMMC reset", "LVDS bridge reset",
258 "LVDS bridge power-down",
263 sl28cpld_gpio3: gpio@1b {
264 compatible = "kontron,sl28cpld-gpi";
270 "Power button", "Force recovery", "Sleep",
271 "Battery low", "Lid state", "Charging",
272 "Charger present", "";
275 sl28cpld_intc: interrupt-controller@1c {
276 compatible = "kontron,sl28cpld-intc";
278 interrupts-extended = <&gpio2 6
279 IRQ_TYPE_EDGE_FALLING>;
281 interrupt-controller;
282 #interrupt-cells = <2>;
287 compatible = "atmel,24c32";
301 compatible = "atmel,24c32";