Skip to content

Commit

Permalink
arm64: dts: phytium: Add dts for Phytium Pe220x demo boards
Browse files Browse the repository at this point in the history
Add support for Phytium Pe220x demo boards which covers all
three variants of Pe220x SoC series.

Signed-off-by: Chen Zhenhua <[email protected]>
Signed-off-by: Feng Jun <[email protected]>
Signed-off-by: Lai Xueyu <[email protected]>
Signed-off-by: Chen Baozi <[email protected]>
Signed-off-by: Wang Yinfeng <[email protected]>
Signed-off-by: Jiakun Shuai <[email protected]>
Change-Id: I2cb696deeed73e8471491cad1baaa7abf334c711
  • Loading branch information
Chen Zhenhua authored and opsiff committed May 22, 2024
1 parent f18565a commit 84d1576
Show file tree
Hide file tree
Showing 6 changed files with 741 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/phytium/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dtb-$(CONFIG_ARCH_PHYTIUM) += pe2204-demo-ddr4.dtb
dtb-$(CONFIG_ARCH_PHYTIUM) += pe2204-demo-ddr4-local.dtb
dtb-$(CONFIG_ARCH_PHYTIUM) += pe2202-demo-ddr4.dtb
dtb-$(CONFIG_ARCH_PHYTIUM) += pe2202-demo-ddr4-local.dtb
dtb-$(CONFIG_ARCH_PHYTIUM) += pe2201-demo-ddr4.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
82 changes: 82 additions & 0 deletions arch/arm64/boot/dts/phytium/pe2201-demo-ddr4.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// SPDX-License-Identifier: GPL-2.0
/*
* DTS file for Phytium Pe2201 demo board
*
* Copyright (C) 2022-2023, Phytium Technology Co., Ltd.
*/

/dts-v1/;
/memreserve/ 0x80000000 0x10000;

#include "pe2201.dtsi"

/{
model = "Pe2201 DEMO DDR4";
compatible = "phytium,pe2201";

chosen {
stdout-path = "serial1:115200n8";
};

memory@0 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x80000000>;
};
};

&soc {
mio9: i2c@28026000 {
compatible = "phytium,i2c";
reg = <0x0 0x28026000 0x0 0x1000>;
interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sysclk_50mhz>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
};
};

&pcie {
status = "okay";
};

&usb2_0 {
dr_mode = "peripheral";
status = "okay";
};

&usb2_1 {
dr_mode = "peripheral";
status = "okay";
};

&usb2_2 {
dr_mode = "peripheral";
status = "okay";
};

&macb0 {
phy-mode = "sgmii";
use-mii;
status = "okay";
};

&spi2 {
status = "okay";
};

&uart1 {
status = "okay";
};

&uart2 {
status = "okay";
};

&mmc0 {
status = "okay";
};

&mmc1 {
status = "okay";
};
162 changes: 162 additions & 0 deletions arch/arm64/boot/dts/phytium/pe2202-demo-ddr4-local.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
// SPDX-License-Identifier: GPL-2.0
/*
* DTS file for Phytium Pe2202 demo board
*
* Copyright (C) 2022-2023, Phytium Technology Co., Ltd.
*/

/dts-v1/;
/memreserve/ 0x80000000 0x10000;

#include "pe2202.dtsi"

/{
model = "Pe2202 DEMO LOCAL DDR4";
compatible = "phytium,pe2202";

chosen {
stdout-path = "serial1:115200n8";
};

memory@0 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x80000000>;
};

sound_card: sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "phytium,pe220x-i2s-audio";
simple-audio-card,pin-switches = "mic-in";
simple-audio-card,widgets = "Microphone", "mic-in";
simple-audio-card,routing = "MIC2", "mic-in";
simple-audio-card,cpu {
sound-dai = <&i2s0>;
};
simple-audio-card,codec {
sound-dai = <&codec0>;
};
};
};

&soc {
mio9: i2c@28026000 {
compatible = "phytium,i2c";
reg = <0x0 0x28026000 0x0 0x1000>;
interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sysclk_50mhz>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
rtc@32 {
compatible = "wave,sd3078";
reg = <0x32>;
};

};

mio14: i2c@28030000 {
compatible = "phytium,i2c";
reg = <0x0 0x28030000 0x0 0x1000>;
interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sysclk_50mhz>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

codec0: es8336@10 {
#sound-dai-cells = <0>;
compatible = "everest,es8336";
reg = <0x10>;
};
};
};

&pcie {
status = "okay";
};

&usb3_0 {
status = "okay";
};

&usb3_1 {
status = "okay";
};

&usb2_0 {
dr_mode = "peripheral";
status = "okay";
};

&usb2_1 {
dr_mode = "peripheral";
status = "okay";
};

&usb2_2 {
dr_mode = "peripheral";
status = "okay";
};

&macb0 {
phy-mode = "sgmii";
use-mii;
status = "okay";
};

&sata1 {
status = "okay";
};

&spi2 {
status = "okay";
};

&uart1 {
status = "okay";
};

&uart2 {
status = "okay";
};

&can0 {
status = "okay";
};

&can1 {
status = "okay";
};

&mmc0 {
bus-width = <0x00000008>;
max-frequency = <50000000>;
cap-mmc-hw-reset;
cap-mmc-highspeed;
no-sdio;
no-sd;
non-removable;
status = "okay";
};

&mmc1 {
bus-width = <0x00000004>;
max-frequency = <50000000>;
cap-sdio-irq;
cap-sd-highspeed;
sd-uhs-sdr25;
no-mmc;
status = "okay";
};

&i2s0 {
#sound-dai-cells = <0>;
status = "okay";
};

&dc0 {
pipe_mask = /bits/ 8 <0x2>;
edp_mask = /bits/ 8 <0x0>;
status = "okay";
};
Loading

0 comments on commit 84d1576

Please sign in to comment.