Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
Merge tag 'LE.UM.3.2.1-00910-SDX24' into neutrino-msm-fajita-4.9
Browse files Browse the repository at this point in the history
"LE.UM.3.2.1-00910-SDX24"

* tag 'LE.UM.3.2.1-00910-SDX24':
  ANDROID: sched/fair: fix energy compute when a cluster is only a cpu core in multi-cluster system
  ANDROID: ion_dummy_driver: Use IS_ERR_OR_NULL() before destroying heaps
  ANDROID: ion_dummy_driver: Rework ion_dummy_driver to avoid direct indexing into the heaps
  ANDROID: ion_dummy_driver: Remove SYSTEM_CONTIG heap
  UPSTREAM: workqueue: make workqueue available early during boot
  UPSTREAM: mm: add PageWaiters indicating tasks are waiting for a page bit
  UPSTREAM: Avoid page waitqueue race leaving possible page locker waiting
  BACKPORT: sched/core: Add wrappers for lockdep_(un)pin_lock()
  UPSTREAM: sched/headers: Prepare for new header dependencies before moving code to <linux/sched/loadavg.h>
  UPSTREAM: sched/headers, delayacct: Move the 'struct task_delay_info' definition from <linux/sched.h> to <linux/delayacct.h>
  UPSTREAM: sched/headers: Move loadavg related definitions from <linux/sched.h> to <linux/sched/loadavg.h>
  UPSTREAM: sched/headers: Remove <linux/sched.h> from <linux/sched/loadavg.h>
  BACKPORT: cgroup: misc changes
  BACKPORT: mm: workingset: tell cache transitions from workingset thrashing
  BACKPORT: delayacct: track delays from thrashing cache pages
  UPSTREAM: sched: loadavg: consolidate LOAD_INT, LOAD_FRAC, CALC_LOAD
  UPSTREAM: sched: loadavg: make calc_load_n() public
  BACKPORT: sched: sched.h: make rq locking and clock functions available in stats.h
  BACKPORT: sched: introduce this_rq_lock_irq()
  UPSTREAM: psi: pressure stall information for CPU, memory, and IO
  BACKPORT: psi: cgroup support
  UPSTREAM: kernel/sched/psi.c: simplify cgroup_move_task()
  BACKPORT: psi: make disabling/enabling easier for vendor kernels
  UPSTREAM: psi: fix reference to kernel commandline enable
  UPSTREAM: kernfs: add kernfs_ops->open/release() callbacks
  UPSTREAM: kernfs: fix locking around kernfs_ops->release() callback
  UPSTREAM: kernfs: Check KERNFS_HAS_RELEASE before calling kernfs_release_file()
  UPSTREAM: cgroup add cftype->open/release() callbacks
  UPSTREAM: psi: fix aggregation idle shut-off
  UPSTREAM: psi: clarify the Kconfig text for the default-disable option
  UPSTREAM: psi: avoid divide-by-zero crash inside virtual machines
  BACKPORT: fs: kernfs: add poll file operation
  BACKPORT: kernel: cgroup: add poll file operation
  ANDROID: cuttlefish_defconfig: Enable CONFIG_PSI
  FROMLIST: psi: introduce state_mask to represent stalled psi states
  FROMLIST: psi: make psi_enable static
  FROMLIST: psi: rename psi fields in preparation for psi trigger addition
  FROMLIST: psi: split update_stats into parts
  FROMLIST: psi: track changed states
  FROMLIST: refactor header includes to allow kthread.h inclusion in psi_types.h
  FROMLIST: psi: introduce psi monitor
  ANDROID: dm-bow: Add dm-bow feature
  ANDROID: dm-bow: backport to 4.14
  ANDROID: dm-bow: Backport to 4.9
  ANDROID: Add dm-bow to cuttlefish configuration
  UPSTREAM: binder: create userspace-to-binder-buffer copy function
  BACKPORT: binder: add functions to copy to/from binder buffers
  BACKPORT: binder: add function to copy binder object from buffer
  UPSTREAM: binder: avoid kernel vm_area for buffer fixups
  UPSTREAM: binder: remove kernel vm_area for buffer space
  BACKPORT: binder: remove user_buffer_offset
  UPSTREAM: binder: fix kerneldoc header for struct binder_buffer
  BACKPORT: binder: use userspace pointer as base of buffer space
  UPSTREAM: binder: fix sparse issue in binder_alloc_selftest.c
  UPSTREAM: binder: fix handling of misaligned binder object
  UPSTREAM: mm: proc: smaps_rollup: fix pss_locked calculation
  ANDROID: fix 4.9 backport of psi header refactoring
  ANDROID: dm-bow: Fix 32 bit compile errors
  FROMGIT: binder: fix BUG_ON found by selinux-testsuite
  UPSTREAM: net: socket: set sock->sk to NULL after calling proto_ops::release()
  ANDROID: binder: remove extra declaration left after backport
  BACKPORT: filemap: kill page_cache_read usage in filemap_fault
  BACKPORT: filemap: drop the mmap_sem for all blocking operations
  BACKPORT: filemap: add a comment about FAULT_FLAG_RETRY_NOWAIT behavior
  BACKPORT: docs: correct documentation for %pK
  BACKPORT: vsprintf: refactor %pK code out of pointer()
  UPSTREAM: siphash: add cryptographically secure PRF
  UPSTREAM: siphash: implement HalfSipHash1-3 for hash tables
  ANDROID: Fix race in crng_reseed()
  BACKPORT: printk: hash addresses printed with %p
  BACKPORT: vsprintf: add printk specifier %px
  UPSTREAM: kasan: use %px to print addresses instead of %p
  UPSTREAM: mm/slab.c: do not hash pointers when debugging slab
  UPSTREAM: Do not hash userspace addresses in fault handlers
  UPSTREAM: usercopy: Remove pointer from overflow report
  UPSTREAM: trace_uprobe: Display correct offset in uprobe_events
  UPSTREAM: x86/alternative: Print unadorned pointers
  UPSTREAM: bug: use %pB in BUG and stack protector failure
  BACKPORT: mm/debug.c: provide useful debugging information for VM_BUG
  ANDROID: drop CONFIG_INPUT_KEYCHORD from cuttlefish and ranchu
  Revert "ANDROID: keychord: Check for write data size"
  Revert "ANDROID: keychord: Fix for a memory leak in keychord."
  Revert "ANDROID: keychord: Fix races in keychord_write."
  Revert "Use %zu to print resid (size_t)."
  Revert "ANDROID: keychord: Fix a slab out-of-bounds read."
  Revert "ANDROID: input: misc: keychord: log when keychord triggered"
  Revert "ANDROID: input: misc: keychord: move header to uapi"
  Revert "ANDROID: input: keychord: Add keychord driver"
  UPSTREAM: virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED
  ANDROID: cuttlefish: enable CONFIG_NET_SCH_INGRESS=y
  ANDROID: cuttlefish_defconfig: Enable CONFIG_OVERLAY_FS
  ANDROID: Makefile: Add '-fsplit-lto-unit' to cfi-clang-flags
  Make arm64 serial port config compatible with crosvm
  ANDROID: cuttlefish_defconfig: Enable L2TP/PPTP
  ANDROID: cuttlefish_defconfig: Enable CONFIG_XFRM_STATISTICS
  UPSTREAM: usb: separate out sysdev pointer from usb_bus
  UPSTREAM: usb: host: ehci: use correct device pointer for dma ops
  UPSTREAM: usb: hcd: use correct device pointer for dma ops
  ANDROID: cuttlefish 4.9: enable CONFIG_CRYPTO_AES_NI_INTEL=y
  ANDROID: Communicates LMK events to userland where they can be logged
  ANDROID: cuttlefish_defconfig: Enable CONFIG_CPUSETS and CONFIG_CGROUP_SCHEDTUNE
  ANDROID: block/cfq-iosched: make group_idle per io cgroup tunable
  ANDROID: Move from clang r349610 to r353983c.
  ANDROID: cuttlefish_defconfig: Disable DEVTMPFS
  UPSTREAM: bpf: relax inode permission check for retrieving bpf program
  UPSTREAM: fib_rules: fix error in backport of e9919a24d302 ("fib_rules: return 0...")
  msm: ipa3: Fix to validate check for IP type
  BACKPORT: kbuild: gcov: enable -fno-tree-loop-im if supported
  UPSTREAM: gcov: remove CONFIG_GCOV_FORMAT_AUTODETECT
  UPSTREAM: module: add stubs for within_module functions
  UPSTREAM: gcov: clang: move common GCC code into gcc_base.c
  UPSTREAM: gcov: docs: add a note on GCC vs Clang differences
  BACKPORT: gcov: clang support
  dwc3: Add ipc debug log for USB GSI and USB endpoint operation
  usb: dwc3: debug: Add dbg_log_string to log strings
  dwc3-msm: Readback USB GSI wrapper register after updating
  dwc3: gadget: Don't queue USB request if pull up is getting disable
  dwc3-msm: Log link TRB address and also readback ring doorbell register
  usb: dwc3: gadget: Ensure no control transfers in progress when stopping
  drm/msm/sde: stage border fill after ctl start timeout
  power: smb5: Avoid potential votable deadlock issue
  fbdev: msm: check the length of the external input buffer properly
  ARM: dts: msm: Add pm660 s6 regulator
  ARM: dts: msm: Add dynamic partition support for sdm670 & sdm845
  input: touchscreen: cyttsp5: add new touch driver
  ARM: dts: msm: Update regulator handles for SDM429w
  ARM: dts: msm: Update regulator handles for SDM429w
  ARM: dts: msm: Update the pmic rails for SDM429W
  defconfig: spyro: Enable haptics and rradc support
  ARM: dts: msm: Fix accurate gpio used by Smart PA on Spyro
  ARM: dts: msm: Update the regulator limits for APC
  ARM: dts: msm: Update regulator handles for SDM429w
  arm: dts: msm: Remove pmic revid of pmic for sdm450+pmi632
  USB: configfs: Send DISCONNECT uevent during UDC bind
  defconfig: remove paranoid network from sdxpoorwills defconfig
  ARM: dts: Add pinctl for digit codec on SDM429W
  msm: vidc: add additional check to avoid out of bound access
  ARM: dts: msm: Add lpm workaround and cpu sleep status for msm8909
  soc: qcom: ipc_router_mhi_dev_xprt: Add IPC_RTR export driver for MHI_DEV
  defconfig: msm: Enable IPC_RTR over MHI_DEV for SDX24
  ARM: dts: msm: Add MHI_DEV IPC router node for sdxpoorwills
  ARM: dts: msm: disable ssc-sensors node for sda845 RB3 HW
  ARM: dts: msm: Support 16bit vlevel setting from SAW
  ARM: dts: correct the spelling error
  arm: defconfig: Disable core control for msm8909w
  serial: msm_geni_serial: Enhance debug logs and support
  ARM: dts: msm: Add DT support for sdxpoorwills v2 pcie mtp
  ARM: dts: Add sound support for SDM429W
  ARM: dts: msm: EP phy sequence update for sdxpoorwills v2
  Defconfig: msm: Enable one kind of regulator framework
  diag: Prevent switching mode for non mdlog process
  arm: dts: msm: add mss regulator rail for SDM429W
  ARM: dts: msm: support external LDO for front camera in spyro
  msm: jpeg: Change io dump logic.
  msm: vidc: Allow zero length qbuf
  diag: dci: Correct out of bounds check in processing dci pkt rsp
  ARM: dts: change digital codec supply properties for SDM429w
  icnss: Thermal mitigation support in WLAN
  msm: adsprpc: Fix integer overflow in refcount of map
  soc: qcom: socinfo: Add support for SDM429W soc-id
  ARM: dts: msm: add resource manager node for SDM670
  ARM: dts: msm: Rename ADP to CCARD for SA415M boards
  ARM: dts: msm: enable pronto node for spyro
  ARM: dts: msm: adjust LD19A voltage level for sdhc in spyro
  ARM: dts: msm: Add support for SA415M CCARD boards
  ARM: dts: msm: Enable GPIO_01 for PMX24
  soc: qcom: glink_smem: Initialize buffers
  qseecom: change to use pr_debug in listener operations
  qseecom: fix a blocked listener request issue
  mmc: sdhci-msm: Support for getting DLL HSR values from dt file
  ARM: dts: msm: disable i2c_5 on Spyro and update PMIC ID
  mmc: sdhci-msm: Fix the retention of DLL regs from CX Collapse
  mmc: sdhci-msm: Skip PWRSAVE_DLL setting for sdcc minor verion 0x4D
  ARM: dt: qcom: Supply dll-hsr settings sdhc on sdm439
  ARM: dts: msm: Enable GPIO based keys on Spyro
  ARM: dts: msm: sdm429w enable adsp power
  ARM: dts: Modify pinctl for digit codec on SDM429W
  msm: mhi_dev: Add uevent support to DCI IN/OUT channels
  defconfig: msm: Enable the TLV320AIC3X codec for SA415M
  ASoC: tlv320aic3x: Add reset inverted DT property
  input: touchscreen: cyttsp5: enable new touch driver
  ARM: dts: msm: Add sdxpoorwills-v2 definitions for CCARD boards
  msm: pcie: Add power on pins for PCI-E client device
  Revert "Revert "ARM: dts: msm: Increasing shared mem region size for SDM845 and SDM710""
  usb: dwc3: Disable the irq before clearing run_stop bit
  ARM: dts: msm: Supply dll-hsr settings for sdhc on SDM429w
  defconfig: sdxpoorwills-auto: enable smcinvoke
  ASoC: aw8896: add aw8896 SmartPA driver
  ARM: dts: support smartPA AW8896 for SDM429w
  defconfig: spyro: enable smartPA aw8896 support
  usb: dwc3: gadget: Clear pending events when stopping controller
  usb: f_gsi: Add error checking for PREPARE_TRBS and STARTXFER ops
  usb: dwc3: Fix out of bound memory access for event buffer
  usb: dwc3: Disable all interrupts during run_stop clear
  usb: dwc3: Fix continuous spurious interrupts
  usb: gadget: gsi: Avoid spinlock lockup
  usb: gadget: f_gsi: Handle IPA remote wakeup notification properly
  usb: gsi: Initialize 'info' with zero
  usb: gadget: f_gsi: Fix NULL pointer dereference
  dwc3-msm: Remove additional check for link state U3
  dwc3: gadget: Fix list corruption issue with dequeue API
  usb: dwc3: Do not traverse list using list_for_each_safe
  usb: dwc3: Do not initiate remote wakeup from core layer
  usb: dwc3-msm: Ensure reset if h/w is out of lpm without any events
  usb: f_gsi: Don't enable IPA data path if connect channel fails
  ARM: dts: msm: bring up s5k3p9sx04 for spyro device
  ARM: dts: msm: add new touch device for Spyro
  usb: dwc3: Flush bh work before disabling dwc3_irq
  input: touchscreen: cyttsp5: add code copyright
  Revert "defconfig: remove paranoid network from sdxpoorwills defconfig"

[@0ctobot: Reapply 63e0afa ("FROMGIT: binder: create node flag to request sender's security context")]
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>

Conflicts:
	Makefile
	arch/arm/kernel/irq.c
	arch/arm64/boot/dts/qcom/sdm670.dtsi
	arch/arm64/boot/dts/qcom/sdm845.dtsi
	build.config.cuttlefish.aarch64
	build.config.cuttlefish.x86_64
	drivers/android/binder.c
	drivers/android/binder_alloc.c
	drivers/media/platform/msm/camera/cam_sensor_module/cam_ir_led/cam_ir_led_core.c
	drivers/media/platform/msm/camera/cam_sensor_module/cam_ir_led/cam_ir_led_dev.c
	drivers/media/platform/msm/camera_v2/isp/msm_isp.h
	drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c
	drivers/media/platform/msm/camera_v3/cam_cdm/cam_cdm.h
	drivers/media/platform/msm/camera_v3/cam_cdm/cam_cdm_hw_core.c
	drivers/media/platform/msm/camera_v3/cam_icp/cam_icp_context.c
	drivers/media/platform/msm/camera_v3/cam_icp/icp_hw/icp_hw_mgr/cam_icp_hw_mgr.c
	drivers/media/platform/msm/camera_v3/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c
	drivers/media/platform/msm/camera_v3/cam_sensor_module/cam_csiphy/cam_csiphy_core.c
	drivers/media/platform/msm/camera_v3/cam_sensor_module/cam_csiphy/cam_csiphy_dev.h
	drivers/media/platform/msm/camera_v3/cam_sensor_module/cam_csiphy/cam_csiphy_soc.c
	drivers/media/platform/msm/camera_v3/cam_sensor_module/cam_csiphy/cam_csiphy_soc.h
	drivers/media/platform/msm/camera_v3/cam_sensor_module/cam_csiphy/include/cam_csiphy_1_2_hwreg.h
	drivers/mmc/host/sdhci.c
	drivers/scsi/sd.c
	drivers/staging/android/lowmemorykiller.c
	drivers/tty/serial/msm_geni_serial.c
	drivers/usb/gadget/function/f_fs.c
	fs/ext4/inode.c
	fs/f2fs/data.c
	fs/kernfs/kernfs-internal.h
	include/linux/backing-dev-defs.h
	include/linux/cpu.h
	include/linux/kernfs.h
	include/linux/psi.h
	include/linux/psi_types.h
	include/linux/sched.h
	init/main.c
	kernel/cgroup.c
	kernel/sched/core.c
	kernel/sched/psi.c
	mm/backing-dev.c
	mm/compaction.c
	mm/debug.c
	mm/filemap.c
	mm/page_alloc.c
	mm/vmscan.c
	net/core/fib_rules.c
	net/ipv4/sysctl_net_ipv4.c
  • Loading branch information
0ctobot committed Jul 13, 2019
2 parents 17c3d1d + dd87ae3 commit 2c98b5d
Show file tree
Hide file tree
Showing 185 changed files with 28,471 additions and 1,869 deletions.
18 changes: 18 additions & 0 deletions Documentation/cgroup-v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,12 @@ All time durations are in microseconds.
$PERIOD duration. If only one number is written, $MAX is
updated.

cpu.pressure
A read-only nested-key file which exists on non-root cgroups.

Shows pressure stall information for CPU. See
Documentation/accounting/psi.txt for details.


5-2. Memory

Expand Down Expand Up @@ -925,6 +931,12 @@ PAGE_SIZE multiple when read back.
Swap usage hard limit. If a cgroup's swap usage reaches this
limit, anonymous meomry of the cgroup will not be swapped out.

memory.pressure
A read-only nested-key file which exists on non-root cgroups.

Shows pressure stall information for memory. See
Documentation/accounting/psi.txt for details.


5-2-2. Usage Guidelines

Expand Down Expand Up @@ -1055,6 +1067,12 @@ blk-mq devices.

8:16 rbps=2097152 wbps=max riops=max wiops=max

io.pressure
A read-only nested-key file which exists on non-root cgroups.

Shows pressure stall information for IO. See
Documentation/accounting/psi.txt for details.


5-3-2. Writeback

Expand Down
18 changes: 14 additions & 4 deletions Documentation/dev-tools/gcov.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ Configure the kernel with::
CONFIG_DEBUG_FS=y
CONFIG_GCOV_KERNEL=y

select the gcc's gcov format, default is autodetect based on gcc version::

CONFIG_GCOV_FORMAT_AUTODETECT=y

and to get coverage data for the entire kernel::

CONFIG_GCOV_PROFILE_ALL=y
Expand Down Expand Up @@ -169,6 +165,20 @@ b) gcov is run on the BUILD machine
[user@build] gcov -o /tmp/coverage/tmp/out/init main.c


Note on compilers
-----------------

GCC and LLVM gcov tools are not necessarily compatible. Use gcov_ to work with
GCC-generated .gcno and .gcda files, and use llvm-cov_ for Clang.

.. _gcov: http://gcc.gnu.org/onlinedocs/gcc/Gcov.html
.. _llvm-cov: https://llvm.org/docs/CommandGuide/llvm-cov.html

Build differences between GCC and Clang gcov are handled by Kconfig. It
automatically selects the appropriate gcov format depending on the detected
toolchain.


Troubleshooting
---------------

Expand Down
99 changes: 99 additions & 0 deletions Documentation/device-mapper/dm-bow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
dm_bow (backup on write)
========================

dm_bow is a device mapper driver that uses the free space on a device to back up
data that is overwritten. The changes can then be committed by a simple state
change, or rolled back by removing the dm_bow device and running a command line
utility over the underlying device.

dm_bow has three states, set by writing ‘1’ or ‘2’ to /sys/block/dm-?/bow/state.
It is only possible to go from state 0 (initial state) to state 1, and then from
state 1 to state 2.

State 0: dm_bow collects all trims to the device and assumes that these mark
free space on the overlying file system that can be safely used. Typically the
mount code would create the dm_bow device, mount the file system, call the
FITRIM ioctl on the file system then switch to state 1. These trims are not
propagated to the underlying device.

State 1: All writes to the device cause the underlying data to be backed up to
the free (trimmed) area as needed in such a way as they can be restored.
However, the writes, with one exception, then happen exactly as they would
without dm_bow, so the device is always in a good final state. The exception is
that sector 0 is used to keep a log of the latest changes, both to indicate that
we are in this state and to allow rollback. See below for all details. If there
isn't enough free space, writes are failed with -ENOSPC.

State 2: The transition to state 2 triggers replacing the special sector 0 with
the normal sector 0, and the freeing of all state information. dm_bow then
becomes a pass-through driver, allowing the device to continue to be used with
minimal performance impact.

Usage
=====
dm-bow takes one command line parameter, the name of the underlying device.

dm-bow will typically be used in the following way. dm-bow will be loaded with a
suitable underlying device and the resultant device will be mounted. A file
system trim will be issued via the FITRIM ioctl, then the device will be
switched to state 1. The file system will now be used as normal. At some point,
the changes can either be committed by switching to state 2, or rolled back by
unmounting the file system, removing the dm-bow device and running the command
line utility. Note that rebooting the device will be equivalent to unmounting
and removing, but the command line utility must still be run

Details of operation in state 1
===============================

dm_bow maintains a type for all sectors. A sector can be any of:

SECTOR0
SECTOR0_CURRENT
UNCHANGED
FREE
CHANGED
BACKUP

SECTOR0 is the first sector on the device, and is used to hold the log of
changes. This is the one exception.

SECTOR0_CURRENT is a sector picked from the FREE sectors, and is where reads and
writes from the true sector zero are redirected to. Note that like any backup
sector, if the sector is written to directly, it must be moved again.

UNCHANGED means that the sector has not been changed since we entered state 1.
Thus if it is written to or trimmed, the contents must first be backed up.

FREE means that the sector was trimmed in state 0 and has not yet been written
to or used for backup. On being written to, a FREE sector is changed to CHANGED.

CHANGED means that the sector has been modified, and can be further modified
without further backup.

BACKUP means that this is a free sector being used as a backup. On being written
to, the contents must first be backed up again.

All backup operations are logged to the first sector. The log sector has the
format:
--------------------------------------------------------
| Magic | Count | Sequence | Log entry | Log entry | …
--------------------------------------------------------

Magic is a magic number. Count is the number of log entries. Sequence is 0
initially. A log entry is

-----------------------------------
| Source | Dest | Size | Checksum |
-----------------------------------

When SECTOR0 is full, the log sector is backed up and another empty log sector
created with sequence number one higher. The first entry in any log entry with
sequence > 0 therefore must be the log of the backing up of the previous log
sector. Note that sequence is not strictly needed, but is a useful sanity check
and potentially limits the time spent trying to restore a corrupted snapshot.

On entering state 1, dm_bow has a list of free sectors. All other sectors are
unchanged. Sector0_current is selected from the free sectors and the contents of
sector 0 are copied there. The sector 0 is backed up, which triggers the first
log entry to be written.

6 changes: 5 additions & 1 deletion Documentation/devicetree/bindings/arm/msm/msm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ SoCs:
- SDA429
compatible = "qcom,sda429"

- SDM429W
compatible = "qcom,sdm429w"

- QM215
compatible = "qcom, qm215"

Expand Down Expand Up @@ -366,6 +369,7 @@ compatible = "qcom,msm8937-pmi8937-qrd-sku2"
compatible = "qcom,sdm429-cdp"
compatible = "qcom,sdm429-mtp"
compatible = "qcom,sdm429-qrd"
compatible = "qcom,sdm429w-qrd"
compatible = "qcom,sda429-cdp"
compatible = "qcom,sda429-mtp"
compatible = "qcom,sdm439-cdp"
Expand Down Expand Up @@ -407,5 +411,5 @@ compatible = "qcom,sdxpoorwills-atp"
compatible = "qcom,sdxpoorwills-mtp"
compatible = "qcom,sdxpoorwills-cdp"
compatible = "qcom,sdxpoorwills-ttp"
compatible = "qcom,sdxpoorwills-adp"
compatible = "qcom,sdxpoorwills-ccard"
compatible = "qcom,mdm9607-ttp"
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Qualcomm Technologies, Inc. IPC Router MHI_DEV Transport

Required properties:
-compatible: should be "qcom,ipc-router-mhi-dev-xprt".
-qcom,out-chan-id: MHI Channel ID for the transmit path.
-qcom,in-chan-id: MHI Channel ID for the receive path.
-qcom,xprt-remote: string that defines the edge of the transport.
-qcom,xprt-linkid: unique integer to identify the tier to which the link
belongs to in the network and is used to avoid the
routing loops while forwarding the broadcast messages.
-qcom,xprt-version: unique version ID used by MHI transport header.

Example:
qcom,ipc_router_external_ap_xprt {
compatible = "qcom,ipc-router-mhi-dev-xprt";
qcom,out-chan-id = <34>;
qcom,in-chan-id = <35>;
qcom,xprt-remote = "external-ap";
qcom,xprt-linkid = <2>;
qcom,xprt-version = <1>;
};
88 changes: 88 additions & 0 deletions Documentation/devicetree/bindings/input/touchscreen/cyttsp5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
* Cypress cyttsp5 touchscreen controller

Required properties:
- compatible : must be "cy,cyttsp5_i2c_adapter"
- reg : Device I2C address or SPI chip select number
- interrupt-parent : the phandle for the gpio controller
(see interrupt binding[0]).
- interrupts : (gpio) interrupt to which the chip is connected
(see interrupt binding[0]).
- vcc_i2c-supply : power supply
- vdd-supply : power supply
- cy,mt : multi-touch

Optional properties:
- cy,btn : button

[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
[1]: Documentation/devicetree/bindings/gpio/gpio.txt

Example:
&i2c1 {
/* ... */
tsc@24 {
compatible = "cy,cyttsp5_i2c_adapter";
reg = <0x24>;
interrupt-parent = <&msm_gpio>;
interrupts = <13 0x2008>;
cy,adapter_id = "cyttsp5_i2c_adapter";
vcc_i2c-supply = <&pm8916_l6>;
vdd-supply = <&pm8916_l17>;

cy,core {
cy,name = "cyttsp5_core";
cy,irq_gpio = <13>;
cy,rst_gpio = <12>;
cy,hid_desc_register = <1>;
cy,flags = <4>;
cy,easy_wakeup_gesture = <1>;
cy,btn_keys = <172 139 158 217 114 115 212 116>;
cy,btn_keys-tag = <0>;

cy,mt {
cy,name = "cyttsp5_mt";
cy,inp_dev_name = "cyttsp5_mt";
cy,flags = <0x28>;
cy,abs =
<0x35 0 320 0 0
0x36 0 360 0 0
0x3a 0 255 0 0
0xffff 0 255 0 0
0x39 0 15 0 0
0x30 0 255 0 0
0x31 0 255 0 0
0x34 0xffffff81 127 0 0
0x37 0 1 0 0
0x3b 0 255 0 0>;

cy,vkeys_x = <320>;
cy,vkeys_y = <360>;

cy,virtual_keys =
/* KEY_BACK */
<158 1360 90 160 180
/* KEY_MENU */
139 1360 270 160 180
/* KEY_HOMEPAGE */
172 1360 450 160 180
/* KEY SEARCH */
217 1360 630 160 180>;
};

cy,btn {
cy,name = "cyttsp5_btn";

cy,inp_dev_name = "cyttsp5_btn";
};

cy,proximity {
cy,name = "cyttsp5_proximity";

cy,inp_dev_name = "cyttsp5_proximity";
cy,abs = <0x19 0 1 0 0>;
};
};
};

/* ... */
};
8 changes: 3 additions & 5 deletions Documentation/devicetree/bindings/mmc/sdhci-msm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,9 @@ Optional Properties:
contents will not be retained. It is software responsibility to restore the
SDCC registers before resuming to normal operation.
- qcom,force-sdhc1-probe: Force probing sdhc1 even if it is not the boot device.
- qcom,ddr-config: Certain chipsets and platforms require particular settings for
the RCLK delay DLL configuration register for HS400 mode to work.
This value can vary between platforms and msms. If a msm/platform
require a different DLL setting than the default/POR setting for
HS400 mode, it can be specified using this field.
- qcom,dll-hsr-list: List of DLL-HSR values which are tuned for given process-node
and platform. The sequence of values in this list must follow the
sequence listed in sdhci_msm_dll_hsr data structure.
In the following, <supply> can be vdd (flash core voltage) or vdd-io (I/O voltage).
- qcom,<supply>-always-on - specifies whether supply should be kept "on" always.
- qcom,<supply>-lpm_sup - specifies whether supply can be kept in low power mode (lpm).
Expand Down
21 changes: 21 additions & 0 deletions Documentation/devicetree/bindings/sound/aw8896.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
AW8896 SmartpA

Required properties:

- compatible : "awinic,aw8896_smartpa"

- reg : I2C address of the device

- reset-gpio: gpio used for HW reset

Optional properties:

- irq-gpio: gpio used for irq indicator

Examples:

i2c_smartpa@34 {
compatible = "awinic,i2c_smartpa";
reg = <0x34>;
reset-gpio = <&tlmm 68 0>;
};
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/sound/qcom-audio-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,8 @@ Example:
* MSM8952 ASoC Machine driver

Required properties:
- compatible : "qcom,msm8952-audio-codec"
- compatible : "qcom,msm8952-audio-codec" for pmic codec,
"qcom,msm8952-dig-asoc-snd" for digital internal codec,
- qcom,model : The user-visible name of this sound card.
- reg : Offset and length of the register region(s) for MI2S/PCM MUX
- reg-names : Register region name(s) referenced in reg above
Expand Down
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/sound/tlv320aic3x.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Required properties:

Optional properties:

- gpio-reset - gpio pin number used for codec reset
- gpio-reset - gpio pin number used for codec reset, default active low
- reset-inverted - set the reset gpio mode as active high
- ai3x-gpio-func - <array of 2 int> - AIC3X_GPIO1 & AIC3X_GPIO2 Functionality
- Not supported on tlv320aic3104
- ai3x-micbias-vg - MicBias Voltage required.
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/vendor-prefixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,3 +321,4 @@ zte ZTE Corp.
zyxel ZyXEL Communications Corp.
inven InvenSense, Inc.
cy Parade.
awinic Shanghai Awinic Technology Co., Ltd.
Loading

0 comments on commit 2c98b5d

Please sign in to comment.