From 7ceed7b1e1c14bb39c07fe3856ad83888410aef7 Mon Sep 17 00:00:00 2001 From: Ludovic Desroches Date: Thu, 12 Feb 2015 18:38:33 +0100 Subject: [PATCH 1/3] ARM: at91: add PDA 4.3 and PDA 7 display modules support for sama5d3xek boards The display module dtsi is related to the board it is connected to: i2c node and pio used for irqs. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/Makefile | 8 +++ arch/arm/boot/dts/sama5d31ek_pda4.dts | 52 ++++++++++++++++++ arch/arm/boot/dts/sama5d31ek_pda7.dts | 54 ++++++++++++++++++ arch/arm/boot/dts/sama5d33ek_pda4.dts | 52 ++++++++++++++++++ arch/arm/boot/dts/sama5d33ek_pda7.dts | 54 ++++++++++++++++++ arch/arm/boot/dts/sama5d34ek_pda4.dts | 62 +++++++++++++++++++++ arch/arm/boot/dts/sama5d34ek_pda7.dts | 64 ++++++++++++++++++++++ arch/arm/boot/dts/sama5d36ek_pda4.dts | 60 ++++++++++++++++++++ arch/arm/boot/dts/sama5d36ek_pda7.dts | 63 +++++++++++++++++++++ arch/arm/boot/dts/sama5d3xdm_pda4.dtsi | 69 +++++++++++++++++++++++ arch/arm/boot/dts/sama5d3xdm_pda7.dtsi | 76 ++++++++++++++++++++++++++ 11 files changed, 614 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d31ek_pda4.dts create mode 100644 arch/arm/boot/dts/sama5d31ek_pda7.dts create mode 100644 arch/arm/boot/dts/sama5d33ek_pda4.dts create mode 100644 arch/arm/boot/dts/sama5d33ek_pda7.dts create mode 100644 arch/arm/boot/dts/sama5d34ek_pda4.dts create mode 100644 arch/arm/boot/dts/sama5d34ek_pda7.dts create mode 100644 arch/arm/boot/dts/sama5d36ek_pda4.dts create mode 100644 arch/arm/boot/dts/sama5d36ek_pda7.dts create mode 100644 arch/arm/boot/dts/sama5d3xdm_pda4.dtsi create mode 100644 arch/arm/boot/dts/sama5d3xdm_pda7.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index f6d923d9ab523b..e7704bf2ef6807 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -44,14 +44,22 @@ dtb-$(CONFIG_ARCH_AT91) += at91sam9x35ek.dtb # sama5d3 dtb-$(CONFIG_ARCH_AT91) += at91-sama5d3_xplained.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d31ek.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d31ek_pda4.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d31ek_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d31ek_revc.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d33ek.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d33ek_pda4.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d33ek_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d33ek_revc.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d34ek.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d34ek_pda4.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d34ek_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d34ek_revc.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d35ek.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d35ek_revc.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d36ek.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d36ek_pda4.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d36ek_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d36ek_revc.dtb # sama5d4 dtb-$(CONFIG_ARCH_AT91) += at91-sama5d4_xplained.dtb diff --git a/arch/arm/boot/dts/sama5d31ek_pda4.dts b/arch/arm/boot/dts/sama5d31ek_pda4.dts new file mode 100644 index 00000000000000..966bf9415edc80 --- /dev/null +++ b/arch/arm/boot/dts/sama5d31ek_pda4.dts @@ -0,0 +1,52 @@ +/* + * sama5d31ek_pda4.dts - Device Tree file for SAMA5D31-EK board + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d31.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xdm_pda4.dtsi" + +/ { + model = "Atmel SAMA5D31-EK"; + compatible = "atmel,sama5d31ek", "pda,tm43xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb1: ethernet@f802c000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d31ek_pda7.dts b/arch/arm/boot/dts/sama5d31ek_pda7.dts new file mode 100644 index 00000000000000..b4f7df2093652e --- /dev/null +++ b/arch/arm/boot/dts/sama5d31ek_pda7.dts @@ -0,0 +1,54 @@ +/* + * sama5d31ek_pda7.dts - Device Tree file for SAMA5D31-EK board + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d31.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xmb_audio.dtsi" +#include "sama5d3xmb_isi_sensors.dtsi" +#include "sama5d3xdm_pda7.dtsi" + +/ { + model = "Atmel SAMA5D31-EK"; + compatible = "atmel,sama5d31ek", "pda,tm70xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb1: ethernet@f802c000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d33ek_pda4.dts b/arch/arm/boot/dts/sama5d33ek_pda4.dts new file mode 100644 index 00000000000000..963be52034980e --- /dev/null +++ b/arch/arm/boot/dts/sama5d33ek_pda4.dts @@ -0,0 +1,52 @@ +/* + * sama5d33ek_pda4.dts - Device Tree file for SAMA5D33-EK board + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d33.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xdm_pda4.dtsi" + +/ { + model = "Atmel SAMA5D33-EK"; + compatible = "atmel,sama5d33ek", "pda,tm43xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d33ek_pda7.dts b/arch/arm/boot/dts/sama5d33ek_pda7.dts new file mode 100644 index 00000000000000..c32aec86533c0e --- /dev/null +++ b/arch/arm/boot/dts/sama5d33ek_pda7.dts @@ -0,0 +1,54 @@ +/* + * sama5d33ek_pda7.dts - Device Tree file for SAMA5D33-EK board + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d33.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xmb_audio.dtsi" +#include "sama5d3xmb_isi_sensors.dtsi" +#include "sama5d3xdm_pda7.dtsi" + +/ { + model = "Atmel SAMA5D33-EK"; + compatible = "atmel,sama5d33ek", "pda,tm70xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d33", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d34ek_pda4.dts b/arch/arm/boot/dts/sama5d34ek_pda4.dts new file mode 100644 index 00000000000000..56fcd17ce335f9 --- /dev/null +++ b/arch/arm/boot/dts/sama5d34ek_pda4.dts @@ -0,0 +1,62 @@ +/* + * sama5d34ek_pda4.dts - Device Tree file for SAMA5D34-EK board + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d34.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xdm_pda4.dtsi" + +/ { + model = "Atmel SAMA5D34-EK"; + compatible = "atmel,sama5d34ek", "pda,tm43xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + can0: can@f000c000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + + 24c256@50 { + compatible = "24c256"; + reg = <0x50>; + pagesize = <64>; + }; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d34ek_pda7.dts b/arch/arm/boot/dts/sama5d34ek_pda7.dts new file mode 100644 index 00000000000000..91593513753dbd --- /dev/null +++ b/arch/arm/boot/dts/sama5d34ek_pda7.dts @@ -0,0 +1,64 @@ +/* + * sama5d34ek_pda7.dts - Device Tree file for SAMA5D34-EK board + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d34.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xmb_audio.dtsi" +#include "sama5d3xmb_isi_sensors.dtsi" +#include "sama5d3xdm_pda7.dtsi" + +/ { + model = "Atmel SAMA5D34-EK"; + compatible = "atmel,sama5d34ek", "pda,tm70xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d34", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + can0: can@f000c000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + + 24c256@50 { + compatible = "24c256"; + reg = <0x50>; + pagesize = <64>; + }; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d36ek_pda4.dts b/arch/arm/boot/dts/sama5d36ek_pda4.dts new file mode 100644 index 00000000000000..ef81294fba8eb7 --- /dev/null +++ b/arch/arm/boot/dts/sama5d36ek_pda4.dts @@ -0,0 +1,60 @@ +/* + * sama5d36ek_pda4.dts - Device Tree file for SAMA5D36-EK board + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d36.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xdm_pda4.dtsi" + +/ { + model = "Atmel SAMA5D36-EK"; + compatible = "atmel,sama5d36ek", "pda,tm43xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + can0: can@f000c000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + + macb1: ethernet@f802c000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d36ek_pda7.dts b/arch/arm/boot/dts/sama5d36ek_pda7.dts new file mode 100644 index 00000000000000..d83f6dee5db9f9 --- /dev/null +++ b/arch/arm/boot/dts/sama5d36ek_pda7.dts @@ -0,0 +1,63 @@ +/* + * sama5d36ek_pda7.dts - Device Tree file for SAMA5D36-EK board + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * 2013 Josh Wu + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d36.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xmb_audio.dtsi" +#include "sama5d3xmb_isi_sensors.dtsi" +#include "sama5d3xdm_pda7.dtsi" + +/ { + model = "Atmel SAMA5D36-EK"; + compatible = "atmel,sama5d36ek", "pda,tm70xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d36", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + can0: can@f000c000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + + macb1: ethernet@f802c000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d3xdm_pda4.dtsi b/arch/arm/boot/dts/sama5d3xdm_pda4.dtsi new file mode 100644 index 00000000000000..53c764b36c8d79 --- /dev/null +++ b/arch/arm/boot/dts/sama5d3xdm_pda4.dtsi @@ -0,0 +1,69 @@ +/* + * sama5d3xdm_pda4.dtsi - Device Tree file for SAMA5 display module + * + * Copyright (C) 2014 Atmel, + * 2014 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ + +/ { + ahb { + apb { + i2c1: i2c@f0018000 { + qt1070: keyboard@1b { + compatible = "qt1070"; + reg = <0x1b>; + interrupt-parent = <&pioE>; + interrupts = <30 0x0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qt1070_irq>; + wakeup-source; + }; + + atmel_mxt_ts@4a { + compatible = "atmel,atmel_mxt_ts"; + reg = <0x4a>; + interrupt-parent = <&pioE>; + interrupts = <31 0x0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mxt_ts>; + }; + }; + + lcd_bus@f0030000 { + status = "okay"; + + lcd@f0030000 { + status = "okay"; + }; + + lcdovl1@f0030140 { + status = "okay"; + }; + + lcdovl2@f0030240 { + status = "okay"; + }; + + lcdheo1@f0030340 { + status = "okay"; + }; + }; + + pinctrl@fffff200 { + board { + pinctrl_qt1070_irq: qt1070_irq { + atmel,pins = + ; /* PE30 GPIO with pull up deglith */ + }; + + pinctrl_mxt_ts: mxt_irq { + atmel,pins = + ; /* PE31 GPIO with pull up deglith */ + }; + }; + }; + }; + }; +}; diff --git a/arch/arm/boot/dts/sama5d3xdm_pda7.dtsi b/arch/arm/boot/dts/sama5d3xdm_pda7.dtsi new file mode 100644 index 00000000000000..caa1b8e2251928 --- /dev/null +++ b/arch/arm/boot/dts/sama5d3xdm_pda7.dtsi @@ -0,0 +1,76 @@ +/* + * sama5d3xdm_pda7.dtsi - Device Tree file for SAMA5 display module + * + * Copyright (C) 2014 Atmel, + * 2014 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ + +/ { + ahb { + apb { + i2c1: i2c@f0018000 { + qt1070: keyboard@1b { + compatible = "qt1070"; + reg = <0x1b>; + interrupt-parent = <&pioE>; + interrupts = <30 0x0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qt1070_irq>; + wakeup-source; + }; + + atmel_mxt_ts@4c { + compatible = "atmel,atmel_mxt_ts"; + reg = <0x4c>; + interrupt-parent = <&pioE>; + interrupts = <31 0x0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mxt_ts>; + }; + }; + + adc0: adc@f8018000 { + atmel,adc-clock-rate = <1000000>; + atmel,adc-ts-wires = <4>; + atmel,adc-ts-pressure-threshold = <10000>; + status = "okay"; + }; + + lcd_bus@f0030000 { + status = "okay"; + + lcd@f0030000 { + status = "okay"; + }; + + lcdovl1@f0030140 { + status = "okay"; + }; + + lcdovl2@f0030240 { + status = "okay"; + }; + + lcdheo1@f0030340 { + status = "okay"; + }; + }; + + pinctrl@fffff200 { + board { + pinctrl_qt1070_irq: qt1070_irq { + atmel,pins = + ; /* PE30 GPIO with pull up deglith */ + }; + + pinctrl_mxt_ts: mxt_irq { + atmel,pins = + ; /* PE31 GPIO with pull up deglith */ + }; + }; + }; + }; + }; +}; From 0fa2718b221a99d0953c48e3a04bde3dfbd2f24b Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 12 Feb 2015 19:27:55 +0100 Subject: [PATCH 2/3] ARM: at91/dt: rework display related description in sama5d3xdm_pda7.dtsi The HLCDC binding have change, rework the HLCDC and the related components (panel, PWM, regulators) description accordingly. Signed-off-by: Boris Brezillon --- arch/arm/boot/dts/sama5d3xdm_pda7.dtsi | 81 +++++++++++++++++++------- 1 file changed, 61 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts/sama5d3xdm_pda7.dtsi b/arch/arm/boot/dts/sama5d3xdm_pda7.dtsi index caa1b8e2251928..58f773e1ffd505 100644 --- a/arch/arm/boot/dts/sama5d3xdm_pda7.dtsi +++ b/arch/arm/boot/dts/sama5d3xdm_pda7.dtsi @@ -31,31 +31,27 @@ }; }; - adc0: adc@f8018000 { - atmel,adc-clock-rate = <1000000>; - atmel,adc-ts-wires = <4>; - atmel,adc-ts-pressure-threshold = <10000>; + hlcdc: hlcdc@f0030000 { status = "okay"; - }; - - lcd_bus@f0030000 { - status = "okay"; - - lcd@f0030000 { - status = "okay"; - }; - lcdovl1@f0030140 { - status = "okay"; - }; + hlcdc-display-controller { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb666_alt>; - lcdovl2@f0030240 { - status = "okay"; + port@0 { + hlcdc_panel_output: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_input>; + }; + }; }; + }; - lcdheo1@f0030340 { - status = "okay"; - }; + adc0: adc@f8018000 { + atmel,adc-clock-rate = <1000000>; + atmel,adc-ts-wires = <4>; + atmel,adc-ts-pressure-threshold = <10000>; + status = "okay"; }; pinctrl@fffff200 { @@ -73,4 +69,49 @@ }; }; }; + + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&hlcdc_pwm 0 50000 0>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + 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 = "shelly,sca07010-bfn-lnn", "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"; + }; }; From f637f6c39625c2a3c32c6f3123db4b07f48fed52 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 12 Feb 2015 19:32:37 +0100 Subject: [PATCH 3/3] ARM: at91/dt: add missing sama5d3xek revC + PDA7 board files Signed-off-by: Boris Brezillon --- arch/arm/boot/dts/Makefile | 4 ++ arch/arm/boot/dts/sama5d31ek_revc_pda7.dts | 53 ++++++++++++++++++ arch/arm/boot/dts/sama5d33ek_revc_pda7.dts | 53 ++++++++++++++++++ arch/arm/boot/dts/sama5d34ek_revc_pda7.dts | 63 ++++++++++++++++++++++ arch/arm/boot/dts/sama5d36ek_revc_pda7.dts | 54 +++++++++++++++++++ 5 files changed, 227 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d31ek_revc_pda7.dts create mode 100644 arch/arm/boot/dts/sama5d33ek_revc_pda7.dts create mode 100644 arch/arm/boot/dts/sama5d34ek_revc_pda7.dts create mode 100644 arch/arm/boot/dts/sama5d36ek_revc_pda7.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e7704bf2ef6807..e6959c30fa7412 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -47,20 +47,24 @@ dtb-$(CONFIG_ARCH_AT91) += sama5d31ek.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d31ek_pda4.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d31ek_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d31ek_revc.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d31ek_revc_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d33ek.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d33ek_pda4.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d33ek_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d33ek_revc.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d33ek_revc_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d34ek.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d34ek_pda4.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d34ek_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d34ek_revc.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d34ek_revc_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d35ek.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d35ek_revc.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d36ek.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d36ek_pda4.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d36ek_pda7.dtb dtb-$(CONFIG_ARCH_AT91) += sama5d36ek_revc.dtb +dtb-$(CONFIG_ARCH_AT91) += sama5d36ek_revc_pda7.dtb # sama5d4 dtb-$(CONFIG_ARCH_AT91) += at91-sama5d4_xplained.dtb dtb-$(CONFIG_ARCH_AT91) += at91-sama5d4ek.dtb diff --git a/arch/arm/boot/dts/sama5d31ek_revc_pda7.dts b/arch/arm/boot/dts/sama5d31ek_revc_pda7.dts new file mode 100644 index 00000000000000..251ef2e840cbe1 --- /dev/null +++ b/arch/arm/boot/dts/sama5d31ek_revc_pda7.dts @@ -0,0 +1,53 @@ +/* + * sama5d31ek_revc_pda7.dts - Device Tree file for SAMA5D31-EK with rev.C MB + PDA7" LCD + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d31.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xmb_revc_audio.dtsi" +#include "sama5d3xdm_pda7.dtsi" + +/ { + model = "Atmel SAMA5D31-EK"; + compatible = "atmel,sama5d31ek", "pda,tm70xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb1: ethernet@f802c000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d33ek_revc_pda7.dts b/arch/arm/boot/dts/sama5d33ek_revc_pda7.dts new file mode 100644 index 00000000000000..ac8b8be8249761 --- /dev/null +++ b/arch/arm/boot/dts/sama5d33ek_revc_pda7.dts @@ -0,0 +1,53 @@ +/* + * sama5d33ek_revc_pda7.dts - Device Tree file for SAMA5D33-EK with rev.C MB + PDA7" LCD + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d33.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xmb_revc_audio.dtsi" +#include "sama5d3xdm_pda7.dtsi" + +/ { + model = "Atmel SAMA5D33-EK"; + compatible = "atmel,sama5d33ek", "pda,tm70xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d33", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d34ek_revc_pda7.dts b/arch/arm/boot/dts/sama5d34ek_revc_pda7.dts new file mode 100644 index 00000000000000..53f6ad021249a1 --- /dev/null +++ b/arch/arm/boot/dts/sama5d34ek_revc_pda7.dts @@ -0,0 +1,63 @@ +/* + * sama5d34ek_revc_pda7.dts - Device Tree file for SAMA5D34-EK with rev.C MB + PDA7" LCD + * + * Copyright (C) 2013 Atmel, + * 2013 Ludovic Desroches + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d34.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xmb_revc_audio.dtsi" +#include "sama5d3xdm_pda7.dtsi" + +/ { + model = "Atmel SAMA5D34-EK"; + compatible = "atmel,sama5d34ek", "pda,tm70xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d34", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + can0: can@f000c000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + + 24c256@50 { + compatible = "24c256"; + reg = <0x50>; + pagesize = <64>; + }; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + }; + }; + + leds { + d3 { + label = "d3"; + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + status = "okay"; + }; +}; diff --git a/arch/arm/boot/dts/sama5d36ek_revc_pda7.dts b/arch/arm/boot/dts/sama5d36ek_revc_pda7.dts new file mode 100644 index 00000000000000..6a1aed799fb1d8 --- /dev/null +++ b/arch/arm/boot/dts/sama5d36ek_revc_pda7.dts @@ -0,0 +1,54 @@ +/* + * sama5d36ek_revc_pda7.dts - Device Tree file for SAMA5D36-EK with rev.C MB + PDA7" LCD + * + * Copyright (C) 2013 Atmel, + * 2013 Josh Wu + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "sama5d36.dtsi" +#include "sama5d3xmb.dtsi" +#include "sama5d3xmb_revc_audio.dtsi" +#include "sama5d3xdm_pda7.dtsi" + +/ { + model = "Atmel SAMA5D36-EK"; + compatible = "atmel,sama5d36ek", "pda,tm70xx", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d36", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + spi0: spi@f0004000 { + status = "okay"; + }; + + ssc0: ssc@f0008000 { + status = "okay"; + }; + + can0: can@f000c000 { + status = "okay"; + }; + + i2c0: i2c@f0014000 { + status = "okay"; + }; + + i2c1: i2c@f0018000 { + status = "okay"; + }; + + macb0: ethernet@f0028000 { + status = "okay"; + }; + + macb1: ethernet@f802c000 { + status = "okay"; + }; + }; + }; + + sound { + status = "okay"; + }; +};