diff --git a/arch/arm/dts/rk322x-box.dts b/arch/arm/dts/rk322x-box.dts new file mode 100755 index 00000000..eb47f976 --- /dev/null +++ b/arch/arm/dts/rk322x-box.dts @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0+ OR X11 +/* + * (C) Copyright 2017 Rockchip Electronics Co., Ltd. + */ + +/dts-v1/; + +#include "rk322x-generic-tvbox.dtsi" + +/ { + model = "Generic Rockchip rk322x TV Box board"; + compatible = "rockchip,rk322x-box"; + +}; + +&leds { + + /* + Alternative led: some boards which have main led wired + as ACTIVE_LOW will not show anything during boot, thus + we put this gpio led as ACTIVE_HIGH, so at least one + may give some hint during boot. + Schematics say that this pin is connected to I2C0 data + bus, which is usually unused on rk322x boards + */ + + alt { + label = "alternative"; + gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + +}; + +&gmac { + + tx_delay = < 0x26 >; // Default is 0x30, but original dts proposes 0x26 + rx_delay = < 0x11 >; // Default is 0x10, but original dts proposes 0x11 + status = "okay"; + +}; + +&emmc { + + status = "okay"; + +}; + +&sdmmc { + cd-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_LOW>; + status = "okay"; + +}; + +&pinctrl { + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_leds>; + + gpio { + gpio_leds: gpio-leds { + rockchip,pins = <3 21 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; + +};