Add Exynos4412-based midas boards support
Subsystems (5)
v5 cover Add Exynos4412-based midas boards support
Hi,
This patch series adds support for a new set of boards, codenamed "midas". These are the Galaxy S3 (GT-I9300/GT-I9305) and the Galaxy Note 2 (GT-N7100/GT-N7105).
These boards are closely related to trats2 - i9300 is a trats2 but with a bootloader geared towards booting Android rather than a traditional Linux distribution - and because of this, the dts files are largely based off what is already in-place for trats2. Trats2 is modified to use the dts files added by this series.
Patch #1 adds documentation for the bindings used by the boards. Patch #2 splits the existing trats2 DTS into the common midas, i9300/i9305/trats2-specific, and trats2-specific parts. Patch #3 adds the device-tree files for the other boards. Patch #4 enables cpuidle support for all added boards.
Changes since v1:
* Include trats2 in inheritance
* Add the new dtbs to the makefile
* Cleanup style per Krzysztof's comments
Changes since v2:
* Rebase on linux-next 20171218 (adds some fixes yet to land in mainline)
* Leave any changes to the DTS out of patch #2
* Minimise diff of exynos4412-midas.dtsi, using format-patch -B30% (thanks for the suggestion, Krzysztof)
* Leave original trats2 copyrights on midas and galaxy-s3 DTS files
* Preserve ABI for the cpuidle compatibility check
* Explain the m0/m3/t0 -> GT-I9300/GT-I9305/GT-N7100/GT-N7105 relationship in the DT binding docs.
Changes since v3:
* Abandon the m0/m3/t0 terminology in favour of model numbers (m0 => i9300, m3 => i9305, t0 => n710x)
* Use SPDX on all files, and keep Samsung copyrights where needed
* Clean up unnecessary disables of devicetree nodes
* Correct s5c73m3 vdda regulator for n710x
Changes since v4:
* Remove unneeded status = "okay" lines in regulator definitions
Cheers,
Simon
Simon Shields (4):
dt-bindings: samsung: document bindings for Midas family boards
ARM: dts: split trats2 DTS in preparation for midas boards
ARM: dts: add Samsung's exynos4412-based midas boards
ARM: exynos: extend cpuidle support to midas boards
.../bindings/arm/samsung/samsung-boards.txt | 4 +
arch/arm/boot/dts/Makefile | 3 +
arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi | 140 ++
arch/arm/boot/dts/exynos4412-i9300.dts | 22 +
arch/arm/boot/dts/exynos4412-i9305.dts | 20 +
...exynos4412-trats2.dts => exynos4412-midas.dtsi} | 119 +-
arch/arm/boot/dts/exynos4412-n710x.dts | 57 +
arch/arm/boot/dts/exynos4412-trats2.dts | 1441 +-------------------
arch/arm/mach-exynos/exynos.c | 3 +-
9 files changed, 281 insertions(+), 1528 deletions(-)
create mode 100644 arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi
create mode 100644 arch/arm/boot/dts/exynos4412-i9300.dts
create mode 100644 arch/arm/boot/dts/exynos4412-i9305.dts
copy arch/arm/boot/dts/{exynos4412-trats2.dts => exynos4412-midas.dtsi} (91%)
create mode 100644 arch/arm/boot/dts/exynos4412-n710x.dts rewrite arch/arm/boot/dts/exynos4412-trats2.dts (98%)
Signature · 1 line
2.16.0
PATCH v5 1/4 dt-bindings: samsung: document bindings for Midas family boards
Document GT-I9300, GT-I9305, GT-N7100, and GT-N7105 bindings, along with the shared "midas" binding.
--- Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt +4 -0
@@ -9,7 +9,11 @@ Required root node properties: - "samsung,smdkv310" - for Exynos4210-based Samsung SMDKV310 eval board. - "samsung,trats" - for Exynos4210-based Tizen Reference board. - "samsung,universal_c210" - for Exynos4210-based Samsung board. + - "samsung,i9300" - for Exynos4412-based Samsung GT-I9300 board. + - "samsung,i9305" - for Exynos4412-based Samsung GT-I9305 board. + - "samsung,midas" - for Exynos4412-based Samsung Midas board. - "samsung,smdk4412", - for Exynos4412-based Samsung SMDK4412 eval board. + - "samsung,n710x" - for Exynos4412-based Samsung GT-N7100/GT-N7105 board. - "samsung,trats2" - for Exynos4412-based Tizen Reference board. - "samsung,smdk5250" - for Exynos5250-based Samsung SMDK5250 eval board. - "samsung,xyref5260" - for Exynos5260-based Samsung board.
Signature · 1 line
2.16.0
Re: [PATCH v5 1/4] dt-bindings: samsung: document bindings for Midas family boards
Quoted 9 lines · Simon Shields
Document GT-I9300, GT-I9305, GT-N7100, and GT-N7105 bindings, along with the shared "midas" binding.
Signed-off-by Simon Shields <[email protected]>Reviewed-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt | 4 ++++ 1 file changed, 4 insertions(+)
Thanks, applied.
Best regards,
Krzysztof
A message that is not in the archive (sent off-list or not yet received): 20180208000137.11264-1-simon-WP75azK+jQYgsBAKwltoeQ@public.gmane.org
PATCH v5 2/4 ARM: dts: split trats2 DTS in preparation for midas boards
The midas boards share a lot with trats2. Split the common parts out of trats2 into a common midas dtsi and a common "galaxy s3" dts.
---
arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi | 140 ++
...exynos4412-trats2.dts => exynos4412-midas.dtsi} | 119 +-
arch/arm/boot/dts/exynos4412-trats2.dts | 1441 +-------------------
3 files changed, 173 insertions(+), 1527 deletions(-)
create mode 100644 arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi
copy arch/arm/boot/dts/{exynos4412-trats2.dts => exynos4412-midas.dtsi} (91%) rewrite arch/arm/boot/dts/exynos4412-trats2.dts (98%)
arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi new file +140 -0
@@ -0,0 +1,140 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Samsung's Exynos4412 based Galaxy S3 board device tree source + * + * Copyright (c) 2013 Samsung Electronics Co., Ltd. + * http://www.samsung.com + */ + +/dts-v1/; +#include "exynos4412-midas.dtsi" + +/ { + aliases { + i2c9 = &i2c_ak8975; + i2c10 = &i2c_cm36651; + }; + + regulators { + lcd_vdd3_reg: voltage-regulator-2 { + compatible = "regulator-fixed"; + regulator-name = "LCD_VDD_2.2V"; + regulator-min-microvolt = <2200000>; + regulator-max-microvolt = <2200000>; + gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + ps_als_reg: voltage-regulator-5 { + compatible = "regulator-fixed"; + regulator-name = "LED_A_3.0V"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + gpio = <&gpj0 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + }; + + i2c_ak8975: i2c-gpio-0 { + compatible = "i2c-gpio"; + gpios = <&gpy2 4 GPIO_ACTIVE_HIGH>, <&gpy2 5 GPIO_ACTIVE_HIGH>; + i2c-gpio,delay-us = <2>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ak8975@c { + compatible = "asahi-kasei,ak8975"; + reg = <0x0c>; + gpios = <&gpj0 7 GPIO_ACTIVE_HIGH>; + }; + }; + + i2c_cm36651: i2c-gpio-2 { + compatible = "i2c-gpio"; + gpios = <&gpf0 0 GPIO_ACTIVE_LOW>, <&gpf0 1 GPIO_ACTIVE_LOW>; + i2c-gpio,delay-us = <2>; + #address-cells = <1>; + #size-cells = <0>; + + cm36651@18 { + compatible = "capella,cm36651"; + reg = <0x18>; + interrupt-parent = <&gpx0>; + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + vled-supply = <&ps_als_reg>; + }; + }; +}; + +&buck9_reg { + maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>; +}; + +&cam_af_reg { + gpio = <&gpm0 4 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&cam_io_reg { + gpio = <&gpm0 2 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&dsi_0 { + status = "okay"; + + panel@0 { + compatible = "samsung,s6e8aa0"; + reg = <0>; + vdd3-supply = <&lcd_vdd3_reg>; + vci-supply = <&ldo25_reg>; + reset-gpios = <&gpf2 1 GPIO_ACTIVE_HIGH>; + power-on-delay= <50>; + reset-delay = <100>; + init-delay = <100>; + flip-horizontal; + flip-vertical; + panel-width-mm = <58>; + panel-height-mm = <103>; + + display-timings { + timing-0 { + clock-frequency = <57153600>; + hactive = <720>; + vactive = <1280>; + hfront-porch = <5>; + hback-porch = <5>; + hsync-len = <5>; + vfront-porch = <13>; + vback-porch = <1>; + vsync-len = <2>; + }; + }; + }; +}; + +&i2c_3 { + mms114-touchscreen@48 { + compatible = "melfas,mms114"; + reg = <0x48>; + interrupt-parent = <&gpm2>; + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; + x-size = <720>; + y-size = <1280>; + avdd-supply = <&ldo23_reg>; + vdd-supply = <&ldo24_reg>; + }; +}; + +&ldo25_reg { + regulator-name = "LCD_VCC_3.3V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; +}; + +&s5c73m3 { + standby-gpios = <&gpm0 1 GPIO_ACTIVE_LOW>; /* ISP_STANDBY */ + vdda-supply = <&ldo17_reg>; + status = "okay"; +};
arch/arm/boot/dts/exynos4412-midas.dtsi renamed from arch/arm/boot/dts/exynos4412-trats2.dts +7 -112
205 lines not on this page · raw message
arch/arm/boot/dts/exynos4412-trats2.dts +26 -1415
1,441 lines not on this page · raw message
Signature · 6 lines
2.16.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Krzysztof Kozlowski
maintainerRe: [PATCH v5 2/4] ARM: dts: split trats2 DTS in preparation for midas boards
Quoted 4 lines · Simon Shields
The midas boards share a lot with trats2. Split the common parts out of trats2 into a common midas dtsi and a common "galaxy s3" dts.
Signed-off-by Simon Shields <[email protected]>
Quoted 8 lines
--- arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi | 140 ++ ...exynos4412-trats2.dts => exynos4412-midas.dtsi} | 119 +- arch/arm/boot/dts/exynos4412-trats2.dts | 1441 +------------------- 3 files changed, 173 insertions(+), 1527 deletions(-) create mode 100644 arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi copy arch/arm/boot/dts/{exynos4412-trats2.dts => exynos4412-midas.dtsi} (91%)rewrite
arch/arm/boot/dts/exynos4412-trats2.dts(98%)
Unfortunately this does not apply anymore. Probably because Maciej's patch touching camera and pmu nodes. I was hoping this was the last iteration of the series but apparently not... sorry!
Please rebase on my latest next/dt or for-next branches (or linux-next in few days).
Best regards,
Krzysztof
PATCH v5 3/4 ARM: dts: add Samsung's exynos4412-based midas boards
In reply to a message not in the archive"midas" is the codename for a family of smartphones released by Samsung Mobile. It includes the Galaxy S3 (GT-I9300/I9305) and the Galaxy Note 2 (GT-N7100/N7105). The boards largely have the same peripherals:
the main differences are touchscreen, display panel and cellular modem.
--- arch/arm/boot/dts/Makefile | 3 ++ arch/arm/boot/dts/exynos4412-i9300.dts | 22 +++++++++++++ arch/arm/boot/dts/exynos4412-i9305.dts | 20 ++++++++++++ arch/arm/boot/dts/exynos4412-n710x.dts | 57 ++++++++++++++++++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4412-i9300.dts create mode 100644 arch/arm/boot/dts/exynos4412-i9305.dts create mode 100644 arch/arm/boot/dts/exynos4412-n710x.dts
arch/arm/boot/dts/Makefile +3 -0
@@ -163,7 +163,10 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ exynos4210-smdkv310.dtb \ exynos4210-trats.dtb \ exynos4210-universal_c210.dtb \ + exynos4412-i9300.dtb \ + exynos4412-i9305.dtb \ exynos4412-itop-elite.dtb \ + exynos4412-n710x.dtb \ exynos4412-odroidu3.dtb \ exynos4412-odroidx.dtb \ exynos4412-odroidx2.dtb \
arch/arm/boot/dts/exynos4412-i9300.dts new file +22 -0
@@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Samsung's Exynos4412 based M0 (GT-I9300) board device tree source + * + * Copyright (c) 2013 Samsung Electronics Co., Ltd. + * http://www.samsung.com + */ + +/dts-v1/; +#include "exynos4412-galaxy-s3.dtsi" + +/ { + model = "Samsung Galaxy S3 (GT-I9300) based on Exynos4412"; + compatible = "samsung,i9300", "samsung,midas", "samsung,exynos4412", "samsung,exynos4"; + + /* bootargs are passed in by bootloader */ + + memory@40000000 { + device_type = "memory"; + reg = <0x40000000 0x40000000>; + }; +};
arch/arm/boot/dts/exynos4412-i9305.dts new file +20 -0
@@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +#include "exynos4412-galaxy-s3.dtsi" + +/ { + model = "Samsung Galaxy S3 (GT-I9305) based on Exynos4412"; + compatible = "samsung,i9305", "samsung,midas", "samsung,exynos4412", "samsung,exynos4"; + + /* bootargs are passed in by bootloader */ + + memory@40000000 { + device_type = "memory"; + reg = <0x40000000 0x80000000>; + }; +}; + +&i2c0_bus { + /* SCL and SDA pins are swapped */ + samsung,pins = "gpd1-1", "gpd1-0"; +};
arch/arm/boot/dts/exynos4412-n710x.dts new file +57 -0
57 lines not on this page · raw message
Signature · 6 lines
2.16.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v5 4/4 ARM: exynos: extend cpuidle support to midas boards
In reply to Simon ShieldsExynos4412 can only use cpuidle when running under a compatible bootloader/firmware. The midas family of boards, including trats2, have such a firmware, so allow them to use cpuidle.
Leave the trats2 check there in order to preserve the ABI.
--- arch/arm/mach-exynos/exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-exynos/exynos.c +2 -1
@@ -196,7 +196,8 @@ static void __init exynos_dt_machine_init(void)#endif if (of_machine_is_compatible ("samsung,exynos4210" ) || (of_machine_is_compatible ("samsung,exynos4412" ) && -of_machine_is_compatible ("samsung,trats2" )) || + (of_machine_is_compatible ("samsung,trats2" ) || +of_machine_is_compatible ("samsung,midas" ))) ||of_machine_is_compatible ("samsung,exynos3250" ) ||of_machine_is_compatible ("samsung,exynos5250" ))platform_device_register (&exynos_cpuidle);
Signature · 1 line
2.16.0