0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) Christian Hewitt <christianshewitt@gmail.com>
0004 */
0005
0006 /dts-v1/;
0007
0008 #include "meson-gxl-s905d.dtsi"
0009 #include "meson-gx-p23x-q20x.dtsi"
0010 #include <dt-bindings/leds/common.h>
0011
0012 / {
0013 compatible = "smartlabs,sml5442tw", "amlogic,s905d", "amlogic,meson-gxl";
0014 model = "SmartLabs SML-5442TW";
0015
0016 leds {
0017 compatible = "gpio-leds";
0018
0019 led-yellow {
0020 color = <LED_COLOR_ID_YELLOW>;
0021 function = LED_FUNCTION_STATUS;
0022 gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>;
0023 default-state = "off";
0024 };
0025
0026 led-blue {
0027 color = <LED_COLOR_ID_BLUE>;
0028 function = LED_FUNCTION_STATUS;
0029 gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>;
0030 default-state = "off";
0031 };
0032
0033 led-green {
0034 color = <LED_COLOR_ID_GREEN>;
0035 function = LED_FUNCTION_STATUS;
0036 gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
0037 default-state = "on";
0038 };
0039
0040 led-red {
0041 color = <LED_COLOR_ID_RED>;
0042 function = LED_FUNCTION_STATUS;
0043 gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>;
0044 default-state = "off";
0045 };
0046 };
0047 };
0048
0049 ðmac {
0050 status = "okay";
0051 phy-mode = "rmii";
0052 phy-handle = <&internal_phy>;
0053 };
0054
0055 &i2c_A {
0056 status = "okay";
0057 pinctrl-0 = <&i2c_a_pins>;
0058 pinctrl-names = "default";
0059 };
0060
0061 &internal_phy {
0062 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>;
0063 pinctrl-names = "default";
0064 };
0065
0066 &ir {
0067 linux,rc-map-name = "rc-khamsin";
0068 };
0069
0070 /* This is connected to the Bluetooth module: */
0071 &uart_A {
0072 status = "okay";
0073 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
0074 pinctrl-names = "default";
0075 uart-has-rtscts;
0076
0077 bluetooth {
0078 compatible = "qcom,qca9377-bt";
0079 enable-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
0080 max-speed = <2000000>;
0081 clocks = <&wifi32k>;
0082 clock-names = "lpo";
0083 };
0084 };