[linux-sunxi] [RFC PATCH 0/2] sunxi: Pass a reboot mode to the bootloader via the RTC

2021-01-18 Thread Samuel Holland
As the A64 is designed for use in mobile devices without easy access to a UART, MMC0, or a FEL button, it would be useful to be able to reboot to FEL mode, fastboot, etc. via a command from Linux. As reboot(2) supports passing a command with LINUX_REBOOT_CMD_RESTART2, and we have battery-backed

[linux-sunxi] [RFC PATCH 2/2] arm64: dts: allwinner: a64: Add reboot mode

2021-01-18 Thread Samuel Holland
Store a reboot mode in one of the RTC's general purpose registers. This value can be used by U-Boot or another bootlader, for example to enter FEL or fastboot mode. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 17 + 1 file changed, 17

[linux-sunxi] [RFC PATCH 1/2] rtc: sun6i: Add NVMEM provider

2021-01-18 Thread Samuel Holland
The sun6i RTC provides 64 bytes of general-purpose data registers. They can be used to save data in the always-on RTC power domain. The registers are writable via 32-bit MMIO accesses only. Expose the region as a NVMEM provider so it can be used by userspace and other drivers. Signed-off-by:

Re: [linux-sunxi] [PATCH] sunxi: Properly check for SATAPWR and MACPWR

2021-01-18 Thread Samuel Holland
On 1/18/21 7:05 PM, Andre Przywara wrote: > The #ifdef CONFIG_xxxPWR conditionals were not working as expected, as > string Kconfig symbols are always "defined" from the preprocessor's > perspective. This lead to unnecessary calls to the GPIO routines, but > also always added a half a second delay

[linux-sunxi] [PATCH] sunxi: Properly check for SATAPWR and MACPWR

2021-01-18 Thread Andre Przywara
The #ifdef CONFIG_xxxPWR conditionals were not working as expected, as string Kconfig symbols are always "defined" from the preprocessor's perspective. This lead to unnecessary calls to the GPIO routines, but also always added a half a second delay to wait for a SATA disk to power up. Many thanks

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

2021-01-18 Thread Chen-Yu Tsai
On Mon, Jan 18, 2021 at 11:53 PM Andre Przywara wrote: > > On Mon, 18 Jan 2021 14:28:54 +0100 > Maxime Ripard wrote: > > Hi Maxime, > > > On Mon, Jan 18, 2021 at 02:08:29AM +, Andre Przywara wrote: > > > From: Yangtao Li > > > > > > This patch adds support for A100 MMC controller, which use

[linux-sunxi] 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 +, Andre Przywara wrote: > > From: Yangtao Li > > > > This patch adds support for A100 MMC controller, which use word > > address for internal dma. > > > > Signed-off-by: Yangtao Li >

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

2021-01-18 Thread maxime
On Mon, Jan 18, 2021 at 02:08:44AM +, Andre Przywara wrote: > Use enums to group all compatible devices together on the way. > > Signed-off-by: Andre Przywara > Acked-by: Rob Herring Acked-by: Maxime Ripard Maxime -- You received this message because you are subscribed to the Google

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:43AM +, Andre Przywara wrote: > The USB PHY used in the Allwinner H616 SoC inherits some traits from its > various predecessors: it has four full PHYs like the H3, needs some > extra bits to be set like the H6, and clears a different bit in the > PMU_UNK1 register

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:42AM +, Andre Przywara wrote: > The H616 MUSB peripheral is presumably compatible to the H3 one. > > Signed-off-by: Andre Przywara Acked-by: Maxime Ripard Maxime -- You received this message because you are subscribed to the Google Groups "linux-sunxi"

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:41AM +, Andre Przywara wrote: > 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. > >

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:40AM +, Andre Przywara wrote: > As Icenowy pointed out, newer manuals (starting with H6) actually > document the register block at offset 0x800 as "HCI controller and PHY > interface", also describe the bits in our "PMU_UNK1" register. > Let's put proper names to

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:35AM +, Andre Przywara wrote: > 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

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:34AM +, Andre Przywara wrote: > 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 Maxime -- You received this message because

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:33AM +, Andre Przywara wrote: > Signed-off-by: Andre Przywara > Acked-by: Rob Herring Acked-by: Maxime Ripard Maxime -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:31AM +, Andre Przywara wrote: > 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 Acked-by: Maxime Ripard Thanks!

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

2021-01-18 Thread Maxime Ripard
On Mon, Jan 18, 2021 at 02:08:30AM +, Andre Przywara wrote: > A new SoC, a new compatible string. > Also we were too miserly with just allowing seven interrupt banks. > > Signed-off-by: Andre Przywara Acked-by: Maxime Ripard Maxime -- You received this message because you are subscribed

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

2021-01-18 Thread Maxime Ripard
Hi, On Mon, Jan 18, 2021 at 02:08:29AM +, Andre Przywara wrote: > 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 We should also disable the timings setup in

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

2021-01-18 Thread Mark Brown
On Mon, Jan 18, 2021 at 02:08:45AM +, Andre Przywara wrote: > 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

Re: [linux-sunxi] Re: [PATCH v2 4/4] arm64: dts: allwinner: h6: Use RSB for AXP805 PMIC connection

2021-01-18 Thread Chen-Yu Tsai
On Wed, Jan 13, 2021 at 5:16 PM Chen-Yu Tsai wrote: > > On Thu, Jan 7, 2021 at 6:27 PM Samuel Holland wrote: > > > > On 1/6/21 5:38 AM, Chen-Yu Tsai wrote: > > > On Wed, Jan 6, 2021 at 7:06 PM Maxime Ripard wrote: > > >> > > >> On Mon, Jan 04, 2021 at 10:54:19AM +, André Przywara wrote: > >

[linux-sunxi] Re: [PATCH] ARM: dts: sun8i: h2-plus: bananapi-m2-zero: Increase BT UART speed

2021-01-18 Thread Maxime Ripard
On Sat, Jan 16, 2021 at 11:37:10AM +0100, Jernej Skrabec wrote: > Bluetooth module on BananaPi M2 Zero can also be used for streaming > audio. However, for that case higher UART speed is required. > > Add a max-speed property. > > Signed-off-by: Jernej Skrabec Applied, thanks Maxime -- You

[linux-sunxi] Re: [PATCH] ARM: dts: sunxi: bananapi-m2-plus: Increase BT UART speed

2021-01-18 Thread Maxime Ripard
On Sat, Jan 16, 2021 at 11:52:28AM +0100, Jernej Skrabec wrote: > Bluetooth module on BananaPi M2 Plus can also be used for streaming > audio. However, for that case higher UART speed is required. > > Add a max-speed property. > > Signed-off-by: Jernej Skrabec Applied, thanks Maxime -- You

[linux-sunxi] Re: [PATCH v5 04/16] media: sun6i-csi: Stop using the deprecated fwnode endpoint parser

2021-01-18 Thread Maxime Ripard
Hi, Thanks for working on this On Fri, Jan 15, 2021 at 09:01:29PM +0100, Paul Kocialkowski wrote: > The v4l2_async_notifier_parse_fwnode_endpoints helper is getting > deprecated in favor of explicit parsing of the endpoints. > > Implement it instead of using this deprecated function. > > Since