summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2018-12-19 15:17:23 +0100
committerChristoph Müllner <christophm30@gmail.com>2019-04-07 15:54:08 +0200
commit6289c71a5fbaf86ce3ee117d98b10988c989af22 (patch)
treeb5e002a92880c6fe0146bed895464589ea7403b2
parenta072cac7686dfd78afa3912ae308e42e8aae4a25 (diff)
arm64: dts: Add rk3399-puma-haikou-eoltest.dts.
This patch adds a DTS file, which can be used to test a RK3399-Q7 module in the end-of-line test station. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rw-r--r--arch/arm64/boot/dts/rockchip/Makefile1
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-puma-haikou-eoltest.dts79
2 files changed, 80 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index b0092d95b574..2113bdefa7a2 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -14,5 +14,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-firefly.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-bob.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou-eoltest.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator.dtb
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou-eoltest.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou-eoltest.dts
new file mode 100644
index 000000000000..12fa1b1fb885
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou-eoltest.dts
@@ -0,0 +1,79 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH
+ */
+
+/dts-v1/;
+#include "rk3399-puma-haikou.dts"
+
+/*
+ * from rk3399-puma.dts
+ */
+
+/ {
+ aliases {
+ spi1 = &spi1; // internal bus
+ spi5 = &spi5; // routed to Q7 connector as Q7_SPI_SCK/MOSI/...
+ };
+
+ edp_panel: edp_panel {
+ // simple-panel does not define any timings - they are read from the monitor EDID.
+ compatible = "simple-panel";
+ // The enable gpio is used to switch the hardware multiplexer (U29) to DisplayPort.
+ enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; // GPIO2_A2 = SEL_EDP_1V8
+ ports {
+ panel_in_edp: endpoint {
+ remote-endpoint = <&edp_out_panel>;
+ };
+ };
+ };
+};
+
+/*
+ * from rk3399-puma-spi5.dts
+ */
+
+&spi5 {
+ status = "okay";
+
+ m25p40@0 {
+ compatible = "m25p40";
+ reg = <0>;
+ spi-max-frequency = <1000000>;
+ };
+};
+
+&edp {
+ status = "okay";
+ force-hpd;
+ /delete-property/ pinctrl-0;
+ ports {
+ edp_out: port@1 {
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ edp_out_panel: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&panel_in_edp>;
+ };
+ };
+ };
+};
+
+&pinctrl {
+ pinctrl-0 = <&haikou_pin_hog &haikou_pin_testadapter>;
+
+ testadapter {
+ haikou_pin_testadapter: haikou-pin-testadapter {
+ rockchip,pins =
+ /* THRM# */
+ <RK_GPIO0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>,
+ /* SMB_ALERT# */
+ <RK_GPIO0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>,
+ /* SDIO_WP# */
+ <RK_GPIO0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+};
+