Re: [linux-sunxi] [PATCH 2/3] arm64: allwinner: a64: add CPU opp table

2017-09-25 Thread Samuel Holland
Hello, On 09/22/17 19:15, Icenowy Zheng wrote: Add the operating table for the CPU (ARM cores) on Allwinner A64 SoC. OPPs higher to 816MHz is temporarily dropped, to prevent overheat on boards with AXP803 support and undervoltage on boards without AXP803 support. Signed-off-by: Icenowy Zheng

[linux-sunxi] [PATCH 2/2] arm64: dts: allwinner: a64: Enable A64 timer workaround

2018-05-10 Thread Samuel Holland
As instability in the architectural timer has been observed on multiple devices using this SoC, inluding the Pine64 and the Orange Pi Win, enable the workaround in the SoC's device tree. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm64/boot/dts/allwinner/sun50i-a64.dt

[linux-sunxi] [PATCH 0/2] Allwinner A64 timer workaround

2018-05-10 Thread Samuel Holland
obvious problems with this SoC's architectural timer, and this patch series introduces what I believe is the simplest workaround. More details are in the commit message for patch 1. Patch 2 simply enables the workaround in the device tree. Thanks, Samuel Samuel Holland (2): arm64: arch_timer

[linux-sunxi] [PATCH 1/2] arm64: arch_timer: Workaround for Allwinner A64 timer instability

2018-05-10 Thread Samuel Holland
Signed-off-by: Samuel Holland <sam...@sholland.org> --- drivers/clocksource/Kconfig | 11 ++ drivers/clocksource/arm_arch_timer.c | 39 2 files changed, 50 insertions(+) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig

[linux-sunxi] [PATCH 1/2] arm64: dts: allwinner: a64: Update Orange Pi Win/Win Plus

2018-05-10 Thread Samuel Holland
the schematic - Marking the CPU's power supply as such Signed-off-by: Samuel Holland <sam...@sholland.org> --- .../boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 141 - 1 file changed, 134 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-or

[linux-sunxi] [PATCH 2/2] arm64: dts: allwinner: h5: Update Orange Pi Zero Plus

2018-05-10 Thread Samuel Holland
. Additionally, fix up an incorrect comment, remove an unnecessary header inclusion, sort existing nodes, and fix some indentation issues. Signed-off-by: Samuel Holland <sam...@sholland.org> --- .../dts/allwinner/sun50i-h5-orangepi-zero-plus.dts | 58 -- 1 file changed, 42 inse

[linux-sunxi] Re: [PATCH 1/2] arm64: arch_timer: Workaround for Allwinner A64 timer instability

2018-05-11 Thread Samuel Holland
On 05/11/18 03:48, Marc Zyngier wrote: > [+Mark, who co-maintains the arch timer code with me] > > Hi Samuel, > > On 11/05/18 03:27, Samuel Holland wrote: >> The Allwinner A64 SoC is known [1] to have an unstable architectural >> timer, which manifests itself most ob

Re: [linux-sunxi] [PATCH 16/16] arm: dts: sun8i: a83t: add thermal zone to A83T

2018-01-26 Thread Samuel Holland
On 01/26/18 09:19, Philipp Rossak wrote: > This patch adds the thermal zones to the A83T. Sensor 0 is located in the > cpu cluster 0. Sensor 1 is located in cluster 1 and Sensor 3 is located > in the gpu. You mention sensor 3 here, but have sensor 2 in the device tree. > Signed-off-by: Philipp

Re: [linux-sunxi] [PATCH 13/16] arm: dts: sun8i: h3: add thermal zone to H3

2018-01-26 Thread Samuel Holland
On 01/26/18 09:19, Philipp Rossak wrote: > This patch adds the thermal zones to the H3. We have only one sensor and > that is placed in the cpu. > > Signed-off-by: Philipp Rossak > --- > arch/arm/boot/dts/sun8i-h3.dtsi | 9 + > 1 file changed, 9 insertions(+) > >

[linux-sunxi] Re: [PATCH 1/7] sunxi: binman: Fix U-Boot binary size check

2018-01-25 Thread Samuel Holland
On 01/25/18 09:27, Maxime Ripard wrote: > On Wed, Jan 24, 2018 at 07:13:54AM -0600, Samuel Holland wrote: >> On 01/24/18 02:38, Maxime Ripard wrote: >>> Hi! >>> >>> On Tue, Jan 23, 2018 at 04:18:13PM -0600, Samuel Holland wrote: >>>> If raw mode is d

[linux-sunxi] [PATCH] net: sun8i_emac: Fix PHY initialization

2018-01-27 Thread Samuel Holland
. Fix this by using the correct function to start up the PHY. Signed-off-by: Samuel Holland <sam...@sholland.org> --- drivers/net/sun8i_emac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 3ccc6b0bb6..be43472b1a

[linux-sunxi] Re: [PATCH v2 4/7] arm: dts: sunxi: update A64 to new EMAC binding

2018-02-09 Thread Samuel Holland
On 02/08/18 19:30, Andre Przywara wrote: > The U-Boot driver for the sun8i-emac was using some preliminary DT > binding. Now since Linux got its own driver in v4.15 and our driver > can now cope with both bindings, let's convert the DT nodes used for the > Pine64+ board over to the new bindings

[linux-sunxi] [PATCH 1/7] sunxi: binman: Fix U-Boot binary size check

2018-01-23 Thread Samuel Holland
If raw mode is disabled, CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is not defined, which breaks compiling the device trees. Only enable the size check when it actually matters--that is, when MMC raw mode is enabled. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/s

[linux-sunxi] [PATCH 7/7] sun50i: h5: Add support for the Orange Pi Zero Plus

2018-01-23 Thread Samuel Holland
The Orange Pi Zero Plus is a single board computer based on the Allwinner H5 SoC. It has 512MiB RAM, gigabit Ethernet, and one USB 2.0 port, with headers for two additional ports. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/Makefile | 1 +

[linux-sunxi] [PATCH 3/7] sun50i: a64: Move ethernet nodes to SoC DTS

2018-01-23 Thread Samuel Holland
These nodes were previously in an unused file specific to the Pine64. Move them to the base SoC device tree for use by other boards. Require individual boards to enable the emac and provide a pin configuration. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun5

[linux-sunxi] [PATCH 2/7] sun50i: a64: Fix USB clock/reset properties

2018-01-23 Thread Samuel Holland
Move the CLK_USB_OHCI0/1 clocks to the OHCI nodes where they belong, and make the format consistent with the H3/H5 nodes. While here, also remove leading zeros from the USB nodes' unit addresses. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun50i-a64.dts

[linux-sunxi] [PATCH 4/7] sun50i: a64: Update OrangePi Win defconfig and DTS

2018-01-23 Thread Samuel Holland
Enable Ethernet support in the device tree and add the necessary MACPWR configuration. Also fix spacing in USB device tree nodes and add the relevant configuration options. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun50i-a64-orangepi-win.dt

[linux-sunxi] [PATCH 6/7] sun50i: h5: Enable remaining USB ports on OrangePi PC2

2018-01-23 Thread Samuel Holland
The OrangePi PC 2 has three USB type A ports, with one connected to each EHCI/OHCI controller. Enable the controllers for the other two ports. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 16 1 file changed, 16 inse

[linux-sunxi] [PATCH 0/7] sun50i device tree changes

2018-01-23 Thread Samuel Holland
These patches fix one general build issue, improve support for two existing boards, and add support for the Orange Pi Zero Plus. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it,

[linux-sunxi] Re: [PATCH 1/7] sunxi: binman: Fix U-Boot binary size check

2018-01-24 Thread Samuel Holland
On 01/24/18 02:38, Maxime Ripard wrote: > Hi! > > On Tue, Jan 23, 2018 at 04:18:13PM -0600, Samuel Holland wrote: >> If raw mode is disabled, CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is not >> defined, which breaks compiling the device trees. Only enable the size >> che

[linux-sunxi] Re: [PATCH 2/7] sun50i: a64: Fix USB clock/reset properties

2018-01-24 Thread Samuel Holland
On 01/24/18 02:42, Maxime Ripard wrote: > On Tue, Jan 23, 2018 at 04:18:14PM -0600, Samuel Holland wrote: >> Move the CLK_USB_OHCI0/1 clocks to the OHCI nodes where they belong, and >> make the format consistent with the H3/H5 nodes. While here, also remove >> leading zer

[linux-sunxi] Re: [PATCH 7/7] sun50i: h5: Add support for the Orange Pi Zero Plus

2018-01-24 Thread Samuel Holland
On 01/24/18 02:45, Maxime Ripard wrote: > On Tue, Jan 23, 2018 at 04:18:19PM -0600, Samuel Holland wrote: >> diff --git a/arch/arm/dts/sun50i-h5-orangepi-zero-plus2.dts >> b/arch/arm/dts/sun50i-h5-orangepi-zero-plus2.dts >> index 3f4baba310..e44e75733e 100644 >> -

[linux-sunxi] Re: [PATCH v3 6/7] arm64: allwinner: h6: add the basical Allwinner H6 DTSI file

2018-02-26 Thread Samuel Holland
On 02/26/18 03:26, Maxime Ripard wrote: > On Fri, Feb 23, 2018 at 11:22:06PM +0800, Icenowy Zheng wrote: + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; >>> >>> Is it needed? The bootloader should fill it with whatever version it >>> has,

[linux-sunxi] [PATCH v3 1/2] arm64: arch_timer: Workaround for Allwinner A64 timer instability

2019-01-12 Thread Samuel Holland
mlet/H6-BSP4.9-linux/blob/master/drivers/clocksource/arm_arch_timer.c#L272 Acked-by: Maxime Ripard Tested-by: Andre Przywara Signed-off-by: Samuel Holland --- Documentation/arm64/silicon-errata.txt | 2 + drivers/clocksource/Kconfig| 10 + drivers/clocksource/arm

[linux-sunxi] [PATCH v3 0/2] Allwinner A64 timer workaround

2019-01-12 Thread Samuel Holland
TVAL handling based on Marc's suggestion - Added erratum documentation and renamed symbols to match - Added Maxime's Acked-by changes since v1: - Add an iteration limit like most other arch timer workarounds - Added Andre's Tested-by Samuel Holland (2): arm64: arch_timer: Workaround

[linux-sunxi] [PATCH v3 2/2] arm64: dts: allwinner: a64: Enable A64 timer workaround

2019-01-12 Thread Samuel Holland
As instability in the architectural timer has been observed on multiple devices using this SoC, inluding the Pine64 and the Orange Pi Win, enable the workaround in the SoC's device tree. Acked-by: Maxime Ripard Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 1

Re: [linux-sunxi] Re: [PATCH] soc: sunxi: Fix missing dependency on REGMAP_MMIO

2019-04-01 Thread Samuel Holland
On 4/1/19 10:29 AM, 'Bin Liu' via linux-sunxi wrote: > On Fri, Mar 01, 2019 at 03:43:48PM +0100, Maxime Ripard wrote: >> On Thu, Feb 28, 2019 at 08:20:44PM -0600, Samuel Holland wrote: >>> When enabling ARCH_SUNXI from allnoconfig, SUNXI_SRAM is enabled, but >>> not

[linux-sunxi] [PATCH v2] soc: sunxi: Fix missing dependency on REGMAP_MMIO

2019-04-01 Thread Samuel Holland
Fixes: 5828729bebbb ("soc: sunxi: export a regmap for EMAC clock reg on A64") Signed-off-by: Samuel Holland --- changes from v1: - add stable@ and Fixes: tag --- drivers/soc/sunxi/Kconfig | 1 + drivers/usb/musb/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH v2 06/10] ARM: dts: sunxi: a80: Add msgbox node

2019-02-28 Thread Samuel Holland
The A80 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10

[linux-sunxi] [PATCH v2 00/10] Allwinner sunxi message box support

2019-02-28 Thread Samuel Holland
1 fallback compatible - Dropped the mailbox framework patch - Include DT patches for SoCs that document the message box Samuel Holland (10): clk: sunxi-ng: sun8i: Mark the msgbox clock as critical clk: sunxi-ng: sun9i: Mark the msgbox clock as critical clk: sunxi-ng: sun50i: Mark the ms

[linux-sunxi] [PATCH v2 02/10] clk: sunxi-ng: sun9i: Mark the msgbox clock as critical

2019-02-28 Thread Samuel Holland
-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun9i-a80.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun9i-a80.c b/drivers/clk/sunxi-ng/ccu-sun9i-a80.c index 8936ef87652c..f9309782e7d8 100644 --- a/drivers/clk/sunxi-ng/ccu-sun9i-a80.c +++ b/drivers/clk

[linux-sunxi] [PATCH v2 08/10] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-02-28 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v2 09/10] arm64: dts: allwinner: a64: Add msgbox node

2019-02-28 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v2 05/10] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-02-28 Thread Samuel Holland
. Signed-off-by: Samuel Holland --- drivers/mailbox/Kconfig| 11 ++ drivers/mailbox/Makefile | 2 + drivers/mailbox/sunxi-msgbox.c | 315 + 3 files changed, 328 insertions(+) create mode 100644 drivers/mailbox/sunxi-msgbox.c diff --git a/drivers/mailbox

[linux-sunxi] [PATCH v2 01/10] clk: sunxi-ng: sun8i: Mark the msgbox clock as critical

2019-02-28 Thread Samuel Holland
-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a23

[linux-sunxi] [PATCH v2 10/10] arm64: dts: allwinner: h6: Add msgbox node

2019-02-28 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v2 04/10] dt-bindings: mailbox: Add a sunxi message box binding

2019-02-28 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Signed-off-by: Samuel Holland --- .../bindings/mailbox/sunxi-msgbox.txt | 44 +++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree

[linux-sunxi] [PATCH v2 03/10] clk: sunxi-ng: sun50i: Mark the msgbox clock as critical

2019-02-28 Thread Samuel Holland
-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 +- drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c index 932836d26e2b..7780e855c56f 100644

[linux-sunxi] [PATCH v2 07/10] ARM: dts: sunxi: a83t: Add msgbox node

2019-02-28 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10

[linux-sunxi] [PATCH] soc: sunxi: Fix missing dependency on REGMAP_MMIO

2019-02-28 Thread Samuel Holland
-by: Samuel Holland --- drivers/soc/sunxi/Kconfig | 1 + drivers/usb/musb/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/sunxi/Kconfig b/drivers/soc/sunxi/Kconfig index 353b07e40176..e84eb4e59f58 100644 --- a/drivers/soc/sunxi/Kconfig +++ b/drivers/soc/sunxi

[linux-sunxi] [PATCH v3 14/15] [NOT FOR MERGE] arm64: dts: allwinner: a64: Convert DTS to use msgbox_intc

2019-03-01 Thread Samuel Holland
Now that there is an alternate way for Linux to receive NMIs from the PMIC, replace references to r_intc with references to the new interrupt controller. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts | 4 ++-- arch/arm64/boot/dts/allwinner/sun50i

[linux-sunxi] [PATCH v3 11/15] [NOT FOR MERGE] dt-bindings: Add a binding for a mailbox-backed interrupt controller

2019-03-01 Thread Samuel Holland
This is a somewhat generic binding for an interrupt controller/forwarder implemented in firmware and communicated with using a mailbox. Signed-off-by: Samuel Holland --- .../interrupt-controller/mbox-intc.txt| 33 +++ 1 file changed, 33 insertions(+) create mode 100644

[linux-sunxi] [PATCH v3 15/15] [NOT FOR MERGE] arm64: dts: allwinner: a64: Remove unused r_intc

2019-03-01 Thread Samuel Holland
Now that r_intc is no longer used directly by Linux, it can be removed from the SoC device tree. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch

[linux-sunxi] [PATCH v3 10/15] [NOT FOR MERGE] clk: sunxi-ng: sun8i: Avoid turning off unused PRCM gates

2019-03-01 Thread Samuel Holland
optimally configured these clocks before booting Linux. Signed-off-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun8i-r.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r.c b/drivers/clk/sunxi-ng/ccu-sun8i-r.c index

[linux-sunxi] [PATCH v3 00/15] Allwinner sunxi message box support

2019-03-01 Thread Samuel Holland
compatible strings and an A31 fallback compatible - Dropped the mailbox framework patch - Include DT patches for SoCs that document the message box Samuel Holland (15): clk: sunxi-ng: Mark msgbox clocks as critical clk: sunxi-ng: Mark AR100 clocks as critical dt-bindings: mailbox: Add a sun

[linux-sunxi] [PATCH v3 08/15] arm64: dts: allwinner: a64: Add msgbox node

2019-03-01 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v3 01/15] clk: sunxi-ng: Mark msgbox clocks as critical

2019-03-01 Thread Samuel Holland
SoCs. Signed-off-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 3 ++- drivers/clk/sunxi-ng

[linux-sunxi] [PATCH v3 02/15] clk: sunxi-ng: Mark AR100 clocks as critical

2019-03-01 Thread Samuel Holland
nux anyway, since it is the parent of all APB0 bus peripherals. This change only prevents Linux from turning off the AR100 clock in the rare case that no peripherals are in use. Signed-off-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-r.c | 2 +

[linux-sunxi] [PATCH v3 13/15] [NOT FOR MERGE] arm64: dts: allwinner: a64: Add interrupt controller node

2019-03-01 Thread Samuel Holland
this virtual interrupt controller. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 29ee8f0f833a

[linux-sunxi] [PATCH v3 09/15] arm64: dts: allwinner: h6: Add msgbox node

2019-03-01 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v3 04/15] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-03-01 Thread Samuel Holland
. Signed-off-by: Samuel Holland --- drivers/mailbox/Kconfig| 11 ++ drivers/mailbox/Makefile | 2 + drivers/mailbox/sunxi-msgbox.c | 315 + 3 files changed, 328 insertions(+) create mode 100644 drivers/mailbox/sunxi-msgbox.c diff --git a/drivers/mailbox

[linux-sunxi] [PATCH v3 12/15] [NOT FOR MERGE] irqchip/mbox: Introduce a mailbox-backed irqchip driver

2019-03-01 Thread Samuel Holland
This driver implements a simple interrupt controller using message passing over a mailbox channel. The intention is for the other end of the channel to be implemented in firmware. This allows filtering and forwarding interrupts from one processor to another. Signed-off-by: Samuel Holland

[linux-sunxi] [PATCH v3 07/15] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-03-01 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v3 03/15] dt-bindings: mailbox: Add a sunxi message box binding

2019-03-01 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sunxi-msgbox.yaml | 79 +++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree

[linux-sunxi] [PATCH v3 06/15] ARM: dts: sunxi: a83t: Add msgbox node

2019-03-01 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10

[linux-sunxi] Re: [PATCH v3 07/15] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-03-05 Thread Samuel Holland
On 03/01/19 22:29, Samuel Holland wrote: > The H3 and H5 SoCs contain a message box that can be used to send > messages and interrupts back and forth between the ARM application CPUs > and the ARISC coprocessor. Add a device tree node for it. > > Signed-off-by: Samuel Holland &g

Re: [linux-sunxi] [PATCH 6/6] ARM: dts: sunxi: h3/h5: Add device node for SID

2019-03-18 Thread Samuel Holland
On 03/18/19 02:33, Chen-Yu Tsai wrote: > From: Chen-Yu Tsai > > The device tree binding already lists compatible strings for these two > SoCs. Add a device node for them. > > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/boot/dts/sun8i-h3.dtsi | 4 >

[linux-sunxi] [PATCH v4 07/10] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-08-19 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v4 03/10] dt-bindings: mailbox: Add a sunxi message box binding

2019-08-19 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Reviewed-by: Rob Herring Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sunxi-msgbox.yaml | 79 +++ 1 file changed, 79 insertions(+) create mode 100644

[linux-sunxi] [PATCH v4 01/10] clk: sunxi-ng: Mark msgbox clocks as critical

2019-08-19 Thread Samuel Holland
SoCs. Signed-off-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 3 ++- drivers/clk/sunxi-ng

[linux-sunxi] [PATCH v4 02/10] clk: sunxi-ng: Mark AR100 clocks as critical

2019-08-19 Thread Samuel Holland
nux anyway, since it is the parent of all APB0 bus peripherals. This change only prevents Linux from turning off the AR100 clock in the rare case that no peripherals are in use. Signed-off-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 2 +- drivers/clk/sunxi-ng/ccu-sun8i-r.c | 2 +

[linux-sunxi] [PATCH v4 09/10] arm64: dts: allwinner: h6: Add msgbox node

2019-08-19 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v4 10/10] [DO NOT MERGE] drivers: firmware: msgbox demo

2019-08-19 Thread Samuel Holland
ntended to be merged. It is provided only as an example that won't interfere with any other hardware. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 24 ++ arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 24 ++ drivers/firmware/Kconfig

[linux-sunxi] [PATCH v4 05/10] ARM: dts: sunxi: a80: Add msgbox node

2019-08-19 Thread Samuel Holland
The A80 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10

[linux-sunxi] [PATCH v4 06/10] ARM: dts: sunxi: a83t: Add msgbox node

2019-08-19 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10

[linux-sunxi] [PATCH v4 04/10] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-08-19 Thread Samuel Holland
. Signed-off-by: Samuel Holland --- drivers/mailbox/Kconfig| 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/sunxi-msgbox.c | 323 + 3 files changed, 335 insertions(+) create mode 100644 drivers/mailbox/sunxi-msgbox.c diff --git a/drivers/mailbox

[linux-sunxi] [PATCH v4 08/10] arm64: dts: allwinner: a64: Add msgbox node

2019-08-19 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v4 00/10] Allwinner sunxi message box support

2019-08-19 Thread Samuel Holland
irectional channels instead of 4 bidirectional pairs - Use per-SoC compatible strings and an A31 fallback compatible - Dropped the mailbox framework patch - Include DT patches for SoCs that document the message box Samuel Holland (10): clk: sunxi-ng: Mark msgbox clocks as critical clk: sunx

[linux-sunxi] Re: [PATCH v4 03/10] dt-bindings: mailbox: Add a sunxi message box binding

2019-08-20 Thread Samuel Holland
On 8/20/19 2:14 AM, Maxime Ripard wrote: > Hi, > > On Mon, Aug 19, 2019 at 10:23:04PM -0500, Samuel Holland wrote: >> This mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i >> SoCs. Add a device tree binding for it. >> >> Reviewed-by: Rob Herring

[linux-sunxi] Re: [PATCH v4 02/10] clk: sunxi-ng: Mark AR100 clocks as critical

2019-08-20 Thread Samuel Holland
On 8/20/19 2:11 AM, Maxime Ripard wrote: > Hi, > > On Mon, Aug 19, 2019 at 10:23:03PM -0500, Samuel Holland wrote: >> On sun8i, sun9i, and sun50i SoCs, system suspend/resume support requires >> firmware running on the AR100 coprocessor (the "SCP"). Such firmware can

[linux-sunxi] Re: [PATCH v4 04/10] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-08-20 Thread Samuel Holland
On 8/20/19 6:18 AM, Ondřej Jirman wrote: > Hi Samuel, > > On Mon, Aug 19, 2019 at 10:23:05PM -0500, Samuel Holland wrote: >> Allwinner sun8i, sun9i, and sun50i SoCs contain a hardware message box >> used for communication between the ARM CPUs and the ARISC management >>

[linux-sunxi] Re: [PATCH v4 05/10] ARM: dts: sunxi: a80: Add msgbox node

2019-08-20 Thread Samuel Holland
Hi, On 8/20/19 3:15 AM, Maxime Ripard wrote: > On Mon, Aug 19, 2019 at 10:23:06PM -0500, Samuel Holland wrote: >> The A80 SoC contains a message box that can be used to send messages and >> interrupts back and forth between the ARM application CPUs and the ARISC >> coprocess

[linux-sunxi] [PATCH] bus: sunxi-rsb: Make interrupt handling more robust

2019-08-24 Thread Samuel Holland
. This causes false completion of a transfer, and the next transfer starts prematurely, causing a LOAD_BSY condition. The end result is that some transfers at resume fail with -EBUSY. With this patch, all transfers reliably succeed during/after resume. Signed-off-by: Samuel Holland --- drivers/bus/sunxi

[linux-sunxi] Re: [PATCH v4 00/10] Allwinner sunxi message box support

2019-09-08 Thread Samuel Holland
On 9/8/19 10:22 PM, Ondřej Jirman wrote: > Hello Samuel, > > On Mon, Aug 19, 2019 at 10:23:01PM -0500, Samuel Holland wrote: >> This series adds support for the "hardware message box" in sun8i, sun9i, >> and sun50i SoCs, used for communication with th

[linux-sunxi] [PATCH v5 5/8] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-12-14 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v5 0/8] Allwinner sun6i message box support

2019-12-14 Thread Samuel Holland
le strings and an A31 fallback compatible - Dropped the mailbox framework patch - Include DT patches for SoCs that document the message box Samuel Holland (8): clk: sunxi-ng: Mark msgbox clocks as critical dt-bindings: mailbox: Add a sun6i message box binding mailbox: sun6i-msgbox: Add a n

[linux-sunxi] [PATCH v5 4/8] ARM: dts: sunxi: a83t: Add msgbox node

2019-12-14 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Tested-by: Ondrej Jirman Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10

[linux-sunxi] [PATCH v5 6/8] arm64: dts: allwinner: a64: Add msgbox node

2019-12-14 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v5 1/8] clk: sunxi-ng: Mark msgbox clocks as critical

2019-12-14 Thread Samuel Holland
SoCs. Signed-off-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 3 ++- drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 3 ++- drivers/clk/sunxi-ng

[linux-sunxi] [PATCH v5 8/8] firmware: arm_scpi: Support unidirectional mailbox channels

2019-12-14 Thread Samuel Holland
SCPI channel. Note that since the mailbox framework only supports a single phandle with each name (mbox_request_channel_byname always returns the first one), this new mode only supports a single SCPI channel. Signed-off-by: Samuel Holland --- drivers/firmware/arm_scpi.c | 58

[linux-sunxi] [PATCH v5 2/8] dt-bindings: mailbox: Add a sun6i message box binding

2019-12-14 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun6i, sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. As it has only been tested on the A83T, A64, H3/H5, and H6 SoCs, only those compatibles are included. Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sun6i-a31

[linux-sunxi] [PATCH v5 7/8] arm64: dts: allwinner: h6: Add msgbox node

2019-12-14 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v5 3/8] mailbox: sun6i-msgbox: Add a new mailbox driver

2019-12-14 Thread Samuel Holland
. Signed-off-by: Samuel Holland --- drivers/mailbox/Kconfig| 9 + drivers/mailbox/Makefile | 2 + drivers/mailbox/sun6i-msgbox.c | 332 + 3 files changed, 343 insertions(+) create mode 100644 drivers/mailbox/sun6i-msgbox.c diff --git a/drivers

[linux-sunxi] Re: [PATCH v5 2/8] dt-bindings: mailbox: Add a sun6i message box binding

2019-12-16 Thread Samuel Holland
Hi, On 12/16/19 8:04 AM, Maxime Ripard wrote: > Hi, > > On Sat, Dec 14, 2019 at 10:24:49PM -0600, Samuel Holland wrote: >> This mailbox hardware is present in Allwinner sun6i, sun8i, sun9i, and >> sun50i SoCs. Add a device tree binding for it. As it has only been >>

[linux-sunxi] Re: [PATCH] bus: sunxi-rsb: Make interrupt handling more robust

2019-10-07 Thread Samuel Holland
Hello, On 8/24/19 12:50 PM, Samuel Holland wrote: > The RSB controller has two registers for controlling interrupt inputs: > RSB_INTE, which has bits for each possible interrupt, and the global > interrupt enable bit in RSB_CTRL. > > Currently, we enable the bits in RSB_INTE befor

Re: [linux-sunxi] [PATCH] bus: sunxi-rsb: Make interrupt handling more robust

2019-10-07 Thread Samuel Holland
On 10/7/19 10:19 AM, Chen-Yu Tsai wrote: > On Sun, Aug 25, 2019 at 1:50 AM Samuel Holland wrote: >> >> The RSB controller has two registers for controlling interrupt inputs: >> RSB_INTE, which has bits for each possible interrupt, and the global >> inter

Re: [linux-sunxi] [PATCH] arm64: dts: sun50i-h5-orange-pi-pc2: Add CPUX voltage regulator

2020-02-22 Thread Samuel Holland
ary here. > + regulator-min-microvolt = <100>; > + regulator-max-microvolt = <1400000>; > + regulator-ramp-delay = <200>; > + regulator-boot-on; > + regulator-always-on; > + }; > +}; > + > { > pinctrl-names = "

[linux-sunxi] [PATCH v7 2/6] mailbox: sun6i-msgbox: Add a new mailbox driver

2020-02-22 Thread Samuel Holland
. Reviewed-by: Philipp Zabel Signed-off-by: Samuel Holland --- drivers/mailbox/Kconfig| 9 + drivers/mailbox/Makefile | 2 + drivers/mailbox/sun6i-msgbox.c | 326 + 3 files changed, 337 insertions(+) create mode 100644 drivers/mailbox/sun6i-msgbox.c diff

[linux-sunxi] [PATCH v7 1/6] dt-bindings: mailbox: Add a binding for the sun6i msgbox

2020-02-22 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun6i, sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Acked-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sun6i-a31-msgbox.yaml | 80 +++ 1 file changed, 80

[linux-sunxi] [PATCH v7 0/6] Allwinner sun6i message box support

2020-02-22 Thread Samuel Holland
cal instead of hacks in the driver - 8 unidirectional channels instead of 4 bidirectional pairs - Use per-SoC compatible strings and an A31 fallback compatible - Dropped the mailbox framework patch - Include DT patches for SoCs that document the message box Samuel Holland (6): dt-bindings: ma

[linux-sunxi] [PATCH v7 3/6] ARM: dts: sunxi: a83t: Add msgbox node

2020-02-22 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Tested-by: Ondrej Jirman Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10

[linux-sunxi] [PATCH v7 6/6] arm64: dts: allwinner: h6: Add msgbox node

2020-02-22 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v7 5/6] arm64: dts: allwinner: a64: Add msgbox node

2020-02-22 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v7 4/6] ARM: dts: sunxi: h3/h5: Add msgbox node

2020-02-22 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file

[linux-sunxi] Re: [PATCH v6 2/6] mailbox: sun6i-msgbox: Add a new mailbox driver

2020-02-14 Thread Samuel Holland
On 2/12/20 8:18 PM, Samuel Holland wrote: > Jassi, > > On 2/12/20 8:02 PM, Jassi Brar wrote: >> On Sun, Jan 12, 2020 at 11:18 PM Samuel Holland wrote: >>> >>> +static int sun6i_msgbox_send_data(struct mbox_chan *chan, void *data) >>> +{ >>>

[linux-sunxi] [PATCH] mailbox: sun6i-msgbox: Remove unneeded FIFO status check

2020-02-14 Thread Samuel Holland
A transmit FIFO can never be full, because the mailbox framework waits until mbox->ops->last_tx_done() succeeds before sending the next message. sun6i_msgbox_last_tx_done() ensures that the FIFO is empty. Since the extra check here is unnecessary, remove it. Signed-off-by: Samuel H

[linux-sunxi] Re: [PATCH v6 0/6] Allwinner sun6i message box support

2020-02-12 Thread Samuel Holland
Jassi, On 1/12/20 11:18 PM, Samuel Holland wrote: > This series adds support for the "hardware message box" in sun8i, sun9i, > and sun50i SoCs, used for communication with the ARISC management > processor (the platform's equivalent of the ARM SCP). The end goal is to > u

[linux-sunxi] Re: [PATCH 1/2] pinctrl: sunxi: Forward calls to irq_set_irq_wake

2020-02-12 Thread Samuel Holland
All, On 1/17/20 3:33 PM, Samuel Holland wrote: > The pinctrl irqchip may be connected to an irqchip that implements the > .irq_set_wake callback, such as the R_INTC on A31 and newer sunxi SoCs. > In order for GPIOs to be able to trigger wakeup, the IRQ from the > pinctrl to the upper

[linux-sunxi] Re: [PATCH v6 2/6] mailbox: sun6i-msgbox: Add a new mailbox driver

2020-02-12 Thread Samuel Holland
Jassi, On 2/12/20 8:02 PM, Jassi Brar wrote: > On Sun, Jan 12, 2020 at 11:18 PM Samuel Holland wrote: >> >> +static int sun6i_msgbox_send_data(struct mbox_chan *chan, void *data) >> +{ >> + struct sun6i_msgbox *mbox = to_sun6i_msgbox(chan); >> +

[linux-sunxi] [PATCH v3 4/8] power: supply: axp20x_usb_power: Remove unused device_node

2020-01-12 Thread Samuel Holland
This member of struct axp20x_usb_power is not used anywhere. Remove it. Reviewed-by: Chen-Yu Tsai Signed-off-by: Samuel Holland --- drivers/power/supply/axp20x_usb_power.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/supply/axp20x_usb_power.c b/drivers/power/supply

  1   2   3   >