Re: [PATCH 0/2] sunxi: Enforce consistent MMC numbering

2021-04-19 Thread Andre Przywara
On Mon, 19 Apr 2021 11:17:19 +0800 Chen-Yu Tsai wrote: Hi, > On Mon, Apr 19, 2021 at 10:52 AM Samuel Holland wrote: > > > > Dealing with the inconsistent numbering has been a major pain, and > > there is a solution with (as far as I can tell) no tangible downsides. > > So let's use it. Thanks

Re: linux-next: Signed-off-by missing for commit in the arm64 tree

2021-03-24 Thread Andre Przywara
On Wed, 24 Mar 2021 15:46:14 + Catalin Marinas wrote: > On Wed, Mar 24, 2021 at 08:14:45AM +1100, Stephen Rothwell wrote: > > Commits > > > > b17f265bb4cc ("kselftest/arm64: mte: Fix MTE feature detection") > > 4dfc9d30a8ab ("kselftest/arm64: mte: common: Fix write() warnings") > > > >

Re: [RFC PATCH] arm64: dts: allwinner: a64/h5: Add CPU idle states

2021-03-22 Thread Andre Przywara
On Mon, 22 Mar 2021 01:25:14 -0500 Samuel Holland wrote: Hi, > Powering off idle CPUs saves about 33 mW compared to using WFI only. > Additional power savings are possible by idling the L2 and downclocking > the cluster when all CPUs are idle. > > Entry and exit latency were measured using a

Re: [PATCH v18 5/7] clocksource: Add clocksource id for arm arch counter

2021-02-10 Thread Andre Przywara
c Zyngier > Link: https://lore.kernel.org/r/20201209060932.212364-6-jianyong...@arm.com Reviewed-by: Andre Przywara Cheers, Andre > --- > drivers/clocksource/arm_arch_timer.c | 2 ++ > include/linux/clocksource_ids.h | 1 + > 2 files changed, 3 insertions(+) > > diff

Re: [PATCH v18 3/7] ptp: Reorganize ptp_kvm.c to make it arch-independent

2021-02-10 Thread Andre Przywara
.c. > > Signed-off-by: Jianyong Wu > Signed-off-by: Marc Zyngier > Link: https://lore.kernel.org/r/20201209060932.212364-4-jianyong...@arm.com Verified that the code movements are correct. Test compiled for x86. 1.5 nits below, but regardless: Reviewed-by: Andre Przywara &g

Re: [PATCH] ARM: dts: zynq: Add address-cells property to interrupt controllers

2021-02-03 Thread Andre Przywara
On Wed, 3 Feb 2021 15:15:19 +0100 Michal Simek wrote: > On 2/3/21 3:12 PM, Rob Herring wrote: > > On Wed, Feb 3, 2021 at 1:01 AM Michal Simek > > wrote: > >> > >> > >> > >> On 2/1/21 6:41 PM, Rob Herring wrote: > >>> On Mon, Feb 1, 2021 at 8:27 AM Michal Simek > >>> wrote: > >

Re: [linux-sunxi] [PATCH v5 04/20] dt-bindings: mfd: axp20x: Add AXP305 compatible (plus optional IRQ)

2021-02-02 Thread Andre Przywara
On Tue, 2 Feb 2021 15:55:50 +0800 Chen-Yu Tsai wrote: Hi, > On Thu, Jan 28, 2021 at 1:26 AM Andre Przywara wrote: > > > > The AXP305 PMIC used in AXP805 seems to be fully compatible to the > ^ > This statement doesn't quite make sense. I assume

Re: [PATCH v5 12/20] dt-bindings: rtc: sun6i: Add H616 compatible string

2021-02-01 Thread Andre Przywara
On Sun, 31 Jan 2021 14:44:40 +0100 Jernej Škrabec wrote: Hi Jernej, > Dne sreda, 27. januar 2021 ob 18:24:52 CET je Andre Przywara napisal(a): > > Add the obvious compatible name to the existing RTC binding, and pair > > it with the existing H6 fallback compatible string,

Re: [PATCH v5 05/20] Input: axp20x-pek: Bail out if AXP has no interrupt line connected

2021-01-28 Thread Andre Przywara
On Thu, 28 Jan 2021 11:36:01 + Mark Brown wrote: > On Thu, Jan 28, 2021 at 11:11:28AM +0000, Andre Przywara wrote: > > Dmitry Torokhov wrote: > > > On Wed, Jan 27, 2021 at 05:24:45PM +0000, Andre Przywara wrote: > > > > > Check for the regmap_

Re: [PATCH v5 05/20] Input: axp20x-pek: Bail out if AXP has no interrupt line connected

2021-01-28 Thread Andre Przywara
On Wed, 27 Jan 2021 11:42:15 -0800 Dmitry Torokhov wrote: Hi Dmitry, thanks for your feedback! > On Wed, Jan 27, 2021 at 05:24:45PM +0000, Andre Przywara wrote: > > On at least one board (Orangepi Zero2) the AXP305 PMIC does not have its > > interrupt line connected to the CPU

[PATCH v5 08/20] soc: sunxi: sram: Add support for more than one EMAC clock

2021-01-27 Thread Andre Przywara
The Allwinner H616 adds a second EMAC clock register at offset 0x34, for controlling the second EMAC in this chip. Allow to extend the regmap in this case, to cover more than the current 4 bytes exported. Signed-off-by: Andre Przywara --- drivers/soc/sunxi/sunxi_sram.c | 31

[PATCH v5 12/20] dt-bindings: rtc: sun6i: Add H616 compatible string

2021-01-27 Thread Andre Przywara
Add the obvious compatible name to the existing RTC binding, and pair it with the existing H6 fallback compatible string, as the devices are compatible. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 3 +++ 1 file

[PATCH v5 09/20] dt-bindings: watchdog: sun4i: Add H616 compatible string

2021-01-27 Thread Andre Przywara
Use enums to group all compatible devices together on the way. Signed-off-by: Andre Przywara Acked-by: Rob Herring Acked-by: Maxime Ripard Reviewed-by: Guenter Roeck --- .../bindings/watchdog/allwinner,sun4i-a10-wdt.yaml | 12 +--- 1 file changed, 5 insertions(+), 7 deletions

[PATCH v5 11/20] dt-bindings: media: IR: Add H616 IR compatible string

2021-01-27 Thread Andre Przywara
Add the obvious compatible name to the existing IR binding, and pair it with the existing A31 fallback compatible string, as the devices are compatible. On the way use enums to group all compatible devices together. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../bindings/media

[PATCH v5 14/20] dt-bindings: bus: rsb: Add H616 compatible string

2021-01-27 Thread Andre Przywara
Add the obvious compatible name to the existing RSB binding, and pair it with the existing A23 fallback compatible string, as the devices are compatible. Signed-off-by: Andre Przywara --- .../devicetree/bindings/bus/allwinner,sun8i-a23-rsb.yaml | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH v5 13/20] dt-bindings: spi: sunxi: Add H616 compatible string

2021-01-27 Thread Andre Przywara
Add the obvious compatible name to the existing SPI binding, and pair it with the existing H3 fallback compatible string, as the devices are compatible. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml | 1 + 1 file

Re: (subset) [PATCH v4 00/21] arm64: sunxi: Initial Allwinner H616 SoC support

2021-01-27 Thread Andre Przywara
On Wed, 27 Jan 2021 17:15:30 + Mark Brown wrote: > On Mon, 25 Jan 2021 15:17:50 +0000, Andre Przywara wrote: > > an update from the v3 last week, to add support for the Allwinner H616 > > SoC. Still based on the (updated) sunxi/for-next branch. > > I am omitting the MM

[PATCH v5 16/20] net: stmmac: dwmac-sun8i: Prepare for second EMAC clock register

2021-01-27 Thread Andre Przywara
into the regmap, so that we can address more than the first register, if needed. Signed-off-by: Andre Przywara --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers

[PATCH v5 15/20] dt-bindings: net: sun8i-emac: Add H616 compatible string

2021-01-27 Thread Andre Przywara
Add the obvious compatible name to the existing EMAC binding, and pair it with the existing A64 fallback compatible string, as the devices are compatible. On the way use enums to group the compatible devices together. Signed-off-by: Andre Przywara --- .../devicetree/bindings/net/allwinner

[PATCH v5 19/20] dt-bindings: arm: sunxi: Add OrangePi Zero 2 binding

2021-01-27 Thread Andre Przywara
Signed-off-by: Andre Przywara Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index 08607c7ec1bf..aeb8771b14c4

[PATCH v5 20/20] arm64: dts: allwinner: Add OrangePi Zero 2 .dts

2021-01-27 Thread Andre Przywara
The OrangePi Zero 2 is a development board with the new H616 SoC. It features the usual connectors used on those small boards, and comes with the AXP305, which seems to be compatible with the AXP805. For more details see: http://linux-sunxi.org/Xunlong_Orange_Pi_Zero2 Signed-off-by: Andre

[PATCH v5 17/20] phy: sun4i-usb: Rework HCI PHY (aka. "pmu_unk1") handling

2021-01-27 Thread Andre Przywara
While we are at it, generalise the existing code by allowing a bitmap of bits to clear, to cover newer SoCs: The A100 and H616 use a different bit for the SIDDQ control. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- drivers/phy/allwinner/phy-sun4i-usb.c | 29 +++--

[PATCH v5 18/20] arm64: dts: allwinner: Add Allwinner H616 .dtsi file

2021-01-27 Thread Andre Przywara
interrupt controller anymore, also it lacks the corresponding NMI pin, so no interrupts for the PMIC. Signed-off-by: Andre Przywara --- .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 573 ++ 1 file changed, 573 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h616

[PATCH v5 10/20] dt-bindings: i2c: mv64xxx: Add H616 compatible string

2021-01-27 Thread Andre Przywara
Add the obvious compatible name to the existing I2C binding, and pair it with the existing A31 fallback compatible string, as the devices are compatible. On the way use enums to group all compatible devices together. Signed-off-by: Andre Przywara Acked-by: Rob Herring Acked-by: Wolfram Sang

[PATCH v5 05/20] Input: axp20x-pek: Bail out if AXP has no interrupt line connected

2021-01-27 Thread Andre Przywara
e_register+0x20/0x30 [4.120065] sunxi_rsb_probe+0x4e4/0x608 [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2021-January/633392.html Signed-off-by: Andre Przywara --- drivers/input/misc/axp20x-pek.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/input/m

[PATCH v5 07/20] dt-bindings: sram: sunxi-sram: Add H616 compatible string

2021-01-27 Thread Andre Przywara
The H616 adds a second EMAC clock register. We don't know about the exact SRAM properties yet, so this gets omitted for now. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../bindings/sram/allwinner,sun4i-a10-system-control.yaml| 1 + 1 file changed, 1 insertion(+) diff

[PATCH v5 06/20] mfd: axp20x: Allow AXP chips without interrupt lines

2021-01-27 Thread Andre Przywara
functionality of the AXP chip is simply not available. Check whether the interrupt line number returned by the platform code is valid, before trying to register the irqchip. If not, we skip this registration, to avoid the driver to bail out completely. Signed-off-by: Andre Przywara --- drivers/mfd

[PATCH v5 03/20] clk: sunxi-ng: Add support for the Allwinner H616 CCU

2021-01-27 Thread Andre Przywara
While the clocks are fairly similar to the H6, many differ in tiny details, so a separate clock driver seems indicated. Derived from the H6 clock driver, and adjusted according to the manual. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- drivers/clk/sunxi-ng/Kconfig

[PATCH v5 04/20] dt-bindings: mfd: axp20x: Add AXP305 compatible (plus optional IRQ)

2021-01-27 Thread Andre Przywara
The AXP305 PMIC used in AXP805 seems to be fully compatible to the AXP805 PMIC, so add the proper chain of compatible strings. Also at least on one board (Orangepi Zero2) there is no interrupt line connected to the CPU, so make the "interrupts" property optional. Signed-off-by: Andr

[PATCH v5 02/20] clk: sunxi-ng: Add support for the Allwinner H616 R-CCU

2021-01-27 Thread Andre Przywara
The clocks itself are identical to the H6 R-CCU, it's just that the H616 has not all of them implemented (or connected). Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- drivers/clk/sunxi-ng/Kconfig | 2 +- drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 48

[PATCH v5 00/20] arm64: sunxi: Initial Allwinner H616 SoC support

2021-01-27 Thread Andre Przywara
drop dummy IRQ for AXP - .dts: enable 3V3 header pin power rail - .dts: add SPI flash node - .dts: make USB-C port peripheral only - add IRQ-less AXP support - add two patches to support more than one EMAC clock - add patch to rework and extend USB PHY support - add DT binding documentation patches Andr

[PATCH v5 01/20] dt-bindings: clk: sunxi-ccu: Add compatible string for Allwinner H616

2021-01-27 Thread Andre Przywara
Signed-off-by: Andre Przywara Acked-by: Rob Herring Acked-by: Maxime Ripard --- .../devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml| 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml b/Documentation

Re: [PATCH v2 2/4] arm64: dts: ti: k3: squelch warnings regarding no #address-cells for interrupt-controller

2021-01-26 Thread Andre Przywara
On Mon, 25 Jan 2021 18:01:08 -0600 Rob Herring wrote: Hi, > On Thu, Nov 19, 2020 at 01:17:36PM +0200, Grygorii Strashko wrote: > > > > > > On 18/11/2020 17:12, Nishanth Menon wrote: > > > On 13:38-20201118, Grygorii Strashko wrote: > > > > Hi Rob, > > > > > > > > On 17/11/2020 18:19,

[PATCH v4 19/21] arm64: dts: allwinner: Add Allwinner H616 .dtsi file

2021-01-26 Thread Andre Przywara
interrupt controller anymore, also it lacks the corresponding NMI pin, so no interrupts for the PMIC. Signed-off-by: Andre Przywara --- .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 750 ++ 1 file changed, 750 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h616

[PATCH v4 18/21] phy: sun4i-usb: Add support for the H616 USB PHY

2021-01-26 Thread Andre Przywara
and assign a new compatible name to it. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 539209fe3468

Re: [PATCH v4 12/21] dt-bindings: rtc: sun6i: Add H616 compatible string

2021-01-26 Thread Andre Przywara
On Mon, 25 Jan 2021 23:51:01 +0100 Alexandre Belloni wrote: Hi Alexandre, > On 25/01/2021 15:18:02+0000, Andre Przywara wrote: > > Add the obvious compatible name to the existing RTC binding, and pair > > it with the existing H6 fallback compatible string, as the devices are

[PATCH v4 00/21] arm64: sunxi: Initial Allwinner H616 SoC support

2021-01-25 Thread Andre Przywara
add IRQ-less AXP support - add two patches to support more than one EMAC clock - add patch to rework and extend USB PHY support - add DT binding documentation patches Andre Przywara (21): dt-bindings: clk: sunxi-ccu: Add compatible string for Allwinner H616 clk: sunxi-ng: Add support for the A

[PATCH v4 14/21] net: stmmac: dwmac-sun8i: Prepare for second EMAC clock register

2021-01-25 Thread Andre Przywara
into the regmap, so that we can address more than the first register, if needed. Signed-off-by: Andre Przywara --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers

[PATCH v4 11/21] dt-bindings: media: IR: Add H616 IR compatible string

2021-01-25 Thread Andre Przywara
Add the obvious compatible name to the existing IR binding, and pair it with the existing A31 fallback compatible string, as the devices are compatible. On the way use enums to group all compatible devices together. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../bindings/media

[PATCH v4 09/21] dt-bindings: watchdog: sun4i: Add H616 compatible string

2021-01-25 Thread Andre Przywara
Use enums to group all compatible devices together on the way. Signed-off-by: Andre Przywara Acked-by: Rob Herring Acked-by: Maxime Ripard Reviewed-by: Guenter Roeck --- .../bindings/watchdog/allwinner,sun4i-a10-wdt.yaml | 12 +--- 1 file changed, 5 insertions(+), 7 deletions

[PATCH v4 12/21] dt-bindings: rtc: sun6i: Add H616 compatible string

2021-01-25 Thread Andre Przywara
Add the obvious compatible name to the existing RTC binding, and pair it with the existing H6 fallback compatible string, as the devices are compatible. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 3 +++ 1 file

[PATCH v4 20/21] dt-bindings: arm: sunxi: Add OrangePi Zero 2 binding

2021-01-25 Thread Andre Przywara
Signed-off-by: Andre Przywara Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index 08607c7ec1bf..aeb8771b14c4

[PATCH v4 16/21] dt-bindings: usb: Add H616 compatible string

2021-01-25 Thread Andre Przywara
The H616 has four PHYs as the H3, along with their respective clock gates and resets, so the property description is identical. However the PHYs itself need some special bits, so we need a new compatible string for it. Signed-off-by: Andre Przywara --- .../devicetree/bindings/phy/allwinner

[PATCH v4 21/21] arm64: dts: allwinner: Add OrangePi Zero 2 .dts

2021-01-25 Thread Andre Przywara
The OrangePi Zero 2 is a development board with the new H616 SoC. It features the usual connectors used on those small boards, and comes with the AXP305, which seems to be compatible with the AXP805. For more details see: http://linux-sunxi.org/Xunlong_Orange_Pi_Zero2 Signed-off-by: Andre

[PATCH v4 10/21] dt-bindings: i2c: mv64xxx: Add H616 compatible string

2021-01-25 Thread Andre Przywara
Add the obvious compatible name to the existing I2C binding, and pair it with the existing A31 fallback compatible string, as the devices are compatible. On the way use enums to group all compatible devices together. Signed-off-by: Andre Przywara Acked-by: Rob Herring Acked-by: Wolfram Sang

[PATCH v4 01/21] dt-bindings: clk: sunxi-ccu: Add compatible string for Allwinner H616

2021-01-25 Thread Andre Przywara
Signed-off-by: Andre Przywara Acked-by: Rob Herring Acked-by: Maxime Ripard --- .../devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml b/Documentation

[PATCH v4 15/21] phy: sun4i-usb: Rework HCI PHY (aka. "pmu_unk1") handling

2021-01-25 Thread Andre Przywara
While we are at it, generalise the existing code by allowing a bitmap of bits to clear, to cover newer SoCs: The A100 and H616 use a different bit for the SIDDQ control. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- drivers/phy/allwinner/phy-sun4i-usb.c | 29 +++--

[PATCH v4 04/21] dt-bindings: mfd: axp20x: Add AXP305 compatible (plus optional IRQ)

2021-01-25 Thread Andre Przywara
The AXP305 PMIC used in AXP805 seems to be fully compatible to the AXP805 PMIC, so add the proper chain of compatible strings. Also at least on one board (Orangepi Zero2) there is no interrupt line connected to the CPU, so make the "interrupts" property optional. Signed-off-by: Andr

[PATCH v4 08/21] soc: sunxi: sram: Add support for more than one EMAC clock

2021-01-25 Thread Andre Przywara
The Allwinner H616 adds a second EMAC clock register at offset 0x34, for controlling the second EMAC in this chip. Allow to extend the regmap in this case, to cover more than the current 4 bytes exported. Signed-off-by: Andre Przywara --- drivers/soc/sunxi/sunxi_sram.c | 31

Re: [PATCH v3 18/21] dt-bindings: allwinner: Add H616 compatible strings

2021-01-25 Thread Andre Przywara
On Sun, 17 Jan 2021 22:28:47 -0600 Samuel Holland wrote: Hi, > On 1/17/21 8:08 PM, Andre Przywara wrote: > > Add simple "allwinner,sun50i-h616-xxx" compatible names to existing > > bindings, and pair them with an existing fallback compatible string, > >

[PATCH v4 13/21] dt-bindings: spi: sunxi: Add H616 compatible string

2021-01-25 Thread Andre Przywara
Add the obvious compatible name to the existing SPI binding, and pair it with the existing H3 fallback compatible string, as the devices are compatible. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml | 1 + 1 file

[PATCH v4 06/21] mfd: axp20x: Allow AXP chips without interrupt lines

2021-01-25 Thread Andre Przywara
functionality of the AXP chip is simply not available. Check whether the interrupt line number returned by the platform code is valid, before trying to register the irqchip. If not, we skip this registration, to avoid the driver to bail out completely. Signed-off-by: Andre Przywara --- drivers/mfd

[PATCH v4 17/21] dt-bindings: usb: sunxi-musb: Add H616 compatible string

2021-01-25 Thread Andre Przywara
The H616 MUSB peripheral is presumably compatible to the H3 one. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- .../devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/allwinner

[PATCH v4 02/21] clk: sunxi-ng: Add support for the Allwinner H616 R-CCU

2021-01-25 Thread Andre Przywara
The clocks itself are identical to the H6 R-CCU, it's just that the H616 has not all of them implemented (or connected). Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- drivers/clk/sunxi-ng/Kconfig | 2 +- drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 48

[PATCH v4 03/21] clk: sunxi-ng: Add support for the Allwinner H616 CCU

2021-01-25 Thread Andre Przywara
While the clocks are fairly similar to the H6, many differ in tiny details, so a separate clock driver seems indicated. Derived from the H6 clock driver, and adjusted according to the manual. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- drivers/clk/sunxi-ng/Kconfig

[PATCH v4 07/21] dt-bindings: sram: sunxi-sram: Add H616 compatible string

2021-01-25 Thread Andre Przywara
The H616 adds a second EMAC clock register. We don't know about the exact SRAM properties yet, so this gets omitted for now. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../bindings/sram/allwinner,sun4i-a10-system-control.yaml| 1 + 1 file changed, 1 insertion(+) diff

[PATCH v4 05/21] Input: axp20x-pek: Bail out if AXP has no interrupt line connected

2021-01-25 Thread Andre Przywara
e_register+0x20/0x30 [4.120065] sunxi_rsb_probe+0x4e4/0x608 [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2021-January/633392.html Signed-off-by: Andre Przywara --- drivers/input/misc/axp20x-pek.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/input/m

Re: [PATCH v3 09/21] mfd: axp20x: Allow AXP chips without interrupt lines

2021-01-21 Thread Andre Przywara
On Sun, 17 Jan 2021 21:37:22 -0600 Samuel Holland wrote: Hi Samuel, thanks for your input! > On 1/17/21 8:08 PM, Andre Przywara wrote: > > Currently the AXP chip requires to have its IRQ line connected to some > > interrupt controller, and will fail probing when this

Re: [PATCH v6 0/5] ARM: arm64: Add SMCCC TRNG entropy service

2021-01-20 Thread Andre Przywara
On Wed, 20 Jan 2021 13:26:26 + Marc Zyngier wrote: Hi, > On 2021-01-20 13:01, Will Deacon wrote: > > On Wed, 6 Jan 2021 10:34:48 +0000, Andre Przywara wrote: > >> a fix to v5, now *really* fixing the wrong priority of SMCCC vs. > >> RNDR in arch_get_random_s

Re: [PATCH v3 02/21] mmc: sunxi: add support for A100 mmc controller

2021-01-18 Thread Andre Przywara
On Mon, 18 Jan 2021 14:28:54 +0100 Maxime Ripard wrote: Hi Maxime, > On Mon, Jan 18, 2021 at 02:08:29AM +0000, Andre Przywara wrote: > > From: Yangtao Li > > > > This patch adds support for A100 MMC controller, which use word > > address for internal dma. > &g

[PATCH v3 17/21] dt-bindings: watchdog: sun4i: Add H616 compatible string

2021-01-17 Thread Andre Przywara
Use enums to group all compatible devices together on the way. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../bindings/watchdog/allwinner,sun4i-a10-wdt.yaml | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings

[PATCH v3 06/21] dt-bindings: clk: sunxi-ccu: Add compatible string for Allwinner H616

2021-01-17 Thread Andre Przywara
Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml b/Documentation/devicetree/bindings/clock

[PATCH v3 05/21] pinctrl: sunxi: Add support for the Allwinner H616-R pin controller

2021-01-17 Thread Andre Przywara
There are only two pins left now, used to connect to the PMIC via I2C. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard Reviewed-by: Jernej Skrabec --- drivers/pinctrl/sunxi/Kconfig | 5 ++ drivers/pinctrl/sunxi/Makefile| 1 + drivers/pinctrl/sunxi

[PATCH v3 07/21] clk: sunxi-ng: Add support for the Allwinner H616 R-CCU

2021-01-17 Thread Andre Przywara
The clocks itself are identical to the H6 R-CCU, it's just that the H616 has not all of them implemented (or connected). Signed-off-by: Andre Przywara --- drivers/clk/sunxi-ng/Kconfig | 2 +- drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 48 ++ 2 files changed, 49

[PATCH v3 20/21] dt-bindings: arm: sunxi: Add OrangePi Zero 2 binding

2021-01-17 Thread Andre Przywara
Signed-off-by: Andre Przywara Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index 7ea4d9645e93..6a2fa84bb785

[PATCH v3 11/21] soc: sunxi: sram: Add support for more than one EMAC clock

2021-01-17 Thread Andre Przywara
The Allwinner H616 adds a second EMAC clock register at offset 0x34, for controlling the second EMAC in this chip. Allow to extend the regmap in this case, to cover more than the current 4 bytes exported. Signed-off-by: Andre Przywara --- drivers/soc/sunxi/sunxi_sram.c | 31

[PATCH v3 16/21] phy: sun4i-usb: Add support for the H616 USB PHY

2021-01-17 Thread Andre Przywara
and assign a new compatible name to it. Signed-off-by: Andre Przywara --- drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 539209fe3468..e71d6b8ccf16 100644

[PATCH v3 18/21] dt-bindings: allwinner: Add H616 compatible strings

2021-01-17 Thread Andre Przywara
Add simple "allwinner,sun50i-h616-xxx" compatible names to existing bindings, and pair them with an existing fallback compatible string, as the devices are compatible. This covers I2C, infrared, RTC and SPI. Use enums to group all compatible devices together. Signed-off-by: Andre Przyw

[PATCH v3 15/21] dt-bindings: usb: sunxi-musb: Add H616 compatible string

2021-01-17 Thread Andre Przywara
The H616 MUSB peripheral is presumably compatible to the H3 one. Signed-off-by: Andre Przywara --- .../devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml b

[PATCH v3 21/21] arm64: dts: allwinner: Add OrangePi Zero 2 .dts

2021-01-17 Thread Andre Przywara
The OrangePi Zero 2 is a development board with the new H616 SoC. It features the usual connectors used on those small boards, and comes with the AXP305, which seems to be compatible with the AXP805. For more details see: http://linux-sunxi.org/Xunlong_Orange_Pi_Zero2 Signed-off-by: Andre

[PATCH v3 19/21] arm64: dts: allwinner: Add Allwinner H616 .dtsi file

2021-01-17 Thread Andre Przywara
interrupt controller anymore, also it lacks the corresponding NMI pin, so no interrupts for the PMIC. Signed-off-by: Andre Przywara --- .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 750 ++ 1 file changed, 750 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h616

[PATCH v3 13/21] phy: sun4i-usb: Rework HCI PHY (aka. "pmu_unk1") handling

2021-01-17 Thread Andre Przywara
While we are at it, generalise the existing code by allowing a bitmap of bits to clear, to cover newer SoCs: The A100 and H616 use a different bit for the SIDDQ control. Signed-off-by: Andre Przywara --- drivers/phy/allwinner/phy-sun4i-usb.c | 29 +++ 1 file changed,

[PATCH v3 14/21] dt-bindings: usb: Add H616 compatible string

2021-01-17 Thread Andre Przywara
The H616 has four PHYs as the H3, along with their respective clock gates and resets, so the property description is identical. However the PHYs itself need some special bits, so we need a new compatible string for it. Signed-off-by: Andre Przywara --- .../devicetree/bindings/phy/allwinner

[PATCH v3 12/21] net: stmmac: dwmac-sun8i: Prepare for second EMAC clock register

2021-01-17 Thread Andre Przywara
into the regmap, so that we can address more than the first register, if needed. Signed-off-by: Andre Przywara --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers

[PATCH v3 09/21] mfd: axp20x: Allow AXP chips without interrupt lines

2021-01-17 Thread Andre Przywara
describes the AXP chip as an interrupt controller before trying to register the irqchip, to avoid probe failures on setups without an interrupt. Signed-off-by: Andre Przywara --- drivers/mfd/axp20x.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/mfd

[PATCH v3 08/21] clk: sunxi-ng: Add support for the Allwinner H616 CCU

2021-01-17 Thread Andre Przywara
While the clocks are fairly similar to the H6, many differ in tiny details, so a separate clock driver seems indicated. Derived from the H6 clock driver, and adjusted according to the manual. Signed-off-by: Andre Przywara --- drivers/clk/sunxi-ng/Kconfig|5 + drivers/clk

[PATCH v3 10/21] dt-bindings: sram: sunxi-sram: Add H616 compatible string

2021-01-17 Thread Andre Przywara
The H616 adds a second EMAC clock register. We don't know about the exact SRAM properties yet, so this gets omitted for now. Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../bindings/sram/allwinner,sun4i-a10-system-control.yaml| 1 + 1 file changed, 1 insertion(+) diff

[PATCH v3 04/21] pinctrl: sunxi: Add support for the Allwinner H616 pin controller

2021-01-17 Thread Andre Przywara
Port A is used for an internal connection to some analogue circuitry which looks like an AC200 IP (as in the H6), though this is not mentioned in the manual. Signed-off-by: Andre Przywara --- drivers/pinctrl/sunxi/Kconfig | 5 + drivers/pinctrl/sunxi/Makefile | 1

[PATCH v3 03/21] dt-bindings: pinctrl: Add Allwinner H616 compatible strings

2021-01-17 Thread Andre Przywara
A new SoC, a new compatible string. Also we were too miserly with just allowing seven interrupt banks. Signed-off-by: Andre Przywara --- .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml| 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Documentation

[PATCH v3 02/21] mmc: sunxi: add support for A100 mmc controller

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

[PATCH v3 01/21] dt-bindings: mmc: sunxi: Add Allwinner A100 and H616 compatibles

2021-01-17 Thread Andre Przywara
From: Yangtao Li Add binding for A100's and H616's mmc and emmc controller. Signed-off-by: Yangtao Li Signed-off-by: Andre Przywara Acked-by: Rob Herring --- .../devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 8 1 file changed, 8 insertions(+) diff --git a/Documentation

[PATCH v3 00/21] arm64: sunxi: Initial Allwinner H616 SoC support

2021-01-17 Thread Andre Przywara
.dts: add SPI flash node - .dts: make USB-C port peripheral only - add IRQ-less AXP support - add two patches to support more than one EMAC clock - add patch to rework and extend USB PHY support - add DT binding documentation patches Andre Przywara (19): dt-bindings: pinctrl: Add Allwinner H61

[PATCH v3] clk: sunxi-ng: h6: Fix clock divider range on some clocks

2021-01-17 Thread Andre Przywara
at bits [4:2] are indeed masked off, so the manual is right. Change to number of bits in the affected clock's description. Fixes: 524353ea480b ("clk: sunxi-ng: add support for the Allwinner H6 CCU") Signed-off-by: Andre Przywara Reviewed-by: Jernej Skrabec --- Splitting this off

Re: [PATCH v2 02/21] dt-bindings: pinctrl: Add Allwinner H616 compatible strings

2021-01-13 Thread Andre Przywara
On Mon, 14 Dec 2020 10:37:28 +0100 Maxime Ripard wrote: > On Fri, Dec 11, 2020 at 01:19:15AM +0000, Andre Przywara wrote: > > A new SoC, a new compatible string. > > Also we were too miserly with just allowing seven interrupt banks. > > > > Si

[PATCH v6 4/5] arm64: Add support for SMCCC TRNG entropy source

2021-01-06 Thread Andre Przywara
ion, which returns -1 if this interface is not implemented. Signed-off-by: Andre Przywara --- arch/arm64/include/asm/archrandom.h | 72 - 1 file changed, 61 insertions(+), 11 deletions(-) diff --git a/arch/arm64/include/asm/archrandom.h b/arch/arm64/include/asm/archrando

[PATCH v6 5/5] KVM: arm64: implement the TRNG hypervisor call

2021-01-06 Thread Andre Przywara
by the kernel's entropy pool only, to avoid guests draining more precious direct entropy sources. Signed-off-by: Ard Biesheuvel [Andre: minor fixes, drop arch_get_random() usage] Signed-off-by: Andre Przywara --- arch/arm64/include/asm/kvm_host.h | 2 + arch/arm64/kvm/Makefile | 2

[PATCH v6 3/5] ARM: implement support for SMCCC TRNG entropy source

2021-01-06 Thread Andre Przywara
reseeding. Cc: Linus Walleij Cc: Russell King Signed-off-by: Ard Biesheuvel [Andre: rework to be initialised by the SMCCC firmware driver] Signed-off-by: Andre Przywara Reviewed-by: Linus Walleij --- arch/arm/Kconfig | 4 ++ arch/arm/include/asm/archrandom.h | 64

[PATCH v6 2/5] firmware: smccc: Introduce SMCCC TRNG framework

2021-01-06 Thread Andre Przywara
of this interface. For now this return false, but this will be overwritten by each architecture's support patch. Signed-off-by: Andre Przywara Reviewed-by: Linus Walleij Reviewed-by: Sudeep Holla --- arch/arm/include/asm/archrandom.h | 10 ++ arch/arm64/include/asm/archrandom.h | 12

[PATCH v6 1/5] firmware: smccc: Add SMCCC TRNG function call IDs

2021-01-06 Thread Andre Przywara
-off-by: Andre Przywara Reviewed-by: Linus Walleij Reviewed-by: Sudeep Holla --- include/linux/arm-smccc.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h index f860645f6512..62c54234576c 100644

[PATCH v6 0/5] ARM: arm64: Add SMCCC TRNG entropy service

2021-01-06 Thread Andre Przywara
coded long arrays - KVM: drop direct usage of arch_get_random() interface Changelog "v1" ... v2: - trigger ARCH_RANDOM initialisation from the SMCCC firmware driver - use a single bool in smccc.c to hold the initialisation state for arm64 - handle endianess correctly in the KVM provider Andr

Re: [PATCH v5 4/5] arm64: Add support for SMCCC TRNG entropy source

2021-01-06 Thread Andre Przywara
On Tue, 5 Jan 2021 17:00:14 + Mark Brown wrote: > On Tue, Jan 05, 2021 at 04:36:51PM +0000, Andre Przywara wrote: > > > @@ -77,10 +117,20 @@ arch_get_random_seed_long_early(unsigned long > > *v) { > > WARN_ON(system_state != SYSTEM_BOOTING); > > >

[PATCH v5 5/5] KVM: arm64: implement the TRNG hypervisor call

2021-01-05 Thread Andre Przywara
by the kernel's entropy pool only, to avoid guests draining more precious direct entropy sources. Signed-off-by: Ard Biesheuvel [Andre: minor fixes, drop arch_get_random() usage] Signed-off-by: Andre Przywara --- arch/arm64/include/asm/kvm_host.h | 2 + arch/arm64/kvm/Makefile | 2

[PATCH v5 4/5] arm64: Add support for SMCCC TRNG entropy source

2021-01-05 Thread Andre Przywara
ion, which returns -1 if this interface is not implemented. Signed-off-by: Andre Przywara --- arch/arm64/include/asm/archrandom.h | 72 - 1 file changed, 61 insertions(+), 11 deletions(-) diff --git a/arch/arm64/include/asm/archrandom.h b/arch/arm64/include/asm/archrando

[PATCH v5 3/5] ARM: implement support for SMCCC TRNG entropy source

2021-01-05 Thread Andre Przywara
reseeding. Cc: Linus Walleij Cc: Russell King Signed-off-by: Ard Biesheuvel [Andre: rework to be initialised by the SMCCC firmware driver] Signed-off-by: Andre Przywara Reviewed-by: Linus Walleij --- arch/arm/Kconfig | 4 ++ arch/arm/include/asm/archrandom.h | 64

[PATCH v5 2/5] firmware: smccc: Introduce SMCCC TRNG framework

2021-01-05 Thread Andre Przywara
of this interface. For now this return false, but this will be overwritten by each architecture's support patch. Signed-off-by: Andre Przywara Reviewed-by: Linus Walleij Reviewed-by: Sudeep Holla --- arch/arm/include/asm/archrandom.h | 10 ++ arch/arm64/include/asm/archrandom.h | 12

[PATCH v5 1/5] firmware: smccc: Add SMCCC TRNG function call IDs

2021-01-05 Thread Andre Przywara
-off-by: Andre Przywara Reviewed-by: Linus Walleij Reviewed-by: Sudeep Holla --- include/linux/arm-smccc.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h index f860645f6512..62c54234576c 100644

[PATCH v5 0/5] ARM: arm64: Add SMCCC TRNG entropy service

2021-01-05 Thread Andre Przywara
ot;v1" ... v2: - trigger ARCH_RANDOM initialisation from the SMCCC firmware driver - use a single bool in smccc.c to hold the initialisation state for arm64 - handle endianess correctly in the KVM provider Andre Przywara (2): firmware: smccc: Introduce SMCCC TRNG framework arm64: A

Re: [PATCH v4 4/5] arm64: Add support for SMCCC TRNG entropy source

2021-01-04 Thread Andre Przywara
On Fri, 11 Dec 2020 16:26:12 + Mark Brown wrote: > On Fri, Dec 11, 2020 at 04:00:04PM +0000, Andre Przywara wrote: > > > static inline bool __must_check arch_get_random_seed_long(unsigned > > long *v) { > > + struct arm_smccc_res res; > > + > > + /*

Re: [PATCH v2 19/21] arm64: dts: allwinner: Add Allwinner H616 .dtsi file

2020-12-14 Thread Andre Przywara
On Mon, 14 Dec 2020 10:58:31 +0100 Maxime Ripard wrote: Hi, > On Fri, Dec 11, 2020 at 01:19:32AM +0000, Andre Przywara wrote: > > + reserved-memory { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + ranges; &

[PATCH v4 2/5] firmware: smccc: Introduce SMCCC TRNG framework

2020-12-11 Thread Andre Przywara
of this interface. For now this return false, but this will be overwritten by each architecture's support patch. Signed-off-by: Andre Przywara Reviewed-by: Linus Walleij --- arch/arm/include/asm/archrandom.h | 10 ++ arch/arm64/include/asm/archrandom.h | 12 drivers

  1   2   3   4   5   6   7   8   9   10   >