[PATCH 3/3] arm64: dts: ten64: provide gpio-line-names for all system gpios
Mathew McBride
matt at traverse.com.au
Wed Jan 14 22:26:45 PST 2026
There are GPIOs on the Ten64 board which are intended to be
user controlled, as well as some that are used for system functions
(such as SFP control lines and associated LEDs).
Providing the gpio-line-names will be useful to users of the board,
for example, in the /sys/kernel/debug/gpio listing.
The master GPIO list for the board can be viewed here:
https://ten64doc.traverse.com.au/hardware/gpio/
Signed-off-by: Mathew McBride <matt at traverse.com.au>
---
.../arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts | 60 ++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts
index 0a460eebd636..f35889b80fe2 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts
@@ -264,6 +264,48 @@ &esdhc {
max-frequency = <25000000>;
};
+&gpio1 {
+ /* Only GPIO 17 is utilised on this controller */
+ gpio-line-names =
+ "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "", "",
+ "",
+ "EXT_PWR_DWN",
+ "", "", "", "", "", "",
+ "", "", "", "", "", "", "", "";
+};
+
+&gpio2 {
+ /* Only GPIO 27,28,29 are utilised on this controller */
+ gpio-line-names =
+ "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "", "",
+ "", "", "",
+ "P6_GPIO_A",
+ "P6_GPIO_B",
+ "P6_GPIO_C",
+ "", "";
+};
+
+&gpio3 {
+ /* Only GPIO4-9, 11-13 are utilised on this controller */
+ gpio-line-names =
+ "", "", "", "",
+ "P6_GPIO_D",
+ "P6_GPIO_E",
+ "P6_GPIO_F",
+ "P6_GPIO_G",
+ "P6_GPIO_H_ADMIN_BTN",
+ "",
+ "TCA9539_INT",
+ "SFP_XG0_ACT_LED",
+ "SFP_XG1_ACT_LED",
+ "SIM_SD_TRAY_STATUS",
+ "", "", "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "", "";
+};
+
&i2c0 {
status = "okay";
@@ -273,6 +315,24 @@ sfpgpio: gpio at 76 {
#gpio-cells = <2>;
gpio-controller;
+ gpio-line-names =
+ "XG1_TX_FAULT", /* Upper SFP+ signals */
+ "XG1_TX_DISABLE",
+ "XG1_PRESENT",
+ "XG1_LOS",
+ "XG0_TX_FAULT", /* Lower SFP+ signals */
+ "XG0_TX_DISABLE",
+ "XG0_PRESENT",
+ "XG0_LOS",
+ "CELLULAR_RESET",
+ "CELLULAR_POWER_OFF",
+ "CELLULAR_DISABLE",
+ "CELLULAR_GNSS_DISABLE",
+ "ADMIN_LED_P",
+ "ADMIN_LED_N",
+ "USER_SWITCH",
+ "ATX_HD_ACT_LED";
+
admin-led-lower-hog {
gpio-hog;
gpios = <13 GPIO_ACTIVE_HIGH>;
--
2.51.2
More information about the linux-arm-kernel
mailing list