Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus-p0.dts
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- /dts-v1/;
- #include "msm8953-albus.dtsi"
- / {
- qcom,board-id = <0x48 0x8000>;
- };
- &drv2624 {
- status = "disabled";
- };
- &pmi_haptic{
- status = "ok";
- };
- &soc {
- sound {
- qcom,model = "msm8952-marley-cardp1a";
- qcom,l35_cpu_dai_name = "marley-aif2";
- qcom,dba_cpu_dai_name = "marley-aif1";
- cs47l35,dapm-routing =
- "IN1AL", "MICBIAS1A",
- "IN2R", "MICBIAS1B",
- "IN2L", "MICBIAS2B",
- "IN1BR", "MICBIAS2A",
- "MYDP", "HDMI DBA Playback";
- };
- ospl {
- mmi,ospl-tune-index = <8 9 10 11>;
- };
- spi@7af7000 {
- marley@0 {
- wlf,micd-configs = <0 3 0>;
- };
- };
- };
- &spmi_bus {
- qcom,pmi8950@3 {
- qcom,leds@d300 {
- /delete-property/ qcom,self-check-enabled;
- };
- };
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus-p1.dts
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- /dts-v1/;
- #include "msm8953-albus.dtsi"
- / {
- qcom,board-id = <0x48 0x81A0>;
- };
- &soc {
- sound {
- qcom,model = "msm8952-marley-cardp1a";
- qcom,l35_cpu_dai_name = "marley-aif2";
- qcom,dba_cpu_dai_name = "marley-aif1";
- cs47l35,dapm-routing =
- "IN1AL", "MICBIAS1A",
- "IN2R", "MICBIAS1B",
- "IN2L", "MICBIAS2B",
- "IN1BR", "MICBIAS2A",
- "MYDP", "HDMI DBA Playback";
- };
- ospl {
- mmi,ospl-tune-index = <8 9 10 11>;
- };
- spi@7af7000 {
- marley@0 {
- wlf,micd-configs = <0 3 0>;
- };
- };
- };
- &spmi_bus {
- qcom,pmi8950@3 {
- qcom,leds@d300 {
- /delete-property/ qcom,self-check-enabled;
- };
- };
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus-p1a1.dts
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- /dts-v1/;
- #include "msm8953-albus.dtsi"
- / {
- qcom,board-id = <0x48 0x81A1>;
- };
- &soc {
- sound {
- qcom,model = "msm8952-marley-cardp1a";
- qcom,l35_cpu_dai_name = "marley-aif2";
- qcom,dba_cpu_dai_name = "marley-aif1";
- cs47l35,dapm-routing =
- "IN1AL", "MICBIAS1A",
- "IN2R", "MICBIAS1B",
- "IN2L", "MICBIAS2B",
- "IN1BR", "MICBIAS2A",
- "MYDP", "HDMI DBA Playback";
- };
- ospl {
- mmi,ospl-tune-index = <8 9 10 11>;
- };
- spi@7af7000 {
- marley@0 {
- wlf,micd-configs = <0 3 0>;
- };
- };
- };
- &spmi_bus {
- qcom,pmi8950@3 {
- qcom,leds@d300 {
- /delete-property/ qcom,self-check-enabled;
- };
- };
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus-p1b.dts
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- /dts-v1/;
- #include "msm8953-albus.dtsi"
- / {
- qcom,board-id = <0x49 0x81B0>;
- };
- &soc {
- ospl {
- mmi,ospl-tune-index = <8 9 10 11>;
- };
- };
- &spmi_bus {
- qcom,pmi8950@3 {
- qcom,leds@d300 {
- /delete-property/ qcom,self-check-enabled;
- };
- };
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus-p2.dts
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- /dts-v1/;
- #include "msm8953-albus.dtsi"
- / {
- qcom,board-id = <0x49 0x8200>;
- };
- &soc {
- ospl {
- mmi,ospl-tune-index = <8 9 10 11>;
- };
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus-p3.dts
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- /dts-v1/;
- #include "msm8953-albus.dtsi"
- / {
- qcom,board-id = <0x4A 0x8300>;
- };
- &soc {
- ospl {
- mmi,ospl-tune-index = <8 9 10 11>;
- };
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus-p4.dts
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- /dts-v1/;
- #include "msm8953-albus.dtsi"
- / {
- qcom,board-id = <0x4A 0x8400>;
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus-pinctrl.dtsi
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- &tlmm{
- /delete-node/ cs35l34_reset_default;
- /delete-node/ pmx_motosh_out;
- /delete-node/ pmx_motosh_in;
- /delete-node/ factory_default;
- haptic_reset_active: haptic_reset_active{
- mux {
- pins = "gpio110";
- function = "gpio";
- };
- config {
- pins = "gpio110";
- drive-strength = <2>;
- bias-pull-down;
- output-low;
- };
- };
- haptic_reset_sleep: haptic_reset_sleep {
- mux {
- pins = "gpio110";
- function = "gpio";
- };
- config {
- pins = "gpio110";
- drive-strength = <2>;
- //bias-pull-down;
- //output-low;
- };
- };
- haptic_pwr_active: haptic_pwr_active {
- mux {
- pins = "gpio69";
- function = "gpio";
- };
- config {
- pins = "gpio69";
- drive-strength = <2>;
- bias-pull-down;
- output-low;
- };
- };
- haptic_pwr_sleep: haptic_pwr_sleep {
- mux {
- pins = "gpio69";
- function = "gpio";
- };
- config {
- pins = "gpio69";
- drive-strength = <2>;
- //bias-pull-down;
- //output-low;
- };
- };
- nfc_irq_default: nfc_irq_default {
- config {
- pins = "gpio130";
- drive-strength = <2>;
- bias-pull-down;
- };
- };
- nfc_ven_default: nfc_ven_default {
- config {
- pins = "gpio89";
- drive-strength = <2>;
- bias-pull-down;
- output-low;
- };
- };
- nfc_firm_default: nfc_firm_default {
- config {
- pins = "gpio87";
- drive-strength = <2>;
- bias-pull-down;
- output-low;
- };
- };
- fps: fps {
- rst_active: rst_active {
- /* RESET */
- mux {
- pins = "gpio8";
- function = "gpio";
- };
- config {
- pins = "gpio8";
- drive-strength = <2>; /* 2 MA */
- bias-pull-up; /* pull up */
- output-high;
- };
- };
- rst_suspend: rst_suspend{
- /* RESET */
- mux {
- pins = "gpio8";
- function = "gpio";
- };
- config {
- pins = "gpio8";
- drive-strength = <2>; /* 2 MA */
- bias-pull-up; /* pull up */
- output-high;
- };
- };
- int_active: int_active {
- /* INTERRUPT */
- mux {
- pins = "gpio86";
- function = "gpio";
- };
- config {
- pins = "gpio86";
- drive-strength = <2>; /* 2 MA */
- input-enable;
- };
- };
- int_suspend: int_suspend{
- /* INTERRUPT */
- mux {
- pins = "gpio86";
- function = "gpio";
- };
- config {
- pins = "gpio86";
- drive-strength = <2>; /* 2 MA */
- input-enable;
- };
- };
- };
- apba_default@0 {
- mphy_i2s_sel {
- pins = "gpio27";
- drive-strength = <2>;
- };
- };
- cdc-pdm-lines {
- cdc_pdm_lines_act: pdm_lines_on {
- mux {
- /delete-property/ pins;
- pins = "gpio73";
- };
- config {
- /delete-property/ pins;
- pins = "gpio73";
- };
- };
- cdc_pdm_lines_sus: pdm_lines_off {
- mux {
- /delete-property/ pins;
- pins = "gpio73";
- };
- config {
- /delete-property/ pins;
- pins = "gpio73";
- };
- };
- };
- cs35l35_irq_default: cs35l35_irq_default {
- config {
- pins = "gpio63";
- bias-pull-up;
- drive-strength = <2>;
- };
- };
- cs35l35_reset_default: cs35l35_reset_default {
- config {
- pins = "gpio94";
- output-high;
- bias-pull-up;
- drive-strength = <2>;
- };
- };
- anx_rst_active {
- mux {
- pins = "gpio128";
- };
- config {
- pins = "gpio128";
- };
- };
- anx_rst_suspend {
- mux {
- pins = "gpio128";
- };
- config {
- pins = "gpio128";
- };
- };
- anx_cbl_det_active {
- mux {
- pins = "gpio9";
- };
- config {
- pins = "gpio9";
- };
- };
- hd3ss460_amsel {
- hd3ss460_amsel_default: default {
- mux {
- pins = "gpio139";
- function = "gpio";
- };
- config {
- pins = "gpio139";
- drive-strength = <2>;
- bias-pull-up; /* pull-up */
- output-low;
- };
- };
- hd3ss460_amsel_active: active {
- mux {
- pins = "gpio139";
- function = "gpio";
- };
- config {
- pins = "gpio139";
- drive-strength = <2>;
- bias-pull-up; /* pull-up */
- };
- };
- };
- sec-tlmm-lines {
- sec_tlmm_lines_act: sec_tlmm_lines_act {
- status = "disabled";
- };
- sec_tlmm_lines_sus: sec_tlmm_lines_sus {
- status = "disabled";
- };
- };
- spi_7 {
- spi_7_active: spi_7_active {
- mux {
- /* MOSI, MISO, CLK */
- pins = "gpio137", "gpio138", "gpio135";
- function = "blsp_spi7";
- };
- config {
- pins = "gpio137", "gpio138", "gpio135";
- drive-strength = <12>; /* 12 MA */
- bias-disable = <0>; /* No PULL */
- };
- };
- spi_7_sleep: spi_7_sleep {
- mux {
- /* MOSI, MISO, CLK */
- pins = "gpio137", "gpio138", "gpio135";
- function = "blsp_spi7";
- };
- config {
- pins = "gpio137", "gpio138", "gpio135";
- drive-strength = <2>; /* 2 MA */
- bias-pull-down; /* PULL Down */
- };
- };
- spi7_cs0_active: cs0_active {
- mux {
- pins = "gpio136";
- function = "blsp_spi7";
- };
- config {
- pins = "gpio136";
- drive-strength = <2>;
- bias-disable = <0>;
- };
- };
- spi7_cs0_sleep: cs0_sleep {
- mux {
- pins = "gpio136";
- function = "blsp_spi7";
- };
- config {
- pins = "gpio136";
- drive-strength = <2>;
- bias-disable = <0>;
- };
- };
- };
- i2c_2 {
- laser_active_irq: laser_active_irq {
- mux {
- pins = "gpio129";
- function = "gpio";
- };
- config {
- pins = "gpio129";
- drive-strength = <2>;
- bias-pull-up; /* PULL UP */
- };
- };
- laser_suspend_irq: laser_suspend_irq {
- mux {
- pins = "gpio129";
- function = "gpio";
- };
- config {
- pins = "gpio129";
- drive-strength = <2>;
- bias-pull-down; /* PULL DOWN */
- };
- };
- laser_active_xsdn: laser_active_xsdn {
- mux {
- pins = "gpio66";
- function = "gpio";
- };
- config {
- pins = "gpio66";
- drive-strength = <2>;
- output-high;
- bias-pull-up; /* PULL UP */
- };
- };
- laser_suspend_xsdn: laser_suspend_xsdn {
- mux {
- pins = "gpio66";
- function = "gpio";
- };
- config {
- pins = "gpio66";
- drive-strength = <2>;
- output-low;
- bias-pull-down; /* PULL DOWN */
- };
- };
- };
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-albus.dtsi
- /* Copyright (c) 2016, Motorola Mobility Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- #include "msm8953-moto-common.dtsi"
- #include "dsi-panel-mot-smd-549-1080p-alb-cmd.dtsi"
- #include "dsi-panel-mot-mod-fwvga-video.dtsi"
- #include "msm8953-camera-sensor-mot-albus.dtsi"
- #include "msm8953-albus-pinctrl.dtsi"
- / {
- model = "albus";
- compatible = "qcom,msm8953-albus", "qcom,msm8953-moto",
- "qcom,msm8953";
- aliases {
- spi7 = &spi_7;
- /delete-property/ spi8;
- };
- };
- &soc {
- alsa_to_h2w {
- status = "disabled";
- };
- gpio_keys {
- compatible = "gpio-keys";
- input-name = "gpio-keys";
- pinctrl-names = "tlmm_gpio_key_active","tlmm_gpio_key_suspend";
- pinctrl-0 = <&gpio_key>;
- pinctrl-1 = <&gpio_key>;
- vol_up {
- label = "volume_up";
- gpios = <&tlmm 85 0x1>;
- linux,input-type = <1>;
- linux,code = <115>;
- gpio-key,wakeup;
- debounce-interval = <15>;
- };
- };
- vci_disp_vreg: vci_disp_vreg {
- compatible = "regulator-fixed";
- regulator-name = "vci_disp";
- gpio = <&tlmm 33 0>;
- startup-delay-us = <300>;
- enable-active-high;
- regulator-boot-on;
- };
- vio_disp_vreg: vio_disp_vreg {
- compatible = "regulator-fixed";
- regulator-name = "vio_disp";
- vin-supply = <&pm8953_l6>;
- gpio = <&tlmm 33 0>;
- startup-delay-us = <300>;
- enable-active-high;
- regulator-boot-on;
- };
- i2c_2: i2c@78b6000 { /* BLSP1 QUP2 */
- /delete-node/ stmvl53l0@29;
- /delete-node/ cs35l34@40;
- /delete-node/ pnxxx@28;
- stmvl53l1@29 {
- status = "ok";
- compatible = "st,stmvl53l1";
- reg = <0x29>;
- vdd-vl53l1-supply = <&pm8953_l22>;
- gpios = <&tlmm 66 0>, <&tlmm 129 0>;
- qcom,gpio-reset = <0>;
- qcom,gpio-req-tbl-num = <0 1>;
- qcom,gpio-req-tbl-flags = <0 1>;
- qcom,gpio-req-tbl-label ="TOF_XSHUTDOWN","TOF_INT";
- pinctrl-names = "laser_default", "laser_suspend";
- pinctrl-0 = <&laser_active_irq &laser_active_xsdn>;
- pinctrl-1 = <&laser_suspend_irq &laser_suspend_xsdn>;
- st,sensorthreshold = <60 65>;
- st,xtalkval = <0x1E00 0xFACD 0x0>;
- };
- analogix_anx7805@72 {
- compatible = "analogix,anx7805";
- status = "ok";
- reg = <0x72>;
- interrupt-parent = <&tlmm>;
- interrupts = <9 0>; /*cbl-det-gpio is interrupt pin*/
- analogix,reset-gpio = <&tlmm 128 0x00>;
- analogix,irq-gpio = <&tlmm 73 0x00>;
- analogix,p-dwn-gpio = <&tlmm 50 0x0>;
- analogix,cbl-det-gpio = <&tlmm 9 0x0>;
- analogix,i2c-pull-up = <1>;
- vdd-1p0-supply = <&pm8953_l2>;
- avdd-3p3-supply = <&pm8953_l6>;
- avdd-1p8-supply = <&pm8953_l5>;
- analogix,vdd10-name = "vdd-1p0";
- analogix,avdd33-name = "avdd-3p3";
- analogix,vdd18-name = "avdd-1p8";
- pinctrl-names = "anx_default", "anx_sleep";
- pinctrl-0 = <&anx_rst_active
- &anx_chip_pd_active &anx_cbl_det_active
- &anx_irq_active>;
- pinctrl-1 = <&anx_rst_suspend
- &anx_chip_pd_suspend &anx_cbl_det_active
- &anx_irq_active>;
- };
- nq:nq@28 { /* NFC PN553 */
- compatible = "qcom,nq-nci";
- reg = <0x28>;
- interrupt-parent = <&tlmm>;
- interrupts = <17 0>;
- interrupt-names = "nfc_irq";
- qcom,nq-irq = <&tlmm 130 0x00>;
- qcom,nq-ven = <&tlmm 89 0x00>;
- qcom,nq-firm = <&tlmm 87 0x00>;
- pinctrl-names = "default";
- pinctrl-0 = <&nfc_irq_default &nfc_ven_default &nfc_firm_default>;
- };
- drv2624: drv2624@5a {
- compatible = "ti,drv2624";
- reg = <0x5A>;
- /* voltage = *_voltage x 22 mV */
- /* 2V for now */
- ti,rated_voltage = /bits/ 8 <0x57>;
- ti,overdrive_voltage = /bits/ 8 <0x8D>;
- ti,rated_voltage_reduced = /bits/ 8 <0x1A>;
- ti,overdrive_voltage_reduced = /bits/ 8 <0x1C>;
- /* LRA period = lra_freq x 24.39 us */
- /* 175 Hz for now */
- ti,lra_freq = /bits/ 8 <0xAF>;
- ti,lra_drive;
- ti,auto_cal;
- ti,auto_cal_time = /bits/ 8 <0x01>;
- /* sample time 200us */
- ti,sample_time = /bits/ 8 <0x04>;
- ti,nrst-gpio = <&tlmm 110 0>;
- ti,npwr-gpio = <&tlmm 69 0>;
- ti,nvctrl-gpio = <&tlmm 13 0>;
- pinctrl-names = "haptic_default", "haptic_sleep";
- pinctrl-0 = <&haptic_reset_active &haptic_pwr_active>;
- pinctrl-1 = <&haptic_reset_sleep &haptic_pwr_sleep>;
- };
- cs35l35@40 {
- compatible = "cirrus,cs35l35";
- reg = <0x40>;
- reset-gpios = <&tlmm 94 0>;
- irq-gpios = <&tlmm 63 0>;
- amp-gain-zc;
- interrupt-parent = <&tlmm>;
- VA-supply = <&dummy_vreg>;
- VP-supply = <&dummy_vreg>;
- pinctrl-names = "default";
- pinctrl-0 = <&cs35l35_irq_default &cs35l35_reset_default>;
- };
- };
- i2c_4: i2c@78b8000 {
- status = "disabled";
- /delete-node/ motosh@43;
- };
- spi_6: spi@7af6000 { /* BLSP2 QUP2 */
- status = "disabled";
- /delete-node/ marley@0;
- };
- spi_7: spi@7af7000 { /* BLSP2 QUP3 */
- status = "ok";
- compatible = "qcom,spi-qup-v2";
- #address-cells = <1>;
- #size-cells = <0>;
- reg-names = "spi_physical", "spi_bam_physical";
- reg = <0x07af7000 0x600>,
- <0x07ac4000 0x1f000>;
- interrupt-names = "spi_irq", "spi_bam_irq";
- interrupts = <0 301 0>, <0 239 0>;
- spi-max-frequency = <19200000>;
- qcom,infinite-mode = <0>;
- qcom,use-bam;
- qcom,ver-reg-exists;
- qcom,bam-consumer-pipe-index = <8>;
- qcom,bam-producer-pipe-index = <9>;
- qcom,master-id = <84>;
- qcom,use-pinctrl;
- pinctrl-names = "spi_default", "spi_sleep";
- pinctrl-0 = <&spi_7_active &spi7_cs0_active>;
- pinctrl-1 = <&spi_7_sleep &spi7_cs0_sleep>;
- clock-names = "iface_clk", "core_clk";
- clocks = <&clock_gcc clk_gcc_blsp2_ahb_clk>,
- <&clock_gcc clk_gcc_blsp2_qup3_spi_apps_clk>;
- marley: marley@0 {
- compatible = "cirrus,cs47l35";
- spi-max-frequency = <26000000>;
- reg = <0x0>;
- interrupt-parent = <&tlmm>;
- interrupts = <46 0>;
- interrupt-controller;
- #interrupt-cells = <2>;
- wlf,reset = <&tlmm 68 0>;
- wlf,out-mono = <1 0 0 0 0 0>;
- wlf,micbias1 = <2600 1 1 1 1 0>;
- wlf,micbias2 = <1800 1 1 1 1 0>;
- wlf,micd-configs = <0 2 0>;
- wlf,micd-bias-start-time = <8>;
- wlf,gpsw = <1>;
- wlf,use-jd2-irq;
- wlf,report-to-input;
- wlf,micd-rate = <6>;
- wlf,micd-detect-debounce = <300>;
- wlf,inmode = <0 2 0>;
- wlf,micd-ranges = <
- 100 226 /* HEADSETHOOK */
- 150 582 /* VOICE_ASSIST */
- 295 115 /* VOLUME_UP */
- 1257 114 /* VOLUME_DOWN */
- >;
- pinctrl-names = "default";
- pinctrl-0 = <&marley_irq_default &marley_reset_default>;
- AVDD-supply = <&pm8953_l6>;
- DBVDD1-supply = <&pm8953_l6>;
- DBVDD2-supply = <&pm8953_l6>;
- CPVDD-supply = <&pm8953_l6>;
- CPVDD1-supply = <&pm8953_l6>;
- CPVDD2-supply = <&pm8953_l6>;
- DCVDD-supply = <&pm8953_l6>;
- SPKVDD-supply = <&dummy_vreg>;
- gpio-controller;
- #gpio-cells = <2>;
- wlf,gpio-defaults = <
- 0x00002000 0x0000f000 /* AIF3TXDAT / GPIO1 */
- 0x00002000 0x0000f000 /* AIF3BCLK / GPIO2 */
- 0x00000040 0x00000000 /* AIF3RXDAT / GPIO3 */
- 0x00002000 0x0000f000 /* AIF3LRCLK / GPIO4 */
- 0xffffffff 0xffffffff /* GPIO5 */
- 0xffffffff 0xffffffff /* GPIO6 */
- 0x00002000 0x0000f000 /* MIF1SDA / GPIO7 */
- 0x00002000 0x0000f000 /* AIF1RXDAT / GPIO8 */
- 0x00002000 0x0000f000 /* AIF1BCLK / GPIO9 */
- 0x00002000 0x0000f000 /* AIF1TXDAT / GPIO10 */
- 0x00002000 0x0000f000 /* AIF1LRCLK / GPIO11 */
- 0x00002000 0x0000f000 /* AIF2TXDAT / GPIO12 */
- 0x00002000 0x0000f000 /* AIF2BCLK / GPIO13 */
- 0x00002000 0x0000f000 /* AIF2RXDAT / GPIO14 */
- 0x00002000 0x0000f000 /* AIF2LRCLK / GPIO15 */
- 0x00002000 0x0000f000 /* MIF1SCLK / GPIO16 */
- >;
- adsps {
- #address-cells = <1>;
- #size-cells = <0>;
- adsp@0ffe00 {
- reg = <0x0ffe00>;
- firmware {
- ultrasound {
- wlf,wmfw-file = "ultrasound";
- wlf,bin-file = "ultrasound";
- wlf,compr-caps = <1 1 4 1 96000>;
- };
- };
- };
- adsp@17fe00 {
- reg = <0x17fe00>;
- firmware {
- frontend {
- wlf,wmfw-file = "aov-frontend";
- wlf,bin-file = "aov-vrgain";
- wlf,compr-caps = <1 1 4 1 16000>;
- };
- };
- };
- adsp@1ffe00 {
- reg = <0x1ffe00>;
- firmware {
- aov {
- wlf,wmfw-file = "aov-control";
- wlf,bin-file = "aov-model";
- wlf,compr-caps = <1 1 4 1 16000>;
- };
- };
- };
- };
- };
- };
- /delete-node/ spi@7af8000;
- fpc_fpc1020{
- compatible = "fpc,fpc1020";
- status = "ok";
- interrupts = <86 0x0>;
- irq = <&tlmm 86 0>;
- rst = <&tlmm 8 0>;
- };
- qcom,msm-thermal {
- qcom,config-info = "albus";
- };
- /delete-node/ hdmi_dba;
- hdmi_dba: qcom,msm-hdmi-dba-codec-rx {
- compatible = "qcom,msm-hdmi-dba-codec-rx";
- qcom,dba-bridge-chip = "anx7805";
- };
- sound {
- status = "ok";
- compatible = "qcom,msm8952-audio-slim-codec";
- qcom,model = "msm8952-marley-card";
- /* qcom,marley-mclk-clk-freq = <9600000>; */
- asoc-platform = <&pcm0>, <&pcm1>,
- <&pcm2>, <&voip>,
- <&voice>, <&loopback>,
- <&compress>, <&hostless>,
- <&afe>, <&lsm>,
- <&routing>, <&cpe>,
- <&lpa>, <&marley>;
- asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1",
- "msm-pcm-dsp.2", "msm-voip-dsp",
- "msm-pcm-voice", "msm-pcm-loopback",
- "msm-compress-dsp", "msm-pcm-hostless",
- "msm-pcm-afe", "msm-lsm-client",
- "msm-pcm-routing", "msm-cpe-lsm",
- "msm-pcm-lpa", "marley-codec";
- asoc-cpu = <&dai_pri_auxpcm>,
- <&dai_mi2s5>,
- <&sb_0_rx>, <&sb_0_tx>,
- <&sb_1_rx>, <&sb_1_tx>,
- <&sb_2_rx>, <&sb_2_tx>,
- <&sb_3_rx>, <&sb_3_tx>,
- <&sb_4_rx>, <&sb_4_tx>,
- <&sb_5_tx>, <&afe_pcm_rx>,
- <&afe_pcm_tx>, <&afe_proxy_rx>,
- <&afe_proxy_tx>, <&incall_record_rx>,
- <&incall_record_tx>, <&incall_music_rx>,
- <&incall_music_2_rx>, <&sb_5_rx>,
- <&bt_sco_rx>, <&bt_sco_tx>,
- <&int_fm_rx>, <&int_fm_tx>;
- asoc-cpu-names = "msm-dai-q6-auxpcm.1",
- "msm-dai-q6-mi2s.5",
- "msm-dai-q6-dev.16384", "msm-dai-q6-dev.16385",
- "msm-dai-q6-dev.16386", "msm-dai-q6-dev.16387",
- "msm-dai-q6-dev.16388", "msm-dai-q6-dev.16389",
- "msm-dai-q6-dev.16390", "msm-dai-q6-dev.16391",
- "msm-dai-q6-dev.16392", "msm-dai-q6-dev.16393",
- "msm-dai-q6-dev.16395", "msm-dai-q6-dev.224",
- "msm-dai-q6-dev.225", "msm-dai-q6-dev.241",
- "msm-dai-q6-dev.240", "msm-dai-q6-dev.32771",
- "msm-dai-q6-dev.32772", "msm-dai-q6-dev.32773",
- "msm-dai-q6-dev.32770", "msm-dai-q6-dev.16394",
- "msm-dai-q6-dev.12288", "msm-dai-q6-dev.12289",
- "msm-dai-q6-dev.12292", "msm-dai-q6-dev.12293";
- qcom,albus-audio;
- qcom,hdmi-dba-codec-rx;
- asoc-codec = <&stub_codec>, <&hdmi_dba>;
- asoc-codec-names = "msm-stub-codec.1", "msm-hdmi-dba-codec-rx";
- cs47l35,dapm-routing =
- "IN1AL", "MICBIAS2A",
- "IN2R", "MICBIAS2B",
- "IN2L", "MICBIAS2A",
- "IN1BR", "MICBIAS1B",
- "MYDP", "HDMI DBA Playback";
- };
- ospl {
- compatible = "mmi,ospl2xx";
- status = "ok";
- mmi,ospl-tune-index = <4 5 6 7>;
- mmi,ospl-afe-port-id = <16384 16387>;
- mmi,ospl-left-feedback;
- };
- qcom,msm-dai-mi2s {
- dai_mi2s3: qcom,msm-dai-q6-mi2s-quat {
- status = "disabled";
- };
- dai_mi2s5: qcom,msm-dai-q6-mi2s-quin {
- qcom,msm-mi2s-rx-lines = <1>;
- };
- };
- dsi_mod_display_driver: dsi_mod_display_driver {
- compatible = "mmi,dsi_mod_display";
- mod_display,dsi_connect = <1>;
- };
- mot_dba_driver: mot_dba_driver {
- compatible = "mmi,mot_dba";
- status = "ok";
- mot_dba,sel-dsi-val = <0>;
- };
- /delete-node/ eldo2;
- apba_ctrl {
- gpios = <&tlmm 39 0>, /* APBA_1P1_EN, output-low */
- <&tlmm 140 0>, /* APBA_BOOTRET, output-low */
- <&tlmm 27 2>, /* MOD_MPHY_I2S_SEL, output-high */
- <&tlmm 132 0>, /* APBA_RESET_N, output-low */
- <&tlmm 62 1>, /* APBA_INT_N, in */
- <&tlmm 141 0>, /* APBA_WAKE, output-low */
- <&tlmm 41 0>; /* APBA_SFLASH_EN, output-low */
- };
- hd3ss460 {
- gpios = <&pm8953_gpios 7 0>, /* USB_SS_MOD_EN, output-low */
- <&tlmm 139 0>, /* USB_SS_SW_SEL, output-low */
- <&pm8953_gpios 8 0>; /* USB_SS_MOD_MPHY_AP_EN, output-low */
- vdd-hd3ss460-supply = <&pm8953_l22>;
- vdd-voltage-level = <2850000 2850000>;
- };
- qusb_phy: qusb@79000 {
- qcom,qusb-phy-init-seq = <0xF8 0x80
- 0x03 0x84
- 0x81 0x88
- 0x07 0x8C
- 0x30 0x08
- 0x79 0x0C
- 0x21 0x10
- 0x14 0x9C
- 0x9F 0x1C
- 0x00 0x18>;
- };
- qcom,tz_gpio {
- compatible = "qcom,tz_gpio";
- tlmm-tz = <96>,
- <97>,
- <98>,
- <99>,
- <111>,
- <126>;
- };
- };
- &pm8953_l2 {
- regulator-min-microvolt = <1000000>;
- regulator-max-microvolt = <1000000>;
- qcom,init-voltage = <1000000>;
- };
- &pm8953_gpios {
- gpio@c500 { /* GPIO 6 - USB_SELECT */
- qcom,vin-sel = <3>; /* VIN3 */
- };
- gpio@c600 { /* GPIO 7 - USB_SS_MOD_EN */
- qcom,vin-sel = <3>; /* VIN3 */
- };
- gpio@c700 { /* GPIO 8 - USB_SS_MOD_MPHY_AP_EN */
- qcom,vin-sel = <3>; /* VIN3 */
- };
- };
- &pmx_mdss {
- mdss_dsi_active {
- mux {
- pins = "gpio61";
- };
- config {
- pins = "gpio61";
- };
- };
- mdss_dsi_suspend {
- mux {
- pins = "gpio61";
- };
- config {
- pins = "gpio61";
- };
- };
- mipi_err_pin_active: mipi_err_pin_active {
- mux {
- pins = "gpio115";
- function = "gpio";
- };
- config {
- pins = "gpio115";
- drive-strength = <2>; /* 2 mA */
- bias-pull-up; /* pull up */
- input-enable;
- };
- };
- mipi_err_pin_suspend: mipi_err_pin_suspend {
- mux {
- pins = "gpio115";
- function = "gpio";
- };
- config {
- pins = "gpio115";
- drive-strength = <2>; /* 2 mA */
- bias-pull-up; /* pull up */
- input-enable;
- };
- };
- };
- &mdss_mdp {
- qcom,mdss-pref-prim-intf = "dsi";
- mot_dba_panel: qcom,mdss_dsi_mot_dba_panel{
- #include "dsi-panel-mot-mod-fwvga-video-common.dtsi"
- };
- };
- &mdss_dsi {
- hw-config = "dual_dsi";
- };
- &mdss_dsi0 {
- pinctrl-names = "mdss_default", "mdss_sleep";
- pinctrl-0 = <&mdss_dsi_active &mdss_te_active &mipi_err_pin_active>;
- pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend &mipi_err_pin_suspend>;
- qcom,dsi-pref-prim-pan = <&mot_smd_549_1080p_alb_cmd_v0>;
- vci_disp-supply = <&vci_disp_vreg>;
- vio_disp-supply = <&vio_disp_vreg>;
- elvdd_disp-supply = <&lab_regulator>;
- elvss_disp-supply = <&ibb_regulator>;
- qcom,platform-reset-gpio = <&tlmm 61 0>;
- qcom,platform-te-gpio = <&tlmm 24 0>;
- };
- &mdss_dsi1 {
- qcom,dsi-pref-prim-pan = <&mot_dba_panel>;
- qcom,pluggable;
- qcom,bridge-index = <0>;
- apba_cdsi-supply = <&pm8953_l23>;
- };
- &mdss_dsi1_pll {
- /delete-property/ qcom,dsi-pll-ssc-en;
- /delete-property/ qcom,dsi-pll-ssc-mode;
- };
- &mot_dba_panel {
- qcom,mdss-dsi-panel-name = "mipi_mot_dba_panel";
- qcom,bridge-name = "mot_dba";
- /* These power supplies are for DBA panel */
- qcom,panel-supply-entries {
- #address-cells = <1>;
- #size-cells = <0>;
- qcom,panel-supply-entry@0 {
- reg = <0>;
- qcom,supply-name = "apba_cdsi";
- qcom,supply-min-voltage = <1200000>;
- qcom,supply-max-voltage = <1300000>;
- qcom,supply-enable-load = <300000>;
- qcom,supply-disable-load = <100>;
- qcom,supply-pre-on-sleep = <0>;
- qcom,supply-post-on-sleep = <1>;
- qcom,supply-pre-off-sleep = <0>;
- qcom,supply-post-off-sleep = <1>;
- };
- };
- };
- /* display boost and inverting boost regulators */
- &labibb {
- status = "ok";
- qpnp,qpnp-labibb-mode = "amoled";
- qpnp,swire-control;
- };
- &ibb_regulator {
- qcom,qpnp-ibb-discharge-resistor = <32>;
- };
- &pmi8950_mpps {
- mpp@a000 { /* MPP 1 - MOD_BP_OC_FAULT_N */
- qcom,mode = <0>; /* Input */
- qcom,vin-sel = <2>; /* 1.8 */
- qcom,src-sel = <0>; /* GPIO */
- qcom,master-en = <1>; /* Enable GPIO */
- qcom,invert = <0>; /* Output low */
- status = "okay";
- };
- mpp@a100 { /* MPP 2 - MOD_F_FLASH */
- qcom,mode = <1>; /* Digital output */
- qcom,vin-sel = <2>; /* 1.8 */
- qcom,src-sel = <0>; /* GPIO */
- qcom,master-en = <1>; /* Enable GPIO */
- qcom,invert = <0>; /* Output low */
- status = "okay";
- };
- mpp@a200 { /* MPP 3 - DISP_AVDD_SHUTDOWN */
- qcom,mode = <1>; /* Digital output */
- qcom,output-type = <0>; /* CMOS logic */
- qcom,vin-sel = <0>;
- qcom,src-sel = <5>; /* DTEST2 */
- qcom,master-en = <1>; /* Enable GPIO */
- qcom,invert = <0>;
- status = "okay";
- };
- };
- &spmi_bus {
- qcom,pm8950@0 {
- /delete-node/ qcom,leds@a300;
- };
- qcom,pmi8950@2 {
- /delete-node/ qcom,leds@a100;
- qcom,leds@1000 {
- status = "ok";
- reg = <0x1000 0x100>;
- compatible = "qcom,leds-atc";
- linux,name = "white";
- qcom,ctrl-reg = <0x243>;
- };
- };
- qcom,pmi8950@3 {
- qcom,leds@d800 {
- qcom,disp-type-amoled;
- qcom,switch-freq-khz = <800>;
- qcom,loop-ea-gm = <1>;
- qcom,vref-psm-mv = <550>;
- qcom,ovp-mv = <31000>;
- qcom,enable-amoled-pulse-skipping;
- };
- };
- };
- &muc {
- gpios = <&tlmm 60 1>, /* gpio_muc_det_n, input */
- <&pmi8950_gpios 1 0>, /* gpio_muc_bplus_en, output-low */
- <&tlmm 72 1>, /* gpio_muc_int_n, input */
- <&tlmm 38 2>, /* gpio_muc_wake_n, output-high */
- <&tlmm 59 1>, /* gpio_muc_rdy_n, input */
- <&pmi8950_mpps 2 0>, /* gpio_muc_ff, output-low */
- <&tlmm 0 0>, /* gpio_muc_spi_mosi, output-low */
- <&tlmm 1 1>, /* gpio_muc_spi_miso, input */
- <&tlmm 114 2>, /* gpio_muc_bplus_iset, output-high */
- <0>, /* gpio_muc_bplus_discharg, cs */
- <&pmi8950_mpps 1 1>, /* gpio_muc_bplus_fault_n, input */
- <&tlmm 3 1>; /* gpio_muc_clk, input */
- };
- &pm8953_l22 {
- regulator-min-microvolt = <2850000>;
- regulator-max-microvolt = <2850000>;
- qcom,init-voltage = <2850000>;
- };
- &pmi_haptic{
- status = "disabled";
- };
- &pmi8950_charger {
- /delete-property/ pinctrl-names;
- /delete-property/ pinctrl-0;
- /delete-property/ gpios;
- /delete-property/ gpio-names;
- gpios = <&pmi8950_gpios 2 0x0>; /* GPIOF_OUT_INIT_LOW */
- gpio-names = "eb_vbus_en";
- qcom,max-usbin-current-ma = <3000>;
- qcom,step-chg-steps = <4200 3000 2000>,
- <4400 2000 1600>;
- qcom,auto-voltage-comp-mv = <150>;
- qcom,enable-parameter-separate;
- qcom,prop-flash-active;
- qcom,enable-charging-limit;
- qcom,upper-limit-capacity = <80>;
- qcom,lower-limit-capacity = <60>;
- };
- /{
- mot_albusbatterydata: qcom,battery-data {
- qcom,batt-id-range-pct = <100>;
- df-serialnum = "SNN5983A";
- #include "batterydata-hz40-lg.dtsi"
- #include "batterydata-hz40-lg-v2.dtsi"
- #include "batterydata-hz40-swd.dtsi"
- };
- };
- &pmi8950_fg {
- /delete-property/ qcom,battery-data;
- qcom,irq-volt-empty-mv = <3000>;
- qcom,fg-cutoff-voltage-mv = <3200>;
- qcom,battery-data = <&mot_albusbatterydata>;
- };
- ---------------------------------------------------------------------------
- ./android_kernel_motorola_msm8953/arch/arm/boot/dts/qcom/msm8953-camera-sensor-mot-albus.dtsi
- /*
- * Copyright (c) 2016 The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- &cci {
- /* IMX362 EEPROM */
- eeprom1: qcom,eeprom@1 {
- cell-index = <1>;
- reg = <0x01>;
- compatible = "qcom,eeprom";
- cam_vio-supply = <&pm8953_l10>;
- qcom,cam-vreg-name = "cam_vio";
- qcom,cam-vreg-min-voltage = <1800000>;
- qcom,cam-vreg-max-voltage = <1800000>;
- qcom,cam-vreg-op-mode = <1800000>;
- qcom,gpio-no-mux = <0>;
- pinctrl-names = "cam_default", "cam_suspend";
- pinctrl-0 = <&cam_sensor_mclk0_default
- &cam_sensor_rear_default>;
- pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep>;
- gpios = <&tlmm 26 0>,
- <&tlmm 127 0>;
- qcom,gpio-reset = <1>;
- qcom,gpio-req-tbl-num = <0 1>;
- qcom,gpio-req-tbl-flags = <1 0>;
- qcom,gpio-req-tbl-label = "CAMIF_MCLK0",
- "CAM_RESET0";
- qcom,cci-master = <0>;
- clocks = <&clock_gcc clk_mclk0_clk_src>,
- <&clock_gcc clk_gcc_camss_mclk0_clk>;
- clock-names = "cam_src_clk", "cam_clk";
- qcom,clock-rates = <24000000 0>;
- };
- /* OV5695 OTP */
- eeprom2: qcom,eeprom@2 {
- cell-index = <2>;
- reg = <0x02>;
- compatible = "qcom,eeprom";
- cam_vio-supply = <&pm8953_l10>;
- qcom,cam-vreg-name = "cam_vio";
- qcom,cam-vreg-min-voltage = <1800000>;
- qcom,cam-vreg-max-voltage = <1800000>;
- qcom,cam-vreg-op-mode = <1800000>;
- qcom,gpio-no-mux = <0>;
- pinctrl-names = "cam_default", "cam_suspend";
- pinctrl-0 = <&cam_sensor_mclk2_default
- &cam_sensor_front_default>;
- pinctrl-1 = <&cam_sensor_mclk2_sleep
- &cam_sensor_front_sleep>;
- gpios = <&tlmm 28 0>,
- <&tlmm 40 0>,
- <&tlmm 113 0>;
- qcom,gpio-reset = <1>;
- qcom,gpio-vdig = <2>;
- qcom,gpio-req-tbl-num = <0 1 2>;
- qcom,gpio-req-tbl-flags = <1 0 0>;
- qcom,gpio-req-tbl-label = "CAMIF_MCLK2",
- "CAM_RESET2",
- "CAM_VDIG2";
- qcom,cci-master = <0>;
- clocks = <&clock_gcc clk_mclk2_clk_src>,
- <&clock_gcc clk_gcc_camss_mclk2_clk>;
- clock-names = "cam_src_clk", "cam_clk";
- qcom,clock-rates = <24000000 0>;
- };
- actuator0: qcom,actuator@0 {
- cell-index = <0>;
- reg = <0x0>;
- compatible = "qcom,actuator";
- qcom,cci-master = <0>;
- cam_vaf-supply = <&pm8953_l17>;
- qcom,cam-vreg-name = "cam_vaf";
- qcom,cam-vreg-min-voltage = <2850000>;
- qcom,cam-vreg-max-voltage = <2850000>;
- qcom,cam-vreg-op-mode = <1000000>;
- pinctrl-names = "cam_default", "cam_suspend";
- pinctrl-0 = <&cam_sensor_mclk0_default
- &cam_sensor_rear_default>;
- pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep>;
- };
- /* IMX362 */
- qcom,camera@0 {
- cell-index = <0>;
- compatible = "qcom,camera";
- reg = <0x0>;
- qcom,csiphy-sd-index = <1>;
- qcom,csid-sd-index = <1>;
- qcom,mount-angle = <90>;
- qcom,eeprom-src = <&eeprom1>;
- qcom,led-flash-src = <&led_flash0>;
- qcom,actuator-src = <&actuator0>;
- cam_vio-supply = <&pm8953_l10>;
- cam_vaf-supply = <&pm8953_l17>;
- qcom,cam-vreg-name = "cam_vio", "cam_vaf";
- qcom,cam-vreg-min-voltage = <1800000 2850000>;
- qcom,cam-vreg-max-voltage = <1800000 2850000>;
- qcom,cam-vreg-op-mode = <1800000 1000000>;
- qcom,gpio-no-mux = <0>;
- pinctrl-names = "cam_default", "cam_suspend";
- pinctrl-0 = <&cam_sensor_mclk0_default
- &cam_sensor_rear_default>;
- pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep>;
- gpios = <&tlmm 26 0>,
- <&tlmm 127 0>;
- qcom,gpio-reset = <1>;
- qcom,gpio-req-tbl-num = <0 1>;
- qcom,gpio-req-tbl-flags = <1 0>;
- qcom,gpio-req-tbl-label = "CAMIF_MCLK0",
- "CAM_RESET0";
- qcom,sensor-position = <0>;
- qcom,sensor-mode = <0>;
- qcom,cci-master = <0>;
- status = "ok";
- clocks = <&clock_gcc clk_mclk0_clk_src>,
- <&clock_gcc clk_gcc_camss_mclk0_clk>;
- clock-names = "cam_src_clk", "cam_clk";
- qcom,clock-rates = <24000000 0>;
- };
- /* S5K2L7SX */
- qcom,camera@1 {
- cell-index = <1>;
- compatible = "qcom,camera";
- reg = <0x1>;
- qcom,csiphy-sd-index = <1>;
- qcom,csid-sd-index = <1>;
- qcom,mount-angle = <90>;
- qcom,eeprom-src = <&eeprom1>;
- qcom,led-flash-src = <&led_flash0>;
- qcom,actuator-src = <&actuator0>;
- cam_vio-supply = <&pm8953_l10>;
- cam_vaf-supply = <&pm8953_l17>;
- qcom,cam-vreg-name = "cam_vio", "cam_vaf";
- qcom,cam-vreg-min-voltage = <1800000 2850000>;
- qcom,cam-vreg-max-voltage = <1800000 2850000>;
- qcom,cam-vreg-op-mode = <1800000 1000000>;
- qcom,gpio-no-mux = <0>;
- pinctrl-names = "cam_default", "cam_suspend";
- pinctrl-0 = <&cam_sensor_mclk0_default
- &cam_sensor_rear_default>;
- pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep>;
- gpios = <&tlmm 26 0>,
- <&tlmm 127 0>;
- qcom,gpio-reset = <1>;
- qcom,gpio-req-tbl-num = <0 1>;
- qcom,gpio-req-tbl-flags = <1 0>;
- qcom,gpio-req-tbl-label = "CAMIF_MCLK0",
- "CAM_RESET0";
- qcom,sensor-position = <0>;
- qcom,sensor-mode = <0>;
- qcom,cci-master = <0>;
- status = "ok";
- clocks = <&clock_gcc clk_mclk0_clk_src>,
- <&clock_gcc clk_gcc_camss_mclk0_clk>;
- clock-names = "cam_src_clk", "cam_clk";
- qcom,clock-rates = <24000000 0>;
- };
- /* S5K2L7SA */
- qcom,camera@2 {
- cell-index = <2>;
- compatible = "qcom,camera";
- reg = <0x2>;
- qcom,csiphy-sd-index = <1>;
- qcom,csid-sd-index = <1>;
- qcom,mount-angle = <90>;
- qcom,eeprom-src = <&eeprom1>;
- qcom,led-flash-src = <&led_flash0>;
- qcom,actuator-src = <&actuator0>;
- cam_vio-supply = <&pm8953_l10>;
- cam_vaf-supply = <&pm8953_l17>;
- qcom,cam-vreg-name = "cam_vio", "cam_vaf";
- qcom,cam-vreg-min-voltage = <1800000 2850000>;
- qcom,cam-vreg-max-voltage = <1800000 2850000>;
- qcom,cam-vreg-op-mode = <1800000 1000000>;
- qcom,gpio-no-mux = <0>;
- pinctrl-names = "cam_default", "cam_suspend";
- pinctrl-0 = <&cam_sensor_mclk0_default
- &cam_sensor_rear_default>;
- pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep>;
- gpios = <&tlmm 26 0>,
- <&tlmm 127 0>;
- qcom,gpio-reset = <1>;
- qcom,gpio-req-tbl-num = <0 1>;
- qcom,gpio-req-tbl-flags = <1 0>;
- qcom,gpio-req-tbl-label = "CAMIF_MCLK0",
- "CAM_RESET0";
- qcom,sensor-position = <0>;
- qcom,sensor-mode = <0>;
- qcom,cci-master = <0>;
- status = "ok";
- clocks = <&clock_gcc clk_mclk0_clk_src>,
- <&clock_gcc clk_gcc_camss_mclk0_clk>;
- clock-names = "cam_src_clk", "cam_clk";
- qcom,clock-rates = <24000000 0>;
- };
- /* OV5695 */
- qcom,camera@3 {
- cell-index = <3>;
- compatible = "qcom,camera";
- reg = <0x03>;
- qcom,csiphy-sd-index = <2>;
- qcom,csid-sd-index = <2>;
- qcom,mount-angle = <270>;
- qcom,eeprom-src = <&eeprom2>;
- qcom,led-flash-src = <&led_flash0>;
- cam_vio-supply = <&pm8953_l10>;
- qcom,cam-vreg-name = "cam_vio";
- qcom,cam-vreg-min-voltage = <1800000>;
- qcom,cam-vreg-max-voltage = <1800000>;
- qcom,cam-vreg-op-mode = <1800000>;
- qcom,gpio-no-mux = <0>;
- pinctrl-names = "cam_default", "cam_suspend";
- pinctrl-0 = <&cam_sensor_mclk2_default
- &cam_sensor_front_default>;
- pinctrl-1 = <&cam_sensor_mclk2_sleep
- &cam_sensor_front_sleep>;
- gpios = <&tlmm 28 0>,
- <&tlmm 40 0>,
- <&tlmm 113 0>;
- qcom,gpio-reset = <1>;
- qcom,gpio-vdig = <2>;
- qcom,gpio-req-tbl-num = <0 1 2>;
- qcom,gpio-req-tbl-flags = <1 0 0>;
- qcom,gpio-req-tbl-label = "CAMIF_MCLK2",
- "CAM_RESET2",
- "CAM_VDIG2";
- qcom,sensor-position = <1>;
- qcom,sensor-mode = <0>;
- qcom,cci-master = <0>;
- status = "ok";
- clocks = <&clock_gcc clk_mclk2_clk_src>,
- <&clock_gcc clk_gcc_camss_mclk2_clk>;
- clock-names = "cam_src_clk", "cam_clk";
- qcom,clock-rates = <24000000 0>;
- };
- };
- &soc {
- tlmm: pinctrl@1000000 {
- cam_sensor_mclk0_default: cam_sensor_mclk0_default {
- /* MCLK0 */
- mux {
- /* CLK, DATA */
- pins = "gpio26";
- function = "cam_mclk";
- };
- config {
- pins = "gpio26";
- bias-disable; /* No PULL */
- drive-strength = <6>; /* 6 MA */
- };
- };
- cam_sensor_mclk0_sleep: cam_sensor_mclk0_sleep {
- /* MCLK0 */
- mux {
- /* CLK, DATA */
- pins = "gpio26";
- function = "cam_mclk";
- };
- config {
- pins = "gpio26";
- bias-pull-down; /* PULL DOWN */
- drive-strength = <6>; /* 6 MA */
- };
- };
- cam_sensor_rear_default: cam_sensor_rear_default {
- /* RESET, VDIG */
- mux {
- pins = "gpio127";
- function = "gpio";
- };
- config {
- pins = "gpio127";
- bias-disable; /* No PULL */
- drive-strength = <2>; /* 2 MA */
- };
- };
- cam_sensor_rear_sleep: cam_sensor_rear_sleep {
- /* RESET, VDIG */
- mux {
- pins = "gpio127";
- function = "gpio";
- };
- config {
- pins = "gpio127";
- bias-disable; /* No PULL */
- drive-strength = <2>; /* 2 MA */
- };
- };
- cam_sensor_mclk2_default: cam_sensor_mclk2_default {
- config {
- drive-strength = <4>; /* 4 MA */
- };
- };
- cam_sensor_mclk2_sleep: cam_sensor_mclk2_sleep {
- config {
- drive-strength = <4>; /* 4 MA */
- };
- };
- cam_sensor_front_default: cam_sensor_front_default {
- /* RESET, VDIG */
- mux {
- pins = "gpio40", "gpio113";
- function = "gpio";
- };
- config {
- pins = "gpio40", "gpio113";
- bias-disable; /* No PULL */
- drive-strength = <2>; /* 2 MA */
- };
- };
- cam_sensor_front_sleep: cam_sensor_front_sleep {
- /* RESET, VDIG */
- mux {
- pins = "gpio40", "gpio113";
- function = "gpio";
- };
- config {
- pins = "gpio40", "gpio113";
- bias-disable; /* No PULL */
- drive-strength = <2>; /* 2 MA */
- };
- };
- };
- led_flash0: qcom,camera-flash@0 {
- cell-index = <0>;
- compatible = "qcom,camera-flash";
- qcom,flash-type = <1>;
- qcom,flash-source = <&pmi8950_flash0 &pmi8950_flash1>;
- qcom,torch-source = <&pmi8950_torch0 &pmi8950_torch1>;
- qcom,switch-source = <&pmi8950_switch>;
- /* gpio 113 is used to select between front/rear flash */
- gpios = <&tlmm 113 0>;
- qcom,gpio-custom1 = <0>;
- };
- };
- &rpm_bus {
- rpm-regulator-ldoa10 {
- status = "okay";
- pm8953_l10: regulator-l10 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- qcom,init-voltage = <1800000>;
- status = "okay";
- };
- };
- };
- &spmi_bus {
- qcom,pmi8950@3 {
- qcom,leds@d300 {
- qcom,clamp-current = <75>;
- qcom,flash_0 {
- qcom,max-current = <1000>;
- qcom,duration = <400>;
- qcom,current = <650>;
- qcom,alt-max-current = <250>;
- qcom,alt-duration = <400>;
- qcom,alt-current = <100>;
- };
- qcom,flash_1 {
- qcom,max-current = <1000>;
- qcom,duration = <400>;
- qcom,current = <650>;
- qcom,alt-max-current = <250>;
- qcom,alt-duration = <400>;
- qcom,alt-current = <100>;
- };
- qcom,torch_0 {
- qcom,max-current = <200>;
- qcom,current = <75>;
- qcom,alt-max-current = <50>;
- qcom,alt-current = <12>;
- };
- qcom,torch_1 {
- qcom,max-current = <200>;
- qcom,current = <75>;
- qcom,alt-max-current = <50>;
- qcom,alt-current = <12>;
- };
- qcom,switch {
- qcom,duration = <400>;
- };
- };
- };
- };
- ---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment