1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/* 3724ba675SRob Herring * Samsung's Exynos4412 based Galaxy S3 board device tree source 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (c) 2013 Samsung Electronics Co., Ltd. 6724ba675SRob Herring * http://www.samsung.com 7724ba675SRob Herring */ 8724ba675SRob Herring 9724ba675SRob Herring/dts-v1/; 10724ba675SRob Herring#include <dt-bindings/leds/common.h> 11724ba675SRob Herring#include "exynos4412-midas.dtsi" 12724ba675SRob Herring 13724ba675SRob Herring/ { 14724ba675SRob Herring aliases { 15724ba675SRob Herring i2c9 = &i2c_ak8975; 16724ba675SRob Herring i2c10 = &i2c_cm36651; 17724ba675SRob Herring }; 18724ba675SRob Herring 19724ba675SRob Herring led-controller { 20724ba675SRob Herring compatible = "skyworks,aat1290"; 21724ba675SRob Herring flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; 22724ba675SRob Herring enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; 23724ba675SRob Herring 24724ba675SRob Herring pinctrl-names = "default", "host", "isp"; 25724ba675SRob Herring pinctrl-0 = <&camera_flash_host>; 26724ba675SRob Herring pinctrl-1 = <&camera_flash_host>; 27724ba675SRob Herring pinctrl-2 = <&camera_flash_isp>; 28724ba675SRob Herring 29724ba675SRob Herring led { 30724ba675SRob Herring function = LED_FUNCTION_FLASH; 31724ba675SRob Herring color = <LED_COLOR_ID_WHITE>; 32724ba675SRob Herring led-max-microamp = <520833>; 33724ba675SRob Herring flash-max-microamp = <1012500>; 34724ba675SRob Herring flash-max-timeout-us = <1940000>; 35724ba675SRob Herring }; 36724ba675SRob Herring }; 37724ba675SRob Herring 38724ba675SRob Herring lcd_vdd3_reg: voltage-regulator-10 { 39724ba675SRob Herring compatible = "regulator-fixed"; 40724ba675SRob Herring regulator-name = "LCD_VDD_2.2V"; 41724ba675SRob Herring regulator-min-microvolt = <2200000>; 42724ba675SRob Herring regulator-max-microvolt = <2200000>; 43724ba675SRob Herring gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>; 44724ba675SRob Herring enable-active-high; 45724ba675SRob Herring }; 46724ba675SRob Herring 47724ba675SRob Herring ps_als_reg: voltage-regulator-11 { 48724ba675SRob Herring compatible = "regulator-fixed"; 49724ba675SRob Herring regulator-name = "LED_A_3.0V"; 50724ba675SRob Herring regulator-min-microvolt = <3000000>; 51724ba675SRob Herring regulator-max-microvolt = <3000000>; 52724ba675SRob Herring gpio = <&gpj0 5 GPIO_ACTIVE_HIGH>; 53724ba675SRob Herring enable-active-high; 54724ba675SRob Herring }; 55724ba675SRob Herring 56724ba675SRob Herring i2c_ak8975: i2c-gpio-0 { 57724ba675SRob Herring compatible = "i2c-gpio"; 58724ba675SRob Herring sda-gpios = <&gpy2 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 59724ba675SRob Herring scl-gpios = <&gpy2 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 60724ba675SRob Herring i2c-gpio,delay-us = <2>; 61724ba675SRob Herring #address-cells = <1>; 62724ba675SRob Herring #size-cells = <0>; 63724ba675SRob Herring 64724ba675SRob Herring magnetometer@c { 65724ba675SRob Herring compatible = "asahi-kasei,ak8975"; 66724ba675SRob Herring reg = <0x0c>; 67724ba675SRob Herring gpios = <&gpj0 7 GPIO_ACTIVE_HIGH>; 68724ba675SRob Herring }; 69724ba675SRob Herring }; 70724ba675SRob Herring 71724ba675SRob Herring i2c_cm36651: i2c-gpio-2 { 72724ba675SRob Herring compatible = "i2c-gpio"; 73724ba675SRob Herring sda-gpios = <&gpf0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 74724ba675SRob Herring scl-gpios = <&gpf0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 75724ba675SRob Herring i2c-gpio,delay-us = <2>; 76724ba675SRob Herring #address-cells = <1>; 77724ba675SRob Herring #size-cells = <0>; 78724ba675SRob Herring 79724ba675SRob Herring light-sensor@18 { 80724ba675SRob Herring compatible = "capella,cm36651"; 81724ba675SRob Herring reg = <0x18>; 82724ba675SRob Herring interrupt-parent = <&gpx0>; 83724ba675SRob Herring interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 84724ba675SRob Herring vled-supply = <&ps_als_reg>; 85724ba675SRob Herring }; 86724ba675SRob Herring }; 87724ba675SRob Herring}; 88724ba675SRob Herring 89724ba675SRob Herring&buck9_reg { 90724ba675SRob Herring maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>; 91724ba675SRob Herring}; 92724ba675SRob Herring 93724ba675SRob Herring&cam_af_reg { 94724ba675SRob Herring gpio = <&gpm0 4 GPIO_ACTIVE_HIGH>; 95724ba675SRob Herring status = "okay"; 96724ba675SRob Herring}; 97724ba675SRob Herring 98724ba675SRob Herring&cam_io_reg { 99724ba675SRob Herring gpio = <&gpm0 2 GPIO_ACTIVE_HIGH>; 100724ba675SRob Herring status = "okay"; 101724ba675SRob Herring}; 102724ba675SRob Herring 103724ba675SRob Herring&dsi_0 { 104724ba675SRob Herring status = "okay"; 105724ba675SRob Herring 106724ba675SRob Herring panel@0 { 107724ba675SRob Herring compatible = "samsung,s6e8aa0"; 108724ba675SRob Herring reg = <0>; 109724ba675SRob Herring vdd3-supply = <&lcd_vdd3_reg>; 110724ba675SRob Herring vci-supply = <&ldo25_reg>; 111724ba675SRob Herring reset-gpios = <&gpf2 1 GPIO_ACTIVE_HIGH>; 112724ba675SRob Herring power-on-delay = <50>; 113724ba675SRob Herring reset-delay = <100>; 114724ba675SRob Herring init-delay = <100>; 115724ba675SRob Herring flip-horizontal; 116724ba675SRob Herring flip-vertical; 117724ba675SRob Herring panel-width-mm = <58>; 118724ba675SRob Herring panel-height-mm = <103>; 119724ba675SRob Herring 120724ba675SRob Herring display-timings { 121724ba675SRob Herring timing-0 { 122724ba675SRob Herring clock-frequency = <57153600>; 123724ba675SRob Herring hactive = <720>; 124724ba675SRob Herring vactive = <1280>; 125724ba675SRob Herring hfront-porch = <5>; 126724ba675SRob Herring hback-porch = <5>; 127724ba675SRob Herring hsync-len = <5>; 128724ba675SRob Herring vfront-porch = <13>; 129724ba675SRob Herring vback-porch = <1>; 130724ba675SRob Herring vsync-len = <2>; 131724ba675SRob Herring }; 132724ba675SRob Herring }; 133724ba675SRob Herring }; 134724ba675SRob Herring}; 135724ba675SRob Herring 136724ba675SRob Herring&i2c_3 { 137724ba675SRob Herring touchscreen@48 { 138724ba675SRob Herring compatible = "melfas,mms114"; 139724ba675SRob Herring reg = <0x48>; 140724ba675SRob Herring interrupt-parent = <&gpm2>; 141724ba675SRob Herring interrupts = <3 IRQ_TYPE_EDGE_FALLING>; 142724ba675SRob Herring touchscreen-size-x = <720>; 143724ba675SRob Herring touchscreen-size-y = <1280>; 144724ba675SRob Herring avdd-supply = <&ldo23_reg>; 145724ba675SRob Herring vdd-supply = <&ldo24_reg>; 146724ba675SRob Herring }; 147724ba675SRob Herring}; 148724ba675SRob Herring 149724ba675SRob Herring&ldo25_reg { 150724ba675SRob Herring regulator-name = "LCD_VCC_3.3V"; 151724ba675SRob Herring regulator-min-microvolt = <2800000>; 152724ba675SRob Herring regulator-max-microvolt = <2800000>; 153724ba675SRob Herring}; 154724ba675SRob Herring 155724ba675SRob Herring&pinctrl_0 { 156724ba675SRob Herring camera_flash_host: camera-flash-host-pins { 157724ba675SRob Herring samsung,pins = "gpj1-0"; 158724ba675SRob Herring samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 159724ba675SRob Herring samsung,pin-val = <0>; 160724ba675SRob Herring }; 161724ba675SRob Herring 162724ba675SRob Herring camera_flash_isp: camera-flash-isp-pins { 163724ba675SRob Herring samsung,pins = "gpj1-0"; 164724ba675SRob Herring samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 165724ba675SRob Herring samsung,pin-val = <1>; 166724ba675SRob Herring }; 167724ba675SRob Herring}; 168724ba675SRob Herring 169724ba675SRob Herring&s5c73m3 { 170724ba675SRob Herring standby-gpios = <&gpm0 1 GPIO_ACTIVE_LOW>; /* ISP_STANDBY */ 171724ba675SRob Herring vdda-supply = <&ldo17_reg>; 172724ba675SRob Herring status = "okay"; 173724ba675SRob Herring}; 174724ba675SRob Herring 175724ba675SRob Herring&sound { 176*a1116f96SKrzysztof Kozlowski audio-routing = "HP", "HPOUT1L", 177724ba675SRob Herring "HP", "HPOUT1R", 178724ba675SRob Herring 179724ba675SRob Herring "SPK", "SPKOUTLN", 180724ba675SRob Herring "SPK", "SPKOUTLP", 181724ba675SRob Herring "SPK", "SPKOUTRN", 182724ba675SRob Herring "SPK", "SPKOUTRP", 183724ba675SRob Herring 184724ba675SRob Herring "RCV", "HPOUT2N", 185724ba675SRob Herring "RCV", "HPOUT2P", 186724ba675SRob Herring 187724ba675SRob Herring "HDMI", "LINEOUT1N", 188724ba675SRob Herring "HDMI", "LINEOUT1P", 189724ba675SRob Herring 190724ba675SRob Herring "LINE", "LINEOUT2N", 191724ba675SRob Herring "LINE", "LINEOUT2P", 192724ba675SRob Herring 193724ba675SRob Herring "IN1LP", "MICBIAS1", 194724ba675SRob Herring "IN1LN", "MICBIAS1", 195724ba675SRob Herring "Main Mic", "MICBIAS1", 196724ba675SRob Herring 197724ba675SRob Herring "IN1RP", "Sub Mic", 198724ba675SRob Herring "IN1RN", "Sub Mic", 199724ba675SRob Herring 200724ba675SRob Herring "IN2LP:VXRN", "MICBIAS2", 201724ba675SRob Herring "Headset Mic", "MICBIAS2", 202724ba675SRob Herring 203724ba675SRob Herring "IN2RN", "FM In", 204724ba675SRob Herring "IN2RP:VXRP", "FM In"; 205724ba675SRob Herring}; 206724ba675SRob Herring 207724ba675SRob Herring&submic_bias_reg { 208724ba675SRob Herring gpio = <&gpf2 0 GPIO_ACTIVE_HIGH>; 209724ba675SRob Herring enable-active-high; 210724ba675SRob Herring}; 211724ba675SRob Herring 212724ba675SRob Herring&touchkey_reg { 213724ba675SRob Herring gpio = <&gpm0 0 GPIO_ACTIVE_HIGH>; 214724ba675SRob Herring status = "okay"; 215724ba675SRob Herring}; 216