Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
On 09/17/2016 02:09 AM, Javier Martinez Canillas wrote: Hello Randy, On 09/16/2016 01:21 PM, Krzysztof Kozlowski wrote: [snip] + + beep { + compatible = "pwm-beeper"; + pwms = < 0 400 PWM_POLARITY_INVERTED>; I have serious doubts that you run this code... if it does not even compile. Sorry, I cannot accept code that does not compile and was not tested. Please, test your DTS on top of current Linux tree, which would be one of: 1. Linus' master branch: v4.8-rc6, 2. one of my branches (for-next, next/dt etc), When I sent those patches, I tested in "Add linux-next specific files for 20160907" OK, good, but please tell me why kbuild reported that build error? I agree with Krzysztof, it doesn't seem that you tested the exact version I am sure I does. that was posted. You will need the following change to make the DTS build in latest linux-next: I didn't post the patch is WIP, which would adding the LCD panel support to this board. diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts index dd83689892ff..8559f891a740 100644 --- a/arch/arm/boot/dts/exynos4412-itop-elite.dts +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -14,6 +14,7 @@ */ /dts-v1/; +#include #include #include "exynos4412-itop-scp-core.dtsi" So please squash that change and resend. I would, but I meet a problem in memory with the latest next-20160916, it seems that it can't access the memory while it never happened before. MMC read: dev # 1, block # 2048, count 14336 ...14336 blocks read: OK [58/426] Boot with zImage Starting kernel ... Uncompressing Linux... done, booting the kernel. [0.00] Booting Linux on physical CPU 0xa00 [0.00] Linux version 4.8.0-rc6-next-20160916-4-gae92137 (ayaka@ritsuko) (gcc version 6.1.0 (Buildroot 2016.05-6-g0 792d0d-dirty) ) #83 SMP PREEMPT Sun Sep 18 17:29:56 CST 2016 [0.00] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [0.00] OF: fdt:Machine model: TOPEET iTop 4412 Elite board based on Exynos4412 [0.00] bootconsole [earlycon0] enabled [0.00] OF: reserved mem: failed to allocate memory for node 'region_mfc_right' [0.00] OF: reserved mem: failed to allocate memory for node 'region_mfc_left' [0.00] cma: Failed to reserve 32 MiB [0.00] Memory policy: Data cache writealloc [0.00] Kernel panic - not syncing: ERROR: Failed to allocate 0x2000 bytes below 0x0. [0.00] [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 4.8.0-rc6-next-20160916-4-gae92137 #83 [0.00] Hardware name: SAMSUNG EXYNOS (Flattened Device Tree) [0.00] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [0.00] [] (show_stack) from [] (dump_stack+0x70/0x8c) [0.00] [] (dump_stack) from [] (panic+0xc4/0x244) [0.00] [] (panic) from [] (memblock_alloc_base+0x2c/0x38) [0.00] [] (memblock_alloc_base) from [] (early_alloc_aligned+0xc/0x2c) [0.00] [] (early_alloc_aligned) from [] (paging_init+0x548/0xa70) [0.00] [] (paging_init) from [] (setup_arch+0x50c/0xa28) [0.00] [] (setup_arch) from [] (start_kernel+0x50/0x384) [0.00] [] (start_kernel) from [<4000807c>] (0x4000807c) [0.00] ---[ end Kernel panic - not syncing: ERROR: Failed to allocate 0x2000 bytes below 0x0. [0.00 Best regards,
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
On 09/17/2016 02:09 AM, Javier Martinez Canillas wrote: Hello Randy, On 09/16/2016 01:21 PM, Krzysztof Kozlowski wrote: [snip] + + beep { + compatible = "pwm-beeper"; + pwms = < 0 400 PWM_POLARITY_INVERTED>; I have serious doubts that you run this code... if it does not even compile. Sorry, I cannot accept code that does not compile and was not tested. Please, test your DTS on top of current Linux tree, which would be one of: 1. Linus' master branch: v4.8-rc6, 2. one of my branches (for-next, next/dt etc), When I sent those patches, I tested in "Add linux-next specific files for 20160907" OK, good, but please tell me why kbuild reported that build error? I agree with Krzysztof, it doesn't seem that you tested the exact version I am sure I does. that was posted. You will need the following change to make the DTS build in latest linux-next: I didn't post the patch is WIP, which would adding the LCD panel support to this board. diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts index dd83689892ff..8559f891a740 100644 --- a/arch/arm/boot/dts/exynos4412-itop-elite.dts +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -14,6 +14,7 @@ */ /dts-v1/; +#include #include #include "exynos4412-itop-scp-core.dtsi" So please squash that change and resend. I would, but I meet a problem in memory with the latest next-20160916, it seems that it can't access the memory while it never happened before. MMC read: dev # 1, block # 2048, count 14336 ...14336 blocks read: OK [58/426] Boot with zImage Starting kernel ... Uncompressing Linux... done, booting the kernel. [0.00] Booting Linux on physical CPU 0xa00 [0.00] Linux version 4.8.0-rc6-next-20160916-4-gae92137 (ayaka@ritsuko) (gcc version 6.1.0 (Buildroot 2016.05-6-g0 792d0d-dirty) ) #83 SMP PREEMPT Sun Sep 18 17:29:56 CST 2016 [0.00] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [0.00] OF: fdt:Machine model: TOPEET iTop 4412 Elite board based on Exynos4412 [0.00] bootconsole [earlycon0] enabled [0.00] OF: reserved mem: failed to allocate memory for node 'region_mfc_right' [0.00] OF: reserved mem: failed to allocate memory for node 'region_mfc_left' [0.00] cma: Failed to reserve 32 MiB [0.00] Memory policy: Data cache writealloc [0.00] Kernel panic - not syncing: ERROR: Failed to allocate 0x2000 bytes below 0x0. [0.00] [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 4.8.0-rc6-next-20160916-4-gae92137 #83 [0.00] Hardware name: SAMSUNG EXYNOS (Flattened Device Tree) [0.00] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [0.00] [] (show_stack) from [] (dump_stack+0x70/0x8c) [0.00] [] (dump_stack) from [] (panic+0xc4/0x244) [0.00] [] (panic) from [] (memblock_alloc_base+0x2c/0x38) [0.00] [] (memblock_alloc_base) from [] (early_alloc_aligned+0xc/0x2c) [0.00] [] (early_alloc_aligned) from [] (paging_init+0x548/0xa70) [0.00] [] (paging_init) from [] (setup_arch+0x50c/0xa28) [0.00] [] (setup_arch) from [] (start_kernel+0x50/0x384) [0.00] [] (start_kernel) from [<4000807c>] (0x4000807c) [0.00] ---[ end Kernel panic - not syncing: ERROR: Failed to allocate 0x2000 bytes below 0x0. [0.00 Best regards,
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
Hello Randy, On 09/16/2016 01:21 PM, Krzysztof Kozlowski wrote: [snip] + + beep { + compatible = "pwm-beeper"; + pwms = < 0 400 PWM_POLARITY_INVERTED>; >>> I have serious doubts that you run this code... if it does not even >>> compile. Sorry, I cannot accept code that does not compile and was not >>> tested. >>> >>> Please, test your DTS on top of current Linux tree, which would be one of: >>> 1. Linus' master branch: v4.8-rc6, >>> 2. one of my branches (for-next, next/dt etc), >> When I sent those patches, I tested in "Add linux-next specific files for >> 20160907" > > OK, good, but please tell me why kbuild reported that build error? > I agree with Krzysztof, it doesn't seem that you tested the exact version that was posted. You will need the following change to make the DTS build in latest linux-next: diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts index dd83689892ff..8559f891a740 100644 --- a/arch/arm/boot/dts/exynos4412-itop-elite.dts +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -14,6 +14,7 @@ */ /dts-v1/; +#include #include #include "exynos4412-itop-scp-core.dtsi" So please squash that change and resend. Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
Hello Randy, On 09/16/2016 01:21 PM, Krzysztof Kozlowski wrote: [snip] + + beep { + compatible = "pwm-beeper"; + pwms = < 0 400 PWM_POLARITY_INVERTED>; >>> I have serious doubts that you run this code... if it does not even >>> compile. Sorry, I cannot accept code that does not compile and was not >>> tested. >>> >>> Please, test your DTS on top of current Linux tree, which would be one of: >>> 1. Linus' master branch: v4.8-rc6, >>> 2. one of my branches (for-next, next/dt etc), >> When I sent those patches, I tested in "Add linux-next specific files for >> 20160907" > > OK, good, but please tell me why kbuild reported that build error? > I agree with Krzysztof, it doesn't seem that you tested the exact version that was posted. You will need the following change to make the DTS build in latest linux-next: diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts index dd83689892ff..8559f891a740 100644 --- a/arch/arm/boot/dts/exynos4412-itop-elite.dts +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -14,6 +14,7 @@ */ /dts-v1/; +#include #include #include "exynos4412-itop-scp-core.dtsi" So please squash that change and resend. Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
On Fri, Sep 16, 2016 at 10:04:29PM +0800, ayaka wrote: > On 09/16/2016 03:23 PM, Krzysztof Kozlowski wrote: > >On 09/07/2016 11:58 PM, Randy Li wrote: > >>The TOPEET itop exynos 4412 have three versions base board. The > >>Elite version is the cheap one without too much peripheral devices > >>on it. > >> > >>Currently supported are serial console, wired networking(USB), > >>USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, > >>PWM beeper, ADC and LEDs. The WM8960 analog audio codec is also > >>enabled. > >> > >>The FIMC is not used for camera currently, I enabled it just for a > >>colorspace convertor. > >> > >>Signed-off-by: Randy Li> >>--- > >> .../bindings/arm/samsung/samsung-boards.txt| 3 + > >> arch/arm/boot/dts/Makefile | 1 + > >> arch/arm/boot/dts/exynos4412-itop-elite.dts| 239 > >> + > >> 3 files changed, 243 insertions(+) > >> create mode 100644 arch/arm/boot/dts/exynos4412-itop-elite.dts > >> > >>diff --git > >>a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > >>b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > >>index 0ea7f14..c7159ac 100644 > >>--- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > >>+++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > >>@@ -22,6 +22,9 @@ Required root node properties: > >>* FriendlyARM > >>- "friendlyarm,tiny4412" - for Exynos4412-based FriendlyARM > >>TINY4412 board. > >>+ * TOPEET > >>+ - "topeet,itop4412-elite" - for Exynos4412-based TOPEET > >>+Elite base board. > >>* Google > >>- "google,pi" - for Exynos5800-based Google Peach Pi > >>diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > >>index 207f96f..0b39d00 100644 > >>--- a/arch/arm/boot/dts/Makefile > >>+++ b/arch/arm/boot/dts/Makefile > >>@@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ > >>exynos4210-smdkv310.dtb \ > >>exynos4210-trats.dtb \ > >>exynos4210-universal_c210.dtb \ > >>+ exynos4412-itop-elite.dtb \ > >>exynos4412-odroidu3.dtb \ > >>exynos4412-odroidx.dtb \ > >>exynos4412-odroidx2.dtb \ > >>diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts > >>b/arch/arm/boot/dts/exynos4412-itop-elite.dts > >>new file mode 100644 > >>index 000..dd83689 > >>--- /dev/null > >>+++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts > >>@@ -0,0 +1,239 @@ > >>+/* > >>+ * TOPEET's Exynos4412 based itop board device tree source > >>+ * > >>+ * Copyright (c) 2016 SUMOMO Computer Association > >>+ * https://www.sumomo.mobi > >>+ * Randy Li > >>+ * > >>+ * Device tree source file for TOPEET iTop Exynos 4412 core board > >>+ * which is based on Samsung's Exynos4412 SoC. > >>+ * > >>+ * This program is free software; you can redistribute it and/or modify > >>+ * it under the terms of the GNU General Public License version 2 as > >>+ * published by the Free Software Foundation. > >>+*/ > >>+ > >>+/dts-v1/; > >>+#include > >>+#include "exynos4412-itop-scp-core.dtsi" > >>+ > >>+/ { > >>+ model = "TOPEET iTop 4412 Elite board based on Exynos4412"; > >>+ compatible = "topeet,itop4412-elite", "samsung,exynos4412", > >>"samsung,exynos4"; > >>+ > >>+ chosen { > >>+ bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"; > >>+ stdout-path = "serial2:115200n8"; > >>+ }; > >>+ > >>+ leds { > >>+ compatible = "gpio-leds"; > >>+ > >>+ led2 { > >>+ label = "red:system"; > >>+ gpios = < 0 GPIO_ACTIVE_HIGH>; > >>+ default-state = "off"; > >>+ linux,default-trigger = "heartbeat"; > >>+ }; > >>+ > >>+ led3 { > >>+ label = "red:user"; > >>+ gpios = < 1 GPIO_ACTIVE_HIGH>; > >>+ default-state = "off"; > >>+ }; > >>+ }; > >>+ > >>+ gpio-keys { > >>+ compatible = "gpio-keys"; > >>+ > >>+ home { > >>+ label = "GPIO Key Home"; > >>+ linux,code = ; > >>+ gpios = < 1 GPIO_ACTIVE_LOW>; > >>+ }; > >>+ > >>+ back { > >>+ label = "GPIO Key Back"; > >>+ linux,code = ; > >>+ gpios = < 2 GPIO_ACTIVE_LOW>; > >>+ }; > >>+ > >>+ sleep { > >>+ label = "GPIO Key Sleep"; > >>+ linux,code = ; > >>+ gpios = < 3 GPIO_ACTIVE_LOW>; > >>+ }; > >>+ > >>+ vol-up { > >>+ label = "GPIO Key Vol+"; > >>+ linux,code = ; > >>+ gpios = < 1 GPIO_ACTIVE_LOW>; > >>+ }; > >>+ > >>+ vol-down { > >>+ label = "GPIO
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
On Fri, Sep 16, 2016 at 10:04:29PM +0800, ayaka wrote: > On 09/16/2016 03:23 PM, Krzysztof Kozlowski wrote: > >On 09/07/2016 11:58 PM, Randy Li wrote: > >>The TOPEET itop exynos 4412 have three versions base board. The > >>Elite version is the cheap one without too much peripheral devices > >>on it. > >> > >>Currently supported are serial console, wired networking(USB), > >>USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, > >>PWM beeper, ADC and LEDs. The WM8960 analog audio codec is also > >>enabled. > >> > >>The FIMC is not used for camera currently, I enabled it just for a > >>colorspace convertor. > >> > >>Signed-off-by: Randy Li > >>--- > >> .../bindings/arm/samsung/samsung-boards.txt| 3 + > >> arch/arm/boot/dts/Makefile | 1 + > >> arch/arm/boot/dts/exynos4412-itop-elite.dts| 239 > >> + > >> 3 files changed, 243 insertions(+) > >> create mode 100644 arch/arm/boot/dts/exynos4412-itop-elite.dts > >> > >>diff --git > >>a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > >>b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > >>index 0ea7f14..c7159ac 100644 > >>--- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > >>+++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > >>@@ -22,6 +22,9 @@ Required root node properties: > >>* FriendlyARM > >>- "friendlyarm,tiny4412" - for Exynos4412-based FriendlyARM > >>TINY4412 board. > >>+ * TOPEET > >>+ - "topeet,itop4412-elite" - for Exynos4412-based TOPEET > >>+Elite base board. > >>* Google > >>- "google,pi" - for Exynos5800-based Google Peach Pi > >>diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > >>index 207f96f..0b39d00 100644 > >>--- a/arch/arm/boot/dts/Makefile > >>+++ b/arch/arm/boot/dts/Makefile > >>@@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ > >>exynos4210-smdkv310.dtb \ > >>exynos4210-trats.dtb \ > >>exynos4210-universal_c210.dtb \ > >>+ exynos4412-itop-elite.dtb \ > >>exynos4412-odroidu3.dtb \ > >>exynos4412-odroidx.dtb \ > >>exynos4412-odroidx2.dtb \ > >>diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts > >>b/arch/arm/boot/dts/exynos4412-itop-elite.dts > >>new file mode 100644 > >>index 000..dd83689 > >>--- /dev/null > >>+++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts > >>@@ -0,0 +1,239 @@ > >>+/* > >>+ * TOPEET's Exynos4412 based itop board device tree source > >>+ * > >>+ * Copyright (c) 2016 SUMOMO Computer Association > >>+ * https://www.sumomo.mobi > >>+ * Randy Li > >>+ * > >>+ * Device tree source file for TOPEET iTop Exynos 4412 core board > >>+ * which is based on Samsung's Exynos4412 SoC. > >>+ * > >>+ * This program is free software; you can redistribute it and/or modify > >>+ * it under the terms of the GNU General Public License version 2 as > >>+ * published by the Free Software Foundation. > >>+*/ > >>+ > >>+/dts-v1/; > >>+#include > >>+#include "exynos4412-itop-scp-core.dtsi" > >>+ > >>+/ { > >>+ model = "TOPEET iTop 4412 Elite board based on Exynos4412"; > >>+ compatible = "topeet,itop4412-elite", "samsung,exynos4412", > >>"samsung,exynos4"; > >>+ > >>+ chosen { > >>+ bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"; > >>+ stdout-path = "serial2:115200n8"; > >>+ }; > >>+ > >>+ leds { > >>+ compatible = "gpio-leds"; > >>+ > >>+ led2 { > >>+ label = "red:system"; > >>+ gpios = < 0 GPIO_ACTIVE_HIGH>; > >>+ default-state = "off"; > >>+ linux,default-trigger = "heartbeat"; > >>+ }; > >>+ > >>+ led3 { > >>+ label = "red:user"; > >>+ gpios = < 1 GPIO_ACTIVE_HIGH>; > >>+ default-state = "off"; > >>+ }; > >>+ }; > >>+ > >>+ gpio-keys { > >>+ compatible = "gpio-keys"; > >>+ > >>+ home { > >>+ label = "GPIO Key Home"; > >>+ linux,code = ; > >>+ gpios = < 1 GPIO_ACTIVE_LOW>; > >>+ }; > >>+ > >>+ back { > >>+ label = "GPIO Key Back"; > >>+ linux,code = ; > >>+ gpios = < 2 GPIO_ACTIVE_LOW>; > >>+ }; > >>+ > >>+ sleep { > >>+ label = "GPIO Key Sleep"; > >>+ linux,code = ; > >>+ gpios = < 3 GPIO_ACTIVE_LOW>; > >>+ }; > >>+ > >>+ vol-up { > >>+ label = "GPIO Key Vol+"; > >>+ linux,code = ; > >>+ gpios = < 1 GPIO_ACTIVE_LOW>; > >>+ }; > >>+ > >>+ vol-down { > >>+ label = "GPIO Key Vol-"; > >>+
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
On 09/16/2016 03:23 PM, Krzysztof Kozlowski wrote: On 09/07/2016 11:58 PM, Randy Li wrote: The TOPEET itop exynos 4412 have three versions base board. The Elite version is the cheap one without too much peripheral devices on it. Currently supported are serial console, wired networking(USB), USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, PWM beeper, ADC and LEDs. The WM8960 analog audio codec is also enabled. The FIMC is not used for camera currently, I enabled it just for a colorspace convertor. Signed-off-by: Randy Li--- .../bindings/arm/samsung/samsung-boards.txt| 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos4412-itop-elite.dts| 239 + 3 files changed, 243 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4412-itop-elite.dts diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt index 0ea7f14..c7159ac 100644 --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt @@ -22,6 +22,9 @@ Required root node properties: * FriendlyARM - "friendlyarm,tiny4412" - for Exynos4412-based FriendlyARM TINY4412 board. + * TOPEET + - "topeet,itop4412-elite" - for Exynos4412-based TOPEET +Elite base board. * Google - "google,pi" - for Exynos5800-based Google Peach Pi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 207f96f..0b39d00 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ exynos4210-smdkv310.dtb \ exynos4210-trats.dtb \ exynos4210-universal_c210.dtb \ + exynos4412-itop-elite.dtb \ exynos4412-odroidu3.dtb \ exynos4412-odroidx.dtb \ exynos4412-odroidx2.dtb \ diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts new file mode 100644 index 000..dd83689 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -0,0 +1,239 @@ +/* + * TOPEET's Exynos4412 based itop board device tree source + * + * Copyright (c) 2016 SUMOMO Computer Association + * https://www.sumomo.mobi + * Randy Li + * + * Device tree source file for TOPEET iTop Exynos 4412 core board + * which is based on Samsung's Exynos4412 SoC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +/dts-v1/; +#include +#include "exynos4412-itop-scp-core.dtsi" + +/ { + model = "TOPEET iTop 4412 Elite board based on Exynos4412"; + compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4"; + + chosen { + bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"; + stdout-path = "serial2:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + led2 { + label = "red:system"; + gpios = < 0 GPIO_ACTIVE_HIGH>; + default-state = "off"; + linux,default-trigger = "heartbeat"; + }; + + led3 { + label = "red:user"; + gpios = < 1 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + home { + label = "GPIO Key Home"; + linux,code = ; + gpios = < 1 GPIO_ACTIVE_LOW>; + }; + + back { + label = "GPIO Key Back"; + linux,code = ; + gpios = < 2 GPIO_ACTIVE_LOW>; + }; + + sleep { + label = "GPIO Key Sleep"; + linux,code = ; + gpios = < 3 GPIO_ACTIVE_LOW>; + }; + + vol-up { + label = "GPIO Key Vol+"; + linux,code = ; + gpios = < 1 GPIO_ACTIVE_LOW>; + }; + + vol-down { + label = "GPIO Key Vol-"; + linux,code = ; + gpios = < 0 GPIO_ACTIVE_LOW>; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "wm-sound"; + + assigned-clocks = <_audss EXYNOS_MOUT_AUDSS>, +
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
On 09/16/2016 03:23 PM, Krzysztof Kozlowski wrote: On 09/07/2016 11:58 PM, Randy Li wrote: The TOPEET itop exynos 4412 have three versions base board. The Elite version is the cheap one without too much peripheral devices on it. Currently supported are serial console, wired networking(USB), USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, PWM beeper, ADC and LEDs. The WM8960 analog audio codec is also enabled. The FIMC is not used for camera currently, I enabled it just for a colorspace convertor. Signed-off-by: Randy Li --- .../bindings/arm/samsung/samsung-boards.txt| 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos4412-itop-elite.dts| 239 + 3 files changed, 243 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4412-itop-elite.dts diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt index 0ea7f14..c7159ac 100644 --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt @@ -22,6 +22,9 @@ Required root node properties: * FriendlyARM - "friendlyarm,tiny4412" - for Exynos4412-based FriendlyARM TINY4412 board. + * TOPEET + - "topeet,itop4412-elite" - for Exynos4412-based TOPEET +Elite base board. * Google - "google,pi" - for Exynos5800-based Google Peach Pi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 207f96f..0b39d00 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ exynos4210-smdkv310.dtb \ exynos4210-trats.dtb \ exynos4210-universal_c210.dtb \ + exynos4412-itop-elite.dtb \ exynos4412-odroidu3.dtb \ exynos4412-odroidx.dtb \ exynos4412-odroidx2.dtb \ diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts new file mode 100644 index 000..dd83689 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -0,0 +1,239 @@ +/* + * TOPEET's Exynos4412 based itop board device tree source + * + * Copyright (c) 2016 SUMOMO Computer Association + * https://www.sumomo.mobi + * Randy Li + * + * Device tree source file for TOPEET iTop Exynos 4412 core board + * which is based on Samsung's Exynos4412 SoC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +/dts-v1/; +#include +#include "exynos4412-itop-scp-core.dtsi" + +/ { + model = "TOPEET iTop 4412 Elite board based on Exynos4412"; + compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4"; + + chosen { + bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"; + stdout-path = "serial2:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + led2 { + label = "red:system"; + gpios = < 0 GPIO_ACTIVE_HIGH>; + default-state = "off"; + linux,default-trigger = "heartbeat"; + }; + + led3 { + label = "red:user"; + gpios = < 1 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + home { + label = "GPIO Key Home"; + linux,code = ; + gpios = < 1 GPIO_ACTIVE_LOW>; + }; + + back { + label = "GPIO Key Back"; + linux,code = ; + gpios = < 2 GPIO_ACTIVE_LOW>; + }; + + sleep { + label = "GPIO Key Sleep"; + linux,code = ; + gpios = < 3 GPIO_ACTIVE_LOW>; + }; + + vol-up { + label = "GPIO Key Vol+"; + linux,code = ; + gpios = < 1 GPIO_ACTIVE_LOW>; + }; + + vol-down { + label = "GPIO Key Vol-"; + linux,code = ; + gpios = < 0 GPIO_ACTIVE_LOW>; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "wm-sound"; + + assigned-clocks = <_audss EXYNOS_MOUT_AUDSS>, + <_audss
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
On 09/07/2016 11:58 PM, Randy Li wrote: > The TOPEET itop exynos 4412 have three versions base board. The > Elite version is the cheap one without too much peripheral devices > on it. > > Currently supported are serial console, wired networking(USB), > USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, > PWM beeper, ADC and LEDs. The WM8960 analog audio codec is also > enabled. > > The FIMC is not used for camera currently, I enabled it just for a > colorspace convertor. > > Signed-off-by: Randy Li> --- > .../bindings/arm/samsung/samsung-boards.txt| 3 + > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/exynos4412-itop-elite.dts| 239 > + > 3 files changed, 243 insertions(+) > create mode 100644 arch/arm/boot/dts/exynos4412-itop-elite.dts > > diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > index 0ea7f14..c7159ac 100644 > --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > @@ -22,6 +22,9 @@ Required root node properties: >* FriendlyARM > - "friendlyarm,tiny4412" - for Exynos4412-based FriendlyARM > TINY4412 board. > + * TOPEET > + - "topeet,itop4412-elite" - for Exynos4412-based TOPEET > +Elite base board. > > >* Google > - "google,pi" - for Exynos5800-based Google Peach Pi > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 207f96f..0b39d00 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ > exynos4210-smdkv310.dtb \ > exynos4210-trats.dtb \ > exynos4210-universal_c210.dtb \ > + exynos4412-itop-elite.dtb \ > exynos4412-odroidu3.dtb \ > exynos4412-odroidx.dtb \ > exynos4412-odroidx2.dtb \ > diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts > b/arch/arm/boot/dts/exynos4412-itop-elite.dts > new file mode 100644 > index 000..dd83689 > --- /dev/null > +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts > @@ -0,0 +1,239 @@ > +/* > + * TOPEET's Exynos4412 based itop board device tree source > + * > + * Copyright (c) 2016 SUMOMO Computer Association > + * https://www.sumomo.mobi > + * Randy Li > + * > + * Device tree source file for TOPEET iTop Exynos 4412 core board > + * which is based on Samsung's Exynos4412 SoC. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > +*/ > + > +/dts-v1/; > +#include > +#include "exynos4412-itop-scp-core.dtsi" > + > +/ { > + model = "TOPEET iTop 4412 Elite board based on Exynos4412"; > + compatible = "topeet,itop4412-elite", "samsung,exynos4412", > "samsung,exynos4"; > + > + chosen { > + bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"; > + stdout-path = "serial2:115200n8"; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led2 { > + label = "red:system"; > + gpios = < 0 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + linux,default-trigger = "heartbeat"; > + }; > + > + led3 { > + label = "red:user"; > + gpios = < 1 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + home { > + label = "GPIO Key Home"; > + linux,code = ; > + gpios = < 1 GPIO_ACTIVE_LOW>; > + }; > + > + back { > + label = "GPIO Key Back"; > + linux,code = ; > + gpios = < 2 GPIO_ACTIVE_LOW>; > + }; > + > + sleep { > + label = "GPIO Key Sleep"; > + linux,code = ; > + gpios = < 3 GPIO_ACTIVE_LOW>; > + }; > + > + vol-up { > + label = "GPIO Key Vol+"; > + linux,code = ; > + gpios = < 1 GPIO_ACTIVE_LOW>; > + }; > + > + vol-down { > + label = "GPIO Key Vol-"; > + linux,code = ; > + gpios = < 0 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + sound { > + compatible = "simple-audio-card"; > +
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
On 09/07/2016 11:58 PM, Randy Li wrote: > The TOPEET itop exynos 4412 have three versions base board. The > Elite version is the cheap one without too much peripheral devices > on it. > > Currently supported are serial console, wired networking(USB), > USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, > PWM beeper, ADC and LEDs. The WM8960 analog audio codec is also > enabled. > > The FIMC is not used for camera currently, I enabled it just for a > colorspace convertor. > > Signed-off-by: Randy Li > --- > .../bindings/arm/samsung/samsung-boards.txt| 3 + > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/exynos4412-itop-elite.dts| 239 > + > 3 files changed, 243 insertions(+) > create mode 100644 arch/arm/boot/dts/exynos4412-itop-elite.dts > > diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > index 0ea7f14..c7159ac 100644 > --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > @@ -22,6 +22,9 @@ Required root node properties: >* FriendlyARM > - "friendlyarm,tiny4412" - for Exynos4412-based FriendlyARM > TINY4412 board. > + * TOPEET > + - "topeet,itop4412-elite" - for Exynos4412-based TOPEET > +Elite base board. > > >* Google > - "google,pi" - for Exynos5800-based Google Peach Pi > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 207f96f..0b39d00 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ > exynos4210-smdkv310.dtb \ > exynos4210-trats.dtb \ > exynos4210-universal_c210.dtb \ > + exynos4412-itop-elite.dtb \ > exynos4412-odroidu3.dtb \ > exynos4412-odroidx.dtb \ > exynos4412-odroidx2.dtb \ > diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts > b/arch/arm/boot/dts/exynos4412-itop-elite.dts > new file mode 100644 > index 000..dd83689 > --- /dev/null > +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts > @@ -0,0 +1,239 @@ > +/* > + * TOPEET's Exynos4412 based itop board device tree source > + * > + * Copyright (c) 2016 SUMOMO Computer Association > + * https://www.sumomo.mobi > + * Randy Li > + * > + * Device tree source file for TOPEET iTop Exynos 4412 core board > + * which is based on Samsung's Exynos4412 SoC. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > +*/ > + > +/dts-v1/; > +#include > +#include "exynos4412-itop-scp-core.dtsi" > + > +/ { > + model = "TOPEET iTop 4412 Elite board based on Exynos4412"; > + compatible = "topeet,itop4412-elite", "samsung,exynos4412", > "samsung,exynos4"; > + > + chosen { > + bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"; > + stdout-path = "serial2:115200n8"; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led2 { > + label = "red:system"; > + gpios = < 0 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + linux,default-trigger = "heartbeat"; > + }; > + > + led3 { > + label = "red:user"; > + gpios = < 1 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + home { > + label = "GPIO Key Home"; > + linux,code = ; > + gpios = < 1 GPIO_ACTIVE_LOW>; > + }; > + > + back { > + label = "GPIO Key Back"; > + linux,code = ; > + gpios = < 2 GPIO_ACTIVE_LOW>; > + }; > + > + sleep { > + label = "GPIO Key Sleep"; > + linux,code = ; > + gpios = < 3 GPIO_ACTIVE_LOW>; > + }; > + > + vol-up { > + label = "GPIO Key Vol+"; > + linux,code = ; > + gpios = < 1 GPIO_ACTIVE_LOW>; > + }; > + > + vol-down { > + label = "GPIO Key Vol-"; > + linux,code = ; > + gpios = < 0 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + sound { > + compatible = "simple-audio-card"; > + simple-audio-card,name = "wm-sound"; > +
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
Hi Randy, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.8-rc5 next-20160907] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Randy-Li/Add-a-new-board-TOPEET-iTOP-for-Exynos-4412/20160908-060206 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm-omap2plus_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): >> Error: arch/arm/boot/dts/exynos4412-itop-elite.dts:130.26-27 syntax error FATAL ERROR: Unable to parse input tree --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: Binary data
Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
Hi Randy, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.8-rc5 next-20160907] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Randy-Li/Add-a-new-board-TOPEET-iTOP-for-Exynos-4412/20160908-060206 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm-omap2plus_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): >> Error: arch/arm/boot/dts/exynos4412-itop-elite.dts:130.26-27 syntax error FATAL ERROR: Unable to parse input tree --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: Binary data
[PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
The TOPEET itop exynos 4412 have three versions base board. The Elite version is the cheap one without too much peripheral devices on it. Currently supported are serial console, wired networking(USB), USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, PWM beeper, ADC and LEDs. The WM8960 analog audio codec is also enabled. The FIMC is not used for camera currently, I enabled it just for a colorspace convertor. Signed-off-by: Randy Li--- .../bindings/arm/samsung/samsung-boards.txt| 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos4412-itop-elite.dts| 239 + 3 files changed, 243 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4412-itop-elite.dts diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt index 0ea7f14..c7159ac 100644 --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt @@ -22,6 +22,9 @@ Required root node properties: * FriendlyARM - "friendlyarm,tiny4412" - for Exynos4412-based FriendlyARM TINY4412 board. + * TOPEET + - "topeet,itop4412-elite" - for Exynos4412-based TOPEET +Elite base board. * Google - "google,pi" - for Exynos5800-based Google Peach Pi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 207f96f..0b39d00 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ exynos4210-smdkv310.dtb \ exynos4210-trats.dtb \ exynos4210-universal_c210.dtb \ + exynos4412-itop-elite.dtb \ exynos4412-odroidu3.dtb \ exynos4412-odroidx.dtb \ exynos4412-odroidx2.dtb \ diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts new file mode 100644 index 000..dd83689 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -0,0 +1,239 @@ +/* + * TOPEET's Exynos4412 based itop board device tree source + * + * Copyright (c) 2016 SUMOMO Computer Association + * https://www.sumomo.mobi + * Randy Li + * + * Device tree source file for TOPEET iTop Exynos 4412 core board + * which is based on Samsung's Exynos4412 SoC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +/dts-v1/; +#include +#include "exynos4412-itop-scp-core.dtsi" + +/ { + model = "TOPEET iTop 4412 Elite board based on Exynos4412"; + compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4"; + + chosen { + bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"; + stdout-path = "serial2:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + led2 { + label = "red:system"; + gpios = < 0 GPIO_ACTIVE_HIGH>; + default-state = "off"; + linux,default-trigger = "heartbeat"; + }; + + led3 { + label = "red:user"; + gpios = < 1 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + home { + label = "GPIO Key Home"; + linux,code = ; + gpios = < 1 GPIO_ACTIVE_LOW>; + }; + + back { + label = "GPIO Key Back"; + linux,code = ; + gpios = < 2 GPIO_ACTIVE_LOW>; + }; + + sleep { + label = "GPIO Key Sleep"; + linux,code = ; + gpios = < 3 GPIO_ACTIVE_LOW>; + }; + + vol-up { + label = "GPIO Key Vol+"; + linux,code = ; + gpios = < 1 GPIO_ACTIVE_LOW>; + }; + + vol-down { + label = "GPIO Key Vol-"; + linux,code = ; + gpios = < 0 GPIO_ACTIVE_LOW>; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "wm-sound"; + + assigned-clocks = <_audss EXYNOS_MOUT_AUDSS>, + <_audss EXYNOS_MOUT_I2S>, +
[PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board
The TOPEET itop exynos 4412 have three versions base board. The Elite version is the cheap one without too much peripheral devices on it. Currently supported are serial console, wired networking(USB), USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, PWM beeper, ADC and LEDs. The WM8960 analog audio codec is also enabled. The FIMC is not used for camera currently, I enabled it just for a colorspace convertor. Signed-off-by: Randy Li --- .../bindings/arm/samsung/samsung-boards.txt| 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos4412-itop-elite.dts| 239 + 3 files changed, 243 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4412-itop-elite.dts diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt index 0ea7f14..c7159ac 100644 --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt @@ -22,6 +22,9 @@ Required root node properties: * FriendlyARM - "friendlyarm,tiny4412" - for Exynos4412-based FriendlyARM TINY4412 board. + * TOPEET + - "topeet,itop4412-elite" - for Exynos4412-based TOPEET +Elite base board. * Google - "google,pi" - for Exynos5800-based Google Peach Pi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 207f96f..0b39d00 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ exynos4210-smdkv310.dtb \ exynos4210-trats.dtb \ exynos4210-universal_c210.dtb \ + exynos4412-itop-elite.dtb \ exynos4412-odroidu3.dtb \ exynos4412-odroidx.dtb \ exynos4412-odroidx2.dtb \ diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop-elite.dts new file mode 100644 index 000..dd83689 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-itop-elite.dts @@ -0,0 +1,239 @@ +/* + * TOPEET's Exynos4412 based itop board device tree source + * + * Copyright (c) 2016 SUMOMO Computer Association + * https://www.sumomo.mobi + * Randy Li + * + * Device tree source file for TOPEET iTop Exynos 4412 core board + * which is based on Samsung's Exynos4412 SoC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +/dts-v1/; +#include +#include "exynos4412-itop-scp-core.dtsi" + +/ { + model = "TOPEET iTop 4412 Elite board based on Exynos4412"; + compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4"; + + chosen { + bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"; + stdout-path = "serial2:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + led2 { + label = "red:system"; + gpios = < 0 GPIO_ACTIVE_HIGH>; + default-state = "off"; + linux,default-trigger = "heartbeat"; + }; + + led3 { + label = "red:user"; + gpios = < 1 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + home { + label = "GPIO Key Home"; + linux,code = ; + gpios = < 1 GPIO_ACTIVE_LOW>; + }; + + back { + label = "GPIO Key Back"; + linux,code = ; + gpios = < 2 GPIO_ACTIVE_LOW>; + }; + + sleep { + label = "GPIO Key Sleep"; + linux,code = ; + gpios = < 3 GPIO_ACTIVE_LOW>; + }; + + vol-up { + label = "GPIO Key Vol+"; + linux,code = ; + gpios = < 1 GPIO_ACTIVE_LOW>; + }; + + vol-down { + label = "GPIO Key Vol-"; + linux,code = ; + gpios = < 0 GPIO_ACTIVE_LOW>; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "wm-sound"; + + assigned-clocks = <_audss EXYNOS_MOUT_AUDSS>, + <_audss EXYNOS_MOUT_I2S>, + <_audss EXYNOS_DOUT_SRP>, +