135 lines
2.7 KiB
Diff
135 lines
2.7 KiB
Diff
|
--- /dev/null
|
||
|
+++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts
|
||
|
@@ -0,0 +1,130 @@
|
||
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||
|
+/*
|
||
|
+ * Copyright (c) 2017 T-Chip Intelligent Technology Co., Ltd
|
||
|
+ */
|
||
|
+
|
||
|
+/dts-v1/;
|
||
|
+#include "rk3399-roc-pc-mezzanine.dts"
|
||
|
+
|
||
|
+/ {
|
||
|
+ model = "Firefly roc-rk3399-pc PLUS";
|
||
|
+ compatible = "firefly,roc-rk3399-pc", "rockchip,rk3399";
|
||
|
+
|
||
|
+ vcc_sys: vcc-sys {
|
||
|
+/delete-property/ gpio;
|
||
|
+/delete-property/ pinctrl-names;
|
||
|
+/delete-property/ pinctrl-0;
|
||
|
+ };
|
||
|
+
|
||
|
+ es8388-sound {
|
||
|
+ status = "okay";
|
||
|
+ compatible = "simple-audio-card";
|
||
|
+ simple-audio-card,format = "i2s";
|
||
|
+ simple-audio-card,name = "rockchip,es8388-codec";
|
||
|
+ simple-audio-card,mclk-fs = <256>;
|
||
|
+ simple-audio-card,cpu {
|
||
|
+ sound-dai = <&i2s1>;
|
||
|
+ system-clock-frequency = <11289600>;
|
||
|
+ };
|
||
|
+ simple-audio-card,codec {
|
||
|
+ sound-dai = <&es8388>;
|
||
|
+ system-clock-frequency = <11289600>;
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
+ leds {
|
||
|
+ compatible = "gpio-leds";
|
||
|
+
|
||
|
+ yellow_led: led-2 {
|
||
|
+ label = "yellow:yellow-led";
|
||
|
+ gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
|
||
|
+ default-state = "off";
|
||
|
+ linux,default-trigger = "mmc1";
|
||
|
+ };
|
||
|
+
|
||
|
+ FAN_EN {
|
||
|
+ //fan power
|
||
|
+ gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; //GPIO1_A1
|
||
|
+ default-state = "on";
|
||
|
+ };
|
||
|
+ };
|
||
|
+};
|
||
|
+
|
||
|
+&rk808{
|
||
|
+ rtc {
|
||
|
+ compatible = "rk808-rtc";
|
||
|
+ status = "disabled";
|
||
|
+ };
|
||
|
+};
|
||
|
+
|
||
|
+&i2c0 {
|
||
|
+ status = "okay";
|
||
|
+ hym8563: hym8563@51 {
|
||
|
+ compatible = "haoyu,hym8563";
|
||
|
+ reg = <0x51>;
|
||
|
+ interrupt-parent = <&gpio0>;
|
||
|
+ interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
|
||
|
+ pinctrl-names = "default";
|
||
|
+ #clock-cells = <0>;
|
||
|
+ clock-frequency = <32768>;
|
||
|
+ clock-output-names = "xin32k";
|
||
|
+ };
|
||
|
+};
|
||
|
+
|
||
|
+&i2s1 {
|
||
|
+ status = "okay";
|
||
|
+};
|
||
|
+
|
||
|
+&i2c1 {
|
||
|
+ status = "okay";
|
||
|
+ es8388: es8388@11 {
|
||
|
+ compatible = "everest,es8388";
|
||
|
+ status = "okay";
|
||
|
+ reg = <0x11>;
|
||
|
+ hp-det-gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
|
||
|
+ hp-ctl-gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
||
|
+ clock-names = "mclk";
|
||
|
+ clocks = <&cru SCLK_I2S_8CH_OUT>;
|
||
|
+ pinctrl-names = "default";
|
||
|
+ pinctrl-0 = <&i2s_8ch_mclk>;
|
||
|
+ pinctrl-1 = <&ear_ctl_h>;
|
||
|
+ #sound-dai-cells = <0>;
|
||
|
+ };
|
||
|
+};
|
||
|
+
|
||
|
+&pinctrl {
|
||
|
+
|
||
|
+ i2s0 {
|
||
|
+
|
||
|
+ i2s0_8ch_bus: i2s0-8ch-bus {
|
||
|
+ rockchip,pins =
|
||
|
+ <3 RK_PD0 1 &pcfg_pull_none>,
|
||
|
+ <3 RK_PD1 1 &pcfg_pull_none>,
|
||
|
+ <3 RK_PD2 1 &pcfg_pull_none>,
|
||
|
+ <3 RK_PD3 1 &pcfg_pull_none>,
|
||
|
+ <3 RK_PD4 1 &pcfg_pull_none>,
|
||
|
+ <3 RK_PD5 1 &pcfg_pull_none>,
|
||
|
+ <3 RK_PD6 1 &pcfg_pull_none>,
|
||
|
+ <3 RK_PD7 1 &pcfg_pull_none>;
|
||
|
+ };
|
||
|
+
|
||
|
+ i2s_8ch_mclk: i2s-8ch-mclk {
|
||
|
+ rockchip,pins = <4 0 1 &pcfg_pull_none>;
|
||
|
+ };
|
||
|
+
|
||
|
+ };
|
||
|
+
|
||
|
+ leds {
|
||
|
+
|
||
|
+ yellow_led_pin: yellow-led-pin {
|
||
|
+ rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_pull_none>;
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
+ es8388-pins {
|
||
|
+ ear_ctl_h: ear-ctl-h {
|
||
|
+ rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_down>;
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
+};
|
||
|
|