Skip to content

Commit 1d6ece8

Browse files
chewittkhilman
authored andcommitted
arm64: dts: meson: add support for the Smartlabs SML-5442TW
The Smartlabs SML-5442TW is based on the Amlogic P231 reference design but with the following differences: - The Yellow and Blue LEDs are available but disabled - The Red and Green LEDs are used to signal off/on status - uart_AO can be accessed after opening the case; soldered pins exist - QCA9377 instead of the usual Ampak/Broadcom module Signed-off-by: Christian Hewitt <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 341e850 commit 1d6ece8

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

arch/arm64/boot/dts/amlogic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb
2727
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb
2828
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p231.dtb
2929
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-phicomm-n1.dtb
30+
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-sml5442tw.dtb
3031
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s805x-p241.dtb
3132
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-p281.dtb
3233
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-tx3-mini.dtb
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) Christian Hewitt <[email protected]>
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "meson-gxl-s905d.dtsi"
9+
#include "meson-gx-p23x-q20x.dtsi"
10+
#include <dt-bindings/leds/common.h>
11+
12+
/ {
13+
compatible = "smartlabs,sml5442tw", "amlogic,s905d", "amlogic,meson-gxl";
14+
model = "SmartLabs SML-5442TW";
15+
16+
leds {
17+
compatible = "gpio-leds";
18+
19+
yellow {
20+
color = <LED_COLOR_ID_YELLOW>;
21+
function = LED_FUNCTION_STATUS;
22+
gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>;
23+
default-state = "off";
24+
};
25+
26+
blue {
27+
color = <LED_COLOR_ID_BLUE>;
28+
function = LED_FUNCTION_STATUS;
29+
gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>;
30+
default-state = "off";
31+
};
32+
33+
green {
34+
color = <LED_COLOR_ID_GREEN>;
35+
function = LED_FUNCTION_STATUS;
36+
gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
37+
default-state = "on";
38+
};
39+
40+
red {
41+
color = <LED_COLOR_ID_RED>;
42+
function = LED_FUNCTION_STATUS;
43+
gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>;
44+
default-state = "off";
45+
};
46+
};
47+
};
48+
49+
&ethmac {
50+
status = "okay";
51+
phy-mode = "rmii";
52+
phy-handle = <&internal_phy>;
53+
};
54+
55+
&i2c_A {
56+
status = "okay";
57+
pinctrl-0 = <&i2c_a_pins>;
58+
pinctrl-names = "default";
59+
};
60+
61+
&internal_phy {
62+
pinctrl-0 = <&eth_link_led_pins>, <&eth_act_led_pins>;
63+
pinctrl-names = "default";
64+
};
65+
66+
/* This is connected to the Bluetooth module: */
67+
&uart_A {
68+
status = "okay";
69+
pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
70+
pinctrl-names = "default";
71+
uart-has-rtscts;
72+
73+
bluetooth {
74+
compatible = "qcom,qca9377-bt";
75+
enable-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
76+
max-speed = <2000000>;
77+
clocks = <&wifi32k>;
78+
clock-names = "lpo";
79+
};
80+
};

0 commit comments

Comments
 (0)