Biggest part is the addition of the rk3288 variant of the VMARC
SOM and it's Rock Pi N8 icarnation. This brings some arm64 dts-changes with it as the underlying Dalang carrier board is shared by both an arm32 rk3288 SOM and an arm64 rk3399 SOM (Rock Pi N10). Other than that rk3288 gets its ohci node added that only works on the fixed rk3288w variant of the soc and some asorted fixes and improvements for dt-binding-check. -----BEGIN PGP SIGNATURE----- iQFEBAABCAAuFiEE7v+35S2Q1vLNA3Lx86Z5yZzRHYEFAl8YzOAQHGhlaWtvQHNu dGVjaC5kZQAKCRDzpnnJnNEdgY9aB/0folCAovUA97bILQR/62PspVGR1i/S2GJe sQqKuWDyBtJNM3IYNVMd/AtcrP+U0ZD4MX6TKbabs+ZuIc4EksXRroMTMm2azme1 rOrQuGSKcdhPobJOHlpbSC/QPWWi5GGGWDnwXY8T68NedeYLP/o8sOmZQtUi80R9 ueP5ZwiviwMrVzRITPb8sB89WEyRqaas2H0fc/4OjGRY/jeTKwCk9sP/JytA6gUB /GXn+uUk5WcRkekujBi1LVi4BIhm7PMW9kM1AHWAV6+2Yd8uFyG4ut9MB7SmaQt8 QfEoPpLvQicpZCVB3VFOPJ38z4YuOXsqo85u8T3ZkgpLdInoa/J9 =GUhq -----END PGP SIGNATURE----- Merge tag 'v5.9-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/dt Biggest part is the addition of the rk3288 variant of the VMARC SOM and it's Rock Pi N8 icarnation. This brings some arm64 dts-changes with it as the underlying Dalang carrier board is shared by both an arm32 rk3288 SOM and an arm64 rk3399 SOM (Rock Pi N10). Other than that rk3288 gets its ohci node added that only works on the fixed rk3288w variant of the soc and some asorted fixes and improvements for dt-binding-check. * tag 'v5.9-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: arm64: dts: rockchip: Add PCIe for RockPI N10 ARM: dts: rockchip: Add HDMI out for RockPI N8/N10 ARM: dts: rockchip: Add USB for RockPI N8/N10 ARM: dts: rockchip: Add usb host0 ohci node for rk3288 ARM: dts: rockchip: Fix VBUS on rk3288-vyasa ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support ARM: dts: rockchip: Add VMARC RK3288 SOM initial support dt-bindings: arm: rockchip: Add Rock Pi N8 binding arm64: dts: rk3399pro: vmarc-som: Move common properties into Carrier arm64: dts: rk3399pro: vmarc-som: Move supply regulators into Carrier arm64: dts: rk3399pro: vmarc-som: Fix sorting nodes, properties ARM: dts: rockchip: dalang-carrier: Move i2c nodes into SOM ARM: dts: rockchip: Add 'arm,pl330-periph-burst' for dmac ARM: dts: rockchip: Add marvell BT irq config ARM: dts: rockchip: rename label and nodename pinctrl subnodes that end with gpio Link: https://lore.kernel.org/r/2472314.kD9Egx1jfM@phil Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
commit
3ed75c545d
@ -435,6 +435,12 @@ properties:
|
|||||||
- const: radxa,rockpi4
|
- const: radxa,rockpi4
|
||||||
- const: rockchip,rk3399
|
- const: rockchip,rk3399
|
||||||
|
|
||||||
|
- description: Radxa ROCK Pi N8
|
||||||
|
items:
|
||||||
|
- const: radxa,rockpi-n8
|
||||||
|
- const: vamrs,rk3288-vmarc-som
|
||||||
|
- const: rockchip,rk3288
|
||||||
|
|
||||||
- description: Radxa ROCK Pi N10
|
- description: Radxa ROCK Pi N10
|
||||||
items:
|
items:
|
||||||
- const: radxa,rockpi-n10
|
- const: radxa,rockpi-n10
|
||||||
|
@ -982,6 +982,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
|
|||||||
rk3288-popmetal.dtb \
|
rk3288-popmetal.dtb \
|
||||||
rk3288-r89.dtb \
|
rk3288-r89.dtb \
|
||||||
rk3288-rock2-square.dtb \
|
rk3288-rock2-square.dtb \
|
||||||
|
rk3288-rock-pi-n8.dtb \
|
||||||
rk3288-tinker.dtb \
|
rk3288-tinker.dtb \
|
||||||
rk3288-tinker-s.dtb \
|
rk3288-tinker-s.dtb \
|
||||||
rk3288-veyron-brain.dtb \
|
rk3288-veyron-brain.dtb \
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
arm,pl330-broken-no-flushp;
|
arm,pl330-broken-no-flushp;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMAC2>;
|
clocks = <&cru ACLK_DMAC2>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
};
|
};
|
||||||
|
@ -107,6 +107,7 @@
|
|||||||
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
|
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
|
||||||
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMAC>;
|
clocks = <&cru ACLK_DMAC>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
};
|
};
|
||||||
@ -520,9 +521,9 @@
|
|||||||
resets = <&cru SRST_TSADC>;
|
resets = <&cru SRST_TSADC>;
|
||||||
reset-names = "tsadc-apb";
|
reset-names = "tsadc-apb";
|
||||||
pinctrl-names = "init", "default", "sleep";
|
pinctrl-names = "init", "default", "sleep";
|
||||||
pinctrl-0 = <&otp_gpio>;
|
pinctrl-0 = <&otp_pin>;
|
||||||
pinctrl-1 = <&otp_out>;
|
pinctrl-1 = <&otp_out>;
|
||||||
pinctrl-2 = <&otp_gpio>;
|
pinctrl-2 = <&otp_pin>;
|
||||||
#thermal-sensor-cells = <0>;
|
#thermal-sensor-cells = <0>;
|
||||||
rockchip,hw-tshut-temp = <95000>;
|
rockchip,hw-tshut-temp = <95000>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
@ -1111,7 +1112,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
tsadc {
|
tsadc {
|
||||||
otp_gpio: otp-gpio {
|
otp_pin: otp-pin {
|
||||||
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
|
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
17
arch/arm/boot/dts/rk3288-rock-pi-n8.dts
Normal file
17
arch/arm/boot/dts/rk3288-rock-pi-n8.dts
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
|
||||||
|
* Copyright (c) 2019 Vamrs Limited
|
||||||
|
* Copyright (c) 2019 Amarula Solutions(India)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
#include "rk3288.dtsi"
|
||||||
|
#include <arm/rockchip-radxa-dalang-carrier.dtsi>
|
||||||
|
#include "rk3288-vmarc-som.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "Radxa ROCK Pi N8";
|
||||||
|
compatible = "radxa,rockpi-n8", "vamrs,rk3288-vmarc-som",
|
||||||
|
"rockchip,rk3288";
|
||||||
|
};
|
@ -44,10 +44,25 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&sdio0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
btmrvl: btmrvl@2 {
|
||||||
|
compatible = "marvell,sd8897-bt";
|
||||||
|
reg = <2>;
|
||||||
|
interrupt-parent = <&gpio4>;
|
||||||
|
interrupts = <RK_PD7 IRQ_TYPE_LEVEL_LOW>;
|
||||||
|
marvell,wakeup-pin = /bits/ 16 <13>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&bt_host_wake_l>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&sdmmc {
|
&sdmmc {
|
||||||
disable-wp;
|
disable-wp;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
|
||||||
&sdmmc_bus4>;
|
&sdmmc_bus4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@
|
|||||||
&sdmmc {
|
&sdmmc {
|
||||||
disable-wp;
|
disable-wp;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
|
||||||
&sdmmc_bus4>;
|
&sdmmc_bus4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&sdmmc {
|
&sdmmc {
|
||||||
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
|
||||||
&sdmmc_wp_gpio &sdmmc_bus4>;
|
&sdmmc_wp_pin &sdmmc_bus4>;
|
||||||
wp-gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>;
|
wp-gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>;
|
||||||
|
|
||||||
/delete-property/ disable-wp;
|
/delete-property/ disable-wp;
|
||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
sdmmc {
|
sdmmc {
|
||||||
sdmmc_wp_gpio: sdmmc-wp-gpio {
|
sdmmc_wp_pin: sdmmc-wp-pin {
|
||||||
rockchip,pins = <7 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
|
rockchip,pins = <7 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -114,7 +114,7 @@
|
|||||||
&sdmmc {
|
&sdmmc {
|
||||||
disable-wp;
|
disable-wp;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
|
||||||
&sdmmc_bus4>;
|
&sdmmc_bus4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
sdmmc {
|
sdmmc {
|
||||||
sdmmc_wp_gpio: sdmmc-wp-gpio {
|
sdmmc_wp_pin: sdmmc-wp-pin {
|
||||||
rockchip,pins = <7 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
|
rockchip,pins = <7 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -126,8 +126,8 @@
|
|||||||
|
|
||||||
&sdmmc {
|
&sdmmc {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
|
||||||
&sdmmc_wp_gpio &sdmmc_bus4>;
|
&sdmmc_wp_pin &sdmmc_bus4>;
|
||||||
wp-gpios = <&gpio7 RK_PB2 GPIO_ACTIVE_HIGH>;
|
wp-gpios = <&gpio7 RK_PB2 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* This is where we actually hook up CD */
|
/* This is where we actually hook up CD */
|
||||||
sdmmc_cd_gpio: sdmmc-cd-gpio {
|
sdmmc_cd_pin: sdmmc-cd-pin {
|
||||||
rockchip,pins = <7 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
|
rockchip,pins = <7 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
&sdmmc {
|
&sdmmc {
|
||||||
disable-wp;
|
disable-wp;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
|
||||||
&sdmmc_bus4>;
|
&sdmmc_bus4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
322
arch/arm/boot/dts/rk3288-vmarc-som.dtsi
Normal file
322
arch/arm/boot/dts/rk3288-vmarc-som.dtsi
Normal file
@ -0,0 +1,322 @@
|
|||||||
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
|
||||||
|
* Copyright (c) 2019 Vamrs Limited
|
||||||
|
* Copyright (c) 2019 Amarula Solutions(India)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <dt-bindings/pinctrl/rockchip.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "vamrs,rk3288-vmarc-som", "rockchip,rk3288";
|
||||||
|
|
||||||
|
vccio_flash: vccio-flash-regulator {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "vccio_flash";
|
||||||
|
regulator-min-microvolt = <1800000>;
|
||||||
|
regulator-max-microvolt = <1800000>;
|
||||||
|
vin-supply = <&vcc_io>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&emmc {
|
||||||
|
bus-width = <8>;
|
||||||
|
cap-mmc-highspeed;
|
||||||
|
disable-wp;
|
||||||
|
non-removable;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
|
||||||
|
vmmc-supply = <&vcc_io>;
|
||||||
|
vqmmc-supply = <&vccio_flash>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&gmac {
|
||||||
|
assigned-clocks = <&cru SCLK_MAC>;
|
||||||
|
phy-supply = <&vcc_io>;
|
||||||
|
snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
ddc-i2c-bus = <&i2c5>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&hdmi_cec_c0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c0 {
|
||||||
|
clock-frequency = <400000>;
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
rk808: pmic@1b {
|
||||||
|
compatible = "rockchip,rk808";
|
||||||
|
reg = <0x1b>;
|
||||||
|
interrupt-parent = <&gpio0>;
|
||||||
|
interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pmic_int &global_pwroff>;
|
||||||
|
rockchip,system-power-controller;
|
||||||
|
wakeup-source;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
||||||
|
|
||||||
|
vcc1-supply = <&vcc5v0_sys>;
|
||||||
|
vcc2-supply = <&vcc5v0_sys>;
|
||||||
|
vcc3-supply = <&vcc5v0_sys>;
|
||||||
|
vcc4-supply = <&vcc5v0_sys>;
|
||||||
|
vcc6-supply = <&vcc5v0_sys>;
|
||||||
|
vcc7-supply = <&vcc5v0_sys>;
|
||||||
|
vcc8-supply = <&vcc_io>;
|
||||||
|
vcc9-supply = <&vcc_io>;
|
||||||
|
vcc10-supply = <&vcc5v0_sys>;
|
||||||
|
vcc11-supply = <&vcc5v0_sys>;
|
||||||
|
vcc12-supply = <&vcc_io>;
|
||||||
|
vddio-supply = <&vcc_io>;
|
||||||
|
|
||||||
|
regulators {
|
||||||
|
vdd_cpu: DCDC_REG1 {
|
||||||
|
regulator-name = "vdd_arm";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <750000>;
|
||||||
|
regulator-max-microvolt = <1400000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-off-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vdd_gpu: DCDC_REG2 {
|
||||||
|
regulator-name = "vdd_gpu";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <850000>;
|
||||||
|
regulator-max-microvolt = <1250000>;
|
||||||
|
regulator-ramp-delay = <6000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-off-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc_ddr: DCDC_REG3 {
|
||||||
|
regulator-name = "vcc_ddr";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-on-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc_io: DCDC_REG4 {
|
||||||
|
regulator-name = "vcc_io";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-on-in-suspend;
|
||||||
|
regulator-suspend-microvolt = <3300000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc_tp: LDO_REG1 {
|
||||||
|
regulator-name = "vcc_tp";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-off-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcca_codec: LDO_REG2 {
|
||||||
|
regulator-name = "vcca_codec";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-on-in-suspend;
|
||||||
|
regulator-suspend-microvolt = <3300000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vdd_10: LDO_REG3 {
|
||||||
|
regulator-name = "vdd_10";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <1000000>;
|
||||||
|
regulator-max-microvolt = <1000000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-on-in-suspend;
|
||||||
|
regulator-suspend-microvolt = <1000000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc_wl: LDO_REG4 {
|
||||||
|
regulator-name = "vcc_wl";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <1800000>;
|
||||||
|
regulator-max-microvolt = <1800000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-on-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vccio_sd: LDO_REG5 {
|
||||||
|
regulator-name = "vccio_sd";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <1800000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-on-in-suspend;
|
||||||
|
regulator-suspend-microvolt = <3300000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vdd10_lcd: LDO_REG6 {
|
||||||
|
regulator-name = "vdd10_lcd";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <1000000>;
|
||||||
|
regulator-max-microvolt = <1000000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-off-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc_18: LDO_REG7 {
|
||||||
|
regulator-name = "vcc_18";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <1800000>;
|
||||||
|
regulator-max-microvolt = <1800000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-on-in-suspend;
|
||||||
|
regulator-suspend-microvolt = <1800000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc18_lcd: LDO_REG8 {
|
||||||
|
regulator-name = "vcc18_lcd";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <1800000>;
|
||||||
|
regulator-max-microvolt = <1800000>;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-off-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc_sd: SWITCH_REG1 {
|
||||||
|
regulator-name = "vcc_sd";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-off-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc_lcd: SWITCH_REG2 {
|
||||||
|
regulator-name = "vcc_lcd";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-state-mem {
|
||||||
|
regulator-off-in-suspend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c5 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&io_domains {
|
||||||
|
bb-supply = <&vcc_io>;
|
||||||
|
flash0-supply = <&vccio_flash>;
|
||||||
|
gpio1830-supply = <&vcc_18>;
|
||||||
|
gpio30-supply = <&vcc_io>;
|
||||||
|
sdcard-supply = <&vccio_sd>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pinctrl {
|
||||||
|
pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
|
||||||
|
drive-strength = <8>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
|
||||||
|
bias-pull-up;
|
||||||
|
drive-strength = <8>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pmic {
|
||||||
|
pmic_int: pmic-int {
|
||||||
|
rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sdmmc {
|
||||||
|
sdmmc_bus4: sdmmc-bus4 {
|
||||||
|
rockchip,pins =
|
||||||
|
<6 RK_PC0 1 &pcfg_pull_up_drv_8ma>,
|
||||||
|
<6 RK_PC1 1 &pcfg_pull_up_drv_8ma>,
|
||||||
|
<6 RK_PC2 1 &pcfg_pull_up_drv_8ma>,
|
||||||
|
<6 RK_PC3 1 &pcfg_pull_up_drv_8ma>;
|
||||||
|
};
|
||||||
|
|
||||||
|
sdmmc_clk: sdmmc-clk {
|
||||||
|
rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>;
|
||||||
|
};
|
||||||
|
|
||||||
|
sdmmc_cmd: sdmmc-cmd {
|
||||||
|
rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vbus_host {
|
||||||
|
usb1_en_oc: usb1-en-oc {
|
||||||
|
rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vbus_typec {
|
||||||
|
usb0_en_oc: usb0-en-oc {
|
||||||
|
rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbphy {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_host0_ehci {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_host0_ohci {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_host1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_otg {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&vbus_host {
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; /* USB1_EN_OC# */
|
||||||
|
};
|
||||||
|
|
||||||
|
&vbus_typec {
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; /* USB0_EN_OC# */
|
||||||
|
};
|
@ -99,8 +99,6 @@
|
|||||||
pinctrl-0 = <&otg_vbus_drv>;
|
pinctrl-0 = <&otg_vbus_drv>;
|
||||||
regulator-min-microvolt = <5000000>;
|
regulator-min-microvolt = <5000000>;
|
||||||
regulator-max-microvolt = <5000000>;
|
regulator-max-microvolt = <5000000>;
|
||||||
regulator-always-on;
|
|
||||||
regulator-boot-on;
|
|
||||||
vin-supply = <&vsus_5v>;
|
vin-supply = <&vsus_5v>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -416,6 +414,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&usb_otg {
|
&usb_otg {
|
||||||
|
vbus-supply = <&vusb1_5v>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -167,6 +167,7 @@
|
|||||||
<GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
<GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
arm,pl330-broken-no-flushp;
|
arm,pl330-broken-no-flushp;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMAC2>;
|
clocks = <&cru ACLK_DMAC2>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
};
|
};
|
||||||
@ -178,6 +179,7 @@
|
|||||||
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
arm,pl330-broken-no-flushp;
|
arm,pl330-broken-no-flushp;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMAC1>;
|
clocks = <&cru ACLK_DMAC1>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
@ -190,6 +192,7 @@
|
|||||||
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
arm,pl330-broken-no-flushp;
|
arm,pl330-broken-no-flushp;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMAC1>;
|
clocks = <&cru ACLK_DMAC1>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
};
|
};
|
||||||
@ -574,9 +577,9 @@
|
|||||||
resets = <&cru SRST_TSADC>;
|
resets = <&cru SRST_TSADC>;
|
||||||
reset-names = "tsadc-apb";
|
reset-names = "tsadc-apb";
|
||||||
pinctrl-names = "init", "default", "sleep";
|
pinctrl-names = "init", "default", "sleep";
|
||||||
pinctrl-0 = <&otp_gpio>;
|
pinctrl-0 = <&otp_pin>;
|
||||||
pinctrl-1 = <&otp_out>;
|
pinctrl-1 = <&otp_out>;
|
||||||
pinctrl-2 = <&otp_gpio>;
|
pinctrl-2 = <&otp_pin>;
|
||||||
#thermal-sensor-cells = <1>;
|
#thermal-sensor-cells = <1>;
|
||||||
rockchip,grf = <&grf>;
|
rockchip,grf = <&grf>;
|
||||||
rockchip,hw-tshut-temp = <95000>;
|
rockchip,hw-tshut-temp = <95000>;
|
||||||
@ -613,7 +616,16 @@
|
|||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
/* NOTE: ohci@ff520000 doesn't actually work on hardware */
|
/* NOTE: doesn't work on RK3288, but was fixed on RK3288W */
|
||||||
|
usb_host0_ohci: usb@ff520000 {
|
||||||
|
compatible = "generic-ohci";
|
||||||
|
reg = <0x0 0xff520000 0x0 0x100>;
|
||||||
|
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
clocks = <&cru HCLK_USBHOST0>;
|
||||||
|
phys = <&usbphy1>;
|
||||||
|
phy-names = "usb";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
usb_host1: usb@ff540000 {
|
usb_host1: usb@ff540000 {
|
||||||
compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb",
|
compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb",
|
||||||
@ -1929,7 +1941,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
tsadc {
|
tsadc {
|
||||||
otp_gpio: otp-gpio {
|
otp_pin: otp-pin {
|
||||||
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
|
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
arm,pl330-broken-no-flushp;
|
arm,pl330-broken-no-flushp;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMA1>;
|
clocks = <&cru ACLK_DMA1>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
};
|
};
|
||||||
@ -56,6 +57,7 @@
|
|||||||
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
arm,pl330-broken-no-flushp;
|
arm,pl330-broken-no-flushp;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMA1>;
|
clocks = <&cru ACLK_DMA1>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
@ -68,6 +70,7 @@
|
|||||||
<GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
<GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
arm,pl330-broken-no-flushp;
|
arm,pl330-broken-no-flushp;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMA2>;
|
clocks = <&cru ACLK_DMA2>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
};
|
};
|
||||||
|
@ -8,36 +8,66 @@
|
|||||||
#include <dt-bindings/pwm/pwm.h>
|
#include <dt-bindings/pwm/pwm.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
chosen {
|
clkin_gmac: external-gmac-clock {
|
||||||
stdout-path = "serial2:1500000n8";
|
compatible = "fixed-clock";
|
||||||
|
clock-frequency = <125000000>;
|
||||||
|
clock-output-names = "clkin_gmac";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc12v_dcin: vcc12v-dcin-regulator {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "vcc12v_dcin";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <12000000>;
|
||||||
|
regulator-max-microvolt = <12000000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc5v0_sys: vcc5v0-sys-regulator {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "vcc5v0_sys";
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-min-microvolt = <5000000>;
|
||||||
|
regulator-max-microvolt = <5000000>;
|
||||||
|
vin-supply = <&vcc12v_dcin>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vbus_host: vbus-host {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&usb1_en_oc>;
|
||||||
|
regulator-name = "vbus_host"; /* HOST-5V */
|
||||||
|
regulator-always-on;
|
||||||
|
vin-supply = <&vcc5v0_sys>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vbus_typec: vbus-typec {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&usb0_en_oc>;
|
||||||
|
regulator-name = "vbus_typec";
|
||||||
|
regulator-always-on;
|
||||||
|
vin-supply = <&vcc5v0_sys>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac {
|
&gmac {
|
||||||
|
assigned-clock-parents = <&clkin_gmac>;
|
||||||
|
clock_in_out = "input";
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&rgmii_pins>;
|
||||||
|
snps,reset-active-low;
|
||||||
|
snps,reset-delays-us = <0 10000 50000>;
|
||||||
|
tx_delay = <0x28>;
|
||||||
|
rx_delay = <0x11>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c1 {
|
&hdmi {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
i2c-scl-rising-time-ns = <140>;
|
|
||||||
i2c-scl-falling-time-ns = <30>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c2 {
|
|
||||||
status = "okay";
|
|
||||||
clock-frequency = <400000>;
|
|
||||||
|
|
||||||
hym8563: hym8563@51 {
|
|
||||||
compatible = "haoyu,hym8563";
|
|
||||||
reg = <0x51>;
|
|
||||||
#clock-cells = <0>;
|
|
||||||
clock-frequency = <32768>;
|
|
||||||
clock-output-names = "hym8563";
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&hym8563_int>;
|
|
||||||
interrupt-parent = <&gpio4>;
|
|
||||||
interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&pwm0 {
|
&pwm0 {
|
||||||
@ -52,10 +82,8 @@
|
|||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cap-mmc-highspeed;
|
cap-mmc-highspeed;
|
||||||
cap-sd-highspeed;
|
cap-sd-highspeed;
|
||||||
cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
|
|
||||||
disable-wp;
|
disable-wp;
|
||||||
vqmmc-supply = <&vccio_sd>;
|
vqmmc-supply = <&vccio_sd>;
|
||||||
max-frequency = <150000000>;
|
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
@ -71,11 +99,18 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&vopb {
|
||||||
hym8563 {
|
status = "okay";
|
||||||
hym8563_int: hym8563-int {
|
};
|
||||||
rockchip,pins =
|
|
||||||
<4 RK_PD6 0 &pcfg_pull_up>;
|
&vopb_mmu {
|
||||||
};
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&vopl {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&vopl_mmu {
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -97,6 +97,7 @@
|
|||||||
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
#dma-cells = <1>;
|
#dma-cells = <1>;
|
||||||
arm,pl330-broken-no-flushp;
|
arm,pl330-broken-no-flushp;
|
||||||
|
arm,pl330-periph-burst;
|
||||||
clocks = <&cru ACLK_DMAC>;
|
clocks = <&cru ACLK_DMAC>;
|
||||||
clock-names = "apb_pclk";
|
clock-names = "apb_pclk";
|
||||||
};
|
};
|
||||||
@ -351,9 +352,9 @@
|
|||||||
clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
|
clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
|
||||||
clock-names = "tsadc", "apb_pclk";
|
clock-names = "tsadc", "apb_pclk";
|
||||||
pinctrl-names = "init", "default", "sleep";
|
pinctrl-names = "init", "default", "sleep";
|
||||||
pinctrl-0 = <&otp_gpio>;
|
pinctrl-0 = <&otp_pin>;
|
||||||
pinctrl-1 = <&otp_out>;
|
pinctrl-1 = <&otp_out>;
|
||||||
pinctrl-2 = <&otp_gpio>;
|
pinctrl-2 = <&otp_pin>;
|
||||||
resets = <&cru SRST_TSADC>;
|
resets = <&cru SRST_TSADC>;
|
||||||
reset-names = "tsadc-apb";
|
reset-names = "tsadc-apb";
|
||||||
rockchip,hw-tshut-temp = <120000>;
|
rockchip,hw-tshut-temp = <120000>;
|
||||||
@ -728,7 +729,7 @@
|
|||||||
<0 RK_PC6 3 &pcfg_pull_none>;
|
<0 RK_PC6 3 &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
|
|
||||||
i2c2m1_gpio: i2c2m1-gpio {
|
i2c2m1_pins: i2c2m1-pins {
|
||||||
rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,
|
rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,
|
||||||
<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
@ -740,7 +741,7 @@
|
|||||||
<1 RK_PD4 2 &pcfg_pull_none>;
|
<1 RK_PD4 2 &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
|
|
||||||
i2c2m05v_gpio: i2c2m05v-gpio {
|
i2c2m05v_pins: i2c2m05v-pins {
|
||||||
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
|
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
|
||||||
<1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
|
<1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
@ -867,7 +868,7 @@
|
|||||||
rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>;
|
rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
|
|
||||||
otp_gpio: otp-gpio {
|
otp_pin: otp-pin {
|
||||||
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
|
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -886,7 +887,7 @@
|
|||||||
rockchip,pins = <3 RK_PA3 1 &pcfg_pull_none>;
|
rockchip,pins = <3 RK_PA3 1 &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
|
|
||||||
uart0_rts_gpio: uart0-rts-gpio {
|
uart0_rts_pin: uart0-rts-pin {
|
||||||
rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
|
rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -8,11 +8,15 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include "rk3399.dtsi"
|
#include "rk3399.dtsi"
|
||||||
#include "rk3399-opp.dtsi"
|
#include "rk3399-opp.dtsi"
|
||||||
#include "rk3399pro-vmarc-som.dtsi"
|
|
||||||
#include <arm/rockchip-radxa-dalang-carrier.dtsi>
|
#include <arm/rockchip-radxa-dalang-carrier.dtsi>
|
||||||
|
#include "rk3399pro-vmarc-som.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Radxa ROCK Pi N10";
|
model = "Radxa ROCK Pi N10";
|
||||||
compatible = "radxa,rockpi-n10", "vamrs,rk3399pro-vmarc-som",
|
compatible = "radxa,rockpi-n10", "vamrs,rk3399pro-vmarc-som",
|
||||||
"rockchip,rk3399pro";
|
"rockchip,rk3399pro";
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
stdout-path = "serial2:1500000n8";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
@ -12,30 +12,16 @@
|
|||||||
/ {
|
/ {
|
||||||
compatible = "vamrs,rk3399pro-vmarc-som", "rockchip,rk3399pro";
|
compatible = "vamrs,rk3399pro-vmarc-som", "rockchip,rk3399pro";
|
||||||
|
|
||||||
clkin_gmac: external-gmac-clock {
|
vcc3v3_pcie: vcc-pcie-regulator {
|
||||||
compatible = "fixed-clock";
|
|
||||||
clock-frequency = <125000000>;
|
|
||||||
clock-output-names = "clkin_gmac";
|
|
||||||
#clock-cells = <0>;
|
|
||||||
};
|
|
||||||
|
|
||||||
vcc12v_dcin: vcc12v-dcin-regulator {
|
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vcc12v_dcin";
|
enable-active-high;
|
||||||
|
gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pcie_pwr>;
|
||||||
|
regulator-name = "vcc3v3_pcie";
|
||||||
regulator-always-on;
|
regulator-always-on;
|
||||||
regulator-boot-on;
|
regulator-boot-on;
|
||||||
regulator-min-microvolt = <12000000>;
|
vin-supply = <&vcc5v0_sys>;
|
||||||
regulator-max-microvolt = <12000000>;
|
|
||||||
};
|
|
||||||
|
|
||||||
vcc5v0_sys: vcc5v0-sys-regulator {
|
|
||||||
compatible = "regulator-fixed";
|
|
||||||
regulator-name = "vcc5v0_sys";
|
|
||||||
regulator-always-on;
|
|
||||||
regulator-boot-on;
|
|
||||||
regulator-min-microvolt = <5000000>;
|
|
||||||
regulator-max-microvolt = <5000000>;
|
|
||||||
vin-supply = <&vcc12v_dcin>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -61,23 +47,20 @@
|
|||||||
|
|
||||||
&gmac {
|
&gmac {
|
||||||
assigned-clocks = <&cru SCLK_RMII_SRC>;
|
assigned-clocks = <&cru SCLK_RMII_SRC>;
|
||||||
assigned-clock-parents = <&clkin_gmac>;
|
|
||||||
clock_in_out = "input";
|
|
||||||
phy-supply = <&vcc_lan>;
|
phy-supply = <&vcc_lan>;
|
||||||
phy-mode = "rgmii";
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&rgmii_pins>;
|
|
||||||
snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
|
snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
|
||||||
snps,reset-active-low;
|
};
|
||||||
snps,reset-delays-us = <0 10000 50000>;
|
|
||||||
tx_delay = <0x28>;
|
&hdmi {
|
||||||
rx_delay = <0x11>;
|
ddc-i2c-bus = <&i2c3>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&hdmi_cec>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c0 {
|
&i2c0 {
|
||||||
clock-frequency = <400000>;
|
clock-frequency = <400000>;
|
||||||
i2c-scl-rising-time-ns = <180>;
|
|
||||||
i2c-scl-falling-time-ns = <30>;
|
i2c-scl-falling-time-ns = <30>;
|
||||||
|
i2c-scl-rising-time-ns = <180>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
rk809: pmic@20 {
|
rk809: pmic@20 {
|
||||||
@ -171,7 +154,8 @@
|
|||||||
regulator-min-microvolt = <900000>;
|
regulator-min-microvolt = <900000>;
|
||||||
regulator-max-microvolt = <900000>;
|
regulator-max-microvolt = <900000>;
|
||||||
regulator-state-mem {
|
regulator-state-mem {
|
||||||
regulator-off-in-suspend;
|
regulator-on-in-suspend;
|
||||||
|
regulator-suspend-microvolt = <900000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -206,7 +190,8 @@
|
|||||||
regulator-min-microvolt = <1850000>;
|
regulator-min-microvolt = <1850000>;
|
||||||
regulator-max-microvolt = <1850000>;
|
regulator-max-microvolt = <1850000>;
|
||||||
regulator-state-mem {
|
regulator-state-mem {
|
||||||
regulator-off-in-suspend;
|
regulator-on-in-suspend;
|
||||||
|
regulator-suspend-microvolt = <1850000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -297,11 +282,88 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2c1 {
|
||||||
|
i2c-scl-falling-time-ns = <30>;
|
||||||
|
i2c-scl-rising-time-ns = <140>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c2 {
|
||||||
|
clock-frequency = <400000>;
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
hym8563: hym8563@51 {
|
||||||
|
compatible = "haoyu,hym8563";
|
||||||
|
reg = <0x51>;
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <32768>;
|
||||||
|
clock-output-names = "hym8563";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&hym8563_int>;
|
||||||
|
interrupt-parent = <&gpio4>;
|
||||||
|
interrupts = <RK_PD6 IRQ_TYPE_LEVEL_LOW>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c3 {
|
||||||
|
i2c-scl-rising-time-ns = <450>;
|
||||||
|
i2c-scl-falling-time-ns = <15>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&io_domains {
|
&io_domains {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
bt656-supply = <&vcca_1v8>;
|
bt656-supply = <&vcca_1v8>;
|
||||||
sdmmc-supply = <&vccio_sd>;
|
|
||||||
gpio1830-supply = <&vccio_3v0>;
|
gpio1830-supply = <&vccio_3v0>;
|
||||||
|
sdmmc-supply = <&vccio_sd>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie_phy {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie0 {
|
||||||
|
ep-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||||
|
max-link-speed = <2>;
|
||||||
|
num-lanes = <4>;
|
||||||
|
pinctrl-0 = <&pcie_clkreqnb_cpm>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
vpcie0v9-supply = <&vcca_0v9>; /* VCC_0V9_S0 */
|
||||||
|
vpcie1v8-supply = <&vcca_1v8>; /* VCC_1V8_S0 */
|
||||||
|
vpcie3v3-supply = <&vcc3v3_pcie>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pinctrl {
|
||||||
|
hym8563 {
|
||||||
|
hym8563_int: hym8563-int {
|
||||||
|
rockchip,pins = <4 RK_PD6 0 &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pcie {
|
||||||
|
pcie_pwr: pcie-pwr {
|
||||||
|
rockchip,pins = <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pmic {
|
||||||
|
pmic_int_l: pmic-int-l {
|
||||||
|
rockchip,pins = <1 RK_PC2 0 &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vbus_host {
|
||||||
|
usb1_en_oc: usb1-en-oc {
|
||||||
|
rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
vbus_typec {
|
||||||
|
usb0_en_oc: usb0-en-oc {
|
||||||
|
rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&pmu_io_domains {
|
&pmu_io_domains {
|
||||||
@ -317,17 +379,79 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&tsadc {
|
&sdmmc {
|
||||||
status = "okay";
|
cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
|
||||||
rockchip,hw-tshut-mode = <1>;
|
max-frequency = <150000000>;
|
||||||
rockchip,hw-tshut-polarity = <1>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&tcphy0 {
|
||||||
pmic {
|
status = "okay";
|
||||||
pmic_int_l: pmic-int-l {
|
};
|
||||||
rockchip,pins =
|
|
||||||
<1 RK_PC2 0 &pcfg_pull_up>;
|
&tsadc {
|
||||||
};
|
rockchip,hw-tshut-mode = <1>;
|
||||||
|
rockchip,hw-tshut-polarity = <1>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&u2phy0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
u2phy0_otg: otg-port {
|
||||||
|
phy-supply = <&vbus_typec>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
u2phy0_host: host-port {
|
||||||
|
phy-supply = <&vbus_host>;
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
&u2phy1 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
u2phy1_host: host-port {
|
||||||
|
phy-supply = <&vbus_host>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_host0_ehci {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_host0_ohci {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_host1_ehci {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_host1_ohci {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbdrd3_0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbdrd_dwc3_0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&vbus_host {
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; /* USB1_EN_OC# */
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&usb1_en_oc>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&vbus_typec {
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; /* USB0_EN_OC# */
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&usb0_en_oc>;
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user