1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Device Tree Source for the Silicon Linux RZ 4 * connected to an Advantech IDK-2121WR 21.5" 5 * 6 * Copyright (C) 2019 Renesas Electronics Corp 7 */ 8 9 #include "r8a774c0-ek874.dts" 10 11 / { 12 backlight: backlight { 13 compatible = "pwm-backlight"; 14 pwms = <&pwm5 0 50000>; 15 16 brightness-levels = <0 4 8 16 17 default-brightness-level = <6> 18 19 power-supply = <®_12p0v>; 20 enable-gpios = <&gpio6 12 GPIO 21 }; 22 23 panel-lvds { 24 compatible = "advantech,idk-21 25 26 width-mm = <476>; 27 height-mm = <268>; 28 29 data-mapping = "vesa-24"; 30 31 panel-timing { 32 clock-frequency = <148 33 hactive = <1920>; 34 vactive = <1080>; 35 hsync-len = <44>; 36 hfront-porch = <88>; 37 hback-porch = <148>; 38 vfront-porch = <4>; 39 vback-porch = <36>; 40 vsync-len = <5>; 41 }; 42 43 ports { 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 port@0 { 48 reg = <0>; 49 dual-lvds-odd- 50 panel_in0: end 51 remote 52 }; 53 }; 54 55 port@1 { 56 reg = <1>; 57 dual-lvds-even 58 panel_in1: end 59 remote 60 }; 61 }; 62 }; 63 }; 64 }; 65 66 &gpio0 { 67 /* 68 * When GP0_17 is low LVDS[01] are con 69 * When GP0_17 is high LVDS[01] are co 70 */ 71 lvds-connector-en-hog { 72 gpio-hog; 73 gpios = <17 GPIO_ACTIVE_HIGH>; 74 output-low; 75 line-name = "lvds-connector-en 76 }; 77 }; 78 79 &lvds0 { 80 ports { 81 port@1 { 82 lvds0_out: endpoint { 83 remote-endpoin 84 }; 85 }; 86 }; 87 }; 88 89 &lvds1 { 90 status = "okay"; 91 92 clocks = <&cpg CPG_MOD 727>, <&x13_clk 93 clock-names = "fck", "dclkin.0", "exta 94 95 ports { 96 port@1 { 97 lvds1_out: endpoint { 98 remote-endpoin 99 }; 100 }; 101 }; 102 }; 103 104 &pfc { 105 pwm5_pins: pwm5 { 106 groups = "pwm5_a"; 107 function = "pwm5"; 108 }; 109 }; 110 111 &pwm5 { 112 pinctrl-0 = <&pwm5_pins>; 113 pinctrl-names = "default"; 114 115 status = "okay"; 116 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.