mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00
arm64: dts: rockchip: add pine64 touch panel display to rockpro64
The Pine64 touch panel is a panel consisting of the Feiyang fy07024di26a30d panel with a Goodix gt911 touch screen. Add the device tree nodes to the rockpro64 to permit attaching this display to the device. Signed-off-by: Peter Geis <pgwipeout@gmail.com> Link: https://lore.kernel.org/r/20220511113517.4172962-4-pgwipeout@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
parent
89504897b7
commit
b65155c786
@ -20,6 +20,15 @@ chosen {
|
|||||||
stdout-path = "serial2:1500000n8";
|
stdout-path = "serial2:1500000n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* enable for panel backlight support */
|
||||||
|
backlight: backlight {
|
||||||
|
compatible = "pwm-backlight";
|
||||||
|
brightness-levels = <0 4 8 16 32 64 128 255>;
|
||||||
|
default-brightness-level = <5>;
|
||||||
|
pwms = <&pwm0 0 1000000 0>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
clkin_gmac: external-gmac-clock {
|
clkin_gmac: external-gmac-clock {
|
||||||
compatible = "fixed-clock";
|
compatible = "fixed-clock";
|
||||||
clock-frequency = <125000000>;
|
clock-frequency = <125000000>;
|
||||||
@ -107,6 +116,14 @@ dit_p0_0: endpoint {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
avdd: avdd-regulator {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "avdd";
|
||||||
|
regulator-min-microvolt = <11000000>;
|
||||||
|
regulator-max-microvolt = <11000000>;
|
||||||
|
vin-supply = <&vcc3v3_s0>;
|
||||||
|
};
|
||||||
|
|
||||||
vcc12v_dcin: vcc12v-dcin {
|
vcc12v_dcin: vcc12v-dcin {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vcc12v_dcin";
|
regulator-name = "vcc12v_dcin";
|
||||||
@ -400,8 +417,6 @@ regulator-state-mem {
|
|||||||
|
|
||||||
vcc3v0_touch: LDO_REG2 {
|
vcc3v0_touch: LDO_REG2 {
|
||||||
regulator-name = "vcc3v0_touch";
|
regulator-name = "vcc3v0_touch";
|
||||||
regulator-always-on;
|
|
||||||
regulator-boot-on;
|
|
||||||
regulator-min-microvolt = <3000000>;
|
regulator-min-microvolt = <3000000>;
|
||||||
regulator-max-microvolt = <3000000>;
|
regulator-max-microvolt = <3000000>;
|
||||||
regulator-state-mem {
|
regulator-state-mem {
|
||||||
@ -490,8 +505,6 @@ regulator-state-mem {
|
|||||||
|
|
||||||
vcc3v3_s0: SWITCH_REG2 {
|
vcc3v3_s0: SWITCH_REG2 {
|
||||||
regulator-name = "vcc3v3_s0";
|
regulator-name = "vcc3v3_s0";
|
||||||
regulator-always-on;
|
|
||||||
regulator-boot-on;
|
|
||||||
regulator-state-mem {
|
regulator-state-mem {
|
||||||
regulator-off-in-suspend;
|
regulator-off-in-suspend;
|
||||||
};
|
};
|
||||||
@ -565,6 +578,19 @@ fusb0: typec-portc@22 {
|
|||||||
vbus-supply = <&vcc5v0_typec>;
|
vbus-supply = <&vcc5v0_typec>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* enable for pine64 touch screen support */
|
||||||
|
touch: touchscreen@5d {
|
||||||
|
compatible = "goodix,gt911";
|
||||||
|
reg = <0x5d>;
|
||||||
|
interrupt-parent = <&gpio4>;
|
||||||
|
interrupts = <RK_PD5 IRQ_TYPE_EDGE_FALLING>;
|
||||||
|
AVDD28-supply = <&vcc3v0_touch>;
|
||||||
|
VDDIO-supply = <&vcc3v0_touch>;
|
||||||
|
irq-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>;
|
||||||
|
reset-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2s0 {
|
&i2s0 {
|
||||||
@ -600,6 +626,42 @@ &io_domains {
|
|||||||
gpio1830-supply = <&vcc_3v0>;
|
gpio1830-supply = <&vcc_3v0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* enable for pine64 panel display support */
|
||||||
|
&mipi_dsi {
|
||||||
|
clock-master;
|
||||||
|
status = "disabled";
|
||||||
|
|
||||||
|
ports {
|
||||||
|
mipi_out: port@1 {
|
||||||
|
reg = <1>;
|
||||||
|
|
||||||
|
mipi_out_panel: endpoint {
|
||||||
|
remote-endpoint = <&mipi_in_panel>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
mipi_panel: panel@0 {
|
||||||
|
compatible = "feiyang,fy07024di26a30d";
|
||||||
|
reg = <0>;
|
||||||
|
avdd-supply = <&avdd>;
|
||||||
|
backlight = <&backlight>;
|
||||||
|
dvdd-supply = <&vcc3v3_s0>;
|
||||||
|
ports {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
port@0 {
|
||||||
|
reg = <0>;
|
||||||
|
|
||||||
|
mipi_in_panel: endpoint {
|
||||||
|
remote-endpoint = <&mipi_out_panel>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&pcie0 {
|
&pcie0 {
|
||||||
ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
|
ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
|
||||||
num-lanes = <4>;
|
num-lanes = <4>;
|
||||||
|
Loading…
Reference in New Issue
Block a user