0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Samsung's Exynos4412 based Galaxy S3 board device tree source
0004 *
0005 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
0006 * http://www.samsung.com
0007 */
0008
0009 /dts-v1/;
0010 #include <dt-bindings/leds/common.h>
0011 #include "exynos4412-midas.dtsi"
0012
0013 / {
0014 aliases {
0015 i2c9 = &i2c_ak8975;
0016 i2c10 = &i2c_cm36651;
0017 };
0018
0019 led-controller {
0020 compatible = "skyworks,aat1290";
0021 flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>;
0022 enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
0023
0024 pinctrl-names = "default", "host", "isp";
0025 pinctrl-0 = <&camera_flash_host>;
0026 pinctrl-1 = <&camera_flash_host>;
0027 pinctrl-2 = <&camera_flash_isp>;
0028
0029 led {
0030 function = LED_FUNCTION_FLASH;
0031 color = <LED_COLOR_ID_WHITE>;
0032 led-max-microamp = <520833>;
0033 flash-max-microamp = <1012500>;
0034 flash-max-timeout-us = <1940000>;
0035 };
0036 };
0037
0038 lcd_vdd3_reg: voltage-regulator-10 {
0039 compatible = "regulator-fixed";
0040 regulator-name = "LCD_VDD_2.2V";
0041 regulator-min-microvolt = <2200000>;
0042 regulator-max-microvolt = <2200000>;
0043 gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>;
0044 enable-active-high;
0045 };
0046
0047 ps_als_reg: voltage-regulator-11 {
0048 compatible = "regulator-fixed";
0049 regulator-name = "LED_A_3.0V";
0050 regulator-min-microvolt = <3000000>;
0051 regulator-max-microvolt = <3000000>;
0052 gpio = <&gpj0 5 GPIO_ACTIVE_HIGH>;
0053 enable-active-high;
0054 };
0055
0056 i2c_ak8975: i2c-gpio-0 {
0057 compatible = "i2c-gpio";
0058 sda-gpios = <&gpy2 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0059 scl-gpios = <&gpy2 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0060 i2c-gpio,delay-us = <2>;
0061 #address-cells = <1>;
0062 #size-cells = <0>;
0063
0064 magnetometer@c {
0065 compatible = "asahi-kasei,ak8975";
0066 reg = <0x0c>;
0067 gpios = <&gpj0 7 GPIO_ACTIVE_HIGH>;
0068 };
0069 };
0070
0071 i2c_cm36651: i2c-gpio-2 {
0072 compatible = "i2c-gpio";
0073 sda-gpios = <&gpf0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0074 scl-gpios = <&gpf0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0075 i2c-gpio,delay-us = <2>;
0076 #address-cells = <1>;
0077 #size-cells = <0>;
0078
0079 light-sensor@18 {
0080 compatible = "capella,cm36651";
0081 reg = <0x18>;
0082 interrupt-parent = <&gpx0>;
0083 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
0084 vled-supply = <&ps_als_reg>;
0085 };
0086 };
0087 };
0088
0089 &buck9_reg {
0090 maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>;
0091 };
0092
0093 &cam_af_reg {
0094 gpio = <&gpm0 4 GPIO_ACTIVE_HIGH>;
0095 status = "okay";
0096 };
0097
0098 &cam_io_reg {
0099 gpio = <&gpm0 2 GPIO_ACTIVE_HIGH>;
0100 status = "okay";
0101 };
0102
0103 &dsi_0 {
0104 status = "okay";
0105
0106 panel@0 {
0107 compatible = "samsung,s6e8aa0";
0108 reg = <0>;
0109 vdd3-supply = <&lcd_vdd3_reg>;
0110 vci-supply = <&ldo25_reg>;
0111 reset-gpios = <&gpf2 1 GPIO_ACTIVE_HIGH>;
0112 power-on-delay = <50>;
0113 reset-delay = <100>;
0114 init-delay = <100>;
0115 flip-horizontal;
0116 flip-vertical;
0117 panel-width-mm = <58>;
0118 panel-height-mm = <103>;
0119
0120 display-timings {
0121 timing-0 {
0122 clock-frequency = <57153600>;
0123 hactive = <720>;
0124 vactive = <1280>;
0125 hfront-porch = <5>;
0126 hback-porch = <5>;
0127 hsync-len = <5>;
0128 vfront-porch = <13>;
0129 vback-porch = <1>;
0130 vsync-len = <2>;
0131 };
0132 };
0133 };
0134 };
0135
0136 &i2c_3 {
0137 touchscreen@48 {
0138 compatible = "melfas,mms114";
0139 reg = <0x48>;
0140 interrupt-parent = <&gpm2>;
0141 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
0142 touchscreen-size-x = <720>;
0143 touchscreen-size-y = <1280>;
0144 avdd-supply = <&ldo23_reg>;
0145 vdd-supply = <&ldo24_reg>;
0146 };
0147 };
0148
0149 &ldo25_reg {
0150 regulator-name = "LCD_VCC_3.3V";
0151 regulator-min-microvolt = <2800000>;
0152 regulator-max-microvolt = <2800000>;
0153 };
0154
0155 &pinctrl_0 {
0156 camera_flash_host: camera-flash-host-pins {
0157 samsung,pins = "gpj1-0";
0158 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
0159 samsung,pin-val = <0>;
0160 };
0161
0162 camera_flash_isp: camera-flash-isp-pins {
0163 samsung,pins = "gpj1-0";
0164 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
0165 samsung,pin-val = <1>;
0166 };
0167 };
0168
0169 &s5c73m3 {
0170 standby-gpios = <&gpm0 1 GPIO_ACTIVE_LOW>; /* ISP_STANDBY */
0171 vdda-supply = <&ldo17_reg>;
0172 status = "okay";
0173 };
0174
0175 &sound {
0176 samsung,audio-routing =
0177 "HP", "HPOUT1L",
0178 "HP", "HPOUT1R",
0179
0180 "SPK", "SPKOUTLN",
0181 "SPK", "SPKOUTLP",
0182 "SPK", "SPKOUTRN",
0183 "SPK", "SPKOUTRP",
0184
0185 "RCV", "HPOUT2N",
0186 "RCV", "HPOUT2P",
0187
0188 "HDMI", "LINEOUT1N",
0189 "HDMI", "LINEOUT1P",
0190
0191 "LINE", "LINEOUT2N",
0192 "LINE", "LINEOUT2P",
0193
0194 "IN1LP", "MICBIAS1",
0195 "IN1LN", "MICBIAS1",
0196 "Main Mic", "MICBIAS1",
0197
0198 "IN1RP", "Sub Mic",
0199 "IN1RN", "Sub Mic",
0200
0201 "IN2LP:VXRN", "MICBIAS2",
0202 "Headset Mic", "MICBIAS2",
0203
0204 "IN2RN", "FM In",
0205 "IN2RP:VXRP", "FM In";
0206 };
0207
0208 &submic_bias_reg {
0209 gpio = <&gpf2 0 GPIO_ACTIVE_HIGH>;
0210 enable-active-high;
0211 };
0212
0213 &touchkey_reg {
0214 gpio = <&gpm0 0 GPIO_ACTIVE_HIGH>;
0215 status = "okay";
0216 };