[PATCH] DTS: Linksys Board: Add default trigger for sata led

2017-02-17 Thread Ansuel Smith
In others board we have the sata led set to funcion with the sata led trigger by default. This patch makes the same for these board that have sata led but disabled by not associating it to any trigger Signed-off-by: Ansuel Smith <ansuels...@gmail.com> --- arch/arm/boot/dts/armada-385-l

[PATCH] ARM: DTS armada: Add default trigger for sata led

2017-02-28 Thread Ansuel Smith
In others board we have the sata led set to funcion with the sata led trigger by default. This patch makes the same for these board that have sata led but get disabled by not associating it to any trigger. Signed-off-by: Ansuel Smith <ansuels...@gmail.com> --- arch/arm/boot/dts/arma

[PATCH] ARM: DTS armada: Add support for 2 more mvebu model

2017-03-03 Thread Ansuel Smith
This patch add support for 2 Linksys router model (shelby and rango). With this we now support all the mvebu board on the market. Signed-off-by: Imre Kaloz <ka...@openwrt.org> Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Signed-off-by: Ansuel Smith <ansuels...@gmail

[PATCH v9 0/8] Add support for ipq8064 tsens

2021-01-22 Thread Ansuel Smith
phandle v2: * Fix dt-bindings problems Ansuel Smith (8): drivers: thermal: tsens: Add VER_0 tsens version drivers: thermal: tsens: Don't hardcode sensor slope drivers: thermal: tsens: Convert msm8960 to reg_field drivers: thermal: tsens: Use init_common for msm8960 drivers: thermal

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

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

[PATCH v9 5/8] drivers: thermal: tsens: Fix bug in sensor enable for msm8960

2021-01-22 Thread Ansuel Smith
It's present a hardware bug in tsens VER_0 where if sensors upper to id 6 are enabled selectively, underfined results are expected. Fix this by enabling all the remaining sensor in one step. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 19 +-- 1 file

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

2021-01-22 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 | 56 --- 1 file changed, 48 insertions(+), 8 deletions(-) diff

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

2021-01-22 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 dd9b41157894..586b90962605

[PATCH v9 6/8] drivers: thermal: tsens: Use get_temp_common for msm8960

2021-01-22 Thread Ansuel Smith
Rework calibrate function to use common function. Derive the offset from a missing hardcoded slope table and the data from the nvmem calib efuses. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 56 +-- 1 file changed, 15 insertions(+), 41

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

2021-01-22 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 | 80 ++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom

[PATCH v9 2/8] drivers: thermal: tsens: Don't hardcode sensor slope

2021-01-22 Thread Ansuel Smith
Function compute_intercept_slope hardcode the sensor slope to SLOPE_DEFAULT. Change this and use the default value only if a slope is not defined. This is needed for tsens VER_0 that has a hardcoded slope table. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 ++- 1 file

[PATCH v9 1/8] drivers: thermal: tsens: Add VER_0 tsens version

2021-01-22 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 | 171 +-- drivers/thermal/qcom/tsens.h | 4 +- 2 files

[PATCH v8 2/8] drivers: thermal: tsens: Don't hardcode sensor slope

2021-01-21 Thread Ansuel Smith
Function compute_intercept_slope hardcode the sensor slope to SLOPE_DEFAULT. Change this and use the default value only if a slope is not defined. This is needed for tsens VER_0 that has a hardcoded slope table. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 ++- 1 file

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

2021-01-21 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 | 75 --- 1 file changed, 65 insertions(+), 10 deletions(-) diff

[PATCH v8 0/8] Add support for ipq8064 tsens

2021-01-21 Thread Ansuel Smith
Ansuel Smith (8): drivers: thermal: tsens: Add VER_0 tsens version drivers: thermal: tsens: Don't hardcode sensor slope drivers: thermal: tsens: Convert msm8960 to reg_field drivers: thermal: tsens: Use init_common for msm8960 drivers: thermal: tsens: Fix bug in sensor enable for msm8960

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

2021-01-21 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 dd9b41157894..586b90962605

[PATCH v8 1/8] drivers: thermal: tsens: Add VER_0 tsens version

2021-01-21 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 | 171 +-- drivers/thermal/qcom/tsens.h | 4 +- 2 files

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

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

[PATCH v8 6/8] drivers: thermal: tsens: Use get_temp_common for msm8960

2021-01-21 Thread Ansuel Smith
Rework calibrate function to use common function. Derive the offset from a missing hardcoded slope table and the data from the nvmem calib efuses. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 56 +-- 1 file changed, 15 insertions(+), 41

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

2021-01-21 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 | 80 ++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom

[PATCH v8 5/8] drivers: thermal: tsens: Fix bug in sensor enable for msm8960

2021-01-21 Thread Ansuel Smith
It's present a hardware bug in tsens VER_0 where if sensors upper to id 6 are enabled selectively, underfined results are expected. Fix this by enabling all the remaining sensor in one step. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 19 +-- 1 file

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

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

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

2020-08-05 Thread Ansuel Smith
the cache scaling logic but i still don't know what is better. Have a very similar driver or add a dedicated driver only for the cache using the cpufreq notifier and do the scale on every freq transition. Thanks to everyone who will review or answer these questions. Ansuel Smith (2): cpufreq

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

2020-08-05 Thread Ansuel Smith
. 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 + drivers

[PATCH v2 1/2] devfreq: qcom: Add L2 Krait Cache devfreq scaling driver

2020-09-29 Thread Ansuel Smith
. 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 --- v2: * Change cpu-freq to qcom,cpu-freq * Skip freq change if prev is the same target freq

[PATCH v2 2/2] dt-bindings: arm: Document L2 Krait CPU Cache scaling driver

2020-09-29 Thread Ansuel Smith
Document dedicated L2 Krait CPU Cache devfreq scaling driver. Signed-off-by: Ansuel Smith --- v2: * Fix problems reported by Rob * Update example to use opp v2 * Drop unused voltage-tollerance * Better describe scaling thresholds * Add bindings to describe Krait L2-Cache .../bindings/arm/qcom

[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

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

2020-09-19 Thread Ansuel Smith
' 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(+) diff --git a/Documentation

[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 Smith --- drivers/mtd/mtdcore.c

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

2020-09-19 Thread Ansuel Smith
d 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-increment support dt-bindings: net: Documen

[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
d 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: partition: Document use of nvmem-provider of_

[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
' 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(+) diff --git a/Documentation

[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 Smith --- drivers/mtd/mtdcore.c

[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 Smith --- drivers/mtd/mtdcore.c

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

2020-09-20 Thread Ansuel Smith
' 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(+) diff --git a/Documentation

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

2020-09-20 Thread Ansuel Smith
d 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: * Fix compile error (missing mtd_node in mt

[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] 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

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

2020-11-29 Thread Ansuel Smith
On Sun, Nov 29, 2020 at 06:28:01PM +0530, Amit Kucheria wrote: > On Thu, Nov 26, 2020 at 2:16 AM Ansuel Smith wrote: > > > > > }; > > > > @@ -441,6 +442,10 @@ enum regfield_ids { > > > > CRIT_THRESH_14, > > > > CRIT_THRE

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

2020-11-25 Thread Ansuel Smith
On Mon, Nov 23, 2020 at 01:35:22AM +0530, Amit Kucheria wrote: > Hi Ansuel, > > See comments inline. > > On Fri, Aug 14, 2020 at 7:12 PM Ansuel Smith wrote: > > > > VER_0 is used to describe device based on tsens version before v0.1. > > These device are dev

[PATCH v7 2/8] drivers: thermal: tsens: Don't hardcode sensor slope

2020-11-25 Thread Ansuel Smith
Function compute_intercept_slope hardcode the sensor slope to SLOPE_DEFAULT. Change this and use the default value only if a slope is not defined. This is needed for tsens VER_0 that has a hardcoded slope table. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 ++- 1 file

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

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

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

2020-11-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 | 103 ++ 1 file changed, 79 insertions(+), 24 deletions(-) diff

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

2020-11-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 80551e17cdbe..cd89492385c7

[PATCH v7 1/8] drivers: thermal: tsens: Add VER_0 tsens version

2020-11-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 | 166 +-- drivers/thermal/qcom/tsens.h | 8 +- 2 files

[PATCH v7 0/8] Add support for ipq8064 tsens

2020-11-25 Thread Ansuel Smith
bad get_temp function * 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 (8): drivers: thermal: tsens: Add VER_0 tsens version drivers: thermal

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

2020-11-25 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 | 75 ++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom

[PATCH v7 5/8] drivers: thermal: tsens: Fix bug in sensor enable for msm8960

2020-11-25 Thread Ansuel Smith
It's present a hardware bug in tsens VER_0 where if sensors upper to id 6 are enabled selectively, underfined results are expected. Fix this by enabling all the remaining sensor in one step. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 19 +-- 1 file

[PATCH v7 6/8] driver: thermal: tsens: Use get_temp_common for msm8960

2020-11-25 Thread Ansuel Smith
Rework calibrate function to use common function. Derive the offset from a missing hardcoded slope table and the data from the nvmem calib efuses. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 56 +-- 1 file changed, 15 insertions(+), 41

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

2020-08-21 Thread Ansuel Smith
* 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 Cache scaling

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

2020-08-21 Thread Ansuel Smith
. 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 + drivers

[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

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

2020-08-07 Thread Ansuel Smith
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 Cache scaling .../bindings/cpufreq/krait-cache-scale.yaml | 92

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

2020-08-07 Thread Ansuel Smith
. 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 + drivers

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

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

[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
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 drivers

[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

[PATCH] ath10k: Introduce download cal from mtd

2020-09-18 Thread Ansuel Smith
to 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
to 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/2] dt-bindings: devfreq: Document L2 Krait CPU Cache devfreq driver

2020-09-27 Thread Ansuel Smith
Document dedicated L2 Krait CPU Cache devfreq scaling driver. Signed-off-by: Ansuel Smith --- .../bindings/devfreq/krait-cache-devfreq.yaml | 77 +++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/krait-cache-devfreq.yaml diff

[PATCH 1/2] devfreq: qcom: Add L2 Krait Cache devfreq scaling driver

2020-09-27 Thread Ansuel Smith
. 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/devfreq/Kconfig | 10 + drivers/devfreq/Makefile | 1

[PATCH 1/2] ath10k: Try to get mac-address from dts

2020-09-27 Thread Ansuel Smith
-address defined in the dts have priority than any other address found. Tested-on: QCA9984 hw1.0 PCI 10.4 Signed-off-by: Ansuel Smith --- drivers/net/wireless/ath/ath10k/core.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net

[PATCH 2/2] ath10k: Try to download pre-cal using nvmem api

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

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

2020-09-27 Thread Ansuel Smith
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 index 3a

[PATCH v5 05/11] dt-bindings: PCI: qcom: Add ext reset

2020-06-02 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 v5 11/11] PCI: qcom: Add Force GEN1 support

2020-06-02 Thread Ansuel Smith
Signed-off-by: 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..0ce15d53c46e 100644 --- a/drivers

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

2020-06-02 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

[PATCH v5 00/11] Multiple fixes in PCIe qcom driver

2020-06-02 Thread Ansuel Smith
revision of ipq8064 Abhishek Sahu (1): PCI: qcom: Change duplicate PCI reset to phy reset Ansuel Smith (9): 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

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

2020-06-02 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 changed, 1

[PATCH v5 02/11] dt-bindings: PCI: qcom: Add missing clks

2020-06-02 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 v5 08/11] PCI: qcom: Add support for tx term offset for rev 2.1.0

2020-06-02 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 v5 09/11] PCI: qcom: Add ipq8064 rev2 variant

2020-06-02 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 v5 07/11] PCI: qcom: Define some PARF params needed for ipq8064 SoC

2020-06-02 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 v5 03/11] PCI: qcom: Change duplicate PCI reset to phy reset

2020-06-02 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 v5 01/11] PCI: qcom: Add missing ipq806x clocks in PCIe driver

2020-06-02 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 v5 04/11] PCI: qcom: Add missing reset for ipq806x

2020-06-02 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 v5 2/2] devicetree: bindings: phy: Document ipq806x dwc3 qcom phy

2020-05-01 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 --- v5: * Fix dt_binding_check error v4: * Add qcom to specific bindings v3: * Use explicit reg instead of regmap .../bindings/phy/qcom,ipq806x-usb-phy-hs.yaml

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

2020-05-01 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 --- v4: * Add qcom to specific bindings v3: * Use reg instead of regmap phandle v2: * Renamed

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

2020-04-29 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 --- v4: * Add qcom to specific bindings v3: * Use reg instead of regmap phandle v2: * Renamed

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

2020-04-29 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 --- v4: * Add qcom to specific bindings v3: * Use explicit reg instead of regmap .../bindings/phy/qcom,ipq806x-usb-phy-hs.yaml | 58 +++ .../bindings

[PATCH v3 00/11] Multiple fixes in PCIe qcom driver

2020-04-30 Thread Ansuel Smith
custom definition * Drop MRRS to 256B (Can'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 (8): PCI: qcom: add missing ipq806x clocks in PCIe driver

[PATCH v3 01/11] PCI: qcom: add missing ipq806x clocks in PCIe driver

2020-04-30 Thread Ansuel Smith
Aux and Ref clk are missing in PCIe qcom driver. Add support in the driver to fix PCIe initialization in ipq806x. 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+ --- drivers/pci

[PATCH v3 02/11] devicetree: bindings: pci: add missing clks to qcom,pcie

2020-04-30 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 v3 03/11] PCI: qcom: change duplicate PCI reset to phy reset

2020-04-30 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 --- drivers/pci/controller/dwc/pcie-qcom.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git

[PATCH v3 10/11] devicetree: bindings: pci: add ipq8064 rev 2 variant to qcom,pcie

2020-04-30 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 --- Documentation/devicetree/bindings/pci/qcom,pcie.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 04/11] PCI: qcom: add missing reset for ipq806x

2020-04-30 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+ --- drivers/pci/controller/dwc/pcie-qcom.c | 12 1 file

  1   2   3   4   >