Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: exynos: Add flash support to Galaxy S3 boards

The Galaxy S3 boards use an aat1290 to control the flash LED. Add the
relevant device tree configuration to use it.

Signed-off-by: Simon Shields <simon@lineageos.org>
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> [rebase]
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

authored by

Simon Shields and committed by
Krzysztof Kozlowski
4e4dfcb2 d2cac68e

+32
+32
arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi
··· 15 15 i2c10 = &i2c_cm36651; 16 16 }; 17 17 18 + aat1290 { 19 + compatible = "skyworks,aat1290"; 20 + flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; 21 + enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; 22 + 23 + pinctrl-names = "default", "host", "isp"; 24 + pinctrl-0 = <&camera_flash_host>; 25 + pinctrl-1 = <&camera_flash_host>; 26 + pinctrl-2 = <&camera_flash_isp>; 27 + 28 + flash-led { 29 + label = "flash"; 30 + led-max-microamp = <520833>; 31 + flash-max-microamp = <1012500>; 32 + flash-max-timeout-us = <1940000>; 33 + }; 34 + }; 35 + 18 36 lcd_vdd3_reg: voltage-regulator-6 { 19 37 compatible = "regulator-fixed"; 20 38 regulator-name = "LCD_VDD_2.2V"; ··· 147 129 regulator-name = "LCD_VCC_3.3V"; 148 130 regulator-min-microvolt = <2800000>; 149 131 regulator-max-microvolt = <2800000>; 132 + }; 133 + 134 + &pinctrl_0 { 135 + camera_flash_host: camera-flash-host { 136 + samsung,pins = "gpj1-0"; 137 + samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 138 + samsung,pin-val = <0>; 139 + }; 140 + 141 + camera_flash_isp: camera-flash-isp { 142 + samsung,pins = "gpj1-0"; 143 + samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 144 + samsung,pin-val = <1>; 145 + }; 150 146 }; 151 147 152 148 &s5c73m3 {