1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
1.9 KiB

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd.
* (http://www.friendlyarm.com)
*/
/dts-v1/;
#include <dt-bindings/sensor-dev.h>
#include "rk3399-nanopi4-common.dtsi"
/ {
model = "FriendlyElec SOM-RK3399";
compatible = "friendlyelec,som-rk3399", "rockchip,rk3399";
hdmiin-sound {
compatible = "rockchip,rockchip-rt5651-sound";
rockchip,cpu = <&i2s1>;
rockchip,codec = <&rt5651 &rt5651>;
pinctrl-names = "default";
pinctrl-0 = <&hp_det>;
status = "okay";
};
};
&mach {
hwrev = <6>;
model = "SOM-RK3399";
};
&i2c2 {
sensor@23 {
compatible = "light_bh1750";
reg = <0x23>;
status = "okay";
type = <SENSOR_TYPE_LIGHT>;
poll_delay_ms = <64>;
};
};
&i2c3 {
status = "okay";
i2c-scl-rising-time-ns = <160>;
i2c-scl-falling-time-ns = <30>;
clock-frequency = <400000>;
sensor@18 {
status = "okay";
compatible = "gs_lis3dh";
reg = <0x18>;
type = <SENSOR_TYPE_ACCEL>;
irq-gpio = <&gpio1 22 IRQ_TYPE_LEVEL_LOW>;
irq_enable = <0>;
poll_delay_ms = <64>;
layout = <2>;
reprobe_en = <1>;
};
};
&i2s1 {
status = "okay";
rockchip,playback-channels = <2>;
rockchip,capture-channels = <2>;
#sound-dai-cells = <0>;
};
&pcie0 {
ep-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pcie_gpios>;
num-lanes = <4>;
max-link-speed = <2>;
};
&rt5651_card {
status = "disabled";
simple-audio-card,cpu {
sound-dai = <&i2s1>;
};
};
&tc358749x {
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "HDMIIN";
rockchip,camera-module-lens-name = "NA";
status = "okay";
};
&mipi_in_ucam0c {
status = "okay";
};
&pinctrl {
hdmiin {
hdmiin_gpios: hdmiin-gpios {
rockchip,pins =
<1 0 RK_FUNC_GPIO &pcfg_output_high>,
<2 6 RK_FUNC_GPIO &pcfg_output_high>,
<2 5 RK_FUNC_GPIO &pcfg_output_high>,
<0 2 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};