| 1 |
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) |
| 2 |
/* |
| 3 |
* Copyright 2019-2025 TQ-Systems GmbH <[email protected]>, |
| 4 |
* D-82229 Seefeld, Germany. |
| 5 |
* Author: Michael Krummsdorf |
| 6 |
* Author: Matthias Schiffer |
| 7 |
* Author: Alexander Stein |
| 8 |
*/ |
| 9 |
|
| 10 |
/dts-v1/; |
| 11 |
|
| 12 |
#include <dt-bindings/input/input.h> |
| 13 |
#include <dt-bindings/leds/common.h> |
| 14 |
#include "fsl-ls1028a-tqmls1028a-mbls1028a.dtsi" |
| 15 |
|
| 16 |
/ { |
| 17 |
model = "MBLS1028A starterkit"; |
| 18 |
compatible = "tq,ls1028a-tqmls1028a-mbls1028a", "tq,ls1028a-tqmls1028a", "fsl,ls1028a"; |
| 19 |
|
| 20 |
gpio-beeper { |
| 21 |
compatible = "gpio-beeper"; |
| 22 |
gpios = <&gpio_exp_3v3 15 GPIO_ACTIVE_HIGH>; |
| 23 |
}; |
| 24 |
|
| 25 |
gpio-keys { |
| 26 |
compatible = "gpio-keys"; |
| 27 |
autorepeat; |
| 28 |
|
| 29 |
button-0 { |
| 30 |
label = "S4"; |
| 31 |
linux,code = <BTN_0>; |
| 32 |
gpios = <&gpio_exp_3v3 11 GPIO_ACTIVE_LOW>; |
| 33 |
}; |
| 34 |
|
| 35 |
button-1 { |
| 36 |
label = "S5"; |
| 37 |
linux,code = <BTN_1>; |
| 38 |
gpios = <&gpio_exp_3v3 12 GPIO_ACTIVE_LOW>; |
| 39 |
}; |
| 40 |
}; |
| 41 |
|
| 42 |
gpio-leds { |
| 43 |
compatible = "gpio-leds"; |
| 44 |
|
| 45 |
led-1 { |
| 46 |
color = <LED_COLOR_ID_GREEN>; |
| 47 |
function = LED_FUNCTION_STATUS; |
| 48 |
function-enumerator = <1>; |
| 49 |
gpios = <&gpio_exp_3v3 14 GPIO_ACTIVE_HIGH>; |
| 50 |
linux,default-trigger = "default-on"; |
| 51 |
}; |
| 52 |
|
| 53 |
led-2 { |
| 54 |
color = <LED_COLOR_ID_GREEN>; |
| 55 |
function = LED_FUNCTION_HEARTBEAT; |
| 56 |
gpios = <&gpio_exp_3v3 13 GPIO_ACTIVE_HIGH>; |
| 57 |
linux,default-trigger = "heartbeat"; |
| 58 |
}; |
| 59 |
}; |
| 60 |
}; |
| 61 |
|
| 62 |
&gpio_exp_1v8 { |
| 63 |
dcdc-reset-hog { |
| 64 |
gpio-hog; |
| 65 |
gpios = <6 GPIO_ACTIVE_HIGH>; |
| 66 |
line-name = "DCDC_RESET"; |
| 67 |
output-low; |
| 68 |
}; |
| 69 |
}; |
| 70 |
|
| 71 |
&i2c5 { |
| 72 |
gpio_exp_3v3: gpio@25 { |
| 73 |
compatible = "nxp,pca9555"; |
| 74 |
reg = <0x25>; |
| 75 |
#gpio-cells = <2>; |
| 76 |
gpio-controller; |
| 77 |
#interrupt-cells = <2>; |
| 78 |
interrupt-controller; |
| 79 |
interrupt-parent = <&gpio1>; |
| 80 |
interrupts = <30 IRQ_TYPE_LEVEL_LOW>; |
| 81 |
vcc-supply = <®_3p3v>; |
| 82 |
|
| 83 |
clk-intn-hog { |
| 84 |
gpio-hog; |
| 85 |
gpios = <0 GPIO_ACTIVE_HIGH>; |
| 86 |
input; |
| 87 |
line-name = "CLK_INT#"; |
| 88 |
}; |
| 89 |
|
| 90 |
mpcie-waken-hog { |
| 91 |
gpio-hog; |
| 92 |
gpios = <2 GPIO_ACTIVE_HIGH>; |
| 93 |
input; |
| 94 |
line-name = "MPCIE_WAKE#"; |
| 95 |
}; |
| 96 |
|
| 97 |
mpcie-disn-hog { |
| 98 |
gpio-hog; |
| 99 |
gpios = <3 GPIO_ACTIVE_HIGH>; |
| 100 |
output-high; |
| 101 |
line-name = "MPCIE_DIS#"; |
| 102 |
}; |
| 103 |
|
| 104 |
mpcie-rstn-hog { |
| 105 |
gpio-hog; |
| 106 |
gpios = <4 GPIO_ACTIVE_HIGH>; |
| 107 |
output-high; |
| 108 |
line-name = "MPCIE_RST#"; |
| 109 |
}; |
| 110 |
|
| 111 |
sata-perstn-hog { |
| 112 |
gpio-hog; |
| 113 |
gpios = <6 GPIO_ACTIVE_HIGH>; |
| 114 |
output-high; |
| 115 |
line-name = "SATA_PERST#"; |
| 116 |
}; |
| 117 |
}; |
| 118 |
}; |