Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions config/boards/ebyte-ecb41-pge.csc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Rockchip RK3506G2 triple core 128MB SoC 2x100MBe NAND SD USB2
BOARD_NAME="EByte ECB41-PGE"
BOARD_VENDOR="ebyte"
BOARDFAMILY="rockchip"
BOOTCONFIG="ebyte-ecb41-pge_defconfig"
BOARD_MAINTAINER="vidplace7"
KERNEL_TARGET="vendor"
BOOT_FDT_FILE="rk3506g-ebyte-ecb41-pge.dtb"
IMAGE_PARTITION_TABLE="gpt"
BOOT_SOC="rk3506"
DDR_BLOB="rk35/rk3506_ddr_750MHz_v1.06.bin"

# Board only has 128MB RAM; use 'lowmem' extension to optimize for this.
enable_extension "lowmem"
59 changes: 59 additions & 0 deletions patch/u-boot/u-boot-rk3506/defconfig/ebyte-ecb41-pge_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
CONFIG_ARM=y
CONFIG_SKIP_LOWLEVEL_INIT=y
CONFIG_COUNTER_FREQUENCY=24000000
CONFIG_ARCH_ROCKCHIP=y
CONFIG_DEFAULT_DEVICE_TREE="rk3506g-ebyte-ecb41-pge"
CONFIG_ROCKCHIP_RK3506=y
CONFIG_SYS_BOOTM_LEN=0x4000000
CONFIG_SYS_LOAD_ADDR=0xc00800
CONFIG_DEBUG_UART_BASE=0xFF0A0000
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_DEBUG_UART=y
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3506g-ebyte-ecb41-pge.dtb"
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_SPL_MAX_SIZE=0x40000
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
CONFIG_CMD_MEMINFO=y
CONFIG_CMD_MEMINFO_MAP=y
CONFIG_CMD_ADC=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_GPT=y
CONFIG_CMD_MISC=y
CONFIG_CMD_MMC=y
CONFIG_CMD_MTD=y
CONFIG_CMD_USB=y
CONFIG_CMD_ROCKUSB=y
CONFIG_CMD_USB_MASS_STORAGE=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_RNG=y
CONFIG_CMD_REGULATOR=y
CONFIG_CMD_BTRFS=y
# CONFIG_SPL_DOS_PARTITION is not set
CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
CONFIG_BUTTON=y
CONFIG_BUTTON_ADC=y
# CONFIG_USB_FUNCTION_FASTBOOT is not set
CONFIG_ROCKCHIP_GPIO=y
CONFIG_LED=y
CONFIG_LED_GPIO=y
CONFIG_MMC_DW=y
CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_DM_MTD=y
CONFIG_MTD_SPI_NAND=y
CONFIG_PHY_MOTORCOMM=y
CONFIG_DM_MDIO=y
CONFIG_DWC_ETH_QOS=y
CONFIG_DWC_ETH_QOS_ROCKCHIP=y
CONFIG_PHY_ROCKCHIP_INNO_USB2=y
CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYS_NS16550_MEM32=y
CONFIG_ROCKCHIP_SFC=y
CONFIG_USB=y
CONFIG_DM_USB_GADGET=y
CONFIG_USB_DWC2=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_ROCKUSB=y
CONFIG_ERRNO_STR=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)

#include "rk3506-u-boot.dtsi"

&fspi {
flash@0 {
bootph-pre-ram;
bootph-some-ram;
};
};

&sdmmc_det_l {
bootph-pre-ram;
bootph-some-ram;
};
226 changes: 226 additions & 0 deletions patch/u-boot/u-boot-rk3506/dt/rk3506g-ebyte-ecb41-pge.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)

/dts-v1/;

#include <dt-bindings/leds/common.h>
#include "rk3506.dtsi"

/ {
model = "EBYTE RK3506G(QFN128) V10 Board";
compatible = "ebyte,rk3506g-v10", "rockchip,rk3506";

aliases {
ethernet0 = <&gmac0>;
ethernet1 = <&gmac1>;
mmc0 = &sdmmc;
serial0 = &uart0;
};

chosen {
stdout-path = "serial0:1500000n8";
};

leds {
compatible = "gpio-leds";

led-0 {
color = <LED_COLOR_ID_GREEN>;
default-state = "on";
function = LED_FUNCTION_HEARTBEAT;
gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
pinctrl-names = "default";
pinctrl-0 = <&run_led>;
};
};

vdd_0v9: regulator-0v9 {
compatible = "regulator-fixed";
regulator-name = "vdd_0v9";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <900000>;
regulator-max-microvolt = <900000>;
vin-supply = <&vcc5v0_sys>;
};

vcc_1v8: regulator-1v8 {
compatible = "regulator-fixed";
regulator-name = "vcc_1v8";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
vin-supply = <&vcc_3v3>;
};

vcc_3v3: regulator-3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc_3v3";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc5v0_sys>;
};

vcc5v0_sys: regulator-5v0-sys {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_sys";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};

vcc5v0_usb20_otg1: regulator-5v0-usb20-otg1 {
compatible = "regulator-fixed";
enable-active-high;
gpios = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
regulator-name = "vcc5v0_usb20_otg1";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};

vcc_ddr: regulator-vcc-ddr {
compatible = "regulator-fixed";
regulator-name = "vcc_ddr";
regulator-always-on;
regulator-boot-on;
vin-supply = <&vcc5v0_sys>;
};
};

&fspi {
status = "okay";

flash@0 {
compatible = "spi-nand";
reg = <0>;
spi-max-frequency = <80000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
vcc-supply = <&vcc_3v3>;
};
};

&gmac0 {
assigned-clocks = <&cru CLK_MAC0>;
assigned-clock-rates = <50000000>;
clock_in_out = "output";
phy-handle = <&rmii_phy0>;
phy-supply = <&vcc_3v3>;
pinctrl-names = "default";
pinctrl-0 = <&eth_rmii0_miim>, <&eth_rmii0_tx_bus2>,
<&eth_rmii0_rx_bus2>, <&eth_rmii0_clk>;
status = "okay";
};

&gmac1 {
assigned-clocks = <&cru CLK_MAC1>;
assigned-clock-rates = <50000000>;
clock_in_out = "output";
phy-handle = <&rmii_phy1>;
phy-supply = <&vcc_3v3>;
pinctrl-names = "default";
pinctrl-0 = <&eth_rmii1_miim>, <&eth_rmii1_tx_bus2>,
<&eth_rmii1_rx_bus2>, <&eth_rmii1_clk>;
status = "okay";
};

&mdio0 {
rmii_phy0: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
pinctrl-names = "default";
pinctrl-0 = <&rmii0_rstn>;
reset-assert-us = <20000>;
reset-deassert-us = <100000>;
reset-gpios = <&gpio1 RK_PC7 GPIO_ACTIVE_LOW>;
};
};

&mdio1 {
rmii_phy1: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <2>;
pinctrl-names = "default";
pinctrl-0 = <&rmii1_rstn>;
reset-assert-us = <20000>;
reset-deassert-us = <100000>;
reset-gpios = <&gpio1 RK_PC5 GPIO_ACTIVE_LOW>;
};
};

&pinctrl {
ethernet {
/omit-if-no-ref/
rmii0_rstn: rmii0-rstn {
rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
};

/omit-if-no-ref/
rmii1_rstn: rmii1-rstn {
rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

leds {
/omit-if-no-ref/
run_led: run-led {
rockchip,pins = <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

sdmmc {
/omit-if-no-ref/
sdmmc_det_l: sdmmc-det-l {
rockchip,pins = <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};

&saradc {
vref-supply = <&vcc_1v8>;
status = "okay";
};

&sdmmc {
cap-sd-highspeed;
cd-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>;
disable-wp;
no-mmc;
no-sdio;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc_bus4>, <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_det_l>;
vmmc-supply = <&vcc_3v3>;
vqmmc-supply = <&vcc_3v3>;
status = "okay";
};

&uart0 {
status = "okay";
};

&usb20_otg0 {
status = "okay";
};

&usb20_otg1 {
dr_mode = "host";
status = "okay";
};

&usb2phy {
status = "okay";
};

&usb2phy_otg0 {
status = "okay";
};

&usb2phy_otg1 {
phy-supply = <&vcc5v0_usb20_otg1>;
status = "okay";
};
Loading