[PATCH 2/2] soc: qcom: Add Qualcomm Memshare QMI service

2021-03-19 Thread nikitos . tr
From: Nikita Travkin This QMI service provides memory region for remote processors (like modem) on request. It is known to be used in GPS service in modem firmware for some (most) of msm8916 devices. This commit implements "guaranteed allocation" of memory using reserved-memory regions because g

[PATCH 0/2] soc: qcom: Add Qualcomm Memshare QMI service

2021-03-19 Thread nikitos . tr
From: Nikita Travkin This series adds memshare QMI service. It receives messages from other subsystems (like modem subsystem) and answers with a message that contains the memory address of the allocated region. This is used on many msm8916 based devices for location service which requests 2 MB re

[PATCH 1/2] dt-bindings: soc: qcom: Add bindings for Qualcomm Memshare service

2021-03-19 Thread nikitos . tr
From: Nikita Travkin Add DT bindings for memshare: QMI service that allocates memory per remote processor request. Signed-off-by: Nikita Travkin --- .../bindings/soc/qcom/qcom,memshare.yaml | 109 ++ include/dt-bindings/soc/qcom,memshare.h | 10 ++ 2 files changed,

[PATCH] extcon: sm5502: Detect OTG when USB_ID is connected to ground

2021-01-19 Thread nikitos . tr
From: Nikita Travkin In it's curent state this driver ignores OTG adapters with ID pin connected to ground. This commit adds a check to set extcon into host mode when such OTG adapter is connected. Signed-off-by: Nikita Travkin --- This issue was already reported in [1] and this behaviour app

[PATCH 3/6] arm64: dts: msm8916-longcheer-l8150: Add position sensors

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 has: - BMC156 accelerometer and magnetic sensor - BMG160 gyroscope sensor Add them to the device tree. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 46 +++ 1 file changed, 46 insertions(+) diff --git a/arch/arm6

[PATCH 2/6] arm64: dts: msm8916-longcheer-l8150: Add touchscreen

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 has RMI4 compatible Synaptics touchscreen on blsp_i2c5. It is powered by fixed regulator. Add both to the device tree. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 63 +++ 1 file changed, 63 insertions(+) diff --g

[PATCH 6/6] arm64: dts: qcom: msm8916-samsung-a2015: Disable muic i2c pin bias

2020-11-13 Thread nikitos . tr
From: Nikita Travkin Some versions of the firmware leave i2c gpios in a wrong state. Add pinctrl that disables pin bias since external pull-up resistors are present. Fixes: 1329c1ab0730 ("arm64: dts: qcom: Add device tree for Samsung Galaxy A3U/A5U") Signed-off-by: Nikita Travkin --- .../boot

[PATCH 4/6] arm64: dts: qcom: msm8916-longcheer-l8150: Add flash LED

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 uses SGM3785 Flash LED driver. It is similar to SGM3140 but can also be controlled with PWM. Since SoC doesn't have PWM, add led to the device tree using sgm3140 driver. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 24

[PATCH 5/6] arm64: dts: qcom: msm8916-longcheer-l8150: Add notification LED

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 uses aw2013 LED contriller for notification LED on the front of the device. Add it to the device tree Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 34 +++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/b

[PATCH 1/6] arm64: dts: qcom: msm8916-longcheer-l8150: Enable PM8916 vibrator

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 has a vibrator connected to PM8916. Add it to the device tree. Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/

[PATCH v2 3/3] leds: add aw2013 driver

2020-05-11 Thread nikitos . tr
From: Nikita Travkin This commit adds support for AWINIC AW2013 3-channel LED driver. The chip supports 3 PWM channels and is controlled with I2C. Signed-off-by: Nikita Travkin --- Changes in v2: - Handling of situations where one of delays for brightness_set() was zero is fixed. - prob

[PATCH v2 2/3] dt-bindings: leds: Add binding for aw2013

2020-05-11 Thread nikitos . tr
From: Nikita Travkin Add YAML devicetree binding for AWINIC AW2013 3-channel led driver Signed-off-by: Nikita Travkin --- .../devicetree/bindings/leds/leds-aw2013.yaml | 91 +++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-aw2

[PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Shanghai Awinic Technology Co., Ltd.

2020-05-11 Thread nikitos . tr
From: Nikita Travkin Add the "awinic" vendor prefix for Shanghai Awinic Technology Co., Ltd. Website: https://www.awinic.com/ Signed-off-by: Nikita Travkin --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/

[PATCH 2/3] dt-bindings: leds: Add binding for aw2013

2020-05-04 Thread nikitos . tr
From: Nikita Travkin Add YAML devicetree binding for AWINIC AW2013 3-channel led driver Signed-off-by: Nikita Travkin --- .../devicetree/bindings/leds/leds-aw2013.yaml | 91 +++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-aw2

[PATCH 3/3] dt-bindings: vendor-prefixes: Add Shanghai Awinic Technology Co., Ltd.

2020-05-04 Thread nikitos . tr
From: Nikita Travkin Add the "awinic" vendor prefix for Shanghai Awinic Technology Co., Ltd. Website: https://www.awinic.com/ Signed-off-by: Nikita Travkin --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/

[PATCH 1/3] leds: add aw2013 driver

2020-05-04 Thread nikitos . tr
From: Nikita Travkin This commit adds support for AWINIC AW2013 3-channel LED driver. The chip supports 3 PWM channels and is controlled with I2C. Signed-off-by: Nikita Travkin --- drivers/leds/Kconfig | 10 + drivers/leds/Makefile | 1 + drivers/leds/leds-aw2013.c | 481

[PATCH 1/2] arm64: dts: msm8916-longcheer-l8150: Enable WCNSS for WiFi and BT

2019-10-12 Thread nikitos . tr
From: Nikita Travkin WCNSS is used on L8150 for WiFi and BT. Its firmware isn't relocatable and must be loaded at specific address. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm6

[PATCH 2/2] arm64: dts: msm8916-longcheer-l8150: Add Volume buttons

2019-10-12 Thread nikitos . tr
From: Nikita Travkin Add nodes for Volume UP button connected to GPIO and Volume DOWN button, which is handled by the pm8916 as is common with msm8916 devices. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 41 +++ 1 file changed, 41 insertion