Compare commits

..

10 Commits

31 changed files with 1295 additions and 40 deletions

View File

@ -1 +1 @@
2
1

View File

@ -85,10 +85,13 @@ dtbo-$(CONFIG_CPU_RK3568) += \
rk3566-lubancat-1io-dsi1-in-vp0-1080p-overlay.dtbo \
rk3566-lubancat-1io-edp-in-vp0-overlay.dtbo \
rk3566-lubancat-1io-edp-touch-overlay.dtbo \
rk3566-lubancat-dsi0-6.0-1280x720-overlay.dtbo \
rk3566-lubancat-dsi0-7.0-1024x600-overlay.dtbo \
rk3566-lubancat-dsi0-10.1-800x1280-overlay.dtbo \
rk3566-lubancat-dsi0-1080p-overlay.dtbo \
rk3566-lubancat-msata-overlay.dtbo \
rk3568-lubancat-2-xl9535-overlay.dtbo \
rk3568-lubancat-2n-xl9535-overlay.dtbo \
rk3568-lubancat-2-dsi0-in-vp1-7.0-1024x600-overlay.dtbo \
rk3568-lubancat-2-dsi0-in-vp1-10.1-800x1280-overlay.dtbo \
rk3568-lubancat-2-dsi0-in-vp1-1080p-overlay.dtbo \
@ -106,6 +109,7 @@ dtbo-$(CONFIG_CPU_RK3568) += \
rk3568-lubancat-canfd2-m0-overlay.dtbo \
rk3568-lubancat-dsi0-7.0-1024x600-overlay.dtbo \
rk3568-lubancat-dsi0-10.1-800x1280-overlay.dtbo \
rk3568-lubancat-dsi0-6.0-1280x720-overlay.dtbo \
rk3568-lubancat-dsi0-720p-overlay.dtbo \
rk3568-lubancat-dsi0-1080p-overlay.dtbo \
rk3568-lubancat-dsi0-rpi-overlay.dtbo \
@ -118,6 +122,8 @@ dtbo-$(CONFIG_CPU_RK3568) += \
rk3568-lubancat-2h-1080p-overlay.dtbo
dtbo-$(CONFIG_CPU_RK3588) += \
rk3588-lubancat-4-xl9535-overlay.dtbo \
rk3588-lubancat-4-v1-xl9535-overlay.dtbo \
rk3588-lubancat-i2c2-m0-overlay.dtbo \
rk3588-lubancat-i2c2-m4-overlay.dtbo \
rk3588-lubancat-i2c3-m0-overlay.dtbo \

View File

@ -0,0 +1,225 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/display/drm_mipi_dsi.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
fragment@0 {
target = <&route_dsi0>;
__overlay__ {
status = "okay";
connect = <&vp0_out_dsi0>;
};
};
fragment@1 {
target = <&video_phy0>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&dsi0_in_vp0>;
__overlay__ {
status = "okay";
};
};
fragment@3 {
target = <&dsi0_in_vp1>;
__overlay__ {
status = "disabled";
};
};
fragment@4 {
target = <&dsi0>;
__overlay__ {
status = "okay";
power-supply = <&mipi_dsi0_power>;
#address-cells = <1>;
#size-cells = <0>;
dsi0_panel: panel@0 {
compatible = "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
reset-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
reset-delay-ms = <200>;
enable-delay-ms = <100>;
prepare-delay-ms = <20>;
unprepare-delay-ms = <20>;
disable-delay-ms = <20>;
init-delay-ms = <120>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
dsi,format = <MIPI_DSI_FMT_RGB888>;
dsi,lanes = <3>;
panel-init-sequence = [
// init code
// Set EXTC
39 00 04 B9 FF 83 94
// Set MIPI
39 00 03 BA 72 83
// Set Power HX5186 Mode
39 00 10 B1 6C 15 15 24 E4 11 F1 80 E4 97 23 80 C0 D2 58
// Set Display
39 00 0C B2 00 64 10 07 22 1C 08 08 1C 4D 00
// Set CYC
39 00 0D B4 00 FF 03 5A 03 5A 03 5A 01 6A 30 6A
// Set VDC
15 00 02 BC 07
// Set Power ption HX5186 Mode
39 00 04 BF 41 0E 01
// Set D3
39 00 1F D3 00 06 00 40 07 08 00 32 10 07 00 07 54 15 0F 05 04 02 12 10 05 07 33 33 0B 0B 37 10 07 07
// Set GIP,Forward
39 00 2D D5 04 05 06 07 00 01 02 03 20 21 22 23 18 18 18 18 18 18 18 18 19 19 18 18 18 18 1B 1B 1A 1A 18 18 18 18 18 18 18 18 18 18 18 18 18 18
// Set D6,Backward
39 00 2D D6 03 02 01 00 07 06 05 04 23 22 21 20 18 18 18 18 18 18 58 58 18 18 19 19 18 18 1B 1B 1A 1A 18 18 18 18 18 18 18 18 18 18 18 18 18 18
// Set Panel
15 00 02 CC 09
// Set VCOM
39 00 03 B6 51 51
// Set Gamma
39 00 2B E0 00 10 16 2D 33 3F 23 3E 07 0B 0D 17 0E 12 14 12 13 06 11 13 18 00 0F 16 2E 33 3F 23 3D 07 0B 0D 18 0F 12 14 12 14 07 11 12 17
// Set C0
39 00 03 C0 30 14
// Set TCON ption
39 00 05 C7 00 C0 40 C0
// Set SAP_L ption
15 00 02 DF 87
// Set SETOFFSET
15 00 02 D2 66
//
15 78 02 11 00
15 28 02 29 00
];
panel-exit-sequence = [
//05 00 01 28
//05 00 01 10
];
disp_timings0: display-timings {
native-mode = <&dsi0_timing0>;
dsi0_timing0: timing0 {
clock-frequency = <56000000>;// (720+2+2+2)*(1280+2+2+2)*60=56018160
hactive = <720>;
hfront-porch = <8>;
hback-porch = <8>;
hsync-len = <16>;
vactive = <1280>;
vfront-porch = <8>;
vback-porch = <8>;
vsync-len = <16>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
swap-rb = <0>;
swap-rg = <0>;
swap-gb = <0>;
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
panel_in_dsi: endpoint {
remote-endpoint = <&dsi_out_panel>;
};
};
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
dsi_out_panel: endpoint {
remote-endpoint = <&panel_in_dsi>;
};
};
};
};
};
fragment@5 {
target = <&i2c1>;
__overlay__ {
status = "okay";
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
gt911: gt911@5d {
status = "okay";
compatible = "goodix,gt911";
reg = <0x5d>;
interrupt-parent = <&gpio3>;
interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
touchscreen-inverted-x;
touchscreen-inverted-y;
};
};
};
fragment@6 {
target = <&route_hdmi>;
__overlay__ {
status = "disabled";
};
};
fragment@7 {
target = <&hdmi_in_vp0>;
__overlay__ {
status = "disabled";
};
};
fragment@8 {
target = <&hdmi_in_vp1>;
__overlay__ {
status = "disabled";
};
};
fragment@9 {
target = <&hdmi>;
__overlay__ {
status = "disabled";
};
};
};

View File

@ -0,0 +1,166 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
/ {
fragment@0 {
target = <&i2c5>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
xl9535: xl9535@21 {
compatible = "nxp,pca9535";
reg = <0x21>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_xl9535>;
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&gpio0>;
interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
#interrupt-cells = <2>;
interrupt-controller;
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
Keys {
compatible = "gpio-keys";
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
//autorepeat;
Key0{
label = "KEY_0";
linux,code=<KEY_0>;
gpio-hog;
gpios = <&xl9535 3 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
};
Key1{
label = "KEY_1";
linux,code=<KEY_1>;
gpio-hog;
gpios = <&xl9535 4 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
};
Key2{
label = "KEY_2";
linux,code=<KEY_2>;
gpio-hog;
gpios = <&xl9535 5 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
};
};
Coder_sw {
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_sw{
label = "coder_sw";
linux,code=<KEY_3>;
debounce-interval = <5>;
gpios = <&xl9535 7 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
};
};
Coder_A{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_A{
label = "coder_A";
linux,code=<250>;
debounce-interval = <1>;
gpios = <&xl9535 12 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <12 IRQ_TYPE_EDGE_RISING>;
};
};
Coder_B{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_B{
label = "coder_B";
linux,code=<251>;
debounce-interval = <1>;
gpios = <&xl9535 13 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <13 IRQ_TYPE_EDGE_RISING>;
};
};
Coder_C{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_C{
label = "coder_C";
linux,code=<252>;
debounce-interval = <1>;
gpios = <&xl9535 14 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <14 IRQ_TYPE_EDGE_RISING>;
};
};
};
};
fragment@2 {
target-path = "/";
__overlay__ {
dht11{
#address-cells = <1>;
#size-cells = <1>;
compatible = "fire,temphum_dht11";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_dht11>;
linux,open-drain;
dht11_pin = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
fragment@3 {
target = <&pinctrl>;
__overlay__ {
xl9535 {
pinctrl_xl9535:pinctrl_xl9535{
rockchip,pins =
<0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
dht11 {
pinctrl_dht11: pinctrl_dht11{
rockchip,pins =
<3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
};
};

View File

@ -0,0 +1,166 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
/ {
fragment@0 {
target = <&i2c5>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
xl9535: xl9535@21 {
compatible = "nxp,pca9535";
reg = <0x21>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_xl9535>;
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&gpio3>;
interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
#interrupt-cells = <2>;
interrupt-controller;
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
Keys {
compatible = "gpio-keys";
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
//autorepeat;
Key0{
label = "KEY_0";
linux,code=<KEY_0>;
gpio-hog;
gpios = <&xl9535 3 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
};
Key1{
label = "KEY_1";
linux,code=<KEY_1>;
gpio-hog;
gpios = <&xl9535 4 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
};
Key2{
label = "KEY_2";
linux,code=<KEY_2>;
gpio-hog;
gpios = <&xl9535 5 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
};
};
Coder_sw {
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_sw{
label = "coder_sw";
linux,code=<KEY_3>;
debounce-interval = <5>;
gpios = <&xl9535 7 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
};
};
Coder_A{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_A{
label = "coder_A";
linux,code=<250>;
debounce-interval = <1>;
gpios = <&xl9535 12 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <12 IRQ_TYPE_EDGE_RISING>;
};
};
Coder_B{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_B{
label = "coder_B";
linux,code=<251>;
debounce-interval = <1>;
gpios = <&xl9535 13 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <13 IRQ_TYPE_EDGE_RISING>;
};
};
Coder_C{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_C{
label = "coder_C";
linux,code=<252>;
debounce-interval = <1>;
gpios = <&xl9535 14 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <14 IRQ_TYPE_EDGE_RISING>;
};
};
};
};
fragment@2 {
target-path = "/";
__overlay__ {
dht11{
#address-cells = <1>;
#size-cells = <1>;
compatible = "fire,temphum_dht11";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_dht11>;
linux,open-drain;
dht11_pin = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
fragment@3 {
target = <&pinctrl>;
__overlay__ {
xl9535 {
pinctrl_xl9535:pinctrl_xl9535{
rockchip,pins =
<3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
dht11 {
pinctrl_dht11: pinctrl_dht11{
rockchip,pins =
<3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
};
};

View File

@ -0,0 +1,190 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/display/drm_mipi_dsi.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
fragment@0 {
target = <&route_dsi0>;
__overlay__ {
status = "okay";
connect = <&vp1_out_dsi0>;
};
};
fragment@1 {
target = <&video_phy0>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&dsi0_in_vp0>;
__overlay__ {
status = "disabled";
};
};
fragment@3 {
target = <&dsi0_in_vp1>;
__overlay__ {
status = "okay";
};
};
fragment@4 {
target = <&dsi0>;
__overlay__ {
status = "okay";
power-supply = <&mipi_dsi0_power>;
#address-cells = <1>;
#size-cells = <0>;
dsi0_panel: panel@0 {
compatible = "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
reset-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
reset-delay-ms = <200>;
enable-delay-ms = <100>;
prepare-delay-ms = <20>;
unprepare-delay-ms = <20>;
disable-delay-ms = <20>;
init-delay-ms = <120>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
dsi,format = <MIPI_DSI_FMT_RGB888>;
dsi,lanes = <3>;
panel-init-sequence = [
// init code
// Set EXTC
39 00 04 B9 FF 83 94
// Set MIPI
39 00 03 BA 72 83
// Set Power HX5186 Mode
39 00 10 B1 6C 15 15 24 E4 11 F1 80 E4 97 23 80 C0 D2 58
// Set Display
39 00 0C B2 00 64 10 07 22 1C 08 08 1C 4D 00
// Set CYC
39 00 0D B4 00 FF 03 5A 03 5A 03 5A 01 6A 30 6A
// Set VDC
15 00 02 BC 07
// Set Power ption HX5186 Mode
39 00 04 BF 41 0E 01
// Set D3
39 00 1F D3 00 06 00 40 07 08 00 32 10 07 00 07 54 15 0F 05 04 02 12 10 05 07 33 33 0B 0B 37 10 07 07
// Set GIP,Forward
39 00 2D D5 04 05 06 07 00 01 02 03 20 21 22 23 18 18 18 18 18 18 18 18 19 19 18 18 18 18 1B 1B 1A 1A 18 18 18 18 18 18 18 18 18 18 18 18 18 18
// Set D6,Backward
39 00 2D D6 03 02 01 00 07 06 05 04 23 22 21 20 18 18 18 18 18 18 58 58 18 18 19 19 18 18 1B 1B 1A 1A 18 18 18 18 18 18 18 18 18 18 18 18 18 18
// Set Panel
15 00 02 CC 09
// Set VCOM
39 00 03 B6 51 51
// Set Gamma
39 00 2B E0 00 10 16 2D 33 3F 23 3E 07 0B 0D 17 0E 12 14 12 13 06 11 13 18 00 0F 16 2E 33 3F 23 3D 07 0B 0D 18 0F 12 14 12 14 07 11 12 17
// Set C0
39 00 03 C0 30 14
// Set TCON ption
39 00 05 C7 00 C0 40 C0
// Set SAP_L ption
15 00 02 DF 87
// Set SETOFFSET
15 00 02 D2 66
//
15 78 02 11 00
15 28 02 29 00
];
panel-exit-sequence = [
//05 00 01 28
//05 00 01 10
];
disp_timings0: display-timings {
native-mode = <&dsi0_timing0>;
dsi0_timing0: timing0 {
clock-frequency = <56000000>;// (720+2+2+2)*(1280+2+2+2)*60=56018160
hactive = <720>;
hfront-porch = <8>;
hback-porch = <8>;
hsync-len = <16>;
vactive = <1280>;
vfront-porch = <8>;
vback-porch = <8>;
vsync-len = <16>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
swap-rb = <0>;
swap-rg = <0>;
swap-gb = <0>;
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
panel_in_dsi: endpoint {
remote-endpoint = <&dsi_out_panel>;
};
};
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
dsi_out_panel: endpoint {
remote-endpoint = <&panel_in_dsi>;
};
};
};
};
};
fragment@5 {
target = <&i2c1>;
__overlay__ {
status = "okay";
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
gt911: gt911@5d {
status = "okay";
compatible = "goodix,gt911";
reg = <0x5d>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PB5 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
touchscreen-inverted-x = <1>;
touchscreen-inverted-y = <1>;
};
};
};
};

View File

@ -0,0 +1,168 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
/ {
fragment@0 {
target = <&i2c6>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c6m3_xfer>;
xl9535: xl9535@21 {
compatible = "nxp,pca9535";
reg = <0x21>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_xl9535>;
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&gpio0>;
interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
#interrupt-cells = <2>;
interrupt-controller;
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
Keys {
compatible = "gpio-keys";
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
//autorepeat;
Key0{
label = "KEY_0";
linux,code=<KEY_0>;
gpio-hog;
gpios = <&xl9535 3 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
};
Key1{
label = "KEY_1";
linux,code=<KEY_1>;
gpio-hog;
gpios = <&xl9535 4 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
};
Key2{
label = "KEY_2";
linux,code=<KEY_2>;
gpio-hog;
gpios = <&xl9535 5 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
};
};
Coder_sw {
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_sw{
label = "coder_sw";
linux,code=<KEY_3>;
debounce-interval = <5>;
gpios = <&xl9535 7 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
};
};
Coder_A{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_A{
label = "coder_A";
linux,code=<250>;
debounce-interval = <1>;
gpios = <&xl9535 12 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <12 IRQ_TYPE_EDGE_RISING>;
};
};
Coder_B{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_B{
label = "coder_B";
linux,code=<251>;
debounce-interval = <1>;
gpios = <&xl9535 13 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <13 IRQ_TYPE_EDGE_RISING>;
};
};
Coder_C{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_C{
label = "coder_C";
linux,code=<252>;
debounce-interval = <1>;
gpios = <&xl9535 14 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <14 IRQ_TYPE_EDGE_RISING>;
};
};
};
};
fragment@2 {
target-path = "/";
__overlay__ {
dht11{
#address-cells = <1>;
#size-cells = <1>;
compatible = "fire,temphum_dht11";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_dht11>;
linux,open-drain;
dht11_pin = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
fragment@3 {
target = <&pinctrl>;
__overlay__ {
xl9535 {
pinctrl_xl9535:pinctrl_xl9535{
rockchip,pins =
<0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
dht11 {
pinctrl_dht11: pinctrl_dht11{
rockchip,pins =
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
};
};

View File

@ -0,0 +1,168 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
/ {
fragment@0 {
target = <&i2c6>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c6m3_xfer>;
xl9535: xl9535@21 {
compatible = "nxp,pca9535";
reg = <0x21>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_xl9535>;
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&gpio1>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
#interrupt-cells = <2>;
interrupt-controller;
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
Keys {
compatible = "gpio-keys";
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
//autorepeat;
Key0{
label = "KEY_0";
linux,code=<KEY_0>;
gpio-hog;
gpios = <&xl9535 3 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
};
Key1{
label = "KEY_1";
linux,code=<KEY_1>;
gpio-hog;
gpios = <&xl9535 4 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
};
Key2{
label = "KEY_2";
linux,code=<KEY_2>;
gpio-hog;
gpios = <&xl9535 5 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
};
};
Coder_sw {
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_sw{
label = "coder_sw";
linux,code=<KEY_3>;
debounce-interval = <5>;
gpios = <&xl9535 7 GPIO_ACTIVE_LOW>;
interrupt-parent = <&xl9535>;
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
};
};
Coder_A{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_A{
label = "coder_A";
linux,code=<250>;
debounce-interval = <1>;
gpios = <&xl9535 12 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <12 IRQ_TYPE_EDGE_RISING>;
};
};
Coder_B{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_B{
label = "coder_B";
linux,code=<251>;
debounce-interval = <1>;
gpios = <&xl9535 13 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <13 IRQ_TYPE_EDGE_RISING>;
};
};
Coder_C{
compatible = "gpio-keys";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
coder_C{
label = "coder_C";
linux,code=<252>;
debounce-interval = <1>;
gpios = <&xl9535 14 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&xl9535>;
interrupts = <14 IRQ_TYPE_EDGE_RISING>;
};
};
};
};
fragment@2 {
target-path = "/";
__overlay__ {
dht11{
#address-cells = <1>;
#size-cells = <1>;
compatible = "fire,temphum_dht11";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_dht11>;
linux,open-drain;
dht11_pin = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
fragment@3 {
target = <&pinctrl>;
__overlay__ {
xl9535 {
pinctrl_xl9535:pinctrl_xl9535{
rockchip,pins =
<1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
dht11 {
pinctrl_dht11: pinctrl_dht11{
rockchip,pins =
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
};
};

View File

@ -311,7 +311,7 @@ rk809_codec: codec {
hp-volume = <20>;
spk-volume = <3>;
//mic-in-differential;
status = "okay";
status = "disabled";
};
};
};

View File

@ -14,7 +14,7 @@
// MIPI屏幕设置
// #include "rk3568-lubancat-dsi0-ebf410125_1080p.dtsi" //野火5.5寸 1080P
#include "rk3568-lubancat-dsi0-6.0-1280x720.dtsi"
/ {
@ -259,7 +259,7 @@ backlight: backlight {
240 241 242 243 244 245 246 247
248 249 250 251 252 253 254 255
>;
default-brightness-level = <200>;
default-brightness-level = <100>;
};
hdmi_sound: hdmi-sound {

View File

@ -0,0 +1,153 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
&route_dsi0 {
status = "okay";
connect = <&vp1_out_dsi0>;
};
&video_phy0 {
status = "okay";
};
&dsi0_in_vp0 {
status = "disabled";
};
&dsi0_in_vp1 {
status = "okay";
};
&dsi0 {
status = "okay";
power-supply = <&mipi_dsi0_power>;
dsi0_panel: panel@0 {
compatible = "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
reset-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
reset-delay-ms = <200>;
enable-delay-ms = <100>;
prepare-delay-ms = <20>;
unprepare-delay-ms = <20>;
disable-delay-ms = <20>;
init-delay-ms = <120>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
dsi,format = <MIPI_DSI_FMT_RGB888>;
dsi,lanes = <3>;
panel-init-sequence = [
// init code
// Set EXTC
39 00 04 B9 FF 83 94
// Set MIPI
39 00 03 BA 72 83
// Set Power HX5186 Mode
39 00 10 B1 6C 15 15 24 E4 11 F1 80 E4 97 23 80 C0 D2 58
// Set Display
39 00 0C B2 00 64 10 07 22 1C 08 08 1C 4D 00
// Set CYC
39 00 0D B4 00 FF 03 5A 03 5A 03 5A 01 6A 30 6A
// Set VDC
15 00 02 BC 07
// Set Power ption HX5186 Mode
39 00 04 BF 41 0E 01
// Set D3
39 00 1F D3 00 06 00 40 07 08 00 32 10 07 00 07 54 15 0F 05 04 02 12 10 05 07 33 33 0B 0B 37 10 07 07
// Set GIP,Forward
39 00 2D D5 04 05 06 07 00 01 02 03 20 21 22 23 18 18 18 18 18 18 18 18 19 19 18 18 18 18 1B 1B 1A 1A 18 18 18 18 18 18 18 18 18 18 18 18 18 18
// Set D6,Backward
39 00 2D D6 03 02 01 00 07 06 05 04 23 22 21 20 18 18 18 18 18 18 58 58 18 18 19 19 18 18 1B 1B 1A 1A 18 18 18 18 18 18 18 18 18 18 18 18 18 18
// Set Panel
15 00 02 CC 09
// Set VCOM
39 00 03 B6 51 51
// Set Gamma
39 00 2B E0 00 10 16 2D 33 3F 23 3E 07 0B 0D 17 0E 12 14 12 13 06 11 13 18 00 0F 16 2E 33 3F 23 3D 07 0B 0D 18 0F 12 14 12 14 07 11 12 17
// Set C0
39 00 03 C0 30 14
// Set TCON ption
39 00 05 C7 00 C0 40 C0
// Set SAP_L ption
15 00 02 DF 87
// Set SETOFFSET
15 00 02 D2 66
//
15 78 02 11 00
15 28 02 29 00
];
panel-exit-sequence = [
//05 00 01 28
//05 00 01 10
];
disp_timings0: display-timings {
native-mode = <&dsi0_timing0>;
dsi0_timing0: timing0 {
clock-frequency = <56000000>;// (720+2+2+2)*(1280+2+2+2)*60=56018160
hactive = <720>;
hfront-porch = <8>;
hback-porch = <8>;
hsync-len = <16>;
vactive = <1280>;
vfront-porch = <8>;
vback-porch = <8>;
vsync-len = <16>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
swap-rb = <0>;
swap-rg = <0>;
swap-gb = <0>;
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
panel_in_dsi: endpoint {
remote-endpoint = <&dsi_out_panel>;
};
};
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
dsi_out_panel: endpoint {
remote-endpoint = <&panel_in_dsi>;
};
};
};
};
&i2c1 {
status = "okay";
clock-frequency = <100000>;
gt911: gt911@5d {
status = "okay";
compatible = "goodix,gt911";
reg = <0x5d>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PB5 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
touchscreen-inverted-x = <1>;
touchscreen-inverted-y = <1>;
};
};

View File

@ -37,6 +37,7 @@ enable_uboot_overlays=1
#dtoverlay=/dtb/overlay/rk356x-lubancat-pcie2x1-disabled-overlay.dtbo
#display
#dtoverlay=/dtb/overlay/rk3566-lubancat-dsi0-1080p-overlay.dtbo
dtoverlay=/dtb/overlay/rk3566-lubancat-dsi0-6.0-1280x720-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3566-lubancat-dsi0-7.0-1024x600-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3566-lubancat-dsi0-10.1-800x1280-overlay.dtbo
#cam0(mipi-csi0)

View File

@ -5,6 +5,7 @@ cmdline="earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 root
enable_uboot_overlays=1
#overlay_start
#dtoverlay=/dtb/overlay/rk3568-lubancat-2-xl9535-overlay.dtbo
#40pin
#dtoverlay=/dtb/overlay/rk3568-lubancat-msata-overlay.dtbo
#dtoverlay=/dtb/overlay/rk356x-lubancat-i2c3-m0-overlay.dtbo
@ -44,6 +45,7 @@ enable_uboot_overlays=1
#display
#dtoverlay=/dtb/overlay/rk3568-lubancat-hdmi-disabled-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3568-lubancat-dsi0-1080p-overlay.dtbo
dtoverlay=/dtb/overlay/rk3568-lubancat-dsi0-6.0-1280x720-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3568-lubancat-dsi0-7.0-1024x600-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3568-lubancat-dsi0-10.1-800x1280-overlay.dtbo
#cam0(mipi-csi0)

View File

@ -5,6 +5,7 @@ cmdline="earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 root
enable_uboot_overlays=1
#overlay_start
#dtoverlay=/dtb/overlay/rk3568-lubancat-2-xl9535-overlay.dtbo
#40pin
#dtoverlay=/dtb/overlay/rk3568-lubancat-msata-overlay.dtbo
#dtoverlay=/dtb/overlay/rk356x-lubancat-i2c3-m0-overlay.dtbo

View File

@ -5,6 +5,7 @@ cmdline="earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 root
enable_uboot_overlays=1
#overlay_start
#dtoverlay=/dtb/overlay/rk3568-lubancat-2-xl9535-overlay.dtbo
#40pin
#dtoverlay=/dtb/overlay/rk3568-lubancat-msata-overlay.dtbo
#dtoverlay=/dtb/overlay/rk356x-lubancat-i2c3-m0-overlay.dtbo

View File

@ -5,6 +5,7 @@ cmdline="earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 root
enable_uboot_overlays=1
#overlay_start
#dtoverlay=/dtb/overlay/rk3568-lubancat-2-xl9535-overlay.dtbo
#40pin
#dtoverlay=/dtb/overlay/rk3568-lubancat-msata-overlay.dtbo
#dtoverlay=/dtb/overlay/rk356x-lubancat-i2c3-m0-overlay.dtbo

View File

@ -5,6 +5,7 @@ cmdline="earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 root
enable_uboot_overlays=1
#overlay_start
#dtoverlay=/dtb/overlay/rk3568-lubancat-2n-xl9535-overlay.dtbo
#40pin
#dtoverlay=/dtb/overlay/rk3568-lubancat-msata-overlay.dtbo
#dtoverlay=/dtb/overlay/rk356x-lubancat-i2c3-m0-overlay.dtbo

View File

@ -5,6 +5,7 @@ cmdline="earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 root
enable_uboot_overlays=1
#overlay_start
#dtoverlay=/dtb/overlay/rk3568-lubancat-2n-xl9535-overlay.dtbo
#40pin
#dtoverlay=/dtb/overlay/rk3568-lubancat-msata-overlay.dtbo
#dtoverlay=/dtb/overlay/rk356x-lubancat-i2c3-m0-overlay.dtbo

View File

@ -5,6 +5,8 @@ cmdline="earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 root
enable_uboot_overlays=1
#overlay_start
#dtoverlay=/dtb/overlay/rk3588-lubancat-4-v1-xl9535-overlay.dtbo
#40pin
#dtoverlay=/dtb/overlay/rk3588-lubancat-i2c2-m4-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3588-lubancat-i2c3-m1-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3588-lubancat-i2c5-m3-overlay.dtbo

View File

@ -5,6 +5,8 @@ cmdline="earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 root
enable_uboot_overlays=1
#overlay_start
#dtoverlay=/dtb/overlay/rk3588-lubancat-4-xl9535-overlay.dtbo
#40pin
#dtoverlay=/dtb/overlay/rk3588-lubancat-i2c2-m4-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3588-lubancat-i2c3-m1-overlay.dtbo
#dtoverlay=/dtb/overlay/rk3588-lubancat-i2c5-m3-overlay.dtbo

View File

@ -717,6 +717,7 @@ CONFIG_TEE=y
CONFIG_OPTEE=y
CONFIG_RK_HEADSET=y
CONFIG_ROCKCHIP_RKNPU=y
CONFIG_QUECTTEL_MHI_BUS=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

View File

@ -499,6 +499,7 @@ CONFIG_RTL8821CE=m
CONFIG_RTL8821CU=m
CONFIG_RTL8822BU=m
CONFIG_RTL8822CE=m
CONFIG_RTL8852BE=m
CONFIG_RTL8852BU=m
CONFIG_USB_NET_RNDIS_WLAN=y
CONFIG_INPUT_FF_MEMLESS=y
@ -939,6 +940,7 @@ CONFIG_EBF_MODULE=y
CONFIG_EBF_DHT11=m
CONFIG_DS18B20=m
CONFIG_INFRARED=m
CONFIG_QUECTTEL_MHI_BUS=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

View File

@ -733,7 +733,10 @@ CONFIG_ROCKCHIP_OTP=y
CONFIG_TEE=y
CONFIG_OPTEE=y
CONFIG_RK_HEADSET=y
CONFIG_EBF_MODULE=y
CONFIG_EBF_DHT11=y
CONFIG_ROCKCHIP_RKNPU=y
CONFIG_QUECTTEL_MHI_BUS=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

View File

@ -246,4 +246,6 @@ source "drivers/rknpu/Kconfig"
source "drivers/ebf_module/Kconfig"
source "drivers/pcie_mhi/Kconfig"
endmenu

View File

@ -183,7 +183,6 @@ obj-$(CONFIG_FPGA) += fpga/
obj-$(CONFIG_FSI) += fsi/
obj-$(CONFIG_TEE) += tee/
obj-$(CONFIG_MULTIPLEXER) += mux/
obj-y += pcie_mhi/
obj-$(CONFIG_UNISYS_VISORBUS) += visorbus/
obj-$(CONFIG_SIOX) += siox/
obj-$(CONFIG_GNSS) += gnss/
@ -195,3 +194,4 @@ obj-$(CONFIG_RK_HEADSET) += headset_observe/
obj-$(CONFIG_RK_NAND) += rk_nand/
obj-$(CONFIG_ROCKCHIP_RKNPU) += rknpu/
obj-$(CONFIG_EBF_MODULE) += ebf_module/
obj-$(CONFIG_QUECTTEL_MHI_BUS) += pcie_mhi/

8
drivers/pcie_mhi/Kconfig Normal file
View File

@ -0,0 +1,8 @@
menu "Quectel PCIe MHI controllers"
config QUECTTEL_MHI_BUS
tristate "Quectel Modem Host Interface (MHI) bus"
help
Quectel Modem Bus driver for MHI protocol.
endmenu

View File

@ -10,25 +10,3 @@ pcie_mhi-objs += devices/mhi_netdev.o
pcie_mhi-objs += devices/rmnet_handler.o
endif
PWD := $(shell pwd)
ifeq ($(ARCH),)
ARCH := $(shell uname -m)
endif
ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE :=
endif
ifeq ($(KDIR),)
KDIR := /lib/modules/$(shell uname -r)/build
endif
pcie_mhi: clean
$(MAKE) ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} -C $(KDIR) M=$(PWD) modules
#cp pcie_mhi.ko /tftpboot/
clean:
$(MAKE) ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} -C $(KDIR) M=$(PWD) clean
find . -name *.o.ur-safe | xargs rm -f
install: pcie_mhi
sudo cp pcie_mhi.ko /lib/modules/${shell uname -r}/kernel/drivers/pci/
sudo depmod

View File

@ -632,6 +632,7 @@ static const struct usb_device_id option_ids[] = {
{ USB_DEVICE_AND_INTERFACE_INFO(0x2c7c, 0x0900, 0xff, 0x00, 0x00) },
{ USB_DEVICE_AND_INTERFACE_INFO(0x1782, 0x4d00, 0xff, 0x00, 0x00) },
#endif
{ USB_DEVICE(0x1782, 0x4e00) }, /* AIR724UG */
{ USB_DEVICE(0x1286, 0x4e3c) },
#if 1 //Added by Quectel
{ USB_DEVICE(0x05C6, 0x9090) }, /* Quectel UC15 */
@ -2389,6 +2390,12 @@ static int option_probe(struct usb_serial *serial,
}
#endif
/* AIR724UG */
if (serial->dev->descriptor.idVendor == cpu_to_le16(0x1782) && serial->dev->descriptor.idProduct == cpu_to_le16(0x4e00) && iface_desc->bInterfaceNumber <= 1)
{
return -ENODEV;
}
/* Never bind to the CD-Rom emulation interface */
if (iface_desc->bInterfaceClass == USB_CLASS_MASS_STORAGE)
return -ENODEV;

BIN
logo.bmp

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -245,18 +245,18 @@ fi
create_package "$packagename" "$tmpdir"
if [ -n "$BUILD_DEBUG" ] ; then
# Build debug package
# Different tools want the image in different locations
# perf
mkdir -p $dbg_dir/usr/lib/debug/lib/modules/$version/
cp vmlinux $dbg_dir/usr/lib/debug/lib/modules/$version/
# systemtap
mkdir -p $dbg_dir/usr/lib/debug/boot/
ln -s ../lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/boot/vmlinux-$version
# kdump-tools
ln -s lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/vmlinux-$version
create_package "$dbg_packagename" "$dbg_dir"
fi
# if [ -n "$BUILD_DEBUG" ] ; then
# # Build debug package
# # Different tools want the image in different locations
# # perf
# mkdir -p $dbg_dir/usr/lib/debug/lib/modules/$version/
# cp vmlinux $dbg_dir/usr/lib/debug/lib/modules/$version/
# # systemtap
# mkdir -p $dbg_dir/usr/lib/debug/boot/
# ln -s ../lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/boot/vmlinux-$version
# # kdump-tools
# ln -s lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/vmlinux-$version
# create_package "$dbg_packagename" "$dbg_dir"
# fi
exit 0