luckfox-pico-sdk/sysdrv/source/kernel/arch/arm/boot/dts/rv1103g-luckfox-pico-mini-b.dts
2024-09-27 13:58:31 +07:00

182 lines
4.0 KiB
Plaintext
Executable File

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2023 Luckfox Electronics Co., Ltd.
*/
/dts-v1/;
#include "rv1103.dtsi"
#include "rv1106-evb.dtsi"
#include "rv1103-luckfox-pico-ipc.dtsi"
/ {
model = "Luckfox Pico Mini B";
compatible = "rockchip,rv1103g-38x38-ipc-v10", "rockchip,rv1103";
};
/**********SFC**********/
&sfc {
status = "okay";
flash@0 {
compatible = "spi-nand";
reg = <0>;
spi-max-frequency = <75000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
};
};
/**********SDMMC**********/
&sdmmc {
max-frequency = <50000000>;
no-sdio;
no-mmc;
bus-width = <4>;
cap-mmc-highspeed;
cap-sd-highspeed;
disable-wp;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>;
status = "okay";
};
/**********ETH**********/
&gmac {
status = "disabled";
};
/**********USB**********/
&usbdrd_dwc3 {
status = "okay";
dr_mode = "peripheral";
};
&pinctrl {
lcd {
gc9a01_pins: gc9a01-pins {
rockchip,pins =
/* lcd_reset */
<1 RK_PD0 1 &pcfg_pull_none_drv_level_3>,
/* lcd_dc */
<1 RK_PD1 1 &pcfg_pull_none_drv_level_3>,
/* lcd_led */
<1 RK_PD2 1 &pcfg_pull_none_drv_level_3>;
};
};
};
/**********SPI**********/
/* SPI0_M0 */
&spi0 {
status = "okay";
spidev@0 {
status = "disabled";
spi-max-frequency = <50000000>;
};
fbtft@0 {
status = "disabled";
};
gc9a01@0 {
compatible = "ilitek,ili9340";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&gc9a01_pins>;
reset = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
dc = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
led-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_LOW>;
spi-max-frequency = <8000000>;
buswidth = <8>;
width = <240>;
height = <240>;
rotate = <0>;
fps = <50>;
bgr;
debug = <0>;
init = <
0x01000011 /* Sleep mode OFF */
0x02000078 /* Delay 120ms */
0x010000EF /* Inter register enable 2 */
0x010000EB 0x14
/* BEGIN set inter_command HIGH */
0x010000FE /* Inter register enable 1 */
0x010000EF /* Inter register enable 2 */
/* END set inter_command HIGH */
0x010000EB 0x14
0x01000084 0x40
0x01000085 0xFF
0x01000086 0xFF
0x01000087 0xFF
0x01000088 0x0A
0x01000089 0x21
0x0100008A 0x00
0x0100008B 0x80
0x0100008C 0x01
0x0100008D 0x01
0x0100008E 0xFF
0x0100008F 0xFF
0x010000B6 0x00 0x00 /* Display function control */
0x01000036 0x08 /* Memory access control */
0x0100003A 0x05 /* Pixel format */
0x01000090 0x08 0x08 0x08 0x08
0x010000BD 0x06
0x010000BC 0x00
0x010000FF 0x60 0x01 0x04
0x010000C3 0x13 /* Voltage regulator 1a */
0x010000C4 0x13 /* Voltage regulator 1b */
0x010000C9 0x22 /* Voltage regulator 2a */
0x010000BE 0x11
0x010000E1 0x10 0x0E
0x010000DF 0x21 0x0c 0x02
0x010000F0 0x45 0x09 0x08 0x08 0x26 0x2A /* Set gamma1 */
0x010000F1 0x43 0x70 0x72 0x36 0x37 0x6F /* Set gamma2 */
0x010000F2 0x45 0x09 0x08 0x08 0x26 0x2A /* Set gamma3 */
0x010000F3 0x43 0x70 0x72 0x36 0x37 0x6F /* Set gamma4 */
0x010000ED 0x1B 0x0B
0x010000AE 0x77
0x010000CD 0x63
0x01000070 0x07 0x07 0x04 0x0E 0x0F 0x09 0x07 0x08 0x03
0x010000E8 0x34 /* Frame rate */
0x01000062 0x18 0x0D 0x71 0xED 0x70 0x70 0x18 0x0F 0x71 0xEF 0x70 0x70
0x01000063 0x18 0x11 0x71 0xF1 0x70 0x70 0x18 0x13 0x71 0xF3 0x70 0x70
0x01000064 0x28 0x29 0xF1 0x01 0xF1 0x00 0x07
0x01000066 0x3C 0x00 0xCD 0x67 0x45 0x45 0x10 0x00 0x00 0x00
0x01000067 0x00 0x3C 0x00 0x00 0x00 0x01 0x54 0x10 0x32 0x98
0x01000074 0x10 0x85 0x80 0x00 0x00 0x4E 0x00
0x01000098 0x3e 0x07
0x01000035 /* Tearing effect ON */
0x01000021 /* Display inversion ON */
0x01000011 /* Sleep mode OFF */
0x0200000C /* Delay 12ms */
0x01000029 /* Display ON */
0x02000014 /* Delay 20ms */
>;
};
};
/**********I2C**********/
/* I2C3_M1 */
&i2c3 {
status = "disabled";
clock-frequency = <100000>;
};
/**********UART**********/
/* UART3_M1 */
&uart3 {
status = "disabled";
};
/* UART4_M1 */
&uart4 {
status = "disabled";
};
/**********PWM**********/
/* PWM1_M0 */
&pwm1 {
status = "disabled";
};