forked from unifreq/linux-5.15.y
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson-gxl-s905x-tx9.dts
153 lines (129 loc) · 2.98 KB
/
meson-gxl-s905x-tx9.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>.
* Based on meson-gxl-s905d-p231.dts:
* - Copyright (c) 2016 Endless Computers, Inc.
* Author: Carlo Caione <carlo@endlessm.com>
*/
/dts-v1/;
#include "meson-gxl-s905x.dtsi"
#include "meson-gx-p23x-q20x.dtsi"
#include <dt-bindings/leds/common.h>
#include <dt-bindings/thermal/thermal.h>
/ {
compatible = "tx9", "amlogic,s905x", "amlogic,meson-gxl";
model = "Tanix TX9";
memory@0 {
device_type = "memory";
reg = <0x0 0x0 0x0 0x40000000>; /* 1 GiB or 2 GiB */
};
thermal-zones {
cpu-thermal {
polling-delay-passive = <250>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */
thermal-sensors = <&scpi_sensors 0>;
trips {
cpu_alert0: cpu-alert0 {
temperature = <70000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "active";
};
cpu_alert1: cpu-alert1 {
temperature = <80000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
};
cooling-maps {
map0 {
trip = <&cpu_alert0>;
cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>;
};
map1 {
trip = <&cpu_alert1>;
cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>;
};
};
};
};
gpio_fan: gpio-fan {
compatible = "gpio-fan";
/* Dummy RPM values since fan is optional */
gpio-fan,speed-map = <0 0
1 1
2 2
3 3>;
#cooling-cells = <2>;
};
spi {
compatible = "spi-gpio";
sck-gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>;
mosi-gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>;
cs-gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>;
num-chipselects = <1>;
#address-cells = <1>;
#size-cells = <0>;
tm1628: led-controller@0 {
compatible = "titanmec,tm1628";
reg = <0>;
spi-3wire;
spi-lsb-first;
spi-rx-delay-us = <1>;
spi-max-frequency = <500000>;
#address-cells = <2>;
#size-cells = <0>;
titanmec,segment-mapping = /bits/ 8 <4 5 6 1 2 3 7>;
titanmec,grid = /bits/ 8 <4 3 2 1>;
alarm@5,1 {
reg = <5 1>;
function = LED_FUNCTION_ALARM;
};
usb@5,2 {
reg = <5 2>;
function = LED_FUNCTION_USB;
};
play@5,3 {
reg = <5 3>;
function = "play";
};
pause@5,4 {
reg = <5 4>;
function = "pause";
};
colon@5,5 {
reg = <5 5>;
function = "colon";
};
lan@5,6 {
reg = <5 6>;
function = LED_FUNCTION_LAN;
};
wlan@5,7 {
reg = <5 7>;
function = LED_FUNCTION_WLAN;
};
};
};
openvfd {
compatible = "open,vfd";
dev_name = "openvfd";
status = "okay";
};
};
&usb {
dr_mode = "host";
};
/* Connected to the Bluetooth module */
&uart_A {
status = "okay";
pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
pinctrl-names = "default";
uart-has-rtscts;
bluetooth {
compatible = "realtek,rtl8723bs-bt";
enable-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
max-speed = <2000000>;
clocks = <&wifi32k>;
clock-names = "lpo";
};
};