[PATCH v4 10/10] PCI: qcom: Add Force GEN1 support

2020-05-14 Thread Ansuel Smith
Signed-off-by: Ansuel Smith --- drivers/pci/controller/dwc/pcie-qcom.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c index ab6f1bdd24c3..f6190c954e92 100644 --- a/drivers/pci/controller/dwc/pcie

[PATCH v4 09/10] dt-bindings: PCI: qcom: Add ipq8064 rev 2 variant

2020-05-14 Thread Ansuel Smith
Document qcom,pcie-ipq8064-v2 needed to use different phy_tx0_term_offset. In ipq8064 phy_tx0_term_offset is 7. In ipq8064 v2 other SoC it's set to 0 by default. Signed-off-by: Ansuel Smith Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/qcom,pcie.txt | 1 + 1 file chang

[PATCH v4 08/10] PCI: qcom: Add ipq8064 rev2 variant and set tx term offset

2020-05-14 Thread Ansuel Smith
Add tx term offset support to pcie qcom driver need in some revision of the ipq806x SoC. Ipq8064 have tx term offset set to 7. Ipq8064-v2 revision and ipq8065 have the tx term offset set to 0. Signed-off-by: Sham Muthayyan Signed-off-by: Ansuel Smith --- drivers/pci/controller/dwc/pcie-qcom.c

[PATCH v4 01/10] PCI: qcom: Add missing ipq806x clocks in PCIe driver

2020-05-14 Thread Ansuel Smith
Aux and Ref clk are missing in PCIe qcom driver. Add support for this optional clks for ipq8064/apq8064 SoC. Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signed-off-by: Sham Muthayyan Signed-off-by: Ansuel Smith --- drivers/pci/controller/dwc/pcie-q

[PATCH v4 04/10] PCI: qcom: Add missing reset for ipq806x

2020-05-14 Thread Ansuel Smith
Add missing ext reset used by ipq8064 SoC in PCIe qcom driver. Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signed-off-by: Sham Muthayyan Signed-off-by: Ansuel Smith Cc: sta...@vger.kernel.org # v4.5+ Reviewed-by: Rob Herring Reviewed-by: Philipp Zabel --

[PATCH v4 07/10] PCI: qcom: Define some PARF params needed for ipq8064 SoC

2020-05-14 Thread Ansuel Smith
Set some specific value for Tx De-Emphasis, Tx Swing and Rx equalization needed on some ipq8064 based device (Netgear R7800 for example). Without this the system locks on kernel load. Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signed-off-by: Ansuel Smit

[PATCH v4 02/10] dt-bindings: PCI: qcom: Add missing clks

2020-05-14 Thread Ansuel Smith
Document missing clks used in ipq8064 SoC. Signed-off-by: Ansuel Smith Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/qcom,pcie.txt | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.txt b/Documentation

[PATCH v4 03/10] PCI: qcom: Change duplicate PCI reset to phy reset

2020-05-14 Thread Ansuel Smith
From: Abhishek Sahu The deinit issues reset_control_assert for PCI twice and does not contain phy reset. Signed-off-by: Abhishek Sahu Signed-off-by: Ansuel Smith Reviewed-by: Rob Herring --- drivers/pci/controller/dwc/pcie-qcom.c | 18 -- 1 file changed, 8 insertions(+), 10

[PATCH v4 05/10] dt-bindings: PCI: qcom: Add ext reset

2020-05-14 Thread Ansuel Smith
Document ext reset used in ipq8064 SoC by qcom PCIe driver. Signed-off-by: Ansuel Smith Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/qcom,pcie.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.txt b

[PATCH v4 00/10] Multiple fixes in PCIe qcom driver

2020-05-14 Thread Ansuel Smith
e PCI reset to phy reset Ansuel Smith (8): PCI: qcom: Add missing ipq806x clocks in PCIe driver dt-bindings: PCI: qcom: Add missing clks PCI: qcom: Add missing reset for ipq806x dt-bindings: PCI: qcom: Add ext reset PCI: qcom: Use bulk clk api and assert on error PCI: qcom: Define some

[PATCH] PCI: qcom: Make sure PCIe is reset before init for rev 2.1.0

2020-09-01 Thread Ansuel Smith
Qsdk U-Boot can incorrectly leave the PCIe interface in an undefined state if bootm command is used instead of bootipq. This is caused by the not deinit of PCIe when bootm is called. Reset the PCIe before init anyway to fix this U-Boot bug. Signed-off-by: Ansuel Smith Fixes: 82a823833f4e (&quo

[RFC PATCH v6 5/8] drivers: thermal: tsens: Fix wrong get_temp for msm8960

2020-08-14 Thread Ansuel Smith
msm8960 based tsens have an hardcoded slope. Fix the calibrate function with the new added slope, change code_to_mdegC to use slope and conver get_temp to use reg_field. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 43 +++ 1 file changed, 32

[RFC PATCH v6 6/8] drivers: thermal: tsens: Change calib_backup name for msm8960

2020-08-14 Thread Ansuel Smith
Follow standard naming for calib secondary rom and change calib_backup to tsens_calsel. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c

[RFC PATCH v6 7/8] drivers: thermal: tsens: Add support for ipq8064-tsens

2020-08-14 Thread Ansuel Smith
Add support for tsens present in ipq806x SoCs based on generic msm8960 tsens driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 965c4799918a..d571a6ddd914

[RFC PATCH v6 1/8] drivers: thermal: tsens: use get_temp for tsens_valid

2020-08-14 Thread Ansuel Smith
Use the driver get_temp function instead of force to use the generic get temp function. This is needed as tsens v0 version use a custom function to get the real temperature. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

[RFC PATCH v6 4/8] drivers: thermal: tsens: Use init_common for msm8960

2020-08-14 Thread Ansuel Smith
Use init_common and drop custom init for msm8960. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 53 +-- 1 file changed, 1 insertion(+), 52 deletions(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index

[RFC PATCH v6 8/8] dt-bindings: thermal: tsens: Document ipq8064 bindings

2020-08-14 Thread Ansuel Smith
Document the use of bindings used for msm8960 tsens based devices. msm8960 use the same gcc regs and is set as a child of the qcom gcc. Signed-off-by: Ansuel Smith Reviewed-by: Rob Herring --- .../bindings/thermal/qcom-tsens.yaml | 50 --- 1 file changed, 43 insertions

[RFC PATCH v6 2/8] drivers: thermal: tsens: Add VER_0 tsens version

2020-08-14 Thread Ansuel Smith
VER_0 is used to describe device based on tsens version before v0.1. These device are devices based on msm8960 for example apq8064 or ipq806x. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 122 +++ drivers/thermal/qcom/tsens.h | 7 +- 2 files

[RFC PATCH v6 0/8] Add support for ipq8064 tsens

2020-08-14 Thread Ansuel Smith
child instead of use phandle v2: * Fix dt-bindings problems Ansuel Smith (8): drivers: thermal: tsens: use get_temp for tsens_valid drivers: thermal: tsens: Add VER_0 tsens version drivers: thermal: tsens: Convert msm8960 to reg_field drivers: thermal: tsens: Use init_common for msm8960 dr

[RFC PATCH v6 3/8] drivers: thermal: tsens: Convert msm8960 to reg_field

2020-08-14 Thread Ansuel Smith
Convert msm9860 driver to reg_field to use the init_common function. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 74 +++ 1 file changed, 74 insertions(+) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c

[RESEND PATCH] PCI: qcom: use PHY_REFCLK_USE_PAD only for ipq8064

2020-10-19 Thread Ansuel Smith
kin Signed-off-by: Ilia Mirkin Signed-off-by: Ansuel Smith Cc: sta...@vger.kernel.org # v4.19+ --- drivers/pci/controller/dwc/pcie-qcom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c ind

[RFC PATCH v3 0/2] Add Krait Cache Scaling support

2020-08-21 Thread Ansuel Smith
astructure * Update documentation v2: * Fix Documentation error reported by bot * Rework code to fail probe on missing required params * Optimize notifier callback to reduce CPU cycle Ansuel Smith (2): cpufreq: qcom: Add Krait Cache Scaling support dt-bindings: cpufreq: Document Krait CPU Cac

[RFC PATCH v3 1/2] cpufreq: qcom: Add Krait Cache Scaling support

2020-08-21 Thread Ansuel Smith
m. If provided this also scale the voltage of the regulator attached to the CPU cache. The scaling logic is based on the CPU freq and the 3 scaling interval are set by the device dts. Signed-off-by: Ansuel Smith --- drivers/cpufreq/Kconfig.arm | 9 ++ drivers/cpufreq/Makefile | 1 + dr

[RFC PATCH v3 2/2] dt-bindings: cpufreq: Document Krait CPU Cache scaling

2020-08-21 Thread Ansuel Smith
Document dedicated Krait CPU Cache Scaling driver. Signed-off-by: Ansuel Smith --- .../bindings/cpufreq/krait-cache-scale.yaml | 79 +++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/krait-cache-scale.yaml diff --git a

[PATCH 1/6] drivers: thermal: tsens: load regmap from phandle for 8960

2020-07-09 Thread Ansuel Smith
Devices based on 8060 tsens driver (ipq8064) use the reg of the gcc driver. Permit to load the regmap from a syscon phandle instead of fail as the reg are already used by another driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 9 +++-- 1 file changed, 7

[PATCH 4/6] drivers: thermal: tsens: add interrupt support for 9860 driver

2020-07-09 Thread Ansuel Smith
Add interrupt support for 9860 tsens driver used to set thermal trip point for the system. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 196 +++--- drivers/thermal/qcom/tsens.h | 1 + 2 files changed, 183 insertions(+), 14 deletions(-) diff

[PATCH 5/6] drivers: thermal: tsens: add support for custom set_trip function

2020-07-09 Thread Ansuel Smith
8960 tsens driver have a custom implementation to set set_trip function. Permit the generic driver to use the custom function if provided. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 4 drivers/thermal/qcom/tsens.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a

[PATCH 2/6] drivers: thermal: tsens: add ipq8064 support

2020-07-09 Thread Ansuel Smith
Ipq8064 SoCs based use the same 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 39c4462e38f6..2985a064a0d1 100644 --- a/drivers/thermal/qcom/tsens.c

[PATCH 3/6] dt-bindings: thermal: tsens: document ipq8064 bindings

2020-07-09 Thread Ansuel Smith
Document the use of regmap phandle for ipq8064 SoCs Signed-off-by: Ansuel Smith --- .../bindings/thermal/qcom-tsens.yaml | 51 --- 1 file changed, 44 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation

[PATCH 6/6] drivers: thermal: tsens: add set_trip support for 8960

2020-07-09 Thread Ansuel Smith
Add custom set_trip function for 8960 needed to set trip point to the tsens driver for 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 78 +++ 1 file changed, 78 insertions(+) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers

[PATCH 0/6] Add support for ipq8064 tsens

2020-07-09 Thread Ansuel Smith
Ipq8064 SoCs tsens driver is based on 8960 tsens driver. This patchset expand the 8960 unused driver with interrupt support and set_trip point. Ipq8064 needs to registed with a syscon phandle as the tsens regs on this platform are shared with the gcc controller. Ansuel Smith (6): drivers

[PATCH] arm64: fix missing include in asm uaccess.h

2020-11-10 Thread Ansuel Smith
Fix a compilation error as PF_KTHREAD is defined in linux/sched.h and this is missing. Fixes: df325e05a682 ("arm64: Validate tagged addresses in access_ok() called from kernel threads") Signed-off-by: Ansuel Smith --- arch/arm64/include/asm/uaccess.h | 2 ++ 1 file changed, 2

[RFC PATCH v5 6/7] drivers: thermal: tsens: Add support for ipq8064-tsens

2020-07-25 Thread Ansuel Smith
Add support for tsens present in ipq806x SoCs based on generic msm8960 tsens driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 78840c1bc5d2..5eb036767e8d

[RFC PATCH v5 5/7] drivers: thermal: tsens: Change calib_backup name for msm8960

2020-07-25 Thread Ansuel Smith
Follow standard naming for calib secondary rom and change calib_backup to tsens_calsel. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c

[RFC PATCH v5 0/7] Add support for ipq8064 tsens

2020-07-25 Thread Ansuel Smith
* Add missing hardcoded slope v4: * Fix compilation error and warning reported by the bot v3: * Change driver to register as child instead of use phandle v2: * Fix dt-bindings problems Ansuel Smith (7): drivers: thermal: tsens: Add VER_0 tsens version drivers: thermal: tsens: Convert msm8960

[RFC PATCH v5 7/7] dt-bindings: thermal: tsens: Document ipq8064 bindings

2020-07-25 Thread Ansuel Smith
Document the use of bindings used for msm8960 tsens based devices. msm8960 use the same gcc regs and is set as a child of the qcom gcc. Signed-off-by: Ansuel Smith --- .../bindings/thermal/qcom-tsens.yaml | 50 --- 1 file changed, 43 insertions(+), 7 deletions(-) diff

[RFC PATCH v5 4/7] drivers: thermal: tsens: Fix wrong get_temp for msm8960

2020-07-25 Thread Ansuel Smith
msm8960 based tsens have an hardcoded slope. Fix the calibrate function with the new added slope, change code_to_mdegC to use slope and conver get_temp to use reg_field. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 43 +++ 1 file changed, 32

[RFC PATCH v5 3/7] drivers: thermal: tsens: Use init_common for msm8960

2020-07-25 Thread Ansuel Smith
Use init_common and drop custom init for msm8960. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 53 +-- 1 file changed, 1 insertion(+), 52 deletions(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index

[RFC PATCH v5 1/7] drivers: thermal: tsens: Add VER_0 tsens version

2020-07-25 Thread Ansuel Smith
VER_0 is used to describe device based on tsens version before v0.1. These device are devices based on msm8960 for example apq8064 or ipq806x. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 160 +++ drivers/thermal/qcom/tsens.h | 7 +- 2 files

[RFC PATCH v5 2/7] drivers: thermal: tsens: Convert msm8960 to reg_field

2020-07-25 Thread Ansuel Smith
Covert msm9860 driver to reg_filed to use the init_common function. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 74 +++ 1 file changed, 74 insertions(+) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index

[PATCH v3 0/7] Add support for ipq8064 tsens

2020-07-15 Thread Ansuel Smith
child instead of use phandle v2: * Fix dt-bindings problems Ansuel Smith (7): ipq806x: gcc: add support for child probe drivers: thermal: tsens: try load regmap from parent for 8960 drivers: thermal: tsens: add ipq8064 support dt-bindings: thermal: tsens: document ipq8064 bindings drivers

[PATCH v3 5/7] drivers: thermal: tsens: add interrupt support for 9860 driver

2020-07-15 Thread Ansuel Smith
Add interrupt support for 9860 tsens driver used to set thermal trip point for the system. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 196 +++--- drivers/thermal/qcom/tsens.h | 1 + 2 files changed, 183 insertions(+), 14 deletions(-) diff

[PATCH v3 3/7] drivers: thermal: tsens: add ipq8064 support

2020-07-15 Thread Ansuel Smith
Ipq8064 SoCs based use the same 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 39c4462e38f6..2985a064a0d1 100644 --- a/drivers/thermal/qcom/tsens.c

[PATCH v3 2/7] drivers: thermal: tsens: try load regmap from parent for 8960

2020-07-15 Thread Ansuel Smith
Devices based on 8060 tsens driver (ipq8064) use the reg of the gcc driver. Try to load the regmap of the parent as they share the same regs. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a

[PATCH v3 6/7] drivers: thermal: tsens: add support for custom set_trip function

2020-07-15 Thread Ansuel Smith
8960 tsens driver have a custom implementation to set set_trip function. Permit the generic driver to use the custom function if provided. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 4 drivers/thermal/qcom/tsens.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a

[PATCH v3 4/7] dt-bindings: thermal: tsens: document ipq8064 bindings

2020-07-15 Thread Ansuel Smith
Document the use of bindings used for ipq8064 SoCs tsens. ipq8064 use the same gcc regs and is set as a child of the qcom gcc. Signed-off-by: Ansuel Smith --- .../bindings/thermal/qcom-tsens.yaml | 50 --- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a

[PATCH v3 1/7] ipq806x: gcc: add support for child probe

2020-07-15 Thread Ansuel Smith
Add support for child probing needed for tsens driver that share the seme regs of gcc for this platform. Signed-off-by: Ansuel Smith --- drivers/clk/qcom/gcc-ipq806x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc

[PATCH v3 7/7] drivers: thermal: tsens: add set_trip support for 8960

2020-07-15 Thread Ansuel Smith
Add custom set_trip function for 8960 needed to set trip point to the tsens driver for 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 78 +++ 1 file changed, 78 insertions(+) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers

[PATCH v4 6/7] drivers: thermal: tsens: add support for custom set_trip function

2020-07-15 Thread Ansuel Smith
8960 tsens driver have a custom implementation to set set_trip function. Permit the generic driver to use the custom function if provided. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 4 drivers/thermal/qcom/tsens.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a

[PATCH v4 7/7] drivers: thermal: tsens: add set_trip support for 8960

2020-07-15 Thread Ansuel Smith
Add custom set_trip function for 8960 needed to set trip point to the tsens driver for 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 78 +++ 1 file changed, 78 insertions(+) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers

[PATCH v4 5/7] drivers: thermal: tsens: add interrupt support for 9860 driver

2020-07-15 Thread Ansuel Smith
Add interrupt support for 9860 tsens driver used to set thermal trip point for the system. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 197 +++--- drivers/thermal/qcom/tsens.h | 3 + 2 files changed, 186 insertions(+), 14 deletions(-) diff

[PATCH v4 4/7] dt-bindings: thermal: tsens: document ipq8064 bindings

2020-07-15 Thread Ansuel Smith
Document the use of bindings used for ipq8064 SoCs tsens. ipq8064 use the same gcc regs and is set as a child of the qcom gcc. Signed-off-by: Ansuel Smith --- .../bindings/thermal/qcom-tsens.yaml | 50 --- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a

[PATCH v4 2/7] drivers: thermal: tsens: try load regmap from parent for 8960

2020-07-15 Thread Ansuel Smith
Devices based on 8060 tsens driver (ipq8064) use the reg of the gcc driver. Try to load the regmap of the parent as they share the same regs. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a

[PATCH v4 0/7] Add support for ipq8064 tsens

2020-07-15 Thread Ansuel Smith
reported by the bot v3: * Change driver to register as child instead of use phandle v2: * Fix dt-bindings problems Ansuel Smith (7): ipq806x: gcc: add support for child probe drivers: thermal: tsens: try load regmap from parent for 8960 drivers: thermal: tsens: add ipq8064 support dt

[PATCH v4 1/7] ipq806x: gcc: add support for child probe

2020-07-15 Thread Ansuel Smith
Add support for child probing needed for tsens driver that share the seme regs of gcc for this platform. Signed-off-by: Ansuel Smith --- drivers/clk/qcom/gcc-ipq806x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc

[PATCH v4 3/7] drivers: thermal: tsens: add ipq8064 support

2020-07-15 Thread Ansuel Smith
Ipq8064 SoCs based use the same 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 39c4462e38f6..23f63dfbf13d 100644 --- a/drivers/thermal/qcom/tsens.c

[PATCH v2 3/6] dt-bindings: thermal: tsens: document ipq8064 bindings

2020-07-10 Thread Ansuel Smith
Document the use of regmap phandle for ipq8064 SoCs Signed-off-by: Ansuel Smith --- .../bindings/thermal/qcom-tsens.yaml | 53 --- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation

[PATCH v2 1/6] drivers: thermal: tsens: load regmap from phandle for 8960

2020-07-10 Thread Ansuel Smith
Devices based on 8060 tsens driver (ipq8064) use the reg of the gcc driver. Permit to load the regmap from a syscon phandle instead of fail as the reg are already used by another driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 9 +++-- 1 file changed, 7

[PATCH v2 5/6] drivers: thermal: tsens: add support for custom set_trip function

2020-07-10 Thread Ansuel Smith
8960 tsens driver have a custom implementation to set set_trip function. Permit the generic driver to use the custom function if provided. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 4 drivers/thermal/qcom/tsens.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a

[PATCH v2 2/6] drivers: thermal: tsens: add ipq8064 support

2020-07-10 Thread Ansuel Smith
Ipq8064 SoCs based use the same 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 39c4462e38f6..2985a064a0d1 100644 --- a/drivers/thermal/qcom/tsens.c

[PATCH v2 6/6] drivers: thermal: tsens: add set_trip support for 8960

2020-07-10 Thread Ansuel Smith
Add custom set_trip function for 8960 needed to set trip point to the tsens driver for 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 78 +++ 1 file changed, 78 insertions(+) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers

[PATCH v2 0/6] Add support for ipq8064 tsens

2020-07-10 Thread Ansuel Smith
Ansuel Smith (6): drivers: thermal: tsens: load regmap from phandle for 8960 drivers: thermal: tsens: add ipq8064 support dt-bindings: thermal: tsens: document ipq8064 bindings drivers: thermal: tsens: add interrupt support for 9860 driver drivers: thermal: tsens: add support for custom

[PATCH v2 4/6] drivers: thermal: tsens: add interrupt support for 9860 driver

2020-07-10 Thread Ansuel Smith
Add interrupt support for 9860 tsens driver used to set thermal trip point for the system. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 196 +++--- drivers/thermal/qcom/tsens.h | 1 + 2 files changed, 183 insertions(+), 14 deletions(-) diff

[PATCH v9 2/2] devicetree: bindings: phy: Document ipq806x dwc3 qcom phy

2020-07-16 Thread Ansuel Smith
Document dwc3 qcom phy hs and ss phy bindings needed to correctly inizialize and use usb on ipq806x SoC. Signed-off-by: Ansuel Smith Reviewed-by: Rob Herring --- v7: * Drop useless AllOf v6: * Add maximum value v5: * Fix dt_binding_check error v4: * Add qcom to specific bindings v3: * Use

[PATCH v9 1/2] phy: qualcomm: add qcom ipq806x dwc usb phy driver

2020-07-16 Thread Ansuel Smith
This has lost in the original push for the dwc3 qcom driver. This is needed for ipq806x SoC as without this the usb ports doesn't work at all. Signed-off-by: Andy Gross Signed-off-by: Ansuel Smith Tested-by: Jonathan McDowell --- v9: * Use device_property_read_u32 and skip compatible che

[PATCH v10 1/2] phy: qualcomm: add qcom ipq806x dwc usb phy driver

2020-07-17 Thread Ansuel Smith
This has lost in the original push for the dwc3 qcom driver. This is needed for ipq806x SoC as without this the usb ports doesn't work at all. Signed-off-by: Andy Gross Signed-off-by: Ansuel Smith Tested-by: Jonathan McDowell --- v10: * Use of_device_get_match_data and remove useless mat

[PATCH v10 2/2] devicetree: bindings: phy: Document ipq806x dwc3 qcom phy

2020-07-17 Thread Ansuel Smith
Document dwc3 qcom phy hs and ss phy bindings needed to correctly inizialize and use usb on ipq806x SoC. Signed-off-by: Ansuel Smith Reviewed-by: Rob Herring --- v7: * Drop useless AllOf v6: * Add maximum value v5: * Fix dt_binding_check error v4: * Add qcom to specific bindings v3: * Use

[PATCH v3 1/4] mtd: Add nvmem support for mtd nvmem-providers

2020-09-20 Thread Ansuel Smith
Introduce 2 new bindings for the mtd structure. Mtd partitions can be set as 'nvmem-provider' and any subpartition defined with the tag 'nvmem-cell' are skipped by the 'fixed-partitions' parser and registred as a nvmem cell by the nvmem api. Signed-off-by: Ansuel Smi

[PATCH v3 2/4] dt-bindings: mtd: partition: Document use of nvmem-provider

2020-09-20 Thread Ansuel Smith
#x27;nvmem-cell' tag. The subpartition must have the 'nvmem-provider' tag or the subpartition will not register the cell to the nvmem api. Signed-off-by: Ansuel Smith --- .../devicetree/bindings/mtd/partition.txt | 59 +++ 1 file changed, 59 insertions(

[PATCH v3 0/4] Actually implement nvmem support for mtd

2020-09-20 Thread Ansuel Smith
, since this would remove many patch used to get mac-address and other nvmem data. [1] https://lore.kernel.org/patchwork/patch/765435/ Changes: v3: * Fix const discard warning in of_net.c * Add some info about overflow/underflow of mac-increment * Limit mac-increment-bytes to the last 3 bytes v2: * F

[PATCH v3 3/4] of_net: add mac-address-increment support

2020-09-20 Thread Ansuel Smith
partition and increments it by one for the wifi. mac-address-increment-byte bindings is used to tell what byte of the mac-address has to be increased (if not defined the last byte is increased) and mac-address-increment tells how much the byte decided early has to be increased. Signed-off-by: Ansuel

[PATCH v3 4/4] dt-bindings: net: Document use of mac-address-increment

2020-09-20 Thread Ansuel Smith
. - mac-address-increment-byte is used to tell what byte must be incremented (if not set the last byte is increased) - mac-address-increment is used to tell how much to increment of the extracted mac-address decided byte. Signed-off-by: Ansuel Smith --- .../bindings/net/ethernet

[PATCH] ath10k: Introduce download cal from mtd

2020-09-18 Thread Ansuel Smith
everything else. Tested-on: QCA9984 hw1.0 PCI 10.4 Signed-off-by: Ansuel Smith --- drivers/net/wireless/ath/ath10k/core.c | 74 ++ drivers/net/wireless/ath/ath10k/core.h | 3 ++ 2 files changed, 77 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b

[PATCH 2/2] dt: bindings: ath10k: Document qcom,ath10k-pre-calibration-data-mtd

2020-09-18 Thread Ansuel Smith
Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to define from where the driver will load the pre-cal data in the defined mtd partition. Signed-off-by: Ansuel Smith --- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 12 +--- 1 file changed, 9 insertions(+), 3

[PATCH v2 1/2] ath10k: Introduce download cal from mtd

2020-09-18 Thread Ansuel Smith
everything else. Tested-on: QCA9984 hw1.0 PCI 10.4 Signed-off-by: Ansuel Smith --- v2: * Fix missing condition for cal_mode in transposing source to ath repo drivers/net/wireless/ath/ath10k/core.c | 80 +- drivers/net/wireless/ath/ath10k/core.h | 3 + 2 files changed, 81

[PATCH v2 2/2] dt: bindings: ath10k: Document qcom,ath10k-pre-calibration-data-mtd

2020-09-18 Thread Ansuel Smith
Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to define from where the driver will load the pre-cal data in the defined mtd partition. Signed-off-by: Ansuel Smith --- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 12 +--- 1 file changed, 9 insertions(+), 3

[PATCH 2/4] dt-bindings: mtd: partition: Document use of nvmem-provider

2020-09-19 Thread Ansuel Smith
#x27;nvmem-cell' tag. The subpartition must have the 'nvmem-provider' tag or the subpartition will not register the cell to the nvmem api. Signed-off-by: Ansuel Smith --- .../devicetree/bindings/mtd/partition.txt | 59 +++ 1 file changed, 59 insertions(

[PATCH 1/4] mtd: Add nvmem support for mtd nvmem-providers

2020-09-19 Thread Ansuel Smith
Introduce 2 new bindings for the mtd structure. Mtd partitions can be set as 'nvmem-provider' and any subpartition defined with the tag 'nvmem-cell' are skipped by the 'fixed-partitions' parser and registred as a nvmem cell by the nvmem api. Signed-off-by: Ansuel Smi

[PATCH 0/4] Actually implement nvmem support for mtd

2020-09-19 Thread Ansuel Smith
, since this would remove many patch used to get mac-address and other nvmem data. [1] https://lore.kernel.org/patchwork/patch/765435/ Ansuel Smith (4): mtd: Add nvmem support for mtd nvmem-providers dt-bindings: mtd: partition: Document use of nvmem-provider of_net: add mac-address-incre

[PATCH 3/4] of_net: add mac-address-increment support

2020-09-19 Thread Ansuel Smith
partition and increments it by one for the wifi. mac-address-increment-byte bindings is used to tell what byte of the mac-address has to be increased (if not defined the last byte is increased) and mac-address-increment tells how much the byte decided early has to be increased. Signed-off-by: Ansuel

[PATCH 4/4] dt-bindings: net: Document use of mac-address-increment

2020-09-19 Thread Ansuel Smith
. - mac-address-increment-byte is used to tell what byte must be incremented (if not set the last byte is increased) - mac-address-increment is used to tell how much to increment of the extracted mac-address decided byte. Signed-off-by: Ansuel Smith --- .../bindings/net/ethernet

[PATCH v2 0/4] Actually implement nvmem support for mtd

2020-09-19 Thread Ansuel Smith
, since this would remove many patch used to get mac-address and other nvmem data. [1] https://lore.kernel.org/patchwork/patch/765435/ Changes: v2: * Fix compile error (missing mtd_node in mtdcore) Ansuel Smith (4): mtd: Add nvmem support for mtd nvmem-providers dt-bindings: mtd: partiti

[PATCH v2 3/4] of_net: add mac-address-increment support

2020-09-19 Thread Ansuel Smith
partition and increments it by one for the wifi. mac-address-increment-byte bindings is used to tell what byte of the mac-address has to be increased (if not defined the last byte is increased) and mac-address-increment tells how much the byte decided early has to be increased. Signed-off-by: Ansuel

[PATCH v2 4/4] dt-bindings: net: Document use of mac-address-increment

2020-09-19 Thread Ansuel Smith
. - mac-address-increment-byte is used to tell what byte must be incremented (if not set the last byte is increased) - mac-address-increment is used to tell how much to increment of the extracted mac-address decided byte. Signed-off-by: Ansuel Smith --- .../bindings/net/ethernet

[PATCH v2 2/4] dt-bindings: mtd: partition: Document use of nvmem-provider

2020-09-19 Thread Ansuel Smith
#x27;nvmem-cell' tag. The subpartition must have the 'nvmem-provider' tag or the subpartition will not register the cell to the nvmem api. Signed-off-by: Ansuel Smith --- .../devicetree/bindings/mtd/partition.txt | 59 +++ 1 file changed, 59 insertions(

[PATCH v2 1/4] mtd: Add nvmem support for mtd nvmem-providers

2020-09-19 Thread Ansuel Smith
Introduce 2 new bindings for the mtd structure. Mtd partitions can be set as 'nvmem-provider' and any subpartition defined with the tag 'nvmem-cell' are skipped by the 'fixed-partitions' parser and registred as a nvmem cell by the nvmem api. Signed-off-by: Ansuel Smi

[RESEND PATCH v7 1/2] phy: qualcomm: add qcom ipq806x dwc usb phy driver

2020-06-15 Thread Ansuel Smith
This has lost in the original push for the dwc3 qcom driver. This is needed for ipq806x SoC as without this the usb ports doesn't work at all. Signed-off-by: Andy Gross Signed-off-by: Ansuel Smith Tested-by: Jonathan McDowell --- v7: * Add TestedBy tag v6: * Use GENMASK instead of hex val

[RESEND PATCH v7 2/2] devicetree: bindings: phy: Document ipq806x dwc3 qcom phy

2020-06-15 Thread Ansuel Smith
Document dwc3 qcom phy hs and ss phy bindings needed to correctly inizialize and use usb on ipq806x SoC. Signed-off-by: Ansuel Smith --- v7: * Drop useless AllOf v6: * Add maximum value v5: * Fix dt_binding_check error v4: * Add qcom to specific bindings v3: * Use explicit reg instead of regmap

[PATCH v7 04/12] PCI: qcom: Add missing reset for ipq806x

2020-06-15 Thread Ansuel Smith
Add missing ext reset used by ipq8064 SoC in PCIe qcom driver. Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signed-off-by: Sham Muthayyan Signed-off-by: Ansuel Smith Cc: sta...@vger.kernel.org # v4.5+ Reviewed-by: Rob Herring Reviewed-by: Philipp Zabel --

[PATCH v7 06/12] PCI: qcom: Use bulk clk api and assert on error

2020-06-15 Thread Ansuel Smith
Rework 2.1.0 revision to use bulk clk api and fix missing assert on reset_control_deassert error. Signed-off-by: Ansuel Smith Reviewed-by: Rob Herring --- drivers/pci/controller/dwc/pcie-qcom.c | 131 + 1 file changed, 46 insertions(+), 85 deletions(-) diff --git a

[PATCH v7 00/12] Multiple fixes in PCIe qcom driver

2020-06-15 Thread Ansuel Smith
x27;t find a realy reason why this was suggested) * Introduce a new variant for different revision of ipq8064 Abhishek Sahu (1): PCI: qcom: Change duplicate PCI reset to phy reset Ansuel Smith (10): PCI: qcom: Add missing ipq806x clocks in PCIe driver dt-bindings: PCI: qcom: Add missing

[PATCH v7 02/12] dt-bindings: PCI: qcom: Add missing clks

2020-06-15 Thread Ansuel Smith
Document missing clks used in ipq8064 SoC. Signed-off-by: Ansuel Smith Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/qcom,pcie.txt | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.txt b/Documentation

[PATCH v7 05/12] dt-bindings: PCI: qcom: Add ext reset

2020-06-15 Thread Ansuel Smith
Document ext reset used in ipq8064 SoC by qcom PCIe driver. Signed-off-by: Ansuel Smith Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/qcom,pcie.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.txt b

[PATCH v7 01/12] PCI: qcom: Add missing ipq806x clocks in PCIe driver

2020-06-15 Thread Ansuel Smith
Aux and Ref clk are missing in PCIe qcom driver. Add support for this optional clks for ipq8064/apq8064 SoC. Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signed-off-by: Sham Muthayyan Signed-off-by: Ansuel Smith Reviewed-by: Rob Herring --- drivers/pci/cont

[PATCH v7 11/12] PCI: qcom: Support pci speed set for ipq806x

2020-06-15 Thread Ansuel Smith
: Ansuel Smith Reviewed-by: Rob Herring --- drivers/pci/controller/dwc/pcie-qcom.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c index 259b627bf890..c40921589122 100644 --- a/drivers/pci/controller

[PATCH v7 10/12] dt-bindings: PCI: qcom: Add ipq8064 rev 2 variant

2020-06-15 Thread Ansuel Smith
Document qcom,pcie-ipq8064-v2 needed to use different phy_tx0_term_offset. In ipq8064 phy_tx0_term_offset is 7. In ipq8064 v2 other SoC it's set to 0 by default. Signed-off-by: Ansuel Smith Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/qcom,pcie.txt | 1 + 1 file chang

[PATCH v7 08/12] PCI: qcom: Add support for tx term offset for rev 2.1.0

2020-06-15 Thread Ansuel Smith
Add tx term offset support to pcie qcom driver need in some revision of the ipq806x SoC. Ipq8064 needs tx term offset set to 7. Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signed-off-by: Sham Muthayyan Signed-off-by: Ansuel Smith Cc: sta...@vger.kernel.

[PATCH v7 07/12] PCI: qcom: Define some PARF params needed for ipq8064 SoC

2020-06-15 Thread Ansuel Smith
Set some specific value for Tx De-Emphasis, Tx Swing and Rx equalization needed on some ipq8064 based device (Netgear R7800 for example). Without this the system locks on kernel load. Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signed-off-by: Ansuel Smit

[PATCH v7 09/12] PCI: qcom: Add ipq8064 rev2 variant

2020-06-15 Thread Ansuel Smith
Ipq8064-v2 have tx term offset set to 0. Introduce this variant to permit different offset based on the revision. Signed-off-by: Ansuel Smith --- drivers/pci/controller/dwc/pcie-qcom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c

[PATCH v7 12/12] PCI: qcom: Replace define with standard value

2020-06-15 Thread Ansuel Smith
Lots of define are actually already defined in pci_regs.h, directly use the standard defines. Signed-off-by: Ansuel Smith --- drivers/pci/controller/dwc/pcie-qcom.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b

<    1   2   3   4   >