Changes in 5.15.87
usb: dwc3: qcom: Fix memory leak in dwc3_qcom_interconnect_init
cifs: fix oops during encryption
Revert "selftests/bpf: Add test for unstable CT lookup API"
nvme-pci: fix doorbell buffer value endianness
nvme-pci: fix mempool alloc size
nvme-pci: fix page size checks
ACPI: resource: Skip IRQ override on Asus Vivobook K3402ZA/K3502ZA
ACPI: resource: do IRQ override on LENOVO IdeaPad
ACPI: resource: do IRQ override on XMG Core 15
ACPI: resource: do IRQ override on Lenovo 14ALC7
block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq
ata: ahci: Fix PCS quirk application for suspend
nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition
nvmet: don't defer passthrough commands with trivial effects to the workqueue
fs/ntfs3: Validate BOOT record_size
fs/ntfs3: Add overflow check for attribute size
fs/ntfs3: Validate data run offset
fs/ntfs3: Add null pointer check to attr_load_runs_vcn
fs/ntfs3: Fix memory leak on ntfs_fill_super() error path
fs/ntfs3: Add null pointer check for inode operations
fs/ntfs3: Validate attribute name offset
fs/ntfs3: Validate buffer length while parsing index
fs/ntfs3: Validate resident attribute name
fs/ntfs3: Fix slab-out-of-bounds read in run_unpack
soundwire: dmi-quirks: add quirk variant for LAPBC710 NUC15
fs/ntfs3: Validate index root when initialize NTFS security
fs/ntfs3: Use __GFP_NOWARN allocation at wnd_init()
fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_fill_super()
fs/ntfs3: Delete duplicate condition in ntfs_read_mft()
fs/ntfs3: Fix slab-out-of-bounds in r_page
objtool: Fix SEGFAULT
powerpc/rtas: avoid device tree lookups in rtas_os_term()
powerpc/rtas: avoid scheduling in rtas_os_term()
HID: multitouch: fix Asus ExpertBook P2 P2451FA trackpoint
HID: plantronics: Additional PIDs for double volume key presses quirk
pstore: Properly assign mem_type property
pstore/zone: Use GFP_ATOMIC to allocate zone buffer
hfsplus: fix bug causing custom uid and gid being unable to be assigned with mount
binfmt: Fix error return code in load_elf_fdpic_binary()
ovl: Use ovl mounter's fsuid and fsgid in ovl_link()
ALSA: line6: correct midi status byte when receiving data from podxt
ALSA: line6: fix stack overflow in line6_midi_transmit
pnode: terminate at peers of source
mfd: mt6360: Add bounds checking in Regmap read/write call-backs
md: fix a crash in mempool_free
mm, compaction: fix fast_isolate_around() to stay within boundaries
f2fs: should put a page when checking the summary info
f2fs: allow to read node block after shutdown
mmc: vub300: fix warning - do not call blocking ops when !TASK_RUNNING
tpm: acpi: Call acpi_put_table() to fix memory leak
tpm: tpm_crb: Add the missed acpi_put_table() to fix memory leak
tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak
SUNRPC: Don't leak netobj memory when gss_read_proxy_verf() fails
kcsan: Instrument memcpy/memset/memmove with newer Clang
ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio
ASoC/SoundWire: dai: expand 'stream' concept beyond SoundWire
rcu-tasks: Simplify trc_read_check_handler() atomic operations
net/af_packet: add VLAN support for AF_PACKET SOCK_RAW GSO
net/af_packet: make sure to pull mac header
media: stv0288: use explicitly signed char
soc: qcom: Select REMAP_MMIO for LLCC driver
kest.pl: Fix grub2 menu handling for rebooting
ktest.pl minconfig: Unset configs instead of just removing them
jbd2: use the correct print format
perf/x86/intel/uncore: Disable I/O stacks to PMU mapping on ICX-D
perf/x86/intel/uncore: Clear attr_update properly
arm64: dts: qcom: sdm845-db845c: correct SPI2 pins drive strength
mmc: sdhci-sprd: Disable CLK_AUTO when the clock is less than 400K
btrfs: fix resolving backrefs for inline extent followed by prealloc
ARM: ux500: do not directly dereference __iomem
arm64: dts: qcom: sdm850-lenovo-yoga-c630: correct I2C12 pins drive strength
selftests: Use optional USERCFLAGS and USERLDFLAGS
PM/devfreq: governor: Add a private governor_data for governor
cpufreq: Init completion before kobject_init_and_add()
ALSA: patch_realtek: Fix Dell Inspiron Plus 16
ALSA: hda/realtek: Apply dual codec fixup for Dell Latitude laptops
fs: dlm: fix sock release if listen fails
fs: dlm: retry accept() until -EAGAIN or error returns
mptcp: mark ops structures as ro_after_init
mptcp: remove MPTCP 'ifdef' in TCP SYN cookies
dm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort
dm thin: Fix ABBA deadlock between shrink_slab and dm_pool_abort_metadata
dm thin: Use last transaction's pmd->root when commit failed
dm thin: resume even if in FAIL mode
dm thin: Fix UAF in run_timer_softirq()
dm integrity: Fix UAF in dm_integrity_dtr()
dm clone: Fix UAF in clone_dtr()
dm cache: Fix UAF in destroy()
dm cache: set needs_check flag after aborting metadata
tracing/hist: Fix out-of-bound write on 'action_data.var_ref_idx'
perf/core: Call LSM hook after copying perf_event_attr
of/kexec: Fix reading 32-bit "linux,initrd-{start,end}" values
KVM: VMX: Resume guest immediately when injecting #GP on ECREATE
KVM: nVMX: Inject #GP, not #UD, if "generic" VMXON CR0/CR4 check fails
KVM: nVMX: Properly expose ENABLE_USR_WAIT_PAUSE control to L1
x86/microcode/intel: Do not retry microcode reloading on the APs
ftrace/x86: Add back ftrace_expected for ftrace bug reports
x86/kprobes: Fix kprobes instruction boudary check with CONFIG_RETHUNK
x86/kprobes: Fix optprobe optimization check with CONFIG_RETHUNK
tracing: Fix race where eprobes can be called before the event
tracing: Fix complicated dependency of CONFIG_TRACER_MAX_TRACE
tracing/hist: Fix wrong return value in parse_action_params()
tracing/probes: Handle system names with hyphens
tracing: Fix infinite loop in tracing_read_pipe on overflowed print_trace_line
staging: media: tegra-video: fix chan->mipi value on error
staging: media: tegra-video: fix device_node use after free
ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod
media: dvb-core: Fix double free in dvb_register_device()
media: dvb-core: Fix UAF due to refcount races at releasing
cifs: fix confusing debug message
cifs: fix missing display of three mount options
rtc: ds1347: fix value written to century register
block: mq-deadline: Do not break sequential write streams to zoned HDDs
md/bitmap: Fix bitmap chunk size overflow issues
efi: Add iMac Pro 2017 to uefi skip cert quirk
wifi: wilc1000: sdio: fix module autoloading
ASoC: jz4740-i2s: Handle independent FIFO flush bits
ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection()
ipmi: fix long wait in unload when IPMI disconnect
mtd: spi-nor: Check for zero erase size in spi_nor_find_best_erase_type()
ima: Fix a potential NULL pointer access in ima_restore_measurement_list
ipmi: fix use after free in _ipmi_destroy_user()
PCI: Fix pci_device_is_present() for VFs by checking PF
PCI/sysfs: Fix double free in error path
riscv: stacktrace: Fixup ftrace_graph_ret_addr retp argument
riscv: mm: notify remote harts about mmu cache updates
crypto: n2 - add missing hash statesize
crypto: ccp - Add support for TEE for PCI ID 0x14CA
driver core: Fix bus_type.match() error handling in __driver_attach()
phy: qcom-qmp-combo: fix sc8180x reset
iommu/amd: Fix ivrs_acpihid cmdline parsing code
remoteproc: core: Do pm_relax when in RPROC_OFFLINE state
parisc: led: Fix potential null-ptr-deref in start_task()
device_cgroup: Roll back to original exceptions after copy failure
drm/connector: send hotplug uevent on connector cleanup
drm/vmwgfx: Validate the box size for the snooped cursor
drm/i915/dsi: fix VBT send packet port selection for dual link DSI
drm/ingenic: Fix missing platform_driver_unregister() call in ingenic_drm_init()
ext4: silence the warning when evicting inode with dioread_nolock
ext4: add inode table check in __ext4_get_inode_loc to aovid possible infinite loop
ext4: remove trailing newline from ext4_msg() message
fs: ext4: initialize fsdata in pagecache_write()
ext4: fix use-after-free in ext4_orphan_cleanup
ext4: fix undefined behavior in bit shift for ext4_check_flag_values
ext4: add EXT4_IGET_BAD flag to prevent unexpected bad inode
ext4: add helper to check quota inums
ext4: fix bug_on in __es_tree_search caused by bad quota inode
ext4: fix reserved cluster accounting in __es_remove_extent()
ext4: check and assert if marking an no_delete evicting inode dirty
ext4: fix bug_on in __es_tree_search caused by bad boot loader inode
ext4: fix leaking uninitialized memory in fast-commit journal
ext4: fix uninititialized value in 'ext4_evict_inode'
ext4: init quota for 'old.inode' in 'ext4_rename'
ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline
ext4: fix corruption when online resizing a 1K bigalloc fs
ext4: fix error code return to user-space in ext4_get_branch()
ext4: avoid BUG_ON when creating xattrs
ext4: fix kernel BUG in 'ext4_write_inline_data_end()'
ext4: fix inode leak in ext4_xattr_inode_create() on an error path
ext4: initialize quota before expanding inode in setproject ioctl
ext4: avoid unaccounted block allocation when expanding inode
ext4: allocate extended attribute value in vmalloc area
drm/amdgpu: handle polaris10/11 overlap asics (v2)
drm/amdgpu: make display pinning more flexible (v2)
block: mq-deadline: Fix dd_finish_request() for zoned devices
tracing: Fix issue of missing one synthetic field
ext4: remove unused enum EXT4_FC_COMMIT_FAILED
ext4: use ext4_debug() instead of jbd_debug()
ext4: introduce EXT4_FC_TAG_BASE_LEN helper
ext4: factor out ext4_fc_get_tl()
ext4: fix potential out of bound read in ext4_fc_replay_scan()
ext4: disable fast-commit of encrypted dir operations
ext4: don't set up encryption key during jbd2 transaction
ext4: add missing validation of fast-commit record lengths
ext4: fix unaligned memory access in ext4_fc_reserve_space()
ext4: fix off-by-one errors in fast-commit block filling
ARM: renumber bits related to _TIF_WORK_MASK
phy: qcom-qmp-combo: fix out-of-bounds clock access
btrfs: replace strncpy() with strscpy()
btrfs: move missing device handling in a dedicate function
btrfs: fix extent map use-after-free when handling missing device in read_one_chunk
x86/mce: Get rid of msr_ops
x86/MCE/AMD: Clear DFR errors found in THR handler
media: s5p-mfc: Fix to handle reference queue during finishing
media: s5p-mfc: Clear workbit to handle error condition
media: s5p-mfc: Fix in register read and write for H264
perf probe: Use dwarf_attr_integrate as generic DWARF attr accessor
perf probe: Fix to get the DW_AT_decl_file and DW_AT_call_file as unsinged data
ravb: Fix "failed to switch device to config mode" message during unbind
ext4: goto right label 'failed_mount3a'
ext4: correct inconsistent error msg in nojournal mode
mbcache: automatically delete entries from cache on freeing
ext4: fix deadlock due to mbcache entry corruption
drm/i915/migrate: don't check the scratch page
drm/i915/migrate: fix offset calculation
drm/i915/migrate: fix length calculation
SUNRPC: ensure the matching upcall is in-flight upon downcall
btrfs: fix an error handling path in btrfs_defrag_leaves()
bpf: pull before calling skb_postpull_rcsum()
drm/panfrost: Fix GEM handle creation ref-counting
netfilter: nf_tables: consolidate set description
netfilter: nf_tables: add function to create set stateful expressions
netfilter: nf_tables: perform type checking for existing sets
vmxnet3: correctly report csum_level for encapsulated packet
netfilter: nf_tables: honor set timeout and garbage collection updates
veth: Fix race with AF_XDP exposing old or uninitialized descriptors
nfsd: shut down the NFSv4 state objects before the filecache
net: hns3: add interrupts re-initialization while doing VF FLR
net: hns3: refactor hns3_nic_reuse_page()
net: hns3: extract macro to simplify ring stats update code
net: hns3: fix miss L3E checking for rx packet
net: hns3: fix VF promisc mode not update when mac table full
net: sched: fix memory leak in tcindex_set_parms
qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure
net: dsa: mv88e6xxx: depend on PTP conditionally
nfc: Fix potential resource leaks
vdpa_sim: fix possible memory leak in vdpasim_net_init() and vdpasim_blk_init()
vhost/vsock: Fix error handling in vhost_vsock_init()
vringh: fix range used in iotlb_translate()
vhost: fix range used in translate_desc()
vdpa_sim: fix vringh initialization in vdpasim_queue_ready()
net/mlx5: E-Switch, properly handle ingress tagged packets on VST
net/mlx5: Add forgotten cleanup calls into mlx5_init_once() error path
net/mlx5: Avoid recovery in probe flows
net/mlx5e: IPoIB, Don't allow CQE compression to be turned on by default
net/mlx5e: TC, Refactor mlx5e_tc_add_flow_mod_hdr() to get flow attr
net/mlx5e: Always clear dest encap in neigh-update-del
net/mlx5e: Fix hw mtu initializing at XDP SQ allocation
net: amd-xgbe: add missed tasklet_kill
net: ena: Fix toeplitz initial hash value
net: ena: Don't register memory info on XDP exchange
net: ena: Account for the number of processed bytes in XDP
net: ena: Use bitmask to indicate packet redirection
net: ena: Fix rx_copybreak value update
net: ena: Set default value for RX interrupt moderation
net: ena: Update NUMA TPH hint register upon NUMA node update
net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe
RDMA/mlx5: Fix mlx5_ib_get_hw_stats when used for device
RDMA/mlx5: Fix validation of max_rd_atomic caps for DC
drm/meson: Reduce the FIFO lines held when AFBC is not used
filelock: new helper: vfs_inode_has_locks
ceph: switch to vfs_inode_has_locks() to fix file lock bug
gpio: sifive: Fix refcount leak in sifive_gpio_probe
net: sched: atm: dont intepret cls results when asked to drop
net: sched: cbq: dont intepret cls results when asked to drop
net: sparx5: Fix reading of the MAC address
netfilter: ipset: fix hash:net,port,net hang with /0 subnet
netfilter: ipset: Rework long task execution when adding/deleting entries
perf tools: Fix resources leak in perf_data__open_dir()
drm/imx: ipuv3-plane: Fix overlay plane width
fs/ntfs3: don't hold ni_lock when calling truncate_setsize()
drivers/net/bonding/bond_3ad: return when there's no aggregator
octeontx2-pf: Fix lmtst ID used in aura free
usb: rndis_host: Secure rndis_query check against int overflow
perf stat: Fix handling of --for-each-cgroup with --bpf-counters to match non BPF mode
drm/i915: unpin on error in intel_vgpu_shadow_mm_pin()
caif: fix memory leak in cfctrl_linkup_request()
udf: Fix extension of the last extent in the file
ASoC: Intel: bytcr_rt5640: Add quirk for the Advantech MICA-071 tablet
nvme: fix multipath crash caused by flush request when blktrace is enabled
io_uring: check for valid register opcode earlier
nvmet: use NVME_CMD_EFFECTS_CSUPP instead of open coding it
nvme: also return I/O command effects from nvme_command_effects
btrfs: check superblock to ensure the fs was not modified at thaw time
x86/kexec: Fix double-free of elf header buffer
x86/bugs: Flush IBP in ib_prctl_set()
nfsd: fix handling of readdir in v4root vs. mount upcall timeout
fbdev: matroxfb: G200eW: Increase max memory from 1 MB to 16 MB
block: don't allow splitting of a REQ_NOWAIT bio
io_uring: fix CQ waiting timeout handling
thermal: int340x: Add missing attribute for data rate base
riscv: uaccess: fix type of 0 variable on error in get_user()
riscv, kprobes: Stricter c.jr/c.jalr decoding
drm/i915/gvt: fix gvt debugfs destroy
drm/i915/gvt: fix vgpu debugfs clean in remove
hfs/hfsplus: use WARN_ON for sanity check
hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling
ksmbd: fix infinite loop in ksmbd_conn_handler_loop()
ksmbd: check nt_len to be at least CIFS_ENCPWD_SIZE in ksmbd_decode_ntlmssp_auth_blob
Revert "ACPI: PM: Add support for upcoming AMD uPEP HID AMDI007"
mptcp: dedicated request sock for subflow in v6
mptcp: use proper req destructor for IPv6
ext4: don't allow journal inode to have encrypt flag
selftests: set the BUILD variable to absolute path
btrfs: make thaw time super block check to also verify checksum
net: hns3: fix return value check bug of rx copybreak
mbcache: Avoid nesting of cache->c_list_lock under bit locks
efi: random: combine bootloader provided RNG seed with RNG protocol output
io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()
drm/mgag200: Fix PLL setup for G200_SE_A rev >=4
Linux 5.15.87
Change-Id: I06fb376627506652ed60c04d56074956e6e075a0
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
1220 lines
23 KiB
Plaintext
1220 lines
23 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2019, Linaro Ltd.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
|
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
|
|
#include <dt-bindings/sound/qcom,q6afe.h>
|
|
#include <dt-bindings/sound/qcom,q6asm.h>
|
|
#include "sdm845.dtsi"
|
|
#include "pm8998.dtsi"
|
|
#include "pmi8998.dtsi"
|
|
|
|
/ {
|
|
model = "Thundercomm Dragonboard 845c";
|
|
compatible = "thundercomm,db845c", "qcom,sdm845";
|
|
qcom,msm-id = <341 0x20001>;
|
|
qcom,board-id = <8 0>;
|
|
|
|
aliases {
|
|
serial0 = &uart9;
|
|
hsuart0 = &uart6;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
dc12v: dc12v-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "DC12V";
|
|
regulator-min-microvolt = <12000000>;
|
|
regulator-max-microvolt = <12000000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
autorepeat;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&vol_up_pin_a>;
|
|
|
|
vol-up {
|
|
label = "Volume Up";
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
gpios = <&pm8998_gpio 6 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
user4 {
|
|
label = "green:user4";
|
|
gpios = <&pm8998_gpio 13 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "panic-indicator";
|
|
default-state = "off";
|
|
};
|
|
|
|
wlan {
|
|
label = "yellow:wlan";
|
|
gpios = <&pm8998_gpio 9 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "phy0tx";
|
|
default-state = "off";
|
|
};
|
|
|
|
bt {
|
|
label = "blue:bt";
|
|
gpios = <&pm8998_gpio 5 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "bluetooth-power";
|
|
default-state = "off";
|
|
};
|
|
};
|
|
|
|
hdmi-out {
|
|
compatible = "hdmi-connector";
|
|
type = "a";
|
|
|
|
port {
|
|
hdmi_con: endpoint {
|
|
remote-endpoint = <<9611_out>;
|
|
};
|
|
};
|
|
};
|
|
|
|
lt9611_1v8: lt9611-vdd18-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "LT9611_1V8";
|
|
|
|
vin-supply = <&vdc_5v>;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
gpio = <&tlmm 89 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
};
|
|
|
|
lt9611_3v3: lt9611-3v3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "LT9611_3V3";
|
|
|
|
vin-supply = <&vdc_3v3>;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
// TODO: make it possible to drive same GPIO from two clients
|
|
// gpio = <&tlmm 89 GPIO_ACTIVE_HIGH>;
|
|
// enable-active-high;
|
|
};
|
|
|
|
pcie0_1p05v: pcie-0-1p05v-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "PCIE0_1.05V";
|
|
|
|
vin-supply = <&vbat>;
|
|
regulator-min-microvolt = <1050000>;
|
|
regulator-max-microvolt = <1050000>;
|
|
|
|
// TODO: make it possible to drive same GPIO from two clients
|
|
// gpio = <&tlmm 90 GPIO_ACTIVE_HIGH>;
|
|
// enable-active-high;
|
|
};
|
|
|
|
cam0_dvdd_1v2: reg_cam0_dvdd_1v2 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "CAM0_DVDD_1V2";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
enable-active-high;
|
|
gpio = <&pm8998_gpio 12 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&cam0_dvdd_1v2_en_default>;
|
|
vin-supply = <&vbat>;
|
|
};
|
|
|
|
cam0_avdd_2v8: reg_cam0_avdd_2v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "CAM0_AVDD_2V8";
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
enable-active-high;
|
|
gpio = <&pm8998_gpio 10 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&cam0_avdd_2v8_en_default>;
|
|
vin-supply = <&vbat>;
|
|
};
|
|
|
|
/* This regulator is enabled when the VREG_LVS1A_1P8 trace is enabled */
|
|
cam3_avdd_2v8: reg_cam3_avdd_2v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "CAM3_AVDD_2V8";
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
regulator-always-on;
|
|
vin-supply = <&vbat>;
|
|
};
|
|
|
|
pcie0_3p3v_dual: vldo-3v3-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VLDO_3V3";
|
|
|
|
vin-supply = <&vbat>;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
gpio = <&tlmm 90 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pcie0_pwren_state>;
|
|
};
|
|
|
|
v5p0_hdmiout: v5p0-hdmiout-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "V5P0_HDMIOUT";
|
|
|
|
vin-supply = <&vdc_5v>;
|
|
regulator-min-microvolt = <500000>;
|
|
regulator-max-microvolt = <500000>;
|
|
|
|
// TODO: make it possible to drive same GPIO from two clients
|
|
// gpio = <&tlmm 89 GPIO_ACTIVE_HIGH>;
|
|
// enable-active-high;
|
|
};
|
|
|
|
vbat: vbat-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VBAT";
|
|
|
|
vin-supply = <&dc12v>;
|
|
regulator-min-microvolt = <4200000>;
|
|
regulator-max-microvolt = <4200000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vbat_som: vbat-som-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VBAT_SOM";
|
|
|
|
vin-supply = <&dc12v>;
|
|
regulator-min-microvolt = <4200000>;
|
|
regulator-max-microvolt = <4200000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vdc_3v3: vdc-3v3-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDC_3V3";
|
|
vin-supply = <&dc12v>;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vdc_5v: vdc-5v-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDC_5V";
|
|
|
|
vin-supply = <&dc12v>;
|
|
regulator-min-microvolt = <500000>;
|
|
regulator-max-microvolt = <500000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vreg_s4a_1p8: vreg-s4a-1p8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vreg_s4a_1p8";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vph_pwr: vph-pwr-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vph_pwr";
|
|
|
|
vin-supply = <&vbat_som>;
|
|
};
|
|
};
|
|
|
|
&adsp_pas {
|
|
status = "okay";
|
|
|
|
firmware-name = "qcom/sdm845/adsp.mbn";
|
|
};
|
|
|
|
&apps_rsc {
|
|
pm8998-rpmh-regulators {
|
|
compatible = "qcom,pm8998-rpmh-regulators";
|
|
qcom,pmic-id = "a";
|
|
vdd-s1-supply = <&vph_pwr>;
|
|
vdd-s2-supply = <&vph_pwr>;
|
|
vdd-s3-supply = <&vph_pwr>;
|
|
vdd-s4-supply = <&vph_pwr>;
|
|
vdd-s5-supply = <&vph_pwr>;
|
|
vdd-s6-supply = <&vph_pwr>;
|
|
vdd-s7-supply = <&vph_pwr>;
|
|
vdd-s8-supply = <&vph_pwr>;
|
|
vdd-s9-supply = <&vph_pwr>;
|
|
vdd-s10-supply = <&vph_pwr>;
|
|
vdd-s11-supply = <&vph_pwr>;
|
|
vdd-s12-supply = <&vph_pwr>;
|
|
vdd-s13-supply = <&vph_pwr>;
|
|
vdd-l1-l27-supply = <&vreg_s7a_1p025>;
|
|
vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>;
|
|
vdd-l3-l11-supply = <&vreg_s7a_1p025>;
|
|
vdd-l4-l5-supply = <&vreg_s7a_1p025>;
|
|
vdd-l6-supply = <&vph_pwr>;
|
|
vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
|
|
vdd-l9-supply = <&vreg_bob>;
|
|
vdd-l10-l23-l25-supply = <&vreg_bob>;
|
|
vdd-l13-l19-l21-supply = <&vreg_bob>;
|
|
vdd-l16-l28-supply = <&vreg_bob>;
|
|
vdd-l18-l22-supply = <&vreg_bob>;
|
|
vdd-l20-l24-supply = <&vreg_bob>;
|
|
vdd-l26-supply = <&vreg_s3a_1p35>;
|
|
vin-lvs-1-2-supply = <&vreg_s4a_1p8>;
|
|
|
|
vreg_s3a_1p35: smps3 {
|
|
regulator-min-microvolt = <1352000>;
|
|
regulator-max-microvolt = <1352000>;
|
|
};
|
|
|
|
vreg_s5a_2p04: smps5 {
|
|
regulator-min-microvolt = <1904000>;
|
|
regulator-max-microvolt = <2040000>;
|
|
};
|
|
|
|
vreg_s7a_1p025: smps7 {
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <1028000>;
|
|
};
|
|
|
|
vreg_l1a_0p875: ldo1 {
|
|
regulator-min-microvolt = <880000>;
|
|
regulator-max-microvolt = <880000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l5a_0p8: ldo5 {
|
|
regulator-min-microvolt = <800000>;
|
|
regulator-max-microvolt = <800000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l12a_1p8: ldo12 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l7a_1p8: ldo7 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l13a_2p95: ldo13 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <2960000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l17a_1p3: ldo17 {
|
|
regulator-min-microvolt = <1304000>;
|
|
regulator-max-microvolt = <1304000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l20a_2p95: ldo20 {
|
|
regulator-min-microvolt = <2960000>;
|
|
regulator-max-microvolt = <2968000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l21a_2p95: ldo21 {
|
|
regulator-min-microvolt = <2960000>;
|
|
regulator-max-microvolt = <2968000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l24a_3p075: ldo24 {
|
|
regulator-min-microvolt = <3088000>;
|
|
regulator-max-microvolt = <3088000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l25a_3p3: ldo25 {
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3312000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_l26a_1p2: ldo26 {
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
|
|
};
|
|
|
|
vreg_lvs1a_1p8: lvs1 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vreg_lvs2a_1p8: lvs2 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
pmi8998-rpmh-regulators {
|
|
compatible = "qcom,pmi8998-rpmh-regulators";
|
|
qcom,pmic-id = "b";
|
|
|
|
vdd-bob-supply = <&vph_pwr>;
|
|
|
|
vreg_bob: bob {
|
|
regulator-min-microvolt = <3312000>;
|
|
regulator-max-microvolt = <3600000>;
|
|
regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
|
|
regulator-allow-bypass;
|
|
};
|
|
};
|
|
};
|
|
|
|
&cdsp_pas {
|
|
status = "okay";
|
|
firmware-name = "qcom/sdm845/cdsp.mbn";
|
|
};
|
|
|
|
&dsi0 {
|
|
status = "okay";
|
|
vdda-supply = <&vreg_l26a_1p2>;
|
|
|
|
ports {
|
|
port@1 {
|
|
endpoint {
|
|
remote-endpoint = <<9611_a>;
|
|
data-lanes = <0 1 2 3>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&dsi0_phy {
|
|
status = "okay";
|
|
vdds-supply = <&vreg_l1a_0p875>;
|
|
};
|
|
|
|
&gcc {
|
|
protected-clocks = <GCC_QSPI_CORE_CLK>,
|
|
<GCC_QSPI_CORE_CLK_SRC>,
|
|
<GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
|
|
<GCC_LPASS_Q6_AXI_CLK>,
|
|
<GCC_LPASS_SWAY_CLK>;
|
|
};
|
|
|
|
&gpu {
|
|
zap-shader {
|
|
memory-region = <&gpu_mem>;
|
|
firmware-name = "qcom/sdm845/a630_zap.mbn";
|
|
};
|
|
};
|
|
|
|
&i2c10 {
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
|
|
lt9611_codec: hdmi-bridge@3b {
|
|
compatible = "lontium,lt9611";
|
|
reg = <0x3b>;
|
|
#sound-dai-cells = <1>;
|
|
|
|
interrupts-extended = <&tlmm 84 IRQ_TYPE_EDGE_FALLING>;
|
|
|
|
reset-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>;
|
|
|
|
vdd-supply = <<9611_1v8>;
|
|
vcc-supply = <<9611_3v3>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <<9611_irq_pin>, <&dsi_sw_sel>;
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
|
|
lt9611_a: endpoint {
|
|
remote-endpoint = <&dsi0_out>;
|
|
};
|
|
};
|
|
|
|
port@2 {
|
|
reg = <2>;
|
|
|
|
lt9611_out: endpoint {
|
|
remote-endpoint = <&hdmi_con>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c11 {
|
|
/* On Low speed expansion */
|
|
label = "LS-I2C1";
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c14 {
|
|
/* On Low speed expansion */
|
|
label = "LS-I2C0";
|
|
status = "okay";
|
|
};
|
|
|
|
&mdss {
|
|
status = "okay";
|
|
};
|
|
|
|
&mdss_mdp {
|
|
status = "okay";
|
|
};
|
|
|
|
&mss_pil {
|
|
status = "okay";
|
|
firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn";
|
|
};
|
|
|
|
&pcie0 {
|
|
status = "okay";
|
|
perst-gpio = <&tlmm 35 GPIO_ACTIVE_LOW>;
|
|
enable-gpio = <&tlmm 134 GPIO_ACTIVE_HIGH>;
|
|
|
|
vddpe-3v3-supply = <&pcie0_3p3v_dual>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pcie0_default_state>;
|
|
};
|
|
|
|
&pcie0_phy {
|
|
status = "okay";
|
|
|
|
vdda-phy-supply = <&vreg_l1a_0p875>;
|
|
vdda-pll-supply = <&vreg_l26a_1p2>;
|
|
};
|
|
|
|
&pcie1 {
|
|
status = "okay";
|
|
perst-gpio = <&tlmm 102 GPIO_ACTIVE_LOW>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pcie1_default_state>;
|
|
};
|
|
|
|
&pcie1_phy {
|
|
status = "okay";
|
|
|
|
vdda-phy-supply = <&vreg_l1a_0p875>;
|
|
vdda-pll-supply = <&vreg_l26a_1p2>;
|
|
};
|
|
|
|
&pm8998_gpio {
|
|
gpio-line-names =
|
|
"NC",
|
|
"NC",
|
|
"WLAN_SW_CTRL",
|
|
"NC",
|
|
"PM_GPIO5_BLUE_BT_LED",
|
|
"VOL_UP_N",
|
|
"NC",
|
|
"ADC_IN1",
|
|
"PM_GPIO9_YEL_WIFI_LED",
|
|
"CAM0_AVDD_EN",
|
|
"NC",
|
|
"CAM0_DVDD_EN",
|
|
"PM_GPIO13_GREEN_U4_LED",
|
|
"DIV_CLK2",
|
|
"NC",
|
|
"NC",
|
|
"NC",
|
|
"SMB_STAT",
|
|
"NC",
|
|
"NC",
|
|
"ADC_IN2",
|
|
"OPTION1",
|
|
"WCSS_PWR_REQ",
|
|
"PM845_GPIO24",
|
|
"OPTION2",
|
|
"PM845_SLB";
|
|
|
|
cam0_dvdd_1v2_en_default: cam0-dvdd-1v2-en {
|
|
pins = "gpio12";
|
|
function = "normal";
|
|
|
|
bias-pull-up;
|
|
drive-push-pull;
|
|
qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
|
|
};
|
|
|
|
cam0_avdd_2v8_en_default: cam0-avdd-2v8-en {
|
|
pins = "gpio10";
|
|
function = "normal";
|
|
|
|
bias-pull-up;
|
|
drive-push-pull;
|
|
qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
|
|
};
|
|
|
|
vol_up_pin_a: vol-up-active {
|
|
pins = "gpio6";
|
|
function = "normal";
|
|
input-enable;
|
|
bias-pull-up;
|
|
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
|
|
};
|
|
};
|
|
|
|
&pm8998_pon {
|
|
resin {
|
|
compatible = "qcom,pm8941-resin";
|
|
interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
|
|
debounce = <15625>;
|
|
bias-pull-up;
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
};
|
|
};
|
|
|
|
/* QUAT I2S Uses 4 I2S SD Lines for audio on LT9611 HDMI Bridge */
|
|
&q6afedai {
|
|
qi2s@22 {
|
|
reg = <22>;
|
|
qcom,sd-lines = <0 1 2 3>;
|
|
};
|
|
};
|
|
|
|
&q6asmdai {
|
|
dai@0 {
|
|
reg = <0>;
|
|
};
|
|
|
|
dai@1 {
|
|
reg = <1>;
|
|
};
|
|
|
|
dai@2 {
|
|
reg = <2>;
|
|
};
|
|
|
|
dai@3 {
|
|
reg = <3>;
|
|
direction = <2>;
|
|
is-compress-dai;
|
|
};
|
|
};
|
|
|
|
&qupv3_id_0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&qupv3_id_1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&sdhc_2 {
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
|
|
|
|
vmmc-supply = <&vreg_l21a_2p95>;
|
|
vqmmc-supply = <&vreg_l13a_2p95>;
|
|
|
|
bus-width = <4>;
|
|
cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
&sound {
|
|
compatible = "qcom,db845c-sndcard";
|
|
pinctrl-0 = <&quat_mi2s_active
|
|
&quat_mi2s_sd0_active
|
|
&quat_mi2s_sd1_active
|
|
&quat_mi2s_sd2_active
|
|
&quat_mi2s_sd3_active>;
|
|
pinctrl-names = "default";
|
|
model = "DB845c";
|
|
audio-routing =
|
|
"RX_BIAS", "MCLK",
|
|
"AMIC1", "MIC BIAS1",
|
|
"AMIC2", "MIC BIAS2",
|
|
"DMIC0", "MIC BIAS1",
|
|
"DMIC1", "MIC BIAS1",
|
|
"DMIC2", "MIC BIAS3",
|
|
"DMIC3", "MIC BIAS3",
|
|
"SpkrLeft IN", "SPK1 OUT",
|
|
"SpkrRight IN", "SPK2 OUT",
|
|
"MM_DL1", "MultiMedia1 Playback",
|
|
"MM_DL2", "MultiMedia2 Playback",
|
|
"MM_DL4", "MultiMedia4 Playback",
|
|
"MultiMedia3 Capture", "MM_UL3";
|
|
|
|
mm1-dai-link {
|
|
link-name = "MultiMedia1";
|
|
cpu {
|
|
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
|
|
};
|
|
};
|
|
|
|
mm2-dai-link {
|
|
link-name = "MultiMedia2";
|
|
cpu {
|
|
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
|
|
};
|
|
};
|
|
|
|
mm3-dai-link {
|
|
link-name = "MultiMedia3";
|
|
cpu {
|
|
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
|
|
};
|
|
};
|
|
|
|
mm4-dai-link {
|
|
link-name = "MultiMedia4";
|
|
cpu {
|
|
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
|
|
};
|
|
};
|
|
|
|
hdmi-dai-link {
|
|
link-name = "HDMI Playback";
|
|
cpu {
|
|
sound-dai = <&q6afedai QUATERNARY_MI2S_RX>;
|
|
};
|
|
|
|
platform {
|
|
sound-dai = <&q6routing>;
|
|
};
|
|
|
|
codec {
|
|
sound-dai = <<9611_codec 0>;
|
|
};
|
|
};
|
|
|
|
slim-dai-link {
|
|
link-name = "SLIM Playback";
|
|
cpu {
|
|
sound-dai = <&q6afedai SLIMBUS_0_RX>;
|
|
};
|
|
|
|
platform {
|
|
sound-dai = <&q6routing>;
|
|
};
|
|
|
|
codec {
|
|
sound-dai = <&left_spkr>, <&right_spkr>, <&swm 0>, <&wcd9340 0>;
|
|
};
|
|
};
|
|
|
|
slimcap-dai-link {
|
|
link-name = "SLIM Capture";
|
|
cpu {
|
|
sound-dai = <&q6afedai SLIMBUS_0_TX>;
|
|
};
|
|
|
|
platform {
|
|
sound-dai = <&q6routing>;
|
|
};
|
|
|
|
codec {
|
|
sound-dai = <&wcd9340 1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi2 {
|
|
/* On Low speed expansion */
|
|
label = "LS-SPI0";
|
|
status = "okay";
|
|
};
|
|
|
|
&tlmm {
|
|
cam0_default: cam0_default {
|
|
rst {
|
|
pins = "gpio9";
|
|
function = "gpio";
|
|
|
|
drive-strength = <16>;
|
|
bias-disable;
|
|
};
|
|
|
|
mclk0 {
|
|
pins = "gpio13";
|
|
function = "cam_mclk";
|
|
|
|
drive-strength = <16>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
cam3_default: cam3_default {
|
|
rst {
|
|
function = "gpio";
|
|
pins = "gpio21";
|
|
|
|
drive-strength = <16>;
|
|
bias-disable;
|
|
};
|
|
|
|
mclk3 {
|
|
function = "cam_mclk";
|
|
pins = "gpio16";
|
|
|
|
drive-strength = <16>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
dsi_sw_sel: dsi-sw-sel {
|
|
pins = "gpio120";
|
|
function = "gpio";
|
|
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
output-high;
|
|
};
|
|
|
|
lt9611_irq_pin: lt9611-irq {
|
|
pins = "gpio84";
|
|
function = "gpio";
|
|
bias-disable;
|
|
};
|
|
|
|
pcie0_default_state: pcie0-default {
|
|
clkreq {
|
|
pins = "gpio36";
|
|
function = "pci_e0";
|
|
bias-pull-up;
|
|
};
|
|
|
|
reset-n {
|
|
pins = "gpio35";
|
|
function = "gpio";
|
|
|
|
drive-strength = <2>;
|
|
output-low;
|
|
bias-pull-down;
|
|
};
|
|
|
|
wake-n {
|
|
pins = "gpio37";
|
|
function = "gpio";
|
|
|
|
drive-strength = <2>;
|
|
bias-pull-up;
|
|
};
|
|
};
|
|
|
|
pcie0_pwren_state: pcie0-pwren {
|
|
pins = "gpio90";
|
|
function = "gpio";
|
|
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
|
|
pcie1_default_state: pcie1-default {
|
|
perst-n {
|
|
pins = "gpio102";
|
|
function = "gpio";
|
|
|
|
drive-strength = <16>;
|
|
bias-disable;
|
|
};
|
|
|
|
clkreq {
|
|
pins = "gpio103";
|
|
function = "pci_e1";
|
|
bias-pull-up;
|
|
};
|
|
|
|
wake-n {
|
|
pins = "gpio11";
|
|
function = "gpio";
|
|
|
|
drive-strength = <2>;
|
|
bias-pull-up;
|
|
};
|
|
|
|
reset-n {
|
|
pins = "gpio75";
|
|
function = "gpio";
|
|
|
|
drive-strength = <16>;
|
|
bias-pull-up;
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
sdc2_default_state: sdc2-default {
|
|
clk {
|
|
pins = "sdc2_clk";
|
|
bias-disable;
|
|
|
|
/*
|
|
* It seems that mmc_test reports errors if drive
|
|
* strength is not 16 on clk, cmd, and data pins.
|
|
*/
|
|
drive-strength = <16>;
|
|
};
|
|
|
|
cmd {
|
|
pins = "sdc2_cmd";
|
|
bias-pull-up;
|
|
drive-strength = <10>;
|
|
};
|
|
|
|
data {
|
|
pins = "sdc2_data";
|
|
bias-pull-up;
|
|
drive-strength = <10>;
|
|
};
|
|
};
|
|
|
|
sdc2_card_det_n: sd-card-det-n {
|
|
pins = "gpio126";
|
|
function = "gpio";
|
|
bias-pull-up;
|
|
};
|
|
|
|
wcd_intr_default: wcd_intr_default {
|
|
pins = <54>;
|
|
function = "gpio";
|
|
|
|
input-enable;
|
|
bias-pull-down;
|
|
drive-strength = <2>;
|
|
};
|
|
};
|
|
|
|
&uart3 {
|
|
label = "LS-UART0";
|
|
status = "disabled";
|
|
};
|
|
|
|
&uart6 {
|
|
status = "okay";
|
|
|
|
bluetooth {
|
|
compatible = "qcom,wcn3990-bt";
|
|
|
|
vddio-supply = <&vreg_s4a_1p8>;
|
|
vddxo-supply = <&vreg_l7a_1p8>;
|
|
vddrf-supply = <&vreg_l17a_1p3>;
|
|
vddch0-supply = <&vreg_l25a_3p3>;
|
|
max-speed = <3200000>;
|
|
};
|
|
};
|
|
|
|
&uart9 {
|
|
label = "LS-UART1";
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_1_dwc3 {
|
|
dr_mode = "peripheral";
|
|
};
|
|
|
|
&usb_1_hsphy {
|
|
status = "okay";
|
|
|
|
vdd-supply = <&vreg_l1a_0p875>;
|
|
vdda-pll-supply = <&vreg_l12a_1p8>;
|
|
vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
|
|
|
|
qcom,imp-res-offset-value = <8>;
|
|
qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
|
|
qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
|
|
qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
|
|
};
|
|
|
|
&usb_1_qmpphy {
|
|
status = "okay";
|
|
|
|
vdda-phy-supply = <&vreg_l26a_1p2>;
|
|
vdda-pll-supply = <&vreg_l1a_0p875>;
|
|
};
|
|
|
|
&usb_2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_2_dwc3 {
|
|
dr_mode = "host";
|
|
};
|
|
|
|
&usb_2_hsphy {
|
|
status = "okay";
|
|
|
|
vdd-supply = <&vreg_l1a_0p875>;
|
|
vdda-pll-supply = <&vreg_l12a_1p8>;
|
|
vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
|
|
|
|
qcom,imp-res-offset-value = <8>;
|
|
qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
|
|
};
|
|
|
|
&usb_2_qmpphy {
|
|
status = "okay";
|
|
|
|
vdda-phy-supply = <&vreg_l26a_1p2>;
|
|
vdda-pll-supply = <&vreg_l1a_0p875>;
|
|
};
|
|
|
|
&ufs_mem_hc {
|
|
status = "okay";
|
|
|
|
reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
|
|
|
|
vcc-supply = <&vreg_l20a_2p95>;
|
|
vcc-max-microamp = <800000>;
|
|
};
|
|
|
|
&ufs_mem_phy {
|
|
status = "okay";
|
|
|
|
vdda-phy-supply = <&vreg_l1a_0p875>;
|
|
vdda-pll-supply = <&vreg_l26a_1p2>;
|
|
};
|
|
|
|
&wcd9340{
|
|
pinctrl-0 = <&wcd_intr_default>;
|
|
pinctrl-names = "default";
|
|
clock-names = "extclk";
|
|
clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
|
|
reset-gpios = <&tlmm 64 0>;
|
|
vdd-buck-supply = <&vreg_s4a_1p8>;
|
|
vdd-buck-sido-supply = <&vreg_s4a_1p8>;
|
|
vdd-tx-supply = <&vreg_s4a_1p8>;
|
|
vdd-rx-supply = <&vreg_s4a_1p8>;
|
|
vdd-io-supply = <&vreg_s4a_1p8>;
|
|
|
|
swm: swm@c85 {
|
|
left_spkr: wsa8810-left{
|
|
compatible = "sdw10217201000";
|
|
reg = <0 1>;
|
|
powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_HIGH>;
|
|
#thermal-sensor-cells = <0>;
|
|
sound-name-prefix = "SpkrLeft";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
right_spkr: wsa8810-right{
|
|
compatible = "sdw10217201000";
|
|
powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_HIGH>;
|
|
reg = <0 2>;
|
|
#thermal-sensor-cells = <0>;
|
|
sound-name-prefix = "SpkrRight";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&wifi {
|
|
status = "okay";
|
|
|
|
vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
|
|
vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
|
|
vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
|
|
vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
|
|
|
|
qcom,snoc-host-cap-8bit-quirk;
|
|
};
|
|
|
|
/* PINCTRL - additions to nodes defined in sdm845.dtsi */
|
|
&qup_spi2_default {
|
|
pinconf {
|
|
pins = "gpio27", "gpio28", "gpio29", "gpio30";
|
|
drive-strength = <16>;
|
|
};
|
|
};
|
|
|
|
&qup_uart3_default{
|
|
pinmux {
|
|
pins = "gpio41", "gpio42", "gpio43", "gpio44";
|
|
function = "qup3";
|
|
};
|
|
};
|
|
|
|
&qup_i2c10_default {
|
|
pinconf {
|
|
pins = "gpio55", "gpio56";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
&qup_uart6_default {
|
|
pinmux {
|
|
pins = "gpio45", "gpio46", "gpio47", "gpio48";
|
|
function = "qup6";
|
|
};
|
|
|
|
cts {
|
|
pins = "gpio45";
|
|
bias-disable;
|
|
};
|
|
|
|
rts-tx {
|
|
pins = "gpio46", "gpio47";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
|
|
rx {
|
|
pins = "gpio48";
|
|
bias-pull-up;
|
|
};
|
|
};
|
|
|
|
&qup_uart9_default {
|
|
pinconf-tx {
|
|
pins = "gpio4";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
|
|
pinconf-rx {
|
|
pins = "gpio5";
|
|
drive-strength = <2>;
|
|
bias-pull-up;
|
|
};
|
|
};
|
|
|
|
&pm8998_gpio {
|
|
|
|
};
|
|
|
|
&cci {
|
|
status = "okay";
|
|
};
|
|
|
|
&camss {
|
|
vdda-supply = <&vreg_l1a_0p875>;
|
|
|
|
status = "ok";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
csiphy0_ep: endpoint {
|
|
clock-lanes = <7>;
|
|
data-lanes = <0 1 2 3>;
|
|
remote-endpoint = <&ov8856_ep>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&cci_i2c0 {
|
|
camera@10 {
|
|
compatible = "ovti,ov8856";
|
|
reg = <0x10>;
|
|
|
|
// CAM0_RST_N
|
|
reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&cam0_default>;
|
|
gpios = <&tlmm 13 0>,
|
|
<&tlmm 9 GPIO_ACTIVE_LOW>;
|
|
|
|
clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
|
|
clock-names = "xvclk";
|
|
clock-frequency = <19200000>;
|
|
|
|
/* The &vreg_s4a_1p8 trace is powered on as a,
|
|
* so it is represented by a fixed regulator.
|
|
*
|
|
* The 2.8V vdda-supply and 1.2V vddd-supply regulators
|
|
* both have to be enabled through the power management
|
|
* gpios.
|
|
*/
|
|
power-domains = <&clock_camcc TITAN_TOP_GDSC>;
|
|
|
|
dovdd-supply = <&vreg_lvs1a_1p8>;
|
|
avdd-supply = <&cam0_avdd_2v8>;
|
|
dvdd-supply = <&cam0_dvdd_1v2>;
|
|
|
|
status = "ok";
|
|
|
|
port {
|
|
ov8856_ep: endpoint {
|
|
clock-lanes = <1>;
|
|
link-frequencies = /bits/ 64
|
|
<360000000 180000000>;
|
|
data-lanes = <1 2 3 4>;
|
|
remote-endpoint = <&csiphy0_ep>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&cci_i2c1 {
|
|
camera@60 {
|
|
compatible = "ovti,ov7251";
|
|
|
|
// I2C address as per ov7251.txt linux documentation
|
|
reg = <0x60>;
|
|
|
|
// CAM3_RST_N
|
|
enable-gpios = <&tlmm 21 0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&cam3_default>;
|
|
gpios = <&tlmm 16 0>,
|
|
<&tlmm 21 0>;
|
|
|
|
clocks = <&clock_camcc CAM_CC_MCLK3_CLK>;
|
|
clock-names = "xclk";
|
|
clock-frequency = <24000000>;
|
|
|
|
/* The &vreg_s4a_1p8 trace always powered on.
|
|
*
|
|
* The 2.8V vdda-supply regulator is enabled when the
|
|
* vreg_s4a_1p8 trace is pulled high.
|
|
* It too is represented by a fixed regulator.
|
|
*
|
|
* No 1.2V vddd-supply regulator is used.
|
|
*/
|
|
power-domains = <&clock_camcc TITAN_TOP_GDSC>;
|
|
|
|
vdddo-supply = <&vreg_lvs1a_1p8>;
|
|
vdda-supply = <&cam3_avdd_2v8>;
|
|
|
|
status = "disable";
|
|
|
|
port {
|
|
ov7251_ep: endpoint {
|
|
clock-lanes = <1>;
|
|
data-lanes = <0 1>;
|
|
// remote-endpoint = <&csiphy3_ep>;
|
|
};
|
|
};
|
|
};
|
|
};
|