Loading arch/arm64/boot/dts/qcom/dsi-panel-auo-416p-amoled-cmd.dtsi 0 → 100644 +121 −0 Original line number Diff line number Diff line /* Copyright (c) 2020, 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. */ &mdss_mdp { dsi_auo_416p_amoled_cmd: qcom,mdss_dsi_auo_416p_amoled_cmd { qcom,mdss-dsi-panel-name = "AUO 416p AMOLED command mode dsi panel"; qcom,mdss-dsi-panel-controller = <&mdss_dsi0>; qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; qcom,mdss-dsi-panel-destination = "display_1"; qcom,mdss-dsi-panel-framerate = <45>; qcom,mdss-dsi-virtual-channel-id = <0>; qcom,mdss-dsi-stream = <0>; qcom,mdss-dsi-panel-width = <416>; qcom,mdss-dsi-panel-height = <416>; qcom,mdss-dsi-h-front-porch = <4>; qcom,mdss-dsi-h-back-porch = <6>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <1>; qcom,mdss-dsi-v-front-porch = <1>; qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; qcom,mdss-dsi-v-top-border = <0>; qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-bpp = <24>; qcom,mdss-dsi-color-order = "rgb_swap_rgb"; qcom,mdss-dsi-underflow-color = <0xff>; qcom,mdss-dsi-border-color = <0>; qcom,mdss-dsi-pixel-packing = "tight"; qcom,mdss-dsi-pixel-alignment = <0>; qcom,mdss-dsi-on-command = [ 05 01 00 00 01 00 02 00 00 15 01 00 00 00 00 02 FE 01 15 01 00 00 00 00 02 0A F0 15 01 00 00 00 00 02 FE 00 29 01 00 00 00 00 05 2A 00 1E 01 BD 29 01 00 00 00 00 05 2B 00 00 01 9F 29 01 00 00 00 00 05 30 00 00 01 9F 29 01 00 00 00 00 05 31 00 1E 01 BD 05 01 00 00 00 00 02 12 00 15 01 00 00 00 00 02 35 02 15 01 00 00 00 00 02 53 20 15 01 00 00 00 00 02 51 FF 15 01 00 00 28 00 02 66 00 15 01 00 00 00 00 02 63 FF 05 01 00 00 32 00 02 11 00 05 01 00 00 1E 00 02 29 00 ]; /*15 01 00 00 00 00 02 51 00*/ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 02 28 00 05 01 00 00 78 00 02 10 00 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; qcom,mdss-dsi-idle-on-command = [ 15 01 00 00 46 00 02 FE 00 05 01 00 00 00 00 01 39 ]; qcom,mdss-dsi-idle-on-command-state = "dsi_hs_mode"; /*TODO: will remove set colum/row address*/ qcom,mdss-dsi-idle-off-command = [ 05 01 00 00 1f 00 01 38 /* Idle-Mode Off */ 15 01 00 00 00 00 02 FE 00 29 01 00 00 00 00 05 2A 00 1E 01 BD 29 01 00 00 00 00 05 2B 00 00 01 9F 29 01 00 00 00 00 05 30 00 00 01 9F 29 01 00 00 00 00 05 31 00 1E 01 BD 05 01 00 00 00 00 02 12 00 ]; qcom,mdss-dsi-hbm0-on-command = [ 15 01 00 00 00 00 02 FE 01 15 01 00 00 00 00 02 11 93 15 01 00 00 00 00 02 FE 00 15 01 00 00 00 00 02 66 02 ]; qcom,mdss-dsi-hbm-off-command = [ 15 01 00 00 00 00 02 FE 00 15 01 00 00 28 00 02 66 00 15 01 00 00 00 00 02 FE 01 15 01 00 00 00 00 02 11 80 15 01 00 00 00 00 02 FE 00 ]; qcom,mdss-dsi-h-sync-pulse = <1>; qcom,mdss-dsi-traffic-mode = "burst_mode"; qcom,mdss-dsi-lane-map = "lane_map_0123"; qcom,mdss-dsi-bllp-eof-power-mode; qcom,mdss-dsi-bllp-power-mode; qcom,mdss-dsi-lane-0-state; qcom,mdss-tear-check-frame-rate = <4500>; qcom,mdss-dsi-idle-fps = <15>; /* clk = totlaH * totalV * bpp* 60fps */ qcom,mdss-dsi-panel-clockrate = <308655360>; qcom,mdss-dsi-te-pin-select = <1>; qcom,mdss-dsi-te-dcs-command = <1>; qcom,mdss-dsi-te-using-te-pin; qcom,mdss-dsi-te-check-enable; qcom,mdss-dsi-panel-timings = [ 4E 0E 08 00 2E 30 0E 12 0A 03 04 00 ]; qcom,mdss-dsi-t-clk-post = <0x05>; qcom,mdss-dsi-t-clk-pre = <0x12>; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-reset-sequence = <1 20>, <0 20>, <1 20>; }; }; arch/arm64/boot/dts/qcom/sdm429-mdss-panels.dtsi 0 → 100644 +50 −0 Original line number Diff line number Diff line /* Copyright (c) 2020, 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. */ #include "dsi-panel-auo-416p-amoled-cmd.dtsi" &soc { dsi_pm660_panel_pwr_supply: dsi_pm660_panel_pwr_supply { #address-cells = <1>; #size-cells = <0>; qcom,panel-supply-entry@0 { reg = <0>; qcom,supply-name = "vdd"; qcom,supply-min-voltage = <2800000>; qcom,supply-max-voltage = <2800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; qcom,panel-supply-entry@1 { reg = <1>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; }; }; &dsi_auo_416p_amoled_cmd { /delete-property/ qcom,mdss-dsi-panel-timings; qcom,mdss-dsi-panel-timings-phy-12nm = [06 05 01 0A 00 03 01 0F]; qcom,panel-supply-entries = <&dsi_pm660_panel_pwr_supply>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "te_signal_check"; qcom,mdss-dsi-power-off-disable; qcom,mdss-dsi-tear-disable; }; arch/arm64/boot/dts/qcom/sdm429-mdss-pll.dtsi 0 → 100644 +103 −0 Original line number Diff line number Diff line /* Copyright (c) 2020, 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. */ &soc { mdss_dsi0_pll: qcom,mdss_dsi_pll@1a94400 { compatible = "qcom,mdss_dsi_pll_12nm"; label = "MDSS DSI 0 PLL"; cell-index = <0>; #clock-cells = <1>; reg = <0x001a94400 0x400>, <0x0184d074 0x8>; reg-names = "pll_base", "gdsc_base"; gdsc-supply = <&mdss_gdsc>; vddio-supply = <&pm660_l6>; clocks = <&gcc GCC_MDSS_AHB_CLK>; clock-names = "iface_clk"; clock-rate = <0>; qcom,dsi-pll-ssc-en; qcom,dsi-pll-ssc-mode = "down-spread"; qcom,ssc-frequency-hz = <31500>; qcom,ssc-ppm = <5000>; qcom,platform-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,platform-supply-entry@0 { reg = <0>; qcom,supply-name = "gdsc"; qcom,supply-min-voltage = <0>; qcom,supply-max-voltage = <0>; qcom,supply-enable-load = <0>; qcom,supply-disable-load = <0>; }; qcom,platform-supply-entry@1 { reg = <1>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; }; }; mdss_dsi1_pll: qcom,mdss_dsi_pll@1a96400 { compatible = "qcom,mdss_dsi_pll_12nm"; label = "MDSS DSI 1 PLL"; cell-index = <1>; #clock-cells = <1>; reg = <0x001a96400 0x400>, <0x0184d074 0x8>; reg-names = "pll_base", "gdsc_base"; gdsc-supply = <&mdss_gdsc>; vddio-supply = <&pm660_l6>; clocks = <&gcc GCC_MDSS_AHB_CLK>; clock-names = "iface_clk"; clock-rate = <0>; qcom,dsi-pll-ssc-en; qcom,dsi-pll-ssc-mode = "down-spread"; qcom,ssc-frequency-hz = <31500>; qcom,ssc-ppm = <5000>; qcom,platform-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,platform-supply-entry@0 { reg = <0>; qcom,supply-name = "gdsc"; qcom,supply-min-voltage = <0>; qcom,supply-max-voltage = <0>; qcom,supply-enable-load = <0>; qcom,supply-disable-load = <0>; }; qcom,platform-supply-entry@1 { reg = <1>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; }; }; }; arch/arm64/boot/dts/qcom/sdm429-mdss.dtsi 0 → 100644 +392 −0 Original line number Diff line number Diff line /* Copyright (c) 2020 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. */ #include <dt-bindings/clock/mdss-12nm-pll-clk.h> &soc { mdss_mdp: qcom,mdss_mdp@1a00000 { compatible = "qcom,mdss_mdp"; reg = <0x01a00000 0x90000>, <0x01ab0000 0x1040>; reg-names = "mdp_phys", "vbif_phys"; interrupts = <0 72 0>; vdd-supply = <&mdss_gdsc>; /* Bus Scale Settings */ qcom,msm-bus,name = "mdss_mdp"; qcom,msm-bus,num-cases = <3>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = <22 512 0 0>, <22 512 0 6400000>, <22 512 0 6400000>; /* Fudge factors */ qcom,mdss-ab-factor = <1 1>; /* 1 time */ qcom,mdss-ib-factor = <1 1>; /* 1 time */ qcom,mdss-clk-factor = <105 100>; /* 1.05 times */ qcom,max-mixer-width = <2048>; qcom,max-pipe-width = <2048>; /* VBIF QoS remapper settings*/ qcom,mdss-vbif-qos-rt-setting = <1 2 2 2>; qcom,mdss-vbif-qos-nrt-setting = <1 1 1 1>; qcom,mdss-has-panic-ctrl; qcom,mdss-per-pipe-panic-luts = <0x000f>, <0xffff>, <0xfffc>, <0xff00>; qcom,mdss-mdp-reg-offset = <0x00001000>; qcom,max-bandwidth-low-kbps = <3100000>; qcom,max-bandwidth-high-kbps = <3100000>; qcom,max-bandwidth-per-pipe-kbps = <2300000>; /* Bandwidth limit settings */ qcom,max-bw-settings = <1 3100000>, /* Default */ <2 1700000>; /* Camera */ qcom,max-clk-rate = <320000000>; qcom,mdss-default-ot-rd-limit = <32>; qcom,mdss-default-ot-wr-limit = <16>; qcom,mdss-pipe-vig-off = <0x00005000>; qcom,mdss-pipe-rgb-off = <0x00015000 0x00017000>; qcom,mdss-pipe-dma-off = <0x00025000>; qcom,mdss-pipe-cursor-off = <0x00035000>; qcom,mdss-pipe-vig-xin-id = <0>; qcom,mdss-pipe-rgb-xin-id = <1 5>; qcom,mdss-pipe-dma-xin-id = <2>; qcom,mdss-pipe-cursor-xin-id = <7>; /* Offsets relative to "mdp_phys + mdp-reg-offset" address */ qcom,mdss-pipe-vig-clk-ctrl-offsets = <0x2AC 0 0>; qcom,mdss-pipe-rgb-clk-ctrl-offsets = <0x2AC 4 8>, <0x2B4 4 8>; qcom,mdss-pipe-dma-clk-ctrl-offsets = <0x2AC 8 12>; qcom,mdss-pipe-cursor-clk-ctrl-offsets = <0x3A8 16 15>; qcom,mdss-ctl-off = <0x00002000 0x00002200 0x00002400>; qcom,mdss-mixer-intf-off = <0x00045000 0x00046000>; qcom,mdss-dspp-off = <0x00055000>; qcom,mdss-wb-off = <0x00065000 0x00066000>; qcom,mdss-intf-off = <0x00000000 0x0006B800 0x0006C000>; qcom,mdss-pingpong-off = <0x00071000 0x00071800>; qcom,mdss-slave-pingpong-off = <0x00073000>; qcom,mdss-cdm-off = <0x0007a200>; qcom,mdss-wfd-mode = "intf"; qcom,mdss-highest-bank-bit = <0x1>; qcom,mdss-has-decimation; qcom,mdss-has-non-scalar-rgb; qcom,mdss-has-rotator-downscale; qcom,mdss-rot-downscale-min = <2>; qcom,mdss-rot-downscale-max = <16>; qcom,mdss-idle-power-collapse-enabled; qcom,mdss-rot-block-size = <64>; clocks = <&gcc GCC_MDSS_AHB_CLK>, <&gcc GCC_MDSS_AXI_CLK>, <&gcc MDP_CLK_SRC>, <&gcc_mdss MDSS_MDP_VOTE_CLK>, <&gcc GCC_MDSS_VSYNC_CLK>; clock-names = "iface_clk", "bus_clk", "core_clk_src", "core_clk", "vsync_clk"; qcom,mdp-settings = <0x0506c 0x00000000>, <0x1506c 0x00000000>, <0x1706c 0x00000000>, <0x2506c 0x00000000>; qcom,vbif-settings = <0x0d0 0x20>; qcom,regs-dump-mdp = <0x01000 0x01454>, <0x02000 0x02064>, <0x02200 0x02264>, <0x02400 0x02464>, <0x05000 0x05150>, <0x05200 0x05230>, <0x15000 0x15150>, <0x17000 0x17150>, <0x25000 0x25150>, <0x35000 0x35150>, <0x45000 0x452bc>, <0x46000 0x462bc>, <0x55000 0x5522c>, <0x65000 0x652c0>, <0x66000 0x662c0>, <0x6b800 0x6ba68>, <0x6c000 0x6c268>, <0x71000 0x710d4>, <0x71800 0x718d4>; qcom,regs-dump-names-mdp = "MDP", "CTL_0", "CTL_1", "CTL_2", "VIG0_SSPP", "VIG0", "RGB0_SSPP", "RGB1_SSPP", "DMA0_SSPP", "CURSOR0_SSPP", "LAYER_0", "LAYER_1", "DSPP_0", "WB_0", "WB_2", "INTF_1", "INTF_2", "PP_0", "PP_1"; /* buffer parameters to calculate prefill bandwidth */ qcom,mdss-prefill-outstanding-buffer-bytes = <0>; qcom,mdss-prefill-y-buffer-bytes = <0>; qcom,mdss-prefill-scaler-buffer-lines-bilinear = <2>; qcom,mdss-prefill-scaler-buffer-lines-caf = <4>; qcom,mdss-prefill-post-scaler-buffer-pixels = <2048>; qcom,mdss-prefill-pingpong-buffer-pixels = <4096>; qcom,mdss-pp-offsets { qcom,mdss-sspp-mdss-igc-lut-off = <0x2000>; qcom,mdss-sspp-vig-pcc-off = <0x1780>; qcom,mdss-sspp-rgb-pcc-off = <0x380>; qcom,mdss-sspp-dma-pcc-off = <0x380>; qcom,mdss-lm-pgc-off = <0x3C0>; qcom,mdss-dspp-pcc-off = <0x1700>; qcom,mdss-dspp-pgc-off = <0x17C0>; }; qcom,mdss-reg-bus { /* Reg Bus Scale Settings */ qcom,msm-bus,name = "mdss_reg"; qcom,msm-bus,num-cases = <4>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,active-only; qcom,msm-bus,vectors-KBps = <1 590 0 0>, <1 590 0 76800>, <1 590 0 160000>, <1 590 0 320000>; }; qcom,mdss-hw-rt-bus { /* Bus Scale Settings */ qcom,msm-bus,name = "mdss_hw_rt"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = <22 512 0 0>, <22 512 0 1000>; }; /*TODO*/ smmu_mdp_unsec: qcom,smmu_mdp_unsec_cb { compatible = "qcom,smmu_mdp_unsec"; iommus = <&apps_iommu 0x2800 0>; /* For NS ctx bank */ }; /*TODO*/ smmu_mdp_sec: qcom,smmu_mdp_sec_cb { compatible = "qcom,smmu_mdp_sec"; iommus = <&apps_iommu 0x2801 0>; /* For SEC Ctx Bank */ }; mdss_fb0: qcom,mdss_fb_primary { cell-index = <0>; compatible = "qcom,mdss-fb"; qcom,cont-splash-memory { linux,contiguous-region = <&cont_splash_mem>; }; }; mdss_fb1: qcom,mdss_fb_wfd { cell-index = <1>; compatible = "qcom,mdss-fb"; }; mdss_fb2: qcom,mdss_fb_secondary { cell-index = <2>; compatible = "qcom,mdss-fb"; }; }; mdss_dsi: qcom,mdss_dsi@0 { compatible = "qcom,mdss-dsi"; hw-config = "single_dsi"; #address-cells = <1>; #size-cells = <1>; gdsc-supply = <&mdss_gdsc>; vdda-supply = <&pm660_l2>; vddio-supply = <&pm660_l6>; /* Bus Scale Settings */ qcom,msm-bus,name = "mdss_dsi"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = <22 512 0 0>, <22 512 0 1000>; ranges = <0x1a94000 0x1a94000 0x300 0x1a94400 0x1a94400 0x400 0x193e000 0x193e000 0x30 0x1a96000 0x1a96000 0x300 0x1a96400 0x1a96400 0x400 0x193e000 0x193e000 0x30>; clocks = <&gcc_mdss MDSS_MDP_VOTE_CLK>, <&gcc GCC_MDSS_AHB_CLK>, <&gcc GCC_MDSS_AXI_CLK>, <&gcc_mdss BYTE0_CLK_SRC>, /*TODO*/ <&gcc_mdss BYTE1_CLK_SRC>, /*TODO*/ <&gcc_mdss PCLK0_CLK_SRC>, /*TODO*/ <&gcc_mdss PCLK1_CLK_SRC>; /*TODO*/ clock-names = "mdp_core_clk", "iface_clk", "bus_clk", "ext_byte0_clk", "ext_byte1_clk", "ext_pixel0_clk", "ext_pixel1_clk"; qcom,mmss-ulp-clamp-ctrl-offset = <0x20>; qcom,mmss-phyreset-ctrl-offset = <0x24>; qcom,mdss-skip-clamp; qcom,mdss-fb-map-prim = <&mdss_fb0>; qcom,mdss-fb-map-sec = <&mdss_fb2>; qcom,core-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,core-supply-entry@0 { reg = <0>; qcom,supply-name = "gdsc"; qcom,supply-min-voltage = <0>; qcom,supply-max-voltage = <0>; qcom,supply-enable-load = <0>; qcom,supply-disable-load = <0>; }; }; qcom,ctrl-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,ctrl-supply-entry@0 { reg = <0>; qcom,supply-name = "vdda"; qcom,supply-min-voltage = <1200000>; qcom,supply-max-voltage = <1200000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-post-on-sleep = <20>; }; }; qcom,phy-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,phy-supply-entry@0 { reg = <0>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; }; mdss_dsi0: qcom,mdss_dsi_ctrl0@1a94000 { compatible = "qcom,mdss-dsi-ctrl"; label = "MDSS DSI CTRL->0"; cell-index = <0>; reg = <0x1a94000 0x300>, <0x1a94400 0x400>, <0x193e000 0x30>; reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys"; qcom,timing-db-mode; qcom,mdss-mdp = <&mdss_mdp>; vdd-supply = <&pm660_l17>; vddio-supply = <&pm660_l6>; clocks = <&gcc_mdss GCC_MDSS_BYTE0_CLK>, <&gcc_mdss GCC_MDSS_PCLK0_CLK>, <&gcc GCC_MDSS_ESC0_CLK>, <&gcc_mdss BYTE0_CLK_SRC>, <&gcc_mdss PCLK0_CLK_SRC>; clock-names = "byte_clk", "pixel_clk", "core_clk", "byte_clk_rcg", "pixel_clk_rcg"; }; mdss_dsi1: qcom,mdss_dsi_ctrl1@1a96000 { compatible = "qcom,mdss-dsi-ctrl"; label = "MDSS DSI CTRL->1"; cell-index = <1>; reg = <0x1a96000 0x300>, <0x1a96400 0x400>, <0x193e000 0x30>; reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys"; qcom,mdss-mdp = <&mdss_mdp>; vdd-supply = <&pm660_l17>; vddio-supply = <&pm660_l6>; clocks = <&gcc_mdss GCC_MDSS_BYTE1_CLK>, <&gcc_mdss GCC_MDSS_PCLK1_CLK>, <&gcc GCC_MDSS_ESC1_CLK>, <&gcc_mdss BYTE1_CLK_SRC>, <&gcc_mdss PCLK1_CLK_SRC>; clock-names = "byte_clk", "pixel_clk", "core_clk", "byte_clk_rcg", "pixel_clk_rcg"; }; }; qcom,mdss_wb_panel { compatible = "qcom,mdss_wb"; qcom,mdss_pan_res = <640 640>; qcom,mdss_pan_bpp = <24>; qcom,mdss-fb-map = <&mdss_fb1>; }; mdss_rotator: qcom,mdss_rotator { compatible = "qcom,mdss_rotator"; qcom,mdss-wb-count = <1>; qcom,mdss-has-downscale; qcom,mdss-has-ubwc; /* Bus Scale Settings */ qcom,msm-bus,name = "mdss_rotator"; qcom,msm-bus,num-cases = <3>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = <22 512 0 0>, <22 512 0 6400000>, <22 512 0 6400000>; rot-vdd-supply = <&mdss_gdsc>; qcom,supply-names = "rot-vdd"; qcom,mdss-has-reg-bus; clocks = <&gcc GCC_MDSS_AHB_CLK>, <&gcc_mdss MDSS_ROTATOR_VOTE_CLK>; clock-names = "iface_clk", "rot_core_clk"; qcom,mdss-rot-reg-bus { /* Reg Bus Scale Settings */ qcom,msm-bus,name = "mdss_rot_reg"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,active-only; qcom,msm-bus,vectors-KBps = <1 590 0 0>, <1 590 0 76800>; }; }; }; arch/arm64/boot/dts/qcom/sdm429-pinctrl.dtsi +46 −0 Original line number Diff line number Diff line Loading @@ -777,5 +777,51 @@ }; }; }; pmx_mdss: pmx_mdss { mdss_dsi_active: mdss_dsi_active { mux { pins = "gpio60"; drive-strength = <8>; /* 8 mA */ bias-disable = <0>; /* no pull */ output-high; }; }; mdss_dsi_suspend: mdss_dsi_suspend { mux { pins = "gpio60"; drive-strength = <2>; /* 2 mA */ bias-pull-down; /* pull down */ input-enable; }; }; }; pmx_mdss_te { mdss_te_active: mdss_te_active { mux { pins = "gpio24"; function = "mdp_vsync"; }; config { pins = "gpio24"; drive-strength = <2>; /* 8 mA */ bias-pull-down; /* pull down*/ }; }; mdss_te_suspend: mdss_te_suspend { mux { pins = "gpio24"; function = "mdp_vsync"; }; config { pins = "gpio24"; drive-strength = <2>; /* 2 mA */ bias-pull-down; /* pull down */ }; }; }; }; }; Loading
arch/arm64/boot/dts/qcom/dsi-panel-auo-416p-amoled-cmd.dtsi 0 → 100644 +121 −0 Original line number Diff line number Diff line /* Copyright (c) 2020, 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. */ &mdss_mdp { dsi_auo_416p_amoled_cmd: qcom,mdss_dsi_auo_416p_amoled_cmd { qcom,mdss-dsi-panel-name = "AUO 416p AMOLED command mode dsi panel"; qcom,mdss-dsi-panel-controller = <&mdss_dsi0>; qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; qcom,mdss-dsi-panel-destination = "display_1"; qcom,mdss-dsi-panel-framerate = <45>; qcom,mdss-dsi-virtual-channel-id = <0>; qcom,mdss-dsi-stream = <0>; qcom,mdss-dsi-panel-width = <416>; qcom,mdss-dsi-panel-height = <416>; qcom,mdss-dsi-h-front-porch = <4>; qcom,mdss-dsi-h-back-porch = <6>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <1>; qcom,mdss-dsi-v-front-porch = <1>; qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; qcom,mdss-dsi-v-top-border = <0>; qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-bpp = <24>; qcom,mdss-dsi-color-order = "rgb_swap_rgb"; qcom,mdss-dsi-underflow-color = <0xff>; qcom,mdss-dsi-border-color = <0>; qcom,mdss-dsi-pixel-packing = "tight"; qcom,mdss-dsi-pixel-alignment = <0>; qcom,mdss-dsi-on-command = [ 05 01 00 00 01 00 02 00 00 15 01 00 00 00 00 02 FE 01 15 01 00 00 00 00 02 0A F0 15 01 00 00 00 00 02 FE 00 29 01 00 00 00 00 05 2A 00 1E 01 BD 29 01 00 00 00 00 05 2B 00 00 01 9F 29 01 00 00 00 00 05 30 00 00 01 9F 29 01 00 00 00 00 05 31 00 1E 01 BD 05 01 00 00 00 00 02 12 00 15 01 00 00 00 00 02 35 02 15 01 00 00 00 00 02 53 20 15 01 00 00 00 00 02 51 FF 15 01 00 00 28 00 02 66 00 15 01 00 00 00 00 02 63 FF 05 01 00 00 32 00 02 11 00 05 01 00 00 1E 00 02 29 00 ]; /*15 01 00 00 00 00 02 51 00*/ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 02 28 00 05 01 00 00 78 00 02 10 00 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; qcom,mdss-dsi-idle-on-command = [ 15 01 00 00 46 00 02 FE 00 05 01 00 00 00 00 01 39 ]; qcom,mdss-dsi-idle-on-command-state = "dsi_hs_mode"; /*TODO: will remove set colum/row address*/ qcom,mdss-dsi-idle-off-command = [ 05 01 00 00 1f 00 01 38 /* Idle-Mode Off */ 15 01 00 00 00 00 02 FE 00 29 01 00 00 00 00 05 2A 00 1E 01 BD 29 01 00 00 00 00 05 2B 00 00 01 9F 29 01 00 00 00 00 05 30 00 00 01 9F 29 01 00 00 00 00 05 31 00 1E 01 BD 05 01 00 00 00 00 02 12 00 ]; qcom,mdss-dsi-hbm0-on-command = [ 15 01 00 00 00 00 02 FE 01 15 01 00 00 00 00 02 11 93 15 01 00 00 00 00 02 FE 00 15 01 00 00 00 00 02 66 02 ]; qcom,mdss-dsi-hbm-off-command = [ 15 01 00 00 00 00 02 FE 00 15 01 00 00 28 00 02 66 00 15 01 00 00 00 00 02 FE 01 15 01 00 00 00 00 02 11 80 15 01 00 00 00 00 02 FE 00 ]; qcom,mdss-dsi-h-sync-pulse = <1>; qcom,mdss-dsi-traffic-mode = "burst_mode"; qcom,mdss-dsi-lane-map = "lane_map_0123"; qcom,mdss-dsi-bllp-eof-power-mode; qcom,mdss-dsi-bllp-power-mode; qcom,mdss-dsi-lane-0-state; qcom,mdss-tear-check-frame-rate = <4500>; qcom,mdss-dsi-idle-fps = <15>; /* clk = totlaH * totalV * bpp* 60fps */ qcom,mdss-dsi-panel-clockrate = <308655360>; qcom,mdss-dsi-te-pin-select = <1>; qcom,mdss-dsi-te-dcs-command = <1>; qcom,mdss-dsi-te-using-te-pin; qcom,mdss-dsi-te-check-enable; qcom,mdss-dsi-panel-timings = [ 4E 0E 08 00 2E 30 0E 12 0A 03 04 00 ]; qcom,mdss-dsi-t-clk-post = <0x05>; qcom,mdss-dsi-t-clk-pre = <0x12>; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-reset-sequence = <1 20>, <0 20>, <1 20>; }; };
arch/arm64/boot/dts/qcom/sdm429-mdss-panels.dtsi 0 → 100644 +50 −0 Original line number Diff line number Diff line /* Copyright (c) 2020, 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. */ #include "dsi-panel-auo-416p-amoled-cmd.dtsi" &soc { dsi_pm660_panel_pwr_supply: dsi_pm660_panel_pwr_supply { #address-cells = <1>; #size-cells = <0>; qcom,panel-supply-entry@0 { reg = <0>; qcom,supply-name = "vdd"; qcom,supply-min-voltage = <2800000>; qcom,supply-max-voltage = <2800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; qcom,panel-supply-entry@1 { reg = <1>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; }; }; &dsi_auo_416p_amoled_cmd { /delete-property/ qcom,mdss-dsi-panel-timings; qcom,mdss-dsi-panel-timings-phy-12nm = [06 05 01 0A 00 03 01 0F]; qcom,panel-supply-entries = <&dsi_pm660_panel_pwr_supply>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "te_signal_check"; qcom,mdss-dsi-power-off-disable; qcom,mdss-dsi-tear-disable; };
arch/arm64/boot/dts/qcom/sdm429-mdss-pll.dtsi 0 → 100644 +103 −0 Original line number Diff line number Diff line /* Copyright (c) 2020, 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. */ &soc { mdss_dsi0_pll: qcom,mdss_dsi_pll@1a94400 { compatible = "qcom,mdss_dsi_pll_12nm"; label = "MDSS DSI 0 PLL"; cell-index = <0>; #clock-cells = <1>; reg = <0x001a94400 0x400>, <0x0184d074 0x8>; reg-names = "pll_base", "gdsc_base"; gdsc-supply = <&mdss_gdsc>; vddio-supply = <&pm660_l6>; clocks = <&gcc GCC_MDSS_AHB_CLK>; clock-names = "iface_clk"; clock-rate = <0>; qcom,dsi-pll-ssc-en; qcom,dsi-pll-ssc-mode = "down-spread"; qcom,ssc-frequency-hz = <31500>; qcom,ssc-ppm = <5000>; qcom,platform-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,platform-supply-entry@0 { reg = <0>; qcom,supply-name = "gdsc"; qcom,supply-min-voltage = <0>; qcom,supply-max-voltage = <0>; qcom,supply-enable-load = <0>; qcom,supply-disable-load = <0>; }; qcom,platform-supply-entry@1 { reg = <1>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; }; }; mdss_dsi1_pll: qcom,mdss_dsi_pll@1a96400 { compatible = "qcom,mdss_dsi_pll_12nm"; label = "MDSS DSI 1 PLL"; cell-index = <1>; #clock-cells = <1>; reg = <0x001a96400 0x400>, <0x0184d074 0x8>; reg-names = "pll_base", "gdsc_base"; gdsc-supply = <&mdss_gdsc>; vddio-supply = <&pm660_l6>; clocks = <&gcc GCC_MDSS_AHB_CLK>; clock-names = "iface_clk"; clock-rate = <0>; qcom,dsi-pll-ssc-en; qcom,dsi-pll-ssc-mode = "down-spread"; qcom,ssc-frequency-hz = <31500>; qcom,ssc-ppm = <5000>; qcom,platform-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,platform-supply-entry@0 { reg = <0>; qcom,supply-name = "gdsc"; qcom,supply-min-voltage = <0>; qcom,supply-max-voltage = <0>; qcom,supply-enable-load = <0>; qcom,supply-disable-load = <0>; }; qcom,platform-supply-entry@1 { reg = <1>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; }; }; };
arch/arm64/boot/dts/qcom/sdm429-mdss.dtsi 0 → 100644 +392 −0 Original line number Diff line number Diff line /* Copyright (c) 2020 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. */ #include <dt-bindings/clock/mdss-12nm-pll-clk.h> &soc { mdss_mdp: qcom,mdss_mdp@1a00000 { compatible = "qcom,mdss_mdp"; reg = <0x01a00000 0x90000>, <0x01ab0000 0x1040>; reg-names = "mdp_phys", "vbif_phys"; interrupts = <0 72 0>; vdd-supply = <&mdss_gdsc>; /* Bus Scale Settings */ qcom,msm-bus,name = "mdss_mdp"; qcom,msm-bus,num-cases = <3>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = <22 512 0 0>, <22 512 0 6400000>, <22 512 0 6400000>; /* Fudge factors */ qcom,mdss-ab-factor = <1 1>; /* 1 time */ qcom,mdss-ib-factor = <1 1>; /* 1 time */ qcom,mdss-clk-factor = <105 100>; /* 1.05 times */ qcom,max-mixer-width = <2048>; qcom,max-pipe-width = <2048>; /* VBIF QoS remapper settings*/ qcom,mdss-vbif-qos-rt-setting = <1 2 2 2>; qcom,mdss-vbif-qos-nrt-setting = <1 1 1 1>; qcom,mdss-has-panic-ctrl; qcom,mdss-per-pipe-panic-luts = <0x000f>, <0xffff>, <0xfffc>, <0xff00>; qcom,mdss-mdp-reg-offset = <0x00001000>; qcom,max-bandwidth-low-kbps = <3100000>; qcom,max-bandwidth-high-kbps = <3100000>; qcom,max-bandwidth-per-pipe-kbps = <2300000>; /* Bandwidth limit settings */ qcom,max-bw-settings = <1 3100000>, /* Default */ <2 1700000>; /* Camera */ qcom,max-clk-rate = <320000000>; qcom,mdss-default-ot-rd-limit = <32>; qcom,mdss-default-ot-wr-limit = <16>; qcom,mdss-pipe-vig-off = <0x00005000>; qcom,mdss-pipe-rgb-off = <0x00015000 0x00017000>; qcom,mdss-pipe-dma-off = <0x00025000>; qcom,mdss-pipe-cursor-off = <0x00035000>; qcom,mdss-pipe-vig-xin-id = <0>; qcom,mdss-pipe-rgb-xin-id = <1 5>; qcom,mdss-pipe-dma-xin-id = <2>; qcom,mdss-pipe-cursor-xin-id = <7>; /* Offsets relative to "mdp_phys + mdp-reg-offset" address */ qcom,mdss-pipe-vig-clk-ctrl-offsets = <0x2AC 0 0>; qcom,mdss-pipe-rgb-clk-ctrl-offsets = <0x2AC 4 8>, <0x2B4 4 8>; qcom,mdss-pipe-dma-clk-ctrl-offsets = <0x2AC 8 12>; qcom,mdss-pipe-cursor-clk-ctrl-offsets = <0x3A8 16 15>; qcom,mdss-ctl-off = <0x00002000 0x00002200 0x00002400>; qcom,mdss-mixer-intf-off = <0x00045000 0x00046000>; qcom,mdss-dspp-off = <0x00055000>; qcom,mdss-wb-off = <0x00065000 0x00066000>; qcom,mdss-intf-off = <0x00000000 0x0006B800 0x0006C000>; qcom,mdss-pingpong-off = <0x00071000 0x00071800>; qcom,mdss-slave-pingpong-off = <0x00073000>; qcom,mdss-cdm-off = <0x0007a200>; qcom,mdss-wfd-mode = "intf"; qcom,mdss-highest-bank-bit = <0x1>; qcom,mdss-has-decimation; qcom,mdss-has-non-scalar-rgb; qcom,mdss-has-rotator-downscale; qcom,mdss-rot-downscale-min = <2>; qcom,mdss-rot-downscale-max = <16>; qcom,mdss-idle-power-collapse-enabled; qcom,mdss-rot-block-size = <64>; clocks = <&gcc GCC_MDSS_AHB_CLK>, <&gcc GCC_MDSS_AXI_CLK>, <&gcc MDP_CLK_SRC>, <&gcc_mdss MDSS_MDP_VOTE_CLK>, <&gcc GCC_MDSS_VSYNC_CLK>; clock-names = "iface_clk", "bus_clk", "core_clk_src", "core_clk", "vsync_clk"; qcom,mdp-settings = <0x0506c 0x00000000>, <0x1506c 0x00000000>, <0x1706c 0x00000000>, <0x2506c 0x00000000>; qcom,vbif-settings = <0x0d0 0x20>; qcom,regs-dump-mdp = <0x01000 0x01454>, <0x02000 0x02064>, <0x02200 0x02264>, <0x02400 0x02464>, <0x05000 0x05150>, <0x05200 0x05230>, <0x15000 0x15150>, <0x17000 0x17150>, <0x25000 0x25150>, <0x35000 0x35150>, <0x45000 0x452bc>, <0x46000 0x462bc>, <0x55000 0x5522c>, <0x65000 0x652c0>, <0x66000 0x662c0>, <0x6b800 0x6ba68>, <0x6c000 0x6c268>, <0x71000 0x710d4>, <0x71800 0x718d4>; qcom,regs-dump-names-mdp = "MDP", "CTL_0", "CTL_1", "CTL_2", "VIG0_SSPP", "VIG0", "RGB0_SSPP", "RGB1_SSPP", "DMA0_SSPP", "CURSOR0_SSPP", "LAYER_0", "LAYER_1", "DSPP_0", "WB_0", "WB_2", "INTF_1", "INTF_2", "PP_0", "PP_1"; /* buffer parameters to calculate prefill bandwidth */ qcom,mdss-prefill-outstanding-buffer-bytes = <0>; qcom,mdss-prefill-y-buffer-bytes = <0>; qcom,mdss-prefill-scaler-buffer-lines-bilinear = <2>; qcom,mdss-prefill-scaler-buffer-lines-caf = <4>; qcom,mdss-prefill-post-scaler-buffer-pixels = <2048>; qcom,mdss-prefill-pingpong-buffer-pixels = <4096>; qcom,mdss-pp-offsets { qcom,mdss-sspp-mdss-igc-lut-off = <0x2000>; qcom,mdss-sspp-vig-pcc-off = <0x1780>; qcom,mdss-sspp-rgb-pcc-off = <0x380>; qcom,mdss-sspp-dma-pcc-off = <0x380>; qcom,mdss-lm-pgc-off = <0x3C0>; qcom,mdss-dspp-pcc-off = <0x1700>; qcom,mdss-dspp-pgc-off = <0x17C0>; }; qcom,mdss-reg-bus { /* Reg Bus Scale Settings */ qcom,msm-bus,name = "mdss_reg"; qcom,msm-bus,num-cases = <4>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,active-only; qcom,msm-bus,vectors-KBps = <1 590 0 0>, <1 590 0 76800>, <1 590 0 160000>, <1 590 0 320000>; }; qcom,mdss-hw-rt-bus { /* Bus Scale Settings */ qcom,msm-bus,name = "mdss_hw_rt"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = <22 512 0 0>, <22 512 0 1000>; }; /*TODO*/ smmu_mdp_unsec: qcom,smmu_mdp_unsec_cb { compatible = "qcom,smmu_mdp_unsec"; iommus = <&apps_iommu 0x2800 0>; /* For NS ctx bank */ }; /*TODO*/ smmu_mdp_sec: qcom,smmu_mdp_sec_cb { compatible = "qcom,smmu_mdp_sec"; iommus = <&apps_iommu 0x2801 0>; /* For SEC Ctx Bank */ }; mdss_fb0: qcom,mdss_fb_primary { cell-index = <0>; compatible = "qcom,mdss-fb"; qcom,cont-splash-memory { linux,contiguous-region = <&cont_splash_mem>; }; }; mdss_fb1: qcom,mdss_fb_wfd { cell-index = <1>; compatible = "qcom,mdss-fb"; }; mdss_fb2: qcom,mdss_fb_secondary { cell-index = <2>; compatible = "qcom,mdss-fb"; }; }; mdss_dsi: qcom,mdss_dsi@0 { compatible = "qcom,mdss-dsi"; hw-config = "single_dsi"; #address-cells = <1>; #size-cells = <1>; gdsc-supply = <&mdss_gdsc>; vdda-supply = <&pm660_l2>; vddio-supply = <&pm660_l6>; /* Bus Scale Settings */ qcom,msm-bus,name = "mdss_dsi"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = <22 512 0 0>, <22 512 0 1000>; ranges = <0x1a94000 0x1a94000 0x300 0x1a94400 0x1a94400 0x400 0x193e000 0x193e000 0x30 0x1a96000 0x1a96000 0x300 0x1a96400 0x1a96400 0x400 0x193e000 0x193e000 0x30>; clocks = <&gcc_mdss MDSS_MDP_VOTE_CLK>, <&gcc GCC_MDSS_AHB_CLK>, <&gcc GCC_MDSS_AXI_CLK>, <&gcc_mdss BYTE0_CLK_SRC>, /*TODO*/ <&gcc_mdss BYTE1_CLK_SRC>, /*TODO*/ <&gcc_mdss PCLK0_CLK_SRC>, /*TODO*/ <&gcc_mdss PCLK1_CLK_SRC>; /*TODO*/ clock-names = "mdp_core_clk", "iface_clk", "bus_clk", "ext_byte0_clk", "ext_byte1_clk", "ext_pixel0_clk", "ext_pixel1_clk"; qcom,mmss-ulp-clamp-ctrl-offset = <0x20>; qcom,mmss-phyreset-ctrl-offset = <0x24>; qcom,mdss-skip-clamp; qcom,mdss-fb-map-prim = <&mdss_fb0>; qcom,mdss-fb-map-sec = <&mdss_fb2>; qcom,core-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,core-supply-entry@0 { reg = <0>; qcom,supply-name = "gdsc"; qcom,supply-min-voltage = <0>; qcom,supply-max-voltage = <0>; qcom,supply-enable-load = <0>; qcom,supply-disable-load = <0>; }; }; qcom,ctrl-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,ctrl-supply-entry@0 { reg = <0>; qcom,supply-name = "vdda"; qcom,supply-min-voltage = <1200000>; qcom,supply-max-voltage = <1200000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-post-on-sleep = <20>; }; }; qcom,phy-supply-entries { #address-cells = <1>; #size-cells = <0>; qcom,phy-supply-entry@0 { reg = <0>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; }; }; mdss_dsi0: qcom,mdss_dsi_ctrl0@1a94000 { compatible = "qcom,mdss-dsi-ctrl"; label = "MDSS DSI CTRL->0"; cell-index = <0>; reg = <0x1a94000 0x300>, <0x1a94400 0x400>, <0x193e000 0x30>; reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys"; qcom,timing-db-mode; qcom,mdss-mdp = <&mdss_mdp>; vdd-supply = <&pm660_l17>; vddio-supply = <&pm660_l6>; clocks = <&gcc_mdss GCC_MDSS_BYTE0_CLK>, <&gcc_mdss GCC_MDSS_PCLK0_CLK>, <&gcc GCC_MDSS_ESC0_CLK>, <&gcc_mdss BYTE0_CLK_SRC>, <&gcc_mdss PCLK0_CLK_SRC>; clock-names = "byte_clk", "pixel_clk", "core_clk", "byte_clk_rcg", "pixel_clk_rcg"; }; mdss_dsi1: qcom,mdss_dsi_ctrl1@1a96000 { compatible = "qcom,mdss-dsi-ctrl"; label = "MDSS DSI CTRL->1"; cell-index = <1>; reg = <0x1a96000 0x300>, <0x1a96400 0x400>, <0x193e000 0x30>; reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys"; qcom,mdss-mdp = <&mdss_mdp>; vdd-supply = <&pm660_l17>; vddio-supply = <&pm660_l6>; clocks = <&gcc_mdss GCC_MDSS_BYTE1_CLK>, <&gcc_mdss GCC_MDSS_PCLK1_CLK>, <&gcc GCC_MDSS_ESC1_CLK>, <&gcc_mdss BYTE1_CLK_SRC>, <&gcc_mdss PCLK1_CLK_SRC>; clock-names = "byte_clk", "pixel_clk", "core_clk", "byte_clk_rcg", "pixel_clk_rcg"; }; }; qcom,mdss_wb_panel { compatible = "qcom,mdss_wb"; qcom,mdss_pan_res = <640 640>; qcom,mdss_pan_bpp = <24>; qcom,mdss-fb-map = <&mdss_fb1>; }; mdss_rotator: qcom,mdss_rotator { compatible = "qcom,mdss_rotator"; qcom,mdss-wb-count = <1>; qcom,mdss-has-downscale; qcom,mdss-has-ubwc; /* Bus Scale Settings */ qcom,msm-bus,name = "mdss_rotator"; qcom,msm-bus,num-cases = <3>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = <22 512 0 0>, <22 512 0 6400000>, <22 512 0 6400000>; rot-vdd-supply = <&mdss_gdsc>; qcom,supply-names = "rot-vdd"; qcom,mdss-has-reg-bus; clocks = <&gcc GCC_MDSS_AHB_CLK>, <&gcc_mdss MDSS_ROTATOR_VOTE_CLK>; clock-names = "iface_clk", "rot_core_clk"; qcom,mdss-rot-reg-bus { /* Reg Bus Scale Settings */ qcom,msm-bus,name = "mdss_rot_reg"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,active-only; qcom,msm-bus,vectors-KBps = <1 590 0 0>, <1 590 0 76800>; }; }; };
arch/arm64/boot/dts/qcom/sdm429-pinctrl.dtsi +46 −0 Original line number Diff line number Diff line Loading @@ -777,5 +777,51 @@ }; }; }; pmx_mdss: pmx_mdss { mdss_dsi_active: mdss_dsi_active { mux { pins = "gpio60"; drive-strength = <8>; /* 8 mA */ bias-disable = <0>; /* no pull */ output-high; }; }; mdss_dsi_suspend: mdss_dsi_suspend { mux { pins = "gpio60"; drive-strength = <2>; /* 2 mA */ bias-pull-down; /* pull down */ input-enable; }; }; }; pmx_mdss_te { mdss_te_active: mdss_te_active { mux { pins = "gpio24"; function = "mdp_vsync"; }; config { pins = "gpio24"; drive-strength = <2>; /* 8 mA */ bias-pull-down; /* pull down*/ }; }; mdss_te_suspend: mdss_te_suspend { mux { pins = "gpio24"; function = "mdp_vsync"; }; config { pins = "gpio24"; drive-strength = <2>; /* 2 mA */ bias-pull-down; /* pull down */ }; }; }; }; };