[PATCH] arm64: dts: qcom: msm8916: Shrink mdp address length for msm8916

2017-10-06 Thread Craig Tatlor
This shrinks the address size down to 89000 from its previous 9 which was mistakenly pulled from downstream. Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/bo

[PATCH v5 3/4] dt-bindings: power: supply: qcom_bms: Add bindings

2018-06-07 Thread Craig Tatlor
Add bindings for the Qualcomm Battery Monitoring system. Signed-off-by: Craig Tatlor --- * Changes from v4: Uses proper units and expands some definitions, along with changing vadc@ to adc@. .../bindings/power/supply/qcom_bms.txt| 91 +++ 1 file changed, 91

[PATCH v5 2/4] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-06-07 Thread Craig Tatlor
-by: Craig Tatlor --- * Changes from v4: Cleaned up percentage interpolation function, uses new fixp interpolation helper, added some more error cases, uses devm_power_supply_register(), uses a DIV_ROUND_CLOSEST for division and uses micro(volts / amp hours) instead of milli (volts

[PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-07 Thread Craig Tatlor
Adds a function to interpolate against two points, this is carried arount as a helper function by tons of drivers. Signed-off-by: Craig Tatlor --- include/linux/fixp-arith.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/fixp-arith.h b/include/linux/fixp

[PATCH v5 4/4] MAINTAINERS: Add entry for the Qualcomm BMS

2018-06-07 Thread Craig Tatlor
Signed-off-by: Craig Tatlor --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9c125f705f78..be485caf9313 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11646,6 +11646,12 @@ W: http://wireless.kernel.org/en/users/Drivers/ath9k S

[PATCH v6 4/4] MAINTAINERS: Add entry for the Qualcomm BMS

2018-06-13 Thread Craig Tatlor
Signed-off-by: Craig Tatlor --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9c125f705f78..be485caf9313 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11646,6 +11646,12 @@ W: http://wireless.kernel.org/en/users/Drivers/ath9k S

Re: [PATCH v5 3/4] dt-bindings: power: supply: qcom_bms: Add bindings

2018-06-13 Thread Craig Tatlor
On Mon, Jun 11, 2018 at 12:15:15PM -0600, Rob Herring wrote: > On Thu, Jun 07, 2018 at 07:12:51PM +0100, Craig Tatlor wrote: > > Add bindings for the Qualcomm Battery Monitoring system. > > > > Signed-off-by: Craig Tatlor > > --- > > * Changes from v4: > &g

[PATCH v6 1/4] fixp-arith: add a linear interpolation function

2018-06-13 Thread Craig Tatlor
Adds a function to interpolate against two points, this is carried arount as a helper function by tons of drivers. Signed-off-by: Craig Tatlor --- include/linux/fixp-arith.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/fixp-arith.h b/include/linux/fixp

[PATCH v6 2/4] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-06-13 Thread Craig Tatlor
-by: Craig Tatlor --- * Changes from v5: Uses select for REGMAP_SPMI. * Changes from v4: Cleaned up percentage interpolation function, uses new fixp interpolation helper, added some more error cases, uses devm_power_supply_register(), uses a DIV_ROUND_CLOSEST for division and uses

[PATCH v6 3/4] dt-bindings: power: supply: qcom_bms: Add bindings

2018-06-13 Thread Craig Tatlor
Add bindings for the Qualcomm Battery Monitoring system. Signed-off-by: Craig Tatlor --- * Changes from v5: Mentions which values are 8 bit. * Changes from v4: Uses proper units and expands some definitions, along with changing vadc@ to adc@. .../bindings/power/supply/qcom_bms.txt

Re: [PATCH v5 2/4] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-06-13 Thread Craig Tatlor
On Thu, Jun 07, 2018 at 12:08:20PM -0700, Randy Dunlap wrote: > On 06/07/2018 11:12 AM, Craig Tatlor wrote: > > This patch adds a driver for the BMS (Battery Monitoring System) > > block of the PM8941 PMIC, it uses a lookup table defined in the > > device tree to generate a

Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-13 Thread Craig Tatlor
On Wed, Jun 13, 2018 at 01:12:45PM +0200, Linus Walleij wrote: > On Wed, Jun 13, 2018 at 1:06 PM, Linus Walleij > wrote: > > On Thu, Jun 7, 2018 at 8:12 PM, Craig Tatlor wrote: > > > >> Adds a function to interpolate against two points, > >> this is carried

[PATCH v7 4/4] MAINTAINERS: Add entry for the Qualcomm BMS

2018-06-14 Thread Craig Tatlor
Signed-off-by: Craig Tatlor --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9c125f705f78..be485caf9313 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11646,6 +11646,12 @@ W: http://wireless.kernel.org/en/users/Drivers/ath9k S

[PATCH v7 2/4] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-06-14 Thread Craig Tatlor
-by: Craig Tatlor Reviewed-by: Linus Walleij --- * Changes from v5: Uses select for REGMAP_SPMI

[PATCH v7 3/4] dt-bindings: power: supply: qcom_bms: Add bindings

2018-06-14 Thread Craig Tatlor
Add bindings for the Qualcomm Battery Monitoring system. Signed-off-by: Craig Tatlor Reviewed-by: Rob Herring --- * Changes from v6: s/celcius/celsius change uah to uAh. * Changes from v5

[PATCH v7 1/4] fixp-arith: add a linear interpolation function

2018-06-14 Thread Craig Tatlor
Adds a function to interpolate against two points, this is carried arount as a helper function by tons of drivers. Signed-off-by: Craig Tatlor Reviewed-by: Linus Walleij --- include/linux/fixp-arith.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/fixp

Re: [PATCH v10 13/14] cpufreq: Add module to register cpufreq on Krait CPUs

2018-06-19 Thread Craig Tatlor
The pvs refuse check is incorrect... With downstream it says it isn't blown and that it is 11, which also happens on upstream if I import it's efuse reading code from an older revision, or comment out the check. Also, I'm still getting my issue about clocks above 2,147,483,647hz however I think

Re: [PATCH v2 0/2] slimbus: Add QCOM SLIMBus NGD driver

2018-05-31 Thread Craig Tatlor
Tested on msm8974 with wcd9320 codec. Tested-by: Craig Tatlor On Fri, May 25, 2018 at 12:15:45PM +0100, Srinivas Kandagatla wrote: > This patchset adds support to basic version of Qualcomm NGD SLIMBus > controller driver found SoCs from B family. > > This controller is light-we

Re: [PATCH v4 1/3] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-04-30 Thread Craig Tatlor
Thanks for review, replies inline. On Thu, Apr 26, 2018 at 01:34:00PM +0200, Linus Walleij wrote: > On Sat, Apr 7, 2018 at 7:57 PM, Craig Tatlor <ctatlo...@gmail.com> wrote: > > Hi Craig! Thanks for your patch! > > > This patch adds a driver for the BMS (Battery Moni

[PATCH] drm/msm: Call msm_init_vram before binding the gpu

2018-02-03 Thread Craig Tatlor
vram.size is needed when binding a gpu without an iommu and is defined in msm_init_vram(), so run that before binding it. Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- drivers/gpu/drm/msm/msm_drv.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/d

[PATCH] arm/dts: Correct typo in touchscreen compatible string

2018-03-12 Thread Craig Tatlor
This was mistakenly pulled from the downstream driver Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dts b/ar

[PATCH] ARM: dts: msm8974: castor: Correct typo in touchscreen compatible string

2018-03-12 Thread Craig Tatlor
This was mistakenly pulled from the downstream tree. Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dts b/ar

[PATCH v2] ARM: dts: msm8974: castor: Fix typo and add startup delay in touchscreen node

2018-03-13 Thread Craig Tatlor
The compatible string was mistakenly pulled from the downstream tree and the startup delay property is needed to prevent io errors on initial page select. Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dts | 4 +++- 1 file chan

[PATCH v4 1/3] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-04-07 Thread Craig Tatlor
-by: Craig Tatlor <ctatlo...@gmail.com> --- drivers/power/supply/Kconfig| 9 + drivers/power/supply/Makefile | 1 + drivers/power/supply/qcom_bms.c | 500 3 files changed, 510 insertions(+) create mode 100644 drivers/power/supply/qcom_bms.c diff

[PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-07 Thread Craig Tatlor
Add bindings for the Qualcomm Battery Monitoring system. Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- .../bindings/power/supply/qcom_bms.txt| 93 +++ 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/qcom_b

[PATCH v4 3/3] MAINTAINERS: Add entry for the Qualcomm BMS

2018-04-07 Thread Craig Tatlor
Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0c3ad62c638c..aaf54b665f86 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11605,6 +11605,12 @@ W: http://wireless.kernel.org/en

Re: [PATCH v3 1/3] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-04-07 Thread Craig Tatlor
On Sat, Apr 07, 2018 at 09:37:21AM -0700, Randy Dunlap wrote: > On 04/07/2018 06:59 AM, Craig Tatlor wrote: > > This patch adds a driver for the BMS (Battery Monitoring System) > > block of the PM8941 PMIC, it uses a lookup table defined in the > > device tree to generate a

Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-13 Thread Craig Tatlor
On 13 April 2018 17:35:27 BST, Rob Herring <r...@kernel.org> wrote: >On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: >> Add bindings for the Qualcomm Battery Monitoring system. >> >> Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> >

Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-13 Thread Craig Tatlor
On 13 April 2018 18:08:54 BST, Craig Tatlor <ctatlo...@gmail.com> wrote: > > >On 13 April 2018 17:35:27 BST, Rob Herring <r...@kernel.org> wrote: >>On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: >>> Add bindings for the Qualcomm Battery Mo

[PATCH 3/3] MAINTAINERS: Add entry for the Qualcomm BMS

2018-04-07 Thread Craig Tatlor
Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0c3ad62c638c..b7ffa9268384 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11605,6 +11605,12 @@ W: http://wireless.kernel.org/en

[PATCH v3 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-07 Thread Craig Tatlor
Add bindings for the Qualcomm Battery Monitoring system. Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- .../bindings/power/supply/qcom_bms.txt| 93 +++ 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/qcom_b

[PATCH v3 3/3] MAINTAINERS: Add entry for the Qualcomm BMS

2018-04-07 Thread Craig Tatlor
Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0c3ad62c638c..aaf54b665f86 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11605,6 +11605,12 @@ W: http://wireless.kernel.org/en

[PATCH v3 1/3] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-04-07 Thread Craig Tatlor
-by: Craig Tatlor <ctatlo...@gmail.com> --- drivers/power/supply/Kconfig| 9 + drivers/power/supply/Makefile | 1 + drivers/power/supply/qcom_bms.c | 500 3 files changed, 510 insertions(+) create mode 100644 drivers/power/supply/qcom_bms.c diff

[PATCH 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-07 Thread Craig Tatlor
Add bindings for the Qualcomm battery measurement system. Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- .../bindings/power/supply/qcom_bms.txt| 93 +++ 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/qcom_b

[PATCH 1/3] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-04-07 Thread Craig Tatlor
-by: Craig Tatlor <ctatlo...@gmail.com> --- drivers/power/supply/Kconfig| 9 + drivers/power/supply/Makefile | 1 + drivers/power/supply/qcom_bms.c | 500 3 files changed, 510 insertions(+) create mode 100644 drivers/power/supply/qcom_bms.c diff

[PATCH v2 1/3] power: supply: Add support for the Qualcomm Battery Monitoring System

2018-04-07 Thread Craig Tatlor
-by: Craig Tatlor <ctatlo...@gmail.com> --- drivers/power/supply/Kconfig| 9 + drivers/power/supply/Makefile | 1 + drivers/power/supply/qcom_bms.c | 500 3 files changed, 510 insertions(+) create mode 100644 drivers/power/supply/qcom_bms.c diff

Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-15 Thread Craig Tatlor
On Fri, Apr 13, 2018 at 11:35:27AM -0500, Rob Herring wrote: > On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: > > Add bindings for the Qualcomm Battery Monitoring system. > > > > Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> > > --- > >

[PATCH] ARM: dts: qcom: pm8941: Add vadc nodes needed to estimate an ocv

2018-03-30 Thread Craig Tatlor
vbat_sns is needed to estimate a fairly accurate on chip voltage and bat_therm is needed to produce an accurate percentage from the estimated ocv. Signed-off-by: Craig Tatlor <ctatlo...@gmail.com> --- arch/arm/boot/dts/qcom-pm8941.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff

Re: [v9,04/15] clk: qcom: Add HFPLL driver

2018-03-25 Thread Craig Tatlor
This doesn't seem to work correctly with the higher clocks on 8974pro, specifically 215040 hz or above, maybe its something to do with being bigger than an unsigned long. When i try to set any higher frequency it jumps down to 300mhz.