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";
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";
85 phy-connection-type = "sgmii";
86 managed = "in-band-status";
93 phy0: ethernet-phy@5 {
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 compatible = "fixed-partitions";
130 #address-cells = <1>;
134 reg = <0x000000 0x010000>;
140 reg = <0x010000 0x1d0000>;
141 label = "failsafe bootloader";
146 reg = <0x200000 0x010000>;
147 label = "configuration store";
151 reg = <0x210000 0x1d0000>;
152 label = "bootloader";
156 reg = <0x3e0000 0x020000>;
157 label = "bootloader environment";
165 "", "", "", "", "", "", "", "",
166 "", "", "", "", "", "", "", "",
167 "", "", "", "", "", "", "TDO", "TCK",
168 "", "", "", "", "", "", "", "";
173 "", "", "", "", "", "", "TMS", "TDI",
174 "", "", "", "", "", "", "", "",
175 "", "", "", "", "", "", "", "",
176 "", "", "", "", "", "", "", "";
183 compatible = "microcrystal,rv8803";
188 compatible = "kontron,sl28cpld";
190 #address-cells = <1>;
194 compatible = "kontron,sl28cpld-wdt";
196 kontron,assert-wdt-timeout-pin;
200 compatible = "kontron,sl28cpld-fan";
204 sl28cpld_pwm0: pwm@c {
205 compatible = "kontron,sl28cpld-pwm";
210 sl28cpld_pwm1: pwm@e {
211 compatible = "kontron,sl28cpld-pwm";
216 sl28cpld_gpio0: gpio@10 {
217 compatible = "kontron,sl28cpld-gpio";
219 interrupts-extended = <&gpio2 6
220 IRQ_TYPE_EDGE_FALLING>;
225 "GPIO0_CAM0_PWR_N", "GPIO1_CAM1_PWR_N",
226 "GPIO2_CAM0_RST_N", "GPIO3_CAM1_RST_N",
227 "GPIO4_HDA_RST_N", "GPIO5_PWM_OUT",
228 "GPIO6_TACHIN", "GPIO7";
230 interrupt-controller;
231 #interrupt-cells = <2>;
234 sl28cpld_gpio1: gpio@15 {
235 compatible = "kontron,sl28cpld-gpio";
237 interrupts-extended = <&gpio2 6
238 IRQ_TYPE_EDGE_FALLING>;
243 "GPIO8", "GPIO9", "GPIO10", "GPIO11",
246 interrupt-controller;
247 #interrupt-cells = <2>;
250 sl28cpld_gpio2: gpio@1a {
251 compatible = "kontron,sl28cpld-gpo";
257 "LCD0 voltage enable",
258 "LCD0 backlight enable",
259 "eMMC reset", "LVDS bridge reset",
260 "LVDS bridge power-down",
265 sl28cpld_gpio3: gpio@1b {
266 compatible = "kontron,sl28cpld-gpi";
272 "Power button", "Force recovery", "Sleep",
273 "Battery low", "Lid state", "Charging",
274 "Charger present", "";
277 sl28cpld_intc: interrupt-controller@1c {
278 compatible = "kontron,sl28cpld-intc";
280 interrupts-extended = <&gpio2 6
281 IRQ_TYPE_EDGE_FALLING>;
283 interrupt-controller;
284 #interrupt-cells = <2>;
289 compatible = "atmel,24c32";
303 compatible = "atmel,24c32";