0001 // SPDX-License-Identifier: GPL-2.0-only
0002
0003 /dts-v1/;
0004
0005 #include "msm8916-pm8916.dtsi"
0006 #include <dt-bindings/gpio/gpio.h>
0007
0008 / {
0009 model = "Samsung Galaxy J5 (2015)";
0010 compatible = "samsung,j5", "qcom,msm8916";
0011 chassis-type = "handset";
0012
0013 aliases {
0014 serial0 = &blsp1_uart2;
0015 };
0016
0017 chosen {
0018 stdout-path = "serial0";
0019 };
0020
0021 reserved-memory {
0022 /* Additional memory used by Samsung firmware modifications */
0023 tz-apps@85500000 {
0024 reg = <0x0 0x85500000 0x0 0xb00000>;
0025 no-map;
0026 };
0027 };
0028
0029 gpio-keys {
0030 compatible = "gpio-keys";
0031
0032 pinctrl-names = "default";
0033 pinctrl-0 = <&gpio_keys_default>;
0034
0035 label = "GPIO Buttons";
0036
0037 button-volume-up {
0038 label = "Volume Up";
0039 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
0040 linux,code = <KEY_VOLUMEUP>;
0041 };
0042
0043 button-home {
0044 label = "Home Key";
0045 gpios = <&msmgpio 109 GPIO_ACTIVE_LOW>;
0046 linux,code = <KEY_HOMEPAGE>;
0047 };
0048 };
0049 };
0050
0051 &blsp1_uart2 {
0052 status = "okay";
0053 };
0054
0055 &pm8916_resin {
0056 status = "okay";
0057 linux,code = <KEY_VOLUMEDOWN>;
0058 };
0059
0060 /* FIXME: Replace with SM5703 MUIC when driver is available */
0061 &pm8916_usbin {
0062 status = "okay";
0063 };
0064
0065 &pronto {
0066 status = "okay";
0067 };
0068
0069 &sdhc_1 {
0070 status = "okay";
0071
0072 pinctrl-names = "default", "sleep";
0073 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
0074 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
0075 };
0076
0077 &sdhc_2 {
0078 status = "okay";
0079
0080 pinctrl-names = "default", "sleep";
0081 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
0082 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
0083
0084 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
0085 };
0086
0087 &usb {
0088 status = "okay";
0089 dr_mode = "peripheral";
0090 extcon = <&pm8916_usbin>;
0091 };
0092
0093 &usb_hs_phy {
0094 extcon = <&pm8916_usbin>;
0095 qcom,init-seq = /bits/ 8 <0x1 0x19 0x2 0x0b>;
0096 };
0097
0098 &smd_rpm_regulators {
0099 vdd_l1_l2_l3-supply = <&pm8916_s3>;
0100 vdd_l4_l5_l6-supply = <&pm8916_s4>;
0101 vdd_l7-supply = <&pm8916_s4>;
0102
0103 s3 {
0104 regulator-min-microvolt = <1200000>;
0105 regulator-max-microvolt = <1300000>;
0106 };
0107
0108 s4 {
0109 regulator-min-microvolt = <1800000>;
0110 regulator-max-microvolt = <2100000>;
0111 };
0112
0113 l1 {
0114 regulator-min-microvolt = <1225000>;
0115 regulator-max-microvolt = <1225000>;
0116 };
0117
0118 l2 {
0119 regulator-min-microvolt = <1200000>;
0120 regulator-max-microvolt = <1200000>;
0121 };
0122
0123 l4 {
0124 regulator-min-microvolt = <2050000>;
0125 regulator-max-microvolt = <2050000>;
0126 };
0127
0128 l5 {
0129 regulator-min-microvolt = <1800000>;
0130 regulator-max-microvolt = <1800000>;
0131 };
0132
0133 l6 {
0134 regulator-min-microvolt = <1800000>;
0135 regulator-max-microvolt = <1800000>;
0136 };
0137
0138 l7 {
0139 regulator-min-microvolt = <1800000>;
0140 regulator-max-microvolt = <1800000>;
0141 };
0142
0143 l8 {
0144 regulator-min-microvolt = <2850000>;
0145 regulator-max-microvolt = <2900000>;
0146 };
0147
0148 l9 {
0149 regulator-min-microvolt = <3300000>;
0150 regulator-max-microvolt = <3300000>;
0151 };
0152
0153 l10 {
0154 regulator-min-microvolt = <2700000>;
0155 regulator-max-microvolt = <2800000>;
0156 };
0157
0158 l11 {
0159 regulator-min-microvolt = <1800000>;
0160 regulator-max-microvolt = <2950000>;
0161 regulator-allow-set-load;
0162 regulator-system-load = <200000>;
0163 };
0164
0165 l12 {
0166 regulator-min-microvolt = <1800000>;
0167 regulator-max-microvolt = <2950000>;
0168 };
0169
0170 l13 {
0171 regulator-min-microvolt = <3075000>;
0172 regulator-max-microvolt = <3075000>;
0173 };
0174
0175 l14 {
0176 regulator-min-microvolt = <1800000>;
0177 regulator-max-microvolt = <3300000>;
0178 };
0179
0180 l15 {
0181 regulator-min-microvolt = <1800000>;
0182 regulator-max-microvolt = <3300000>;
0183 };
0184
0185 l16 {
0186 regulator-min-microvolt = <1800000>;
0187 regulator-max-microvolt = <3300000>;
0188 };
0189
0190 l17 {
0191 regulator-min-microvolt = <3000000>;
0192 regulator-max-microvolt = <3000000>;
0193 };
0194
0195 l18 {
0196 regulator-min-microvolt = <2700000>;
0197 regulator-max-microvolt = <2700000>;
0198 };
0199 };
0200
0201 &msmgpio {
0202 gpio_keys_default: gpio-keys-default {
0203 pins = "gpio107", "gpio109";
0204 function = "gpio";
0205
0206 drive-strength = <2>;
0207 bias-pull-up;
0208 };
0209 };