Re: [PATCH 00/31] Introduce devm_pm_opp_* API

2021-01-03 Thread Frank Lee
HI, On Sun, Jan 3, 2021 at 8:52 PM Dmitry Osipenko wrote: > > 01.01.2021 19:54, Yangtao Li пишет: > > Hi, > > > > This patchset add devm_pm_opp_set_clkname, devm_pm_opp_put_clkname, > > devm_pm_opp_set_regulators, devm_pm_opp_put_regulators, > > devm_pm_opp_set_supported_hw,

Re: [PATCH 1/2] cpufreq: sun50i: add a100 cpufreq support

2020-12-05 Thread Frank Lee
HI Maxime, Any comment? BR / Yangtao

Re: [PATCH 2/2] arm64: dts: allwinner: a100: Add CPU Operating Performance Points table

2020-12-05 Thread Frank Lee
HI shuosheng, On Fri, Dec 4, 2020 at 3:11 PM Shuosheng Huang wrote: > > Add an Operating Performance Points table for the CPU cores to > enable Dynamic Voltage & Frequency Scaling on the A100. > > Signed-off-by: Shuosheng Huang > --- > .../allwinner/sun50i-a100-allwinner-perf1.dts | 5 ++ >

Re: [PATCH 3/3] phy: sun4i-usb: Use power efficient workqueue for debounce and poll

2020-11-10 Thread Frank Lee
HI, On Wed, Nov 11, 2020 at 11:44 AM Samuel Holland wrote: > > On 11/9/20 6:12 AM, Frank Lee wrote: > > From: Yangtao Li > > > > The debounce and poll time is generally quite long and the work not > > performance critical so allow the scheduler to run the

Re: [PATCH 00/19] Second step support for A100

2020-11-10 Thread Frank Lee
On Tue, Nov 10, 2020 at 4:43 PM Krzysztof Kozlowski wrote: > > On Tue, 10 Nov 2020 at 07:00, Frank Lee wrote: > > > > It seems that sending too many e-mails at one time will cause some > > emails to fail to be sent out. I will try again. > > Hi, > > In

[PATCH] MAINTAINERS: Add myself as arm sunxi soc maintainer

2020-11-09 Thread Frank Lee
From: Yangtao Li Add myself to sunxi maintainer so the mail can cc me. Signed-off-by: Yangtao Li --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 94ac10a153c7..0ddaf9641546 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1545,6 +1545,7 @@ F:

[RESEND PATCH 18/19] arm64: allwinner: a100: Add MMC related nodes

2020-11-09 Thread Frank Lee
From: Yangtao Li The A100 has 3 MMC controllers, one of them being especially targeted to eMMC. Let's add nodes on dts. Signed-off-by: Yangtao Li --- .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 71 +++ 1 file changed, 71 insertions(+) diff --git

[RESEND PATCH 19/19] arm64: dts: allwinner: a100: perf1: Add eMMC and MMC node

2020-11-09 Thread Frank Lee
From: Yangtao Li A100 perf1 hava MicroSD slot and on-board eMMC module, add support for them. Signed-off-by: Yangtao Li --- .../allwinner/sun50i-a100-allwinner-perf1.dts| 16 1 file changed, 16 insertions(+) diff --git

[RESEND PATCH 17/19] mmc: sunxi: add support for A100 mmc controller

2020-11-09 Thread Frank Lee
From: Yangtao Li This patch adds support for A100 MMC controller, which use word address for internal dma. Signed-off-by: Yangtao Li --- drivers/mmc/host/sunxi-mmc.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sunxi-mmc.c

[RESEND PATCH 16/19] dt-bindings: mmc: sunxi: Add A100 compatibles

2020-11-09 Thread Frank Lee
From: Yangtao Li Add binding for A100's mmc and emmc controller. Signed-off-by: Yangtao Li --- .../devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml

[RESEND PATCH 15/19] arm64: allwinner: A100: enable EHCI, OHCI and USB PHY nodes in Perf1

2020-11-09 Thread Frank Lee
From: Yangtao Li Add USB support on A100 perf1 board, which include two USB2.0 port. Signed-off-by: Yangtao Li --- .../allwinner/sun50i-a100-allwinner-perf1.dts | 38 +++ 1 file changed, 38 insertions(+) diff --git

[RESEND PATCH 14/19] arm64: dts: allwinner: a100: add usb related nodes

2020-11-09 Thread Frank Lee
From: Yangtao Li Allwinner A64 have two HCI USB controllers, a OTG controller and a USB PHY device, let's add nodes on dts. Signed-off-by: Yangtao Li --- .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 91 +++ 1 file changed, 91 insertions(+) diff --git

[RESEND PATCH 13/19] phy: sun4i-usb: add support for A100 USB PHY

2020-11-09 Thread Frank Lee
From: Yangtao Li Add support for a100's usb phy, which with 2 PHYs. Signed-off-by: Yangtao Li --- drivers/phy/allwinner/phy-sun4i-usb.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index

[RESEND PATCH 12/19] dt-bindings: Add bindings for USB phy on Allwinner A100

2020-11-09 Thread Frank Lee
From: Yangtao Li Add a device tree binding for the A100's USB PHY. Signed-off-by: Yangtao Li --- .../phy/allwinner,sun50i-a100-usb-phy.yaml| 105 ++ 1 file changed, 105 insertions(+) create mode 100644

[RESEND PATCH 11/19] arm64: dts: allwinner: a100: add watchdog node

2020-11-09 Thread Frank Lee
From: Yangtao Li Declare A100's watchdog in the device-tree. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi

[RESEND PATCH 10/19] dt-bindings: watchdog: sun4i: Add A100 compatible

2020-11-09 Thread Frank Lee
From: Yangtao Li Add a binding for A100's watchdog controller. Signed-off-by: Yangtao Li --- .../devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml

[RESEND PATCH 09/19] phy: allwinner: Convert to devm_platform_ioremap_* API

2020-11-09 Thread Frank Lee
From: Yangtao Li Use the devm_platform_ioremap_resource_byname() and devm_platform_ioremap_resource helper to simplify the code. Signed-off-by: Yangtao Li --- drivers/phy/allwinner/phy-sun4i-usb.c | 9 +++-- drivers/phy/allwinner/phy-sun50i-usb3.c | 4 +---

[RESEND PATCH 08/19] phy: sun4i-usb: remove enable_pmu_unk1 from sun50i_h6_cfg

2020-11-09 Thread Frank Lee
From: Yangtao Li For the current code, enable_pmu_unk1 only works in non-a83t and non-h6 types. So let's delete it from the sun50i_h6_cfg. Signed-off-by: Yangtao Li --- drivers/phy/allwinner/phy-sun4i-usb.c | 1 - 1 file changed, 1 deletion(-) diff --git

[RESEND PATCH 07/19] arm64: dts: allwinner: A100: Add PMU mode

2020-11-09 Thread Frank Lee
From: Yangtao Li Add the Performance Monitoring Unit (PMU) device tree node to the A100 .dtsi, which tells DT users which interrupts are triggered by PMU overflow events on each core. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 15 --- 1 file

[RESEND PATCH 06/19] arm64: allwinner: a100: Add device node for DMA controller

2020-11-09 Thread Frank Lee
From: Yangtao Li The A100 SoC has a DMA controller that supports 8 DMA channels to and from various peripherals. Add a device node for it. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 12 1 file changed, 12 insertions(+) diff --git

[RESEND PATCH 05/19] dmaengine: sun6i: Add support for A100 DMA

2020-11-09 Thread Frank Lee
From: Yangtao Li The dma of a100 is similar to h6, with some minor changes to support greater addressing capabilities. Add support for it. Signed-off-by: Yangtao Li --- drivers/dma/sun6i-dma.c | 25 + 1 file changed, 25 insertions(+) diff --git

[RESEND PATCH 04/19] dt-bindings: dma: allwinner,sun50i-a64-dma: Add A100 compatible

2020-11-09 Thread Frank Lee
From: Yangtao Li Add a binding for A100's dma controller. Signed-off-by: Yangtao Li --- .../devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml| 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml

[RESEND PATCH 03/19] pinctrl: sunxi: Always call chained_irq_{enter, exit} in sunxi_pinctrl_irq_handler

2020-11-09 Thread Frank Lee
From: Yangtao Li It is found on many allwinner soc that there is a low probability that the interrupt status cannot be read in sunxi_pinctrl_irq_handler. This will cause the interrupt status of a gpio bank to always be active on gic, preventing gic from responding to other spi interrupts

[RESEND PATCH 02/19] pinctrl: sunxi: Mark the irq bank not found in sunxi_pinctrl_irq_handler() with WARN_ON

2020-11-09 Thread Frank Lee
From: Yangtao Li The interrupt descriptor cannot be found in the interrupt processing function, and this situation cannot happen when the system is running normally. It doesn't seem right to return directly to the status of not handling gic. In this case, it must be a bug, let's mark it with

[RESEND PATCH 01/19] pinctrl: sunxi: fix irq bank map for the Allwinner A100 pin controller

2020-11-09 Thread Frank Lee
From: Yangtao Li A100's pin starts with PB, so it should start with 1. Fixes: 473436e7647d6 ("pinctrl: sunxi: add support for the Allwinner A100 pin controller") Signed-off-by: Yangtao Li --- drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[RESEND PATCH 00/19] Second step support for A100

2020-11-09 Thread Frank Lee
Let's add watchdog, arm-pmu, dma, usb, mmc. support for allwinner a100 soc. Yangtao Li (19): pinctrl: sunxi: fix irq bank map for the Allwinner A100 pin controller pinctrl: sunxi: Mark the irq bank not found in sunxi_pinctrl_irq_handler() with WARN_ON pinctrl: sunxi: Always call

Re: [PATCH 00/19] Second step support for A100

2020-11-09 Thread Frank Lee
It seems that sending too many e-mails at one time will cause some emails to fail to be sent out. I will try again. BR / Yangtao

[PATCH 04/19] dt-bindings: dma: allwinner,sun50i-a64-dma: Add A100 compatible

2020-11-09 Thread Frank Lee
From: Yangtao Li Add a binding for A100's dma controller. Signed-off-by: Yangtao Li --- .../devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml| 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml

[PATCH 06/19] arm64: allwinner: a100: Add device node for DMA controller

2020-11-09 Thread Frank Lee
From: Yangtao Li The A100 SoC has a DMA controller that supports 8 DMA channels to and from various peripherals. Add a device node for it. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 08/19] phy: sun4i-usb: remove enable_pmu_unk1 from sun50i_h6_cfg

2020-11-09 Thread Frank Lee
From: Yangtao Li For the current code, enable_pmu_unk1 only works in non-a83t and non-h6 types. So let's delete it from the sun50i_h6_cfg. Signed-off-by: Yangtao Li --- drivers/phy/allwinner/phy-sun4i-usb.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 07/19] arm64: dts: allwinner: A100: Add PMU mode

2020-11-09 Thread Frank Lee
From: Yangtao Li Add the Performance Monitoring Unit (PMU) device tree node to the A100 .dtsi, which tells DT users which interrupts are triggered by PMU overflow events on each core. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 15 --- 1 file

[PATCH 09/19] phy: allwinner: Convert to devm_platform_ioremap_* API

2020-11-09 Thread Frank Lee
From: Yangtao Li Use the devm_platform_ioremap_resource_byname() and devm_platform_ioremap_resource helper to simplify the code. Signed-off-by: Yangtao Li --- drivers/phy/allwinner/phy-sun4i-usb.c | 9 +++-- drivers/phy/allwinner/phy-sun50i-usb3.c | 4 +---

[PATCH 05/19] dmaengine: sun6i: Add support for A100 DMA

2020-11-09 Thread Frank Lee
From: Yangtao Li The dma of a100 is similar to h6, with some minor changes to support greater addressing capabilities. Add support for it. Signed-off-by: Yangtao Li --- drivers/dma/sun6i-dma.c | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH 03/19] pinctrl: sunxi: Always call chained_irq_{enter, exit} in sunxi_pinctrl_irq_handler

2020-11-09 Thread Frank Lee
From: Yangtao Li It is found on many allwinner soc that there is a low probability that the interrupt status cannot be read in sunxi_pinctrl_irq_handler. This will cause the interrupt status of a gpio bank to always be active on gic, preventing gic from responding to other spi interrupts

[PATCH 02/19] pinctrl: sunxi: Mark the irq bank not found in sunxi_pinctrl_irq_handler() with WARN_ON

2020-11-09 Thread Frank Lee
From: Yangtao Li The interrupt descriptor cannot be found in the interrupt processing function, and this situation cannot happen when the system is running normally. It doesn't seem right to return directly to the status of not handling gic. In this case, it must be a bug, let's mark it with

[PATCH 00/19] Second step support for A100

2020-11-09 Thread Frank Lee
Hi, Let's add watchdog, arm-pmu, dma, usb, mmc. support for allwinner a100 soc. Yangtao Li (19): pinctrl: sunxi: fix irq bank map for the Allwinner A100 pin controller pinctrl: sunxi: Mark the irq bank not found in sunxi_pinctrl_irq_handler() with WARN_ON pinctrl: sunxi: Always

[PATCH 01/19] pinctrl: sunxi: fix irq bank map for the Allwinner A100 pin controller

2020-11-09 Thread Frank Lee
From: Yangtao Li A100's pin starts with PB, so it should start with 1. Fixes: 473436e7647d6 ("pinctrl: sunxi: add support for the Allwinner A100 pin controller") Signed-off-by: Yangtao Li --- drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 6/9] cpufreq: sun50i: Add missing MODULE_DEVICE_TABLE

2020-11-09 Thread Frank Lee
On Tue, Nov 3, 2020 at 11:14 PM Pali Rohár wrote: > > This patch adds missing MODULE_DEVICE_TABLE definition which generates > correct modalias for automatic loading of this cpufreq driver when it is > compiled as an external module. > > Signed-off-by: Pali Rohár > Fixes: f328584f7bff8

Re: [PATCH 1/3] dt-bindings: gpio: sunxi:create a DT header for Allwinner pin controller

2020-11-09 Thread Frank Lee
HI Maxime, Maybe let's convert to use something like SUN4I_PA? Yangtao

[PATCH] arm64: dts: allwinner: a64: fix sid node name

2020-11-09 Thread Frank Lee
From: Yangtao Li Sid should be an efuse type device accurately. And no one needs sid label, so delete it. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/3] phy: sun4i-usb: Use power efficient workqueue for debounce and poll

2020-11-09 Thread Frank Lee
From: Yangtao Li The debounce and poll time is generally quite long and the work not performance critical so allow the scheduler to run the work anywhere rather than in the normal per-CPU workqueue. Signed-off-by: Yangtao Li --- drivers/phy/allwinner/phy-sun4i-usb.c | 14 +++--- 1

[PATCH 2/3] power: supply: axp20x_usb_power: Use power efficient workqueue for debounce

2020-11-09 Thread Frank Lee
From: Yangtao Li The debounce timeout is generally quite long and the work not performance critical so allow the scheduler to run the work anywhere rather than in the normal per-CPU workqueue. Signed-off-by: Yangtao Li --- drivers/power/supply/axp20x_usb_power.c | 8 1 file changed,

[PATCH 1/3] power: supply: axp20x_usb_power: fix typo

2020-11-09 Thread Frank Lee
From: Yangtao Li s/on on/on Signed-off-by: Yangtao Li --- drivers/power/supply/axp20x_usb_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/axp20x_usb_power.c b/drivers/power/supply/axp20x_usb_power.c index 0eaa86c52874..3b4fd710347d 100644 ---

[PATCH v2] thermal: sun8i: Use bitmap API instead of open code

2020-11-09 Thread Frank Lee
From: Yangtao Li The bitmap_* API is the standard way to access data in the bitfield. So convert irq_ack to return an unsigned long, and make things to use bitmap API. Signed-off-by: Yangtao Li --- v2: Make irq_ack to return an unsigned long --- drivers/thermal/sun8i_thermal.c | 33

Re: [PATCH] thermal: sun8i: Use bitmap API instead of open code

2020-11-09 Thread Frank Lee
I forgot to add "V2", I will resend. Yangtao

[PATCH] thermal: sun8i: Use bitmap API instead of open code

2020-11-09 Thread Frank Lee
From: Yangtao Li The bitmap_* API is the standard way to access data in the bitfield. So convert irq_ack to return an unsigned long, and make things to use bitmap API. Signed-off-by: Yangtao Li --- v2: Make irq_ack to return an unsigned long --- drivers/thermal/sun8i_thermal.c | 33

Re: [PATCH v1 17/30] mmc: sdhci-tegra: Support OPP and core voltage scaling

2020-11-09 Thread Frank Lee
On Mon, Nov 9, 2020 at 1:53 PM Viresh Kumar wrote: > > On 09-11-20, 08:44, Dmitry Osipenko wrote: > > 09.11.2020 08:35, Viresh Kumar пишет: > > > On 09-11-20, 08:19, Dmitry Osipenko wrote: > > >> Thanks, I made it in a different way by simply adding helpers to the > > >> pm_opp.h which use

Re: [PATCH v1 17/30] mmc: sdhci-tegra: Support OPP and core voltage scaling

2020-11-06 Thread Frank Lee
On Fri, Nov 6, 2020 at 9:18 PM Dmitry Osipenko wrote: > > 06.11.2020 09:15, Viresh Kumar пишет: > > Setting regulators for count as 0 doesn't sound good to me. > > > > But, I understand that you don't want to have that if (have_regulator) > > check, and it is a fair request. What I will instead

Re: [PATCH 2/3] opp: Add devres wrapper for dev_pm_opp_set_prop_name

2020-10-30 Thread Frank Lee
On Wed, Oct 28, 2020 at 10:46 PM Viresh Kumar wrote: > > On 28-10-20, 19:02, Frank Lee wrote: > > On Wed, Oct 28, 2020 at 6:29 PM Viresh Kumar > > wrote: > > > > > > On 12-10-20, 21:55, Frank Lee wrote: > > > > From: Yangtao Li > > >

Re: [PATCH 1/3] dt-bindings: gpio: sunxi:create a DT header for Allwinner pin controller

2020-10-28 Thread Frank Lee
On Wed, Jul 29, 2020 at 9:06 PM Maxime Ripard wrote: > > Hi, > > On Sat, Jul 25, 2020 at 02:18:39PM -0500, Samuel Holland wrote: > > On 7/17/20 11:07 AM, Maxime Ripard wrote: > > > Hi! > > > > > > On Wed, Jul 15, 2020 at 07:54:12PM +0

Re: [PATCH 2/3] opp: Add devres wrapper for dev_pm_opp_set_prop_name

2020-10-28 Thread Frank Lee
On Wed, Oct 28, 2020 at 6:29 PM Viresh Kumar wrote: > > On 12-10-20, 21:55, Frank Lee wrote: > > From: Yangtao Li > > > > Add devres wrapper for dev_pm_opp_set_prop_name() to simplify driver > > code. > > > > Signed-off-by: Yangtao Li > > Sig

[PATCH] thermal: sun8i: Use bitmap API instead of open code

2020-10-19 Thread Frank Lee
From: Yangtao Li Thw bitmap_* API is the standard way to access data in the bitfield. Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 35 + 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/thermal/sun8i_thermal.c

[PATCH] cpufreq: sti-cpufreq: fix mem leak in sti_cpufreq_set_opp_info()

2020-10-12 Thread Frank Lee
From: Yangtao Li Use dev_pm_opp_put_prop_name() to avoid mem leak, which free opp_table. Signed-off-by: Yangtao Li Signed-off-by: Yangtao Li --- drivers/cpufreq/sti-cpufreq.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/sti-cpufreq.c

[PATCH 3/3] drm/msm: Convert to devm_pm_opp_set_supported_hw

2020-10-12 Thread Frank Lee
From: Yangtao Li Use the devm_pm_opp_set_supported_hw() to avoid memory leaks in some cases. Signed-off-by: Yangtao Li Signed-off-by: Yangtao Li --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c

[PATCH 1/3] opp: Add devres wrapper for dev_pm_opp_set_supported_hw

2020-10-12 Thread Frank Lee
From: Yangtao Li Add devres wrapper for dev_pm_opp_set_supported_hw() to simplify driver code. Signed-off-by: Yangtao Li Signed-off-by: Yangtao Li --- drivers/opp/core.c | 41 + include/linux/pm_opp.h | 8 2 files changed, 49

[PATCH 0/3] Introduce devm_pm_opp_set_* API

2020-10-12 Thread Frank Lee
Hi, this patchset introduce devm_pm_opp_set_prop_name() and devm_pm_opp_set_supported_hw(). Yangtao Li (3): opp: Add devres wrapper for dev_pm_opp_set_supported_hw opp: Add devres wrapper for dev_pm_opp_set_prop_name drm/msm: Convert to devm_pm_opp_set_supported_hw

[PATCH 2/3] opp: Add devres wrapper for dev_pm_opp_set_prop_name

2020-10-12 Thread Frank Lee
From: Yangtao Li Add devres wrapper for dev_pm_opp_set_prop_name() to simplify driver code. Signed-off-by: Yangtao Li Signed-off-by: Yangtao Li --- drivers/opp/core.c | 39 +++ include/linux/pm_opp.h | 6 ++ 2 files changed, 45 insertions(+) diff

Re: [PATCH v5 00/16] Allwinner A100 Initial support

2020-08-28 Thread Frank Lee
HI Linus, On Fri, Aug 28, 2020 at 6:02 PM Linus Walleij wrote: > > On Fri, Jul 24, 2020 at 8:53 AM Frank Lee wrote: > > > This patch set adds initial support for allwinner a100 soc, > > which is a 64-bit tablet chip. > > Shall I commit the pinctrl patches (

[PATCH] sched: idle: Change the cpu_idle_poll() return type to void

2020-08-27 Thread Frank Lee
From: Yangtao Li No one cares about the return value of this function, which only increases the time spent in idle loop. Let's drop it. Signed-off-by: Yangtao Li --- kernel/sched/idle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/sched/idle.c

[PATCH] sched: idle: Change the cpu_idle_poll() return type to void

2020-08-27 Thread Frank Lee
From: Yangtao Li No one cares about the return value of this function, which only increases the time spent in idle loop. Let's drop it. Signed-off-by: Yangtao Li --- kernel/sched/idle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/sched/idle.c

Re: [PATCH v5 00/16] Allwinner A100 Initial support

2020-08-24 Thread Frank Lee
ping..

Re: [PATCH v5 00/16] Allwinner A100 Initial support

2020-07-29 Thread Frank Lee
HI Maxime, Any comments on thermal and other patches? I hope these patches can be integrated into the mainline as soon as possible. Thx, Yangtao

[PATCH v5 16/16] arm64: allwinner: A100: add support for Allwinner Perf1 board

2020-07-24 Thread Frank Lee
From: Yangtao Li A100 perf1 is an Allwinner A100-based SBC, with the following features: - 1GiB DDR3 DRAM - AXP803 PMIC - 2 USB 2.0 ports - MicroSD slot and on-board eMMC module - on-board Nand flash - ··· Adds initial support for it, including UART and PMU. Signed-off-by: Yangtao Li ---

[PATCH v5 15/16] dt-bindings: arm: sunxi: Add Allwinner A100 Perf1 Board bindings

2020-07-24 Thread Frank Lee
From: Yangtao Li Document board compatible names for Allwinner A100 Perf1 Board. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml

[PATCH v5 14/16] arm64: allwinner: A100: add the basical Allwinner A100 DTSI file

2020-07-24 Thread Frank Lee
From: Yangtao Li Allwinner A100 is a new SoC with Cortex-A53 cores, this commit adds the basical DTSI file of it, including the clock, i2c, pins, sid, ths, nmi, and UART support. Signed-off-by: Yangtao Li --- .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 364 ++ 1 file

[PATCH v5 13/16] dt-bindings: i2c: mv64xxx: Add compatible for the A100 i2c node.

2020-07-24 Thread Frank Lee
From: Yangtao Li Allwinner A100 have a mv64xxx i2c interface available to be used. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v5 12/16] dt-bindings: irq: sun7i-nmi: Add binding for A100's NMI controller

2020-07-24 Thread Frank Lee
From: Yangtao Li Add a binding for A100's nmi controller. Signed-off-by: Yangtao Li Acked-by: Rob Herring --- .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v5 11/16] dt-bindings: irq: sun7i-nmi: fix dt-binding for a80 nmi

2020-07-24 Thread Frank Lee
From: Yangtao Li There is no one use "allwinner,sun9i-a80-sc-nmi". The A80 uses "allwinner,sun9i-a80-nmi". Let's fix it. Signed-off-by: Yangtao Li Acked-by: Rob Herring --- .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v5 10/16] mfd: axp20x: Allow the AXP803 to be probed by I2C

2020-07-24 Thread Frank Lee
From: Yangtao Li The AXP803 can be used both using the RSB proprietary bus, or a more traditional I2C bus. Let's add that possibility. Signed-off-by: Yangtao Li Acked-by: Chen-Yu Tsai --- drivers/mfd/axp20x-i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/axp20x-i2c.c

[PATCH v5 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate

2020-07-24 Thread Frank Lee
From: Yangtao Li For sun50i_h6_ths_calibrate(), the data read from nvmem needs a round of calculation. On the other hand, the newer SOC may store other data in the space other than 12bit sensor data. Add mask operation to read data to avoid conversion error. Signed-off-by: Yangtao Li ---

[PATCH v5 09/16] thermal: sun8i: Add A100's THS controller support

2020-07-24 Thread Frank Lee
From: Yangtao Li This patch add thermal sensor controller support for A100, which is similar to the previous ones. Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/thermal/sun8i_thermal.c

[PATCH v5 07/16] dt-bindings: thermal: sun8i: Add binding for A100's THS controller

2020-07-24 Thread Frank Lee
From: Yangtao Li Add a binding for A100's ths controller. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- .../bindings/thermal/allwinner,sun8i-a83t-ths.yaml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v5 06/16] dt-bindings: nvmem: SID: add binding for A100's SID controller

2020-07-24 Thread Frank Lee
From: Yangtao Li Add a binding for A100's SID controller. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- .../nvmem/allwinner,sun4i-a10-sid.yaml| 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git

[PATCH v5 05/16] pinctrl: sunxi: add support for the Allwinner A100 pin controller

2020-07-24 Thread Frank Lee
From: Yangtao Li This commit introduces support for the pin controller on A100. Signed-off-by: Yangtao Li --- drivers/pinctrl/sunxi/Kconfig | 10 + drivers/pinctrl/sunxi/Makefile| 2 + drivers/pinctrl/sunxi/pinctrl-sun50i-a100-r.c | 105 +++

[PATCH v5 04/16] dt-bindings: pinctrl: sunxi: Add A100 pinctrl bindings

2020-07-24 Thread Frank Lee
From: Yangtao Li Add device tree binding Documentation details for A100 pinctrl driver, which has a r pin controller and a pin controller with more irq lines. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 15 +++ 1 file

[PATCH v5 03/16] dt-bindings: pinctrl: sunxi: Get rid of continual nesting

2020-07-24 Thread Frank Lee
From: Yangtao Li Rather than a continual nesting of 'else' clauses, just make each 'if' a new entry under 'allOf' and get rid of the else. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 124 ++ 1 file changed, 68

[PATCH v5 02/16] clk: sunxi-ng: add support for the Allwinner A100 CCU

2020-07-24 Thread Frank Lee
From: Yangtao Li Add support for a100 in the sunxi-ng CCU framework. Signed-off-by: Yangtao Li --- drivers/clk/sunxi-ng/Kconfig | 10 + drivers/clk/sunxi-ng/Makefile |2 + drivers/clk/sunxi-ng/ccu-sun50i-a100-r.c | 214 +++

[PATCH v5 01/16] dt-bindings: clk: sunxi-ccu: add compatible string for A100 CCU and R-CCU

2020-07-24 Thread Frank Lee
From: Yangtao Li This patch adds binding to a100's ccu clock and r-ccu clock. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- .../devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH v5 00/16] Allwinner A100 Initial support

2020-07-24 Thread Frank Lee
This patch set adds initial support for allwinner a100 soc, which is a 64-bit tablet chip. v5: -Drop redundant SOB for thermal series patch -Trival a100 dtsi fix v4: -Drop "dt-bindings: pinctrl: sunxi: make gpio banks supplies required" -Fix dcdc1 regulator name -Get rid of underscore in dts

Re: [PATCH v4 14/16] arm64: allwinner: A100: add the basical Allwinner A100 DTSI file

2020-07-24 Thread Frank Lee
HI, On Fri, Jul 24, 2020 at 12:54 AM Maxime Ripard wrote: > > Hi, > > On Tue, Jul 14, 2020 at 03:20:29PM +0800, Frank Lee wrote: > > From: Yangtao Li > > > > Allwinner A100 is a new SoC with Cortex-A53 cores, this commit adds > > the basical DTSI file of it,

Re: [PATCH v4 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate

2020-07-20 Thread Frank Lee
HI, On Fri, Jul 17, 2020 at 3:56 PM Daniel Lezcano wrote: > > On 17/07/2020 09:35, Frank Lee wrote: > > On Fri, Jul 17, 2020 at 12:26 PM Daniel Lezcano > > wrote: > >> > >> On 14/07/2020 09:13, Frank Lee wrote: > >>> From: Yangtao Li > >>

Re: [PATCH v4 00/16] Allwinner A100 Initial support

2020-07-17 Thread Frank Lee
On Fri, Jul 17, 2020 at 12:28 PM Daniel Lezcano wrote: > > On 14/07/2020 08:55, Frank Lee wrote: > > From: Yangtao Li > > Do you expect me to pick patches 7,8,9 or ack them ? > Please pick it. Thx, Yangtao

Re: [PATCH v4 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate

2020-07-17 Thread Frank Lee
On Fri, Jul 17, 2020 at 12:26 PM Daniel Lezcano wrote: > > On 14/07/2020 09:13, Frank Lee wrote: > > From: Yangtao Li > > > > For sun50i_h6_ths_calibrate(), the data read from nvmem needs a round of > > calculation. On the other hand, the newer SOC may store oth

[PATCH 3/3] arm64: dts: allwinner: Use GPIO bank name macro to describe GPIO

2020-07-15 Thread Frank Lee
From: Yangtao Li Convert gpio.h to sunxi-gpio.h, and convert to use gpio bank name macro. This is done using the following command. sed -i 's/r_pio 0/r_pio PL/g' arch/arm64/boot/dts/allwinner/* sed -i 's/r_pio 1/r_pio PM/g' arch/arm64/boot/dts/allwinner/* sed -i 's/\ 0/\ PA/g'

[PATCH 2/3] ARM: dts: allwinner: convert gpio.h to sunxi-gpio.h

2020-07-15 Thread Frank Lee
From: Yangtao Li Use names instead of numbers to describe GPIO. We clean arm64 first. Since H5 uses the DTS file in arm directory, we need to modify the header file in advance. Signed-off-by: Yangtao Li --- arch/arm/boot/dts/sunxi-h3-h5-emlid-neutis.dtsi | 2 +-

[PATCH 1/3] dt-bindings: gpio: sunxi:create a DT header for Allwinner pin controller

2020-07-15 Thread Frank Lee
From: Yangtao Li The sunxi gpio binding defines a few custom cells for its gpio specifier. Provide bank name for those. Signed-off-by: Yangtao Li --- include/dt-bindings/gpio/sunxi-gpio.h | 29 +++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v4 16/16] arm64: allwinner: A100: add support for Allwinner Perf1 board

2020-07-14 Thread Frank Lee
From: Yangtao Li A100 perf1 is an Allwinner A100-based SBC, with the following features: - 1GiB DDR3 DRAM - AXP803 PMIC - 2 USB 2.0 ports - MicroSD slot and on-board eMMC module - on-board Nand flash - ··· Adds initial support for it, including UART and PMU. Signed-off-by: Yangtao Li ---

[PATCH v4 15/16] dt-bindings: arm: sunxi: Add Allwinner A100 Perf1 Board bindings

2020-07-14 Thread Frank Lee
From: Yangtao Li Document board compatible names for Allwinner A100 Perf1 Board. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml

[PATCH v4 14/16] arm64: allwinner: A100: add the basical Allwinner A100 DTSI file

2020-07-14 Thread Frank Lee
From: Yangtao Li Allwinner A100 is a new SoC with Cortex-A53 cores, this commit adds the basical DTSI file of it, including the clock, i2c, pins, sid, ths, nmi, and UART support. Signed-off-by: Yangtao Li --- .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 364 ++ 1 file

[PATCH v4 13/16] dt-bindings: i2c: mv64xxx: Add compatible for the A100 i2c node.

2020-07-14 Thread Frank Lee
From: Yangtao Li Allwinner A100 have a mv64xxx i2c interface available to be used. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v4 12/16] dt-bindings: irq: sun7i-nmi: Add binding for A100's NMI controller

2020-07-14 Thread Frank Lee
From: Yangtao Li Add a binding for A100's nmi controller. Signed-off-by: Yangtao Li Acked-by: Rob Herring --- .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v4 11/16] dt-bindings: irq: sun7i-nmi: fix dt-binding for a80 nmi

2020-07-14 Thread Frank Lee
From: Yangtao Li There is no one use "allwinner,sun9i-a80-sc-nmi". The A80 uses "allwinner,sun9i-a80-nmi". Let's fix it. Signed-off-by: Yangtao Li Acked-by: Rob Herring --- .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v4 10/16] mfd: axp20x: Allow the AXP803 to be probed by I2C

2020-07-14 Thread Frank Lee
From: Yangtao Li The AXP803 can be used both using the RSB proprietary bus, or a more traditional I2C bus. Let's add that possibility. Signed-off-by: Yangtao Li --- drivers/mfd/axp20x-i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/axp20x-i2c.c

[PATCH v4 09/16] thermal: sun8i: Add A100's THS controller support

2020-07-14 Thread Frank Lee
From: Yangtao Li This patch add thermal sensor controller support for A100, which is similar to the previous ones. Signed-off-by: Yangtao Li Reviewed-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH v4 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate

2020-07-14 Thread Frank Lee
From: Yangtao Li For sun50i_h6_ths_calibrate(), the data read from nvmem needs a round of calculation. On the other hand, the newer SOC may store other data in the space other than 12bit sensor data. Add mask operation to read data to avoid conversion error. Signed-off-by: Yangtao Li

[PATCH v4 07/16] dt-bindings: thermal: sun8i: Add binding for A100's THS controller

2020-07-14 Thread Frank Lee
From: Yangtao Li Add a binding for A100's ths controller. Signed-off-by: Yangtao Li Reviewed-by: Yangtao Li Reviewed-by: Rob Herring --- .../bindings/thermal/allwinner,sun8i-a83t-ths.yaml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v4 06/16] dt-bindings: nvmem: SID: add binding for A100's SID controller

2020-07-14 Thread Frank Lee
From: Yangtao Li Add a binding for A100's SID controller. Signed-off-by: Yangtao Li --- .../nvmem/allwinner,sun4i-a10-sid.yaml| 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml

[PATCH v4 05/16] pinctrl: sunxi: add support for the Allwinner A100 pin controller

2020-07-14 Thread Frank Lee
From: Yangtao Li This commit introduces support for the pin controller on A100. Signed-off-by: Yangtao Li --- drivers/pinctrl/sunxi/Kconfig | 10 + drivers/pinctrl/sunxi/Makefile| 2 + drivers/pinctrl/sunxi/pinctrl-sun50i-a100-r.c | 105 +++

[PATCH v4 04/16] dt-bindings: pinctrl: sunxi: Add A100 pinctrl bindings

2020-07-14 Thread Frank Lee
From: Yangtao Li Add device tree binding Documentation details for A100 pinctrl driver, which has a r pin controller and a pin controller with more irq lines. Signed-off-by: Yangtao Li --- .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 15 +++ 1 file changed, 15 insertions(+)

[PATCH v4 03/16] dt-bindings: pinctrl: sunxi: Get rid of continual nesting

2020-07-14 Thread Frank Lee
From: Yangtao Li Rather than a continual nesting of 'else' clauses, just make each 'if' a new entry under 'allOf' and get rid of the else. Signed-off-by: Yangtao Li --- .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 124 ++ 1 file changed, 68 insertions(+), 56 deletions(-)

  1   2   3   4   >