Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (c) 2014-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.
- */
- /dts-v1/;
- #include "apq8096-nanosom.dtsi"
- #include "apq8096-devkit-pins.dts"
- / {
- model = "Mistral 820 Nano SoM Development Kit";
- compatible = "qcom,apq8096-nanosom";
- gpio_keys {
- compatible = "gpio-keys";
- #address-cells = <1>;
- #size-cells = <0>;
- autorepeat;
- pinctrl-names = "default";
- pinctrl-0 = <&volume_up_gpio &user_key_1 &user_key_2>;
- button@0 {
- label = "Volume Up";
- linux,code = <KEY_VOLUMEUP>;
- gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>;
- };
- button@1 {
- label = "User key 1";
- linux,code = <KEY_7>;
- gpios = <&msmgpio 127 GPIO_ACTIVE_LOW>;
- };
- button@2 {
- label = "User key 2";
- linux,code = <KEY_8>;
- gpios = <&msmgpio 9 GPIO_ACTIVE_LOW>;
- };
- };
- };
- &spmi_bus {
- pmic@3 {
- pmi8994_haptics: qcom,haptic@c000 {
- status = "okay";
- };
- };
- };
- &soc {
- blsp12_i2c: i2c@075ba000 {
- compatible = "qcom,i2c-qup-v2.2.1";
- reg = <0x075ba000 0x1000>;
- interrupts = <GIC_SPI 106 0>;
- clocks = <&gcc GCC_BLSP2_AHB_CLK>,
- <&gcc GCC_BLSP2_QUP6_I2C_APPS_CLK>;
- clock-names = "iface", "core";
- pinctrl-names = "default", "sleep";
- pinctrl-0 = <&blsp12_i2c_default>;
- pinctrl-1 = <&blsp12_i2c_sleep>;
- #address-cells = <1>;
- #size-cells = <0>;
- status = "okay";
- tca9535: tca9535@20 {
- compatible = "ti,tca9535";
- reg = <0x20>;
- tca9535,invert = /bits/ 8 <0x00 0x00>;
- tca9535,output = /bits/ 8 <0xfe 0xff>;
- tca9535,config = /bits/ 8 <0xaa 0xff>;
- gpio-controller;
- #gpio-cells = <2>;
- status = "okay";
- };
- };
- i2c@075b5000 {
- /* On High speed expansion */
- label = "HS-I2C2";
- status = "ok";
- };
- mdss@900000 {
- vdd-supply = <&pm8994_l22>;
- status = "okay";
- mdp@901000 {
- status = "okay";
- };
- dsi@994000 {
- vddio-supply = <&pm8994_l14>;
- vdda-supply = <&pm8994_l2>;
- vcca-supply = <&pm8994_l28>;
- status = "okay";
- panel@0 {
- reg = <0>;
- status = "okay";
- compatible = "raydium,rm68200";
- pinctrl-names = "default", "sleep";
- pinctrl-0 = <&reset_active &te_active &mdss_disp_bkl_active &lcd_pw_active &disp_bkl_active>;
- pinctrl-1 = <&te_suspend &mdss_disp_bkl_suspend &lcd_pw_suspend &disp_bkl_active>;
- reset-gpios = <&msmgpio 136 GPIO_ACTIVE_LOW>;
- power-supply = <&pm8994_l15>;
- port {
- panel0_in: endpoint {
- remote-endpoint = <&dsi0_out>;
- };
- };
- };
- ports {
- port@1 {
- endpoint {
- remote-endpoint = <&panel0_in>;
- data-lanes = <0 1 2 3>;
- };
- };
- };
- };
- hdmi-phy@9a0600 {
- status = "okay";
- vddio-supply = <&pm8994_l12>;
- vcca-supply = <&pm8994_l28>;
- #phy-cells = <0>;
- };
- hdmi-tx@9a0000 {
- status = "okay";
- pinctrl-names = "default", "sleep";
- pinctrl-0 = <&hdmi_hpd_active &hdmi_ddc_active>;
- pinctrl-1 = <&hdmi_hpd_suspend &hdmi_ddc_suspend>;
- core-vdda-supply = <&pm8994_l12>;
- core-vcc-supply = <&pm8994_s4>;
- #sound-dai-cells = <1>;
- };
- };
- blsp2_i2c1: i2c@07575000 {
- /* On Low speed expansion */
- label = "LS-I2C1";
- pinctrl-names = "default", "sleep";
- pinctrl-0 = <&blsp2_i2c_1_active>;
- pinctrl-1 = <&blsp2_i2c_1_sleep>;
- status = "ok";
- goodix_ts@5d {
- status = "okay";
- compatible = "goodix,gt911";
- reg = <0x5d>;
- interrupt-parent = <&msmgpio>;
- interrupts = <125 0x2008>;
- pinctrl-names = "default";
- pinctrl-0 = <&ts_active>;
- irq-gpios = <&msmgpio 125 0x00>;
- reset-gpios = <&msmgpio 144 0x00>;
- };
- };
- camera_vdddo_1v8: fixedregulator@0 {
- compatible = "regulator-fixed";
- regulator-name = "camera_vdddo";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- regulator-always-on;
- };
- camera_vdda_2v8: fixedregulator@1 {
- compatible = "regulator-fixed";
- regulator-name = "camera_vdda";
- regulator-min-microvolt = <2800000>;
- regulator-max-microvolt = <2800000>;
- regulator-always-on;
- };
- camera_vddd_1v5: fixedregulator@2 {
- compatible = "regulator-fixed";
- regulator-name = "camera_vddd";
- regulator-min-microvolt = <1500000>;
- regulator-max-microvolt = <1500000>;
- regulator-always-on;
- };
- #if 1 //commented
- cci@a0c000 {
- status = "ok";
- camera_board@3c {
- compatible = "ovti,ov5645";
- reg = <0x3c>;
- enable-gpios = <&tca9535 6 GPIO_ACTIVE_HIGH>;
- reset-gpios = <&msmgpio 135 GPIO_ACTIVE_LOW>;
- pinctrl-names = "default";
- pinctrl-0 = <&camera_primary_default>;
- clocks = <&mmcc CAMSS_MCLK0_CLK>;
- clock-names = "xclk";
- //clock-frequency = <24000000>;
- clock-frequency = <24000000>;
- vdddo-supply = <&camera_vdddo_1v8>;
- vdda-supply = <&camera_vdda_2v8>;
- vddd-supply = <&camera_vddd_1v5>;
- status = "ok";
- port {
- ov5645_2_ep: endpoint {
- clock-lanes = <1>;
- data-lanes = <0>; //removed 2
- remote-endpoint = <&csiphy0_ep>;
- };
- };
- };
- };
- #endif
- camss@a00000 {
- status = "ok";
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- csiphy0_ep: endpoint {
- clock-lanes = <7>;
- data-lanes = <0 >;//1>;
- remote-endpoint = <&ov5645_2_ep>;
- status = "ok";
- };
- };
- };
- };
- usb@76f8800 {
- status = "okay";
- dwc3@7600000 {
- dr_mode = "host";
- maximum-speed = "high-speed";
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement