206 lines
3.4 KiB
Plaintext
206 lines
3.4 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
chosen {
|
|
bootargs = "earlycon=uart8250,mmio32,0x20540000 console=ttyFIQ0 root=/dev/mmcblk0p5 rootfstype=ext4 rootwait snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=32K";
|
|
};
|
|
|
|
acodec_sound: acodec-sound {
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "rv1103b-acodec";
|
|
simple-audio-card,format = "i2s";
|
|
simple-audio-card,mclk-fs = <256>;
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&sai>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&acodec>;
|
|
};
|
|
};
|
|
|
|
adc-keys {
|
|
compatible = "adc-keys";
|
|
io-channels = <&saradc 0>;
|
|
io-channel-names = "buttons";
|
|
poll-interval = <100>;
|
|
keyup-threshold-microvolt = <1800000>;
|
|
|
|
key_volumeup-key {
|
|
label = "key_volumeup";
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
press-threshold-microvolt = <0>;
|
|
};
|
|
|
|
key_volumedown-key {
|
|
label = "key_volumedown";
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
press-threshold-microvolt = <400781>;
|
|
};
|
|
};
|
|
|
|
restart-poweroff {
|
|
compatible = "restart-poweroff";
|
|
};
|
|
|
|
vcc_sys: vcc-sys {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
vcc_1v8: vcc-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_sys>;
|
|
};
|
|
|
|
vcc_3v3: vcc-3v3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_3v3";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_sys>;
|
|
};
|
|
|
|
vdd_logic: vdd-logic {
|
|
compatible = "pwm-regulator";
|
|
pwms = <&pwm0_4ch_3 0 5000 1>;
|
|
regulator-name = "vdd_logic";
|
|
regulator-min-microvolt = <810000>;
|
|
regulator-max-microvolt = <1006000>;
|
|
regulator-init-microvolt = <900000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-settling-time-up-us = <250>;
|
|
pwm-supply = <&vcc_sys>;
|
|
};
|
|
|
|
vdd_npu: vdd_arm: vdd-arm {
|
|
compatible = "pwm-regulator";
|
|
pwms = <&pwm0_4ch_0 0 5000 1>;
|
|
regulator-name = "vdd_arm";
|
|
regulator-min-microvolt = <717000>;
|
|
regulator-max-microvolt = <1102000>;
|
|
regulator-init-microvolt = <950000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-settling-time-up-us = <250>;
|
|
pwm-supply = <&vcc_sys>;
|
|
};
|
|
};
|
|
|
|
&acodec {
|
|
status = "okay";
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu-supply = <&vdd_arm>;
|
|
};
|
|
|
|
&emmc {
|
|
bus-width = <4>;
|
|
cap-mmc-highspeed;
|
|
non-removable;
|
|
mmc-hs200-1_8v;
|
|
rockchip,default-sample-phase = <90>;
|
|
no-sdio;
|
|
no-sd;
|
|
status = "okay";
|
|
};
|
|
|
|
&fiq_debugger {
|
|
rockchip,irq-mode-enable = <1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&gmac {
|
|
status = "okay";
|
|
};
|
|
|
|
&mpp_srv {
|
|
status = "okay";
|
|
};
|
|
|
|
&mpp_vcodec {
|
|
status = "okay";
|
|
};
|
|
|
|
&npu {
|
|
rknpu-supply = <&vdd_npu>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm0_4ch_0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm0_4ch_3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rga2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkdvbm {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc {
|
|
status = "okay";
|
|
};
|
|
|
|
&rmii_phy {
|
|
bgs,increment = <0>;
|
|
};
|
|
|
|
&rng {
|
|
status = "okay";
|
|
};
|
|
|
|
&rtc {
|
|
status = "okay";
|
|
};
|
|
|
|
&sai {
|
|
status = "okay";
|
|
};
|
|
|
|
&saradc{
|
|
status = "okay";
|
|
vref-supply = <&vcc_1v8>;
|
|
};
|
|
|
|
&tsadc {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy_otg {
|
|
rockchip,vbus-always-on;
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd_dwc3 {
|
|
extcon = <&u2phy>;
|
|
status = "okay";
|
|
};
|