Home | History | Annotate | Line # | Download | only in dts
      1 // SPDX-License-Identifier: GPL-2.0-or-later
      2 /*
      3  * at91sam9x5dm.dtsi - Device Tree file for SAM9x5 display module
      4  *
      5  *  Copyright (C) 2014 Atmel,
      6  *                2014 Free Electrons
      7  *
      8  *  Author: Boris Brezillon <boris.brezillon (a] free-electrons.com>
      9  */
     10 
     11 / {
     12 	backlight: backlight {
     13 		compatible = "pwm-backlight";
     14 		pwms = <&hlcdc_pwm 0 50000 0>;
     15 		brightness-levels = <0 4 8 16 32 64 128 255>;
     16 		default-brightness-level = <6>;
     17 		power-supply = <&bl_reg>;
     18 		status = "disabled";
     19 	};
     20 
     21 	bl_reg: backlight_regulator {
     22 		compatible = "regulator-fixed";
     23 		regulator-name = "backlight-power-supply";
     24 		regulator-min-microvolt = <5000000>;
     25 		regulator-max-microvolt = <5000000>;
     26 		status = "disabled";
     27 	};
     28 
     29 	panel: panel {
     30 		compatible = "foxlink,fl500wvr00-a0t";
     31 		backlight = <&backlight>;
     32 		power-supply = <&panel_reg>;
     33 		#address-cells = <1>;
     34 		#size-cells = <0>;
     35 		status = "disabled";
     36 
     37 		port@0 {
     38 			#address-cells = <1>;
     39 			#size-cells = <0>;
     40 
     41 			panel_input: endpoint@0 {
     42 				reg = <0>;
     43 				remote-endpoint = <&hlcdc_panel_output>;
     44 			};
     45 		};
     46 	};
     47 
     48 	panel_reg: panel_regulator {
     49 		compatible = "regulator-fixed";
     50 		regulator-name = "panel-power-supply";
     51 		regulator-min-microvolt = <3300000>;
     52 		regulator-max-microvolt = <3300000>;
     53 		status = "disabled";
     54 	};
     55 };
     56 
     57 &adc0 {
     58 	atmel,adc-ts-wires = <4>;
     59 	atmel,adc-ts-pressure-threshold = <10000>;
     60 	status = "okay";
     61 };
     62 
     63 &i2c0 {
     64 	keyboard@1b {
     65 		compatible = "qt1070";
     66 		reg = <0x1b>;
     67 		interrupt-parent = <&pioA>;
     68 		interrupts = <7 0x0>;
     69 		pinctrl-names = "default";
     70 		pinctrl-0 = <&pinctrl_qt1070_irq>;
     71 		wakeup-source;
     72 	};
     73 };
     74 
     75 &hlcdc {
     76 	hlcdc-display-controller {
     77 		pinctrl-names = "default";
     78 		pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb888>;
     79 
     80 		port@0 {
     81 			hlcdc_panel_output: endpoint@0 {
     82 				reg = <0>;
     83 				remote-endpoint = <&panel_input>;
     84 			};
     85 		};
     86 	};
     87 };
     88 
     89 &pinctrl {
     90 	board {
     91 		pinctrl_qt1070_irq: qt1070_irq {
     92 			atmel,pins =
     93 				<AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
     94 		};
     95 	};
     96 };
     97