~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/amlogic/meson-khadas-vim3-ts050.dtso

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2 /*
  3  * Copyright (c) 2019 BayLibre, SAS
  4  * Author: Neil Armstrong <narmstrong@baylibre.com>
  5  */
  6 
  7 #include <dt-bindings/gpio/gpio.h>
  8 #include <dt-bindings/clock/g12a-clkc.h>
  9 #include <dt-bindings/interrupt-controller/irq.h>
 10 #include <dt-bindings/interrupt-controller/arm-gic.h>
 11 #include <dt-bindings/interrupt-controller/amlogic,meson-g12a-gpio-intc.h>
 12 
 13 /dts-v1/;
 14 /plugin/;
 15 
 16 /*
 17  * Enable Khadas TS050 DSI Panel + Touch Controller
 18  * on Khadas VIM3 (A311D) and VIM3L (S905D3)
 19  */
 20 
 21 &{/} {
 22         panel_backlight: backlight {
 23                 compatible = "pwm-backlight";
 24                 pwms = <&pwm_AO_cd 0 25000 0>;
 25                 brightness-levels = <0 255>;
 26                 num-interpolated-steps = <255>;
 27                 default-brightness-level = <200>;
 28         };
 29 };
 30 
 31 &i2c3 {
 32         #address-cells = <1>;
 33         #size-cells = <0>;
 34         pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
 35         pinctrl-names = "default";
 36         status = "okay";
 37 
 38         touch-controller@38 {
 39                 compatible = "edt,edt-ft5206";
 40                 reg = <0x38>;
 41                 interrupt-parent = <&gpio_intc>;
 42                 interrupts = <IRQID_GPIOA_5 IRQ_TYPE_EDGE_FALLING>;
 43                 reset-gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>;
 44                 touchscreen-size-x = <1080>;
 45                 touchscreen-size-y = <1920>;
 46                 status = "okay";
 47         };
 48 };
 49 
 50 &mipi_dsi {
 51         #address-cells = <1>;
 52         #size-cells = <0>;
 53         status = "okay";
 54 
 55         assigned-clocks = <&clkc CLKID_GP0_PLL>,
 56                           <&clkc CLKID_MIPI_DSI_PXCLK_SEL>,
 57                           <&clkc CLKID_MIPI_DSI_PXCLK>,
 58                           <&clkc CLKID_CTS_ENCL_SEL>,
 59                           <&clkc CLKID_VCLK2_SEL>;
 60         assigned-clock-parents = <0>,
 61                                  <&clkc CLKID_GP0_PLL>,
 62                                  <0>,
 63                                  <&clkc CLKID_VCLK2_DIV1>,
 64                                  <&clkc CLKID_GP0_PLL>;
 65         assigned-clock-rates = <960000000>,
 66                                <0>,
 67                                <960000000>,
 68                                <0>,
 69                                <0>;
 70 
 71         panel@0 {
 72                 compatible = "khadas,ts050";
 73                 reset-gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>;
 74                 enable-gpios = <&gpio_expander 1 GPIO_ACTIVE_HIGH>;
 75                 power-supply = <&vcc_3v3>;
 76                 backlight = <&panel_backlight>;
 77                 reg = <0>;
 78 
 79                 port {
 80                         mipi_in_panel: endpoint {
 81                                 remote-endpoint = <&mipi_out_panel>;
 82                         };
 83                 };
 84         };
 85 
 86         ports {
 87                 #address-cells = <1>;
 88                 #size-cells = <0>;
 89 
 90                 port@1 {
 91                         mipi_out_panel: endpoint {
 92                                 remote-endpoint = <&mipi_in_panel>;
 93                         };
 94                 };
 95         };
 96 };
 97 
 98 &mipi_analog_dphy {
 99         status = "okay";
100 };
101 
102 &mipi_dphy {
103         status = "okay";
104 };
105 
106 &pwm_AO_cd {
107         pinctrl-0 = <&pwm_ao_c_6_pins>, <&pwm_ao_d_e_pins>;
108 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php