rk3399pro-firefly-port.dtsi———分析ノート
12355 ワード
Property Name
Usage
Value Type
Definition
R
Specifies the number of
R
Specifies the number of
R
Specifies a string that uniquely identifies the model of the system board. The recommended format is “manufacturer,model-number”.
R
Specifies a list of platform architectures with which this platform is compatible. This property can be used by operating systems in selecting platform specific code. The recommended form of the property value is:
Usage legend: R=Required, O=Optional, OR=Optional but Recommended, SD=See Definition
Usage
Value Type
Definition
#address-cells
R
Specifies the number of
cells to represent the address in the reg
property in children of root. #size-cells
R
Specifies the number of
cells to represent the size in the reg
property in children of root. model
R
Specifies a string that uniquely identifies the model of the system board. The recommended format is “manufacturer,model-number”.
compatible
R
Specifies a list of platform architectures with which this platform is compatible. This property can be used by operating systems in selecting platform specific code. The recommended form of the property value is:
"manufacturer,model"
For example: compatible = "fsl,mpc8572ds"
Usage legend: R=Required, O=Optional, OR=Optional but Recommended, SD=See Definition
#include "rk3399pro-firefly-core.dtsi"
/ {
model = "Rockchip RK3399pro evb v11 board";
compatible = "rockchip,rk3399pro-firefly-port", "rockchip,rk3399pro";
rk809-sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "rockchip,rk809-codec";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,widgets =
"Microphone", "Mic Jack",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"Mic Jack", "MICBIAS1",
"IN1P", "Mic Jack",
"Headphone Jack", "HPOL",
"Headphone Jack", "HPOR";
simple-audio-card,cpu {
sound-dai = ;
};
simple-audio-card,codec {
sound-dai = ;
};
};
rk_headset {
compatible = "rockchip_headset";
// headset_gpio = ;
io-channels = ;
status = "disabled";
};
vcc3v3_3g: vcc3v3-3g-regulator {
compatible = "regulator-fixed";
enable-active-high;
regulator-always-on;
regulator-boot-on;
gpio = ;
pinctrl-names = "default";
pinctrl-0 = ;
regulator-name = "vcc3v3_3g";
};
leds {
compatible = "gpio-leds";
power_led: power {
label = "firefly:blue:power";
linux,default-trigger = "ir-power-click";
default-state = "on";
gpios = ;
pinctrl-names = "default";
pinctrl-0 = ;
};
user_led: user {
label = "firefly:yellow:user";
linux,default-trigger = "ir-user-click";
default-state = "off";
gpios = ;
pinctrl-names = "default";
pinctrl-0 = ;
};
};
/* GPIO1_C7 controls both VCC18_MIPI and VCC28_MIPI, also AF28 */
vcc_mipi: vcc_mipi {
compatible = "regulator-fixed";
enable-active-high;
gpio = ;
pinctrl-names = "default";
pinctrl-0 = ;
regulator-name = "vcc_mipi";
status = "okay";
};
dvdd_1v2: dvdd-1v2 {
compatible = "regulator-fixed";
enable-active-high;
gpio = ;
pinctrl-names = "default";
pinctrl-0 = ;
regulator-name = "dvdd_1v2";
status = "okay";
};
};
&i2c0 {
rk809: pmic@20 {
rk809_codec: codec {
#sound-dai-cells = <0>;
compatible = "rockchip,rk809-codec", "rockchip,rk817-codec";
clocks = ;
clock-names = "mclk";
pinctrl-names = "default";
pinctrl-0 = ;
hp-volume = <20>;
spk-volume = <3>;
io-channels = ;
hp-det-adc-value = <930>;
status = "okay";
};
};
};
&i2c1 {
mpu6500@68 {
status = "disabled";
compatible = "invensense,mpu6500";
reg = <0x68>;
irq-gpio = ;
mpu-int_config = <0x10>;
mpu-level_shifter = <0>;
mpu-orientation = <0 1 0 1 0 0 0 0 1>;
orientation-x= <0>;
orientation-y= <0>;
orientation-z= <1>;
mpu-debug = <1>;
};
ov13850: ov13850@36 {
compatible = "ovti,ov13850";
status = "okay";
reg = <0x36>;
clocks = ;
clock-names = "xvclk";
/* conflict with csi-ctl-gpios */
reset-gpios = ;
pwdn-gpios = ;
pinctrl-names = "rockchip,camera_default", "rockchip,camera_sleep";
//pinctrl-0 = ;
pinctrl-0 = ;
pinctrl-1 = ;
pinctrl-2 = ;
avdd-supply = ; /* VCC28_MIPI */
dovdd-supply = ; /* VCC18_MIPI */
dvdd-supply = ; /* DVDD_1V2 */
port {
ucam_out0: endpoint {
remote-endpoint = ;
data-lanes = <1 2>;
};
};
};
ov13850_1: ov13850@46 {
compatible = "ovti,ov13850";
status = "okay";
reg = <0x46>;
clocks = ;
clock-names = "xvclk";
/* conflict with csi-ctl-gpios */
reset-gpios = ;
pwdn-gpios = ;
pinctrl-names = "rockchip,camera_default", "rockchip,camera_sleep";
pinctrl-0 = ;
//pinctrl-0 = ;
pinctrl-1 = ;
pinctrl-2 = ;
avdd-supply = ; /* VCC28_MIPI */
dovdd-supply = ; /* VCC18_MIPI */
dvdd-supply = ; /* DVDD_1V2 */
port {
ucam_out1: endpoint {
remote-endpoint = ;
data-lanes = <1 2>;
};
};
};
sensor@d {
status = "disabled";
compatible = "ak8963";
reg = <0x0d>;
type = ;
irq-gpio = ;
irq_enable = <0>;
poll_delay_ms = <30>;
layout = <3>;
};
};
&i2c4 {
status = "okay";
i2c-scl-rising-time-ns = <300>;
i2c-scl-falling-time-ns = <15>;
};
&i2s1 {
status = "okay";
};
&spi2 {
status = "okay";
max-freq = <48000000>;
dev-port = <0>;
spi_wk2xxx: spi_wk2xxx@00{
status = "okay";
compatible = "firefly,spi-wk2xxx";
reg = <0x00>;
spi-max-frequency = <10000000>;
reset-gpio = ;
irq-gpio = ;
cs-gpio = ;
/* rk3399 driver support SPI_CPOL | SPI_CPHA | SPI_CS_HIGH */
//spi-cpha; /* SPI mode: CPHA=1 */
//spi-cpol; /* SPI mode: CPOL=1 */
//spi-cs-high;
};
};
&cdn_dp {
status = "disabled";
extcon = ;
phys = ;
};
&fusb0 {
status = "disabled";
};
&tcphy0 {
/delete-property/ extcon;
status = "okay";
};
&u2phy0 {
status = "okay";
/delete-property/ extcon;
u2phy0_otg: otg-port {
rockchip,vbus-always-on;
vbus-5v-gpios = ;
status = "okay";
};
};
&usbdrd3_0 {
status = "okay";
/delete-property/ extcon;
};
&pwm3 {
status = "okay";
interrupts = ;
compatible = "rockchip,remotectl-pwm";
remote_pwm_id = <3>;
handle_cpu_id = <5>;
remote_support_psci = <1>;
pinctrl-names = "default";
ir_key1{
rockchip,usercode = <0xff00>;
rockchip,key_table =
<0xeb KEY_POWER>,
<0xec KEY_MENU>,
<0xfe KEY_BACK>,
<0xb7 KEY_HOME>,
<0xa3 KEY_WWW>,
<0xf4 KEY_VOLUMEUP>,
<0xa7 KEY_VOLUMEDOWN>,
<0xf8 KEY_REPLY>,
<0xfc KEY_UP>,
<0xfd KEY_DOWN>,
<0xf1 KEY_LEFT>,
<0xe5 KEY_RIGHT>;
};
};
&pinctrl {
pcie {
pcie_3g_drv: pcie-3g-drv {
rockchip,pins =
<1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
cam_pins {
cam0_default_pins: cam0-default-pins {
rockchip,pins =
<1 9 RK_FUNC_3 &pcfg_pull_none>;
};
cam0_sleep_pins: cam0-sleep-pins {
rockchip,pins =
<1 9 RK_FUNC_GPIO &pcfg_pull_none>;
};
pwdn_cam0: pwdn-cma0 {
rockchip,pins =
<2 0 RK_FUNC_GPIO &pcfg_pull_none>;
};
pwdn_cam1: pwdn-cma1 {
rockchip,pins =
<2 1 RK_FUNC_GPIO &pcfg_pull_none>;
};
mipi_rst: mipi-rst {
rockchip,pins =
<1 20 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
leds {
led_power: led-power {
rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
};
led_user: led-user {
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
cam0 {
cif_pwr: cif-pwr {
rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_down>;
};
dvp_pwr: dvp-pwr {
rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
};
&rkisp1_0 {
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
isp0_mipi_in: endpoint@0 {
reg = <0>;
remote-endpoint = ;
};
};
};
&mipi_dphy_rx0 {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
mipi_in_ucam0: endpoint@1 {
reg = <1>;
remote-endpoint = ;
data-lanes = <1 2>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
dphy_rx0_out: endpoint@0 {
reg = <0>;
remote-endpoint = ;
};
};
};
};
&isp0_mmu {
status = "okay";
};
&rkisp1_1 {
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
isp1_mipi_in: endpoint@0 {
reg = <0>;
remote-endpoint = ;
};
};
};
&mipi_dphy_tx1rx1 {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
mipi_in_ucam1: endpoint@1 {
reg = <1>;
remote-endpoint = ;
data-lanes = <1 2>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
dphy_tx1rx1_out: endpoint@0 {
reg = <0>;
remote-endpoint = ;
};
};
};
};
&isp1_mmu {
status = "okay";
};