Skip to content

Commit

Permalink
Merge branch 'at91-4.9-trunk/dt' into linux-4.9-at91
Browse files Browse the repository at this point in the history
  • Loading branch information
noglitch committed Jul 9, 2018
2 parents 81db49c + 0d3c7da commit b2b06ab
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
dtb-$(CONFIG_SOC_SAM_V7) += \
at91-kizbox2.dtb \
at91-sama5d2_ptc_ek.dtb \
at91-sama5d2_ptc_ek_pda4.dtb \
at91-sama5d27_som1_ek.dtb \
at91-sama5d27_som1_ek_pda4.dtb \
at91-sama5d27_som1_ek_pda7.dtb \
Expand Down
155 changes: 155 additions & 0 deletions arch/arm/boot/dts/at91-sama5d2_ptc_ek_pda4.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* at91-sama5d2_ptc_ek_pda4.dts - Device Tree file for SAMA5D2 PTC EK board with PDA4 screen
*
* Copyright (C) 2018 Microchip,
* 2018 Nicolas Ferre <[email protected]>
*/
#include "at91-sama5d2_ptc_ek.dts"

/ {
model = "Atmel SAMA5D2 PTC EK TM43xx";
compatible = "atmel,sama5d2-ptc_ek", "atmel,sama5d2", "atmel,sama5";

ahb {
apb {
hlcdc: hlcdc@f0000000 {
status = "okay";

hlcdc-display-controller {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb666>;
port@0 {
hlcdc_panel_output: endpoint@0 {
reg = <0>;
remote-endpoint = <&panel_input>;
};
};
};

hlcdc_pwm: hlcdc-pwm {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lcd_pwm>;
};
};

flx0: flexcom@f8034000 {
i2c2: i2c@600 {
qt1070: keyboard@1b {
compatible = "qt1070";
reg = <0x1b>;
interrupt-parent = <&pioA>;
interrupts = <98 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_qt1070_irq>;
wakeup-source;
};

atmel_mxt_ts@4a {
compatible = "atmel,atmel_mxt_ts";
reg = <0x4a>;
interrupt-parent = <&pioA>;
interrupts = <73 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mxt_irq>;
};
};
};

pinctrl@fc038000 {
pinctrl_lcd_base: pinctrl_lcd_base {
pinmux = <PIN_PC30__LCDVSYNC>,
<PIN_PC31__LCDHSYNC>,
<PIN_PD1__LCDDEN>,
<PIN_PD0__LCDPCK>;
bias-disable;
drive-strength = <ATMEL_PIO_DRVSTR_ME>;
};

pinctrl_lcd_pwm: pinctrl_lcd_pwm {
pinmux = <PIN_PC28__LCDPWM>;
bias-disable;
};

pinctrl_lcd_rgb666: pinctrl_lcd_rgb666 {
pinmux = <PIN_PC10__LCDDAT2>,
<PIN_PC11__LCDDAT3>,
<PIN_PC12__LCDDAT4>,
<PIN_PC13__LCDDAT5>,
<PIN_PC14__LCDDAT6>,
<PIN_PC15__LCDDAT7>,
<PIN_PC16__LCDDAT10>,
<PIN_PC17__LCDDAT11>,
<PIN_PC18__LCDDAT12>,
<PIN_PC19__LCDDAT13>,
<PIN_PC20__LCDDAT14>,
<PIN_PC21__LCDDAT15>,
<PIN_PC22__LCDDAT18>,
<PIN_PC23__LCDDAT19>,
<PIN_PC24__LCDDAT20>,
<PIN_PC25__LCDDAT21>,
<PIN_PC26__LCDDAT22>,
<PIN_PC27__LCDDAT23>;
bias-disable;
};

pinctrl_mxt_irq: pinctrl_mxt_irq {
pinmux = <PIN_PC9__GPIO>;
bias-pull-up;
input-debounce = <1>;
};

pinctrl_qt1070_irq: pinctrl_qt1070_irq {
pinmux = <PIN_PD2__GPIO>;
bias-pull-up;
input-debounce = <1>;
};
};
};
};

backlight: backlight {
compatible = "pwm-backlight";
pwms = <&hlcdc_pwm 0 50000 0>;
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <7>;
power-supply = <&bl_reg>;
status = "okay";
};

bl_reg: backlight_regulator {
compatible = "regulator-fixed";
regulator-name = "backlight-power-supply";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
status = "okay";
};

panel: panel {
compatible = "innolux,at043tn24", "simple-panel";
backlight = <&backlight>;
power-supply = <&panel_reg>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;

panel_input: endpoint@0 {
reg = <0>;
remote-endpoint = <&hlcdc_panel_output>;
};
};
};

panel_reg: panel_regulator {
compatible = "regulator-fixed";
regulator-name = "panel-power-supply";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
status = "okay";
};
};

0 comments on commit b2b06ab

Please sign in to comment.