Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duo-buildroot-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
duo-buildroot-sdk
Commits
45300136
Commit
45300136
authored
Apr 08, 2024
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
duos: support spi
parent
362832ac
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
72 additions
and
0 deletions
+72
-0
build/boards/cv181x/cv1813h_milkv_duos_emmc/dts_riscv/cv1813h_milkv_duos_emmc.dts
...13h_milkv_duos_emmc/dts_riscv/cv1813h_milkv_duos_emmc.dts
+8
-0
build/boards/cv181x/cv1813h_milkv_duos_emmc/linux/cvitek_cv1813h_milkv_duos_emmc_defconfig
..._duos_emmc/linux/cvitek_cv1813h_milkv_duos_emmc_defconfig
+5
-0
build/boards/cv181x/cv1813h_milkv_duos_sd/dts_riscv/cv1813h_milkv_duos_sd.dts
...cv1813h_milkv_duos_sd/dts_riscv/cv1813h_milkv_duos_sd.dts
+8
-0
build/boards/cv181x/cv1813h_milkv_duos_sd/linux/cvitek_cv1813h_milkv_duos_sd_defconfig
...ilkv_duos_sd/linux/cvitek_cv1813h_milkv_duos_sd_defconfig
+5
-0
build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c
...ards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c
+6
-0
build/boards/default/dts/cv181x/cv181x_asic_bga.dtsi
build/boards/default/dts/cv181x/cv181x_asic_bga.dtsi
+40
-0
No files found.
build/boards/cv181x/cv1813h_milkv_duos_emmc/dts_riscv/cv1813h_milkv_duos_emmc.dts
View file @
45300136
...
@@ -21,6 +21,14 @@
...
@@ -21,6 +21,14 @@
status
=
"okay"
;
status
=
"okay"
;
};
};
&
spi3
{
status
=
"okay"
;
spidev
@
0
{
status
=
"okay"
;
};
};
&
usb
{
&
usb
{
vbus
-
gpio
=
<&
portb
6
0
>;
vbus
-
gpio
=
<&
portb
6
0
>;
};
};
...
...
build/boards/cv181x/cv1813h_milkv_duos_emmc/linux/cvitek_cv1813h_milkv_duos_emmc_defconfig
View file @
45300136
...
@@ -135,6 +135,11 @@ CONFIG_I2C=y
...
@@ -135,6 +135,11 @@ CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_MUX=y
CONFIG_I2C_MUX=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_SPI=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_DESIGNWARE=y
CONFIG_SPI_DW_MMIO=y
CONFIG_SPI_SPIDEV=y
# CONFIG_PTP_1588_CLOCK is not set
# CONFIG_PTP_1588_CLOCK is not set
CONFIG_PINCTRL=y
CONFIG_PINCTRL=y
CONFIG_CVITEK_PINCTRL_CV1835=y
CONFIG_CVITEK_PINCTRL_CV1835=y
...
...
build/boards/cv181x/cv1813h_milkv_duos_sd/dts_riscv/cv1813h_milkv_duos_sd.dts
View file @
45300136
...
@@ -21,6 +21,14 @@
...
@@ -21,6 +21,14 @@
status
=
"okay"
;
status
=
"okay"
;
};
};
&
spi3
{
status
=
"okay"
;
spidev
@
0
{
status
=
"okay"
;
};
};
&
usb
{
&
usb
{
vbus
-
gpio
=
<&
portb
6
0
>;
vbus
-
gpio
=
<&
portb
6
0
>;
};
};
...
...
build/boards/cv181x/cv1813h_milkv_duos_sd/linux/cvitek_cv1813h_milkv_duos_sd_defconfig
View file @
45300136
...
@@ -135,6 +135,11 @@ CONFIG_I2C=y
...
@@ -135,6 +135,11 @@ CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_MUX=y
CONFIG_I2C_MUX=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_SPI=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_DESIGNWARE=y
CONFIG_SPI_DW_MMIO=y
CONFIG_SPI_SPIDEV=y
# CONFIG_PTP_1588_CLOCK is not set
# CONFIG_PTP_1588_CLOCK is not set
CONFIG_PINCTRL=y
CONFIG_PINCTRL=y
CONFIG_CVITEK_PINCTRL_CV1835=y
CONFIG_CVITEK_PINCTRL_CV1835=y
...
...
build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c
View file @
45300136
...
@@ -20,6 +20,12 @@ int cvi_board_init(void)
...
@@ -20,6 +20,12 @@ int cvi_board_init(void)
//PINMUX_CONFIG(VIVO_D1, IIC4_SCL);
//PINMUX_CONFIG(VIVO_D1, IIC4_SCL);
//PINMUX_CONFIG(VIVO_D0, IIC4_SDA);
//PINMUX_CONFIG(VIVO_D0, IIC4_SDA);
// SPI3
PINMUX_CONFIG
(
VIVO_D8
,
SPI3_SDO
);
PINMUX_CONFIG
(
VIVO_D7
,
SPI3_SDI
);
PINMUX_CONFIG
(
VIVO_D6
,
SPI3_SCK
);
PINMUX_CONFIG
(
VIVO_D5
,
SPI3_CS_X
);
// USB
// USB
PINMUX_CONFIG
(
USB_VBUS_EN
,
XGPIOB_5
);
PINMUX_CONFIG
(
USB_VBUS_EN
,
XGPIOB_5
);
...
...
build/boards/default/dts/cv181x/cv181x_asic_bga.dtsi
View file @
45300136
...
@@ -3,6 +3,46 @@
...
@@ -3,6 +3,46 @@
mute-gpio-r = <&porta 30 GPIO_ACTIVE_LOW>;
mute-gpio-r = <&porta 30 GPIO_ACTIVE_LOW>;
};
};
&spi0 {
status = "disabled";
num-cs = <1>;
spidev@0 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <1000000>;
reg = <0>;
};
};
&spi1 {
status = "disabled";
num-cs = <1>;
spidev@0 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <1000000>;
reg = <0>;
};
};
&spi2 {
status = "disabled";
num-cs = <1>;
spidev@0 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <1000000>;
reg = <0>;
};
};
&spi3 {
status = "okay";
num-cs = <1>;
spidev@0 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <1000000>;
reg = <0>;
};
};
&i2c1 {
&i2c1 {
status = "disabled";
status = "disabled";
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment