summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou-lvds-9904379.dtso
blob: 3fc088a5636a24b40a8536b28a210fce79f6d333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2025 Cherry Embedded Solutions GmbH
 *
 * HAIKOU-LVDS-9904379 adapter for PX30 Ringneck and Haikou carrierboard.
 *
 * This adapter needs to be plugged in the fake PCIe connector called Video
 * Connector on Haikou carrierboard.
 */

/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>

&{/} {
	backlight_lvds: backlight-lvds {
		compatible = "pwm-backlight";
		brightness-levels = <0 255>;
		default-brightness-level = <255>;
		num-interpolated-steps = <255>;
		power-supply = <&vcc3v3_baseboard>;
		pwms = <&pwm0 0 25000 0>;
	};

	panel {
		compatible = "admatec,9904379", "panel-lvds";
		backlight = <&backlight_lvds>;
		data-mapping = "vesa-24";
		height-mm = <126>;
		power-supply = <&vcc3v3_baseboard>;
		width-mm = <224>;

		panel-timing {
			clock-frequency = <49500000>;
			hactive = <1024>;
			hback-porch = <90>;
			hfront-porch = <90>;
			hsync-len = <90>;
			vactive = <600>;
			vback-porch = <10>;
			vfront-porch = <10>;
			vsync-len = <10>;
		};

		port {
			panel_in_lvds: endpoint {
				remote-endpoint = <&lvds_out_panel>;
			};
		};
	};
};

&display_subsystem {
	status = "okay";
};

&dsi_dphy {
	status = "okay";
};

&i2c1 {
	#address-cells = <1>;
	#size-cells = <0>;
	/* EEPROM and GT928 are limited to 400KHz */
	clock-frequency = <400000>;

	touchscreen@14 {
		compatible = "goodix,gt928";
		reg = <0x14>;
		interrupt-parent = <&gpio0>;
		interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>;
		irq-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
		reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
		pinctrl-0 = <&touch_int &touch_rst>;
		pinctrl-names = "default";
		touchscreen-inverted-x;
		touchscreen-inverted-y;
		AVDD28-supply = <&vcc3v3_baseboard>;
		VDDIO-supply = <&vcc3v3_baseboard>;
	};

	eeprom@54 {
		reg = <0x54>;
		compatible = "st,24c04", "atmel,24c04";
		pagesize = <16>;
		size = <512>;
		vcc-supply = <&vcc3v3_baseboard>;
	};
};

&lvds {
	status = "okay";
};

&lvds_out {
	lvds_out_panel: endpoint {
		remote-endpoint = <&panel_in_lvds>;
	};
};

&pinctrl {
	touch {
		touch_int: touch-int {
			rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
		};

		touch_rst: touch-rst {
			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
		};
	};
};

&vopb {
	status = "okay";
};

&vopb_mmu {
	status = "okay";
};

&vopl {
	status = "okay";
};

&vopl_mmu {
	status = "okay";
};