261 lines
5.0 KiB
Plaintext
261 lines
5.0 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
|
*
|
|
*/
|
|
|
|
#include "rk3576-industry.dtsi"
|
|
#include "rk3576-rk806.dtsi"
|
|
|
|
/ {
|
|
es8316_sound: es8316-sound {
|
|
status = "okay";
|
|
compatible = "rockchip,multicodecs-card";
|
|
rockchip,card-name = "rockchip-es8316";
|
|
rockchip,format = "i2s";
|
|
rockchip,mclk-fs = <256>;
|
|
rockchip,cpu = <&sai2>;
|
|
rockchip,codec = <&es8316>;
|
|
};
|
|
|
|
user-keys {
|
|
compatible = "adc-keys";
|
|
io-channels = <&saradc 3>;
|
|
io-channel-names = "buttons";
|
|
keyup-threshold-microvolt = <1800000>;
|
|
poll-interval = <100>;
|
|
|
|
menu-key {
|
|
label = "menu";
|
|
linux,code = <KEY_MENU>;
|
|
press-threshold-microvolt = <17000>;
|
|
};
|
|
};
|
|
|
|
vcc_3v3_s0: vcc-3v3-s0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_3v3_s0";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_3v3_s3>;
|
|
};
|
|
|
|
vcc3v3_lcd_n: vcc3v3-lcd0-n {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_lcd0_n";
|
|
regulator-boot-on;
|
|
enable-active-high;
|
|
gpio = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc_3v3_s0>;
|
|
};
|
|
|
|
vcc3v3_hubreset: vcc3v3-hubreset {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_hubreset";
|
|
enable-active-high;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc_3v3_s3>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb_hub_rst>;
|
|
};
|
|
|
|
vcc3v3_pcie: gpio-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_pcie";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
enable-active-high;
|
|
gpio = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
startup-delay-us = <5000>;
|
|
vin-supply = <&vcc12v_dcin>;
|
|
};
|
|
|
|
vcc5v0_host: vcc5v0-host {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_host";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc5v0_device>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb_host_pwren>;
|
|
};
|
|
|
|
vbus5v0_typec: vbus5v0-typec {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vbus5v0_typec";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc5v0_device>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb_otg0_pwren>;
|
|
};
|
|
};
|
|
|
|
/*
|
|
* mipidcphy0 needs to be enabled
|
|
* when dsi is enabled
|
|
*/
|
|
&dsi {
|
|
status = "okay";
|
|
};
|
|
|
|
&dsi_panel {
|
|
power-supply = <&vcc3v3_lcd_n>;
|
|
};
|
|
|
|
>1x {
|
|
status = "okay";
|
|
power-supply = <&vcc3v3_lcd_n>;
|
|
};
|
|
|
|
&hdmi {
|
|
status = "okay";
|
|
enable-gpios = <&gpio0 RK_PD1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
&hdmi_in_vp0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&hdptxphy_hdmi {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c3 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c3m1_xfer>;
|
|
|
|
es8316: es8316@10 {
|
|
status = "okay";
|
|
#sound-dai-cells = <0>;
|
|
compatible = "everest,es8316";
|
|
reg = <0x10>;
|
|
clocks = <&mclkout_sai2>;
|
|
clock-names = "mclk";
|
|
assigned-clocks = <&mclkout_sai2>;
|
|
assigned-clock-rates = <12288000>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sai2m0_mclk>;
|
|
};
|
|
|
|
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 = <&gpio1>;
|
|
interrupts = <RK_PC2 IRQ_TYPE_LEVEL_LOW>;
|
|
wakeup-source;
|
|
};
|
|
};
|
|
|
|
&mipidcphy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie0 {
|
|
reset-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
|
|
vpcie3v3-supply = <&vcc3v3_pcie>;
|
|
prsnt-gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pinctrl {
|
|
hym8563 {
|
|
hym8563_int: hym8563-int {
|
|
rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
usb {
|
|
usb_hub_rst: usb-hub-rst {
|
|
rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
usb_host_pwren: usb-host-pwren {
|
|
rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
usb_otg0_pwren: usb-otg0-pwren {
|
|
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&route_dsi {
|
|
status = "okay";
|
|
};
|
|
|
|
&route_hdmi {
|
|
status = "okay";
|
|
connect = <&vp0_out_hdmi>;
|
|
};
|
|
|
|
&sai2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy0_otg {
|
|
vbus-supply = <&vbus5v0_typec>;
|
|
};
|
|
|
|
&u2phy1_otg {
|
|
phy-supply = <&vcc5v0_host>;
|
|
};
|
|
|
|
&uart1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart1m0_xfer &uart1m0_rtsn>;
|
|
linux,rs485-enabled-at-boot-time;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart3 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart3m2_xfer &uart3m2_ctsn &uart3m2_rtsn>;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart5 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart5m1_xfer>;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart8 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart8m2_xfer>;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart10 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart10m2_xfer>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_drd0_dwc3 {
|
|
dr_mode = "otg";
|
|
extcon = <&u2phy0>;
|
|
snps,usb2-lpm-disable;
|
|
};
|
|
|
|
&usb_drd1_dwc3 {
|
|
dr_mode = "host";
|
|
status = "okay";
|
|
};
|