Re: [PATCH RFC] sunxi: pinephone: detect existed magnetometer and fixup dtb

2024-02-11 Thread Andre Przywara
On Mon, 12 Feb 2024 01:38:36 +0300 Andrey Skvortsov wrote: Hi Andrey, > thank you for the valuable feedback! > > On 24-02-11 13:13, Andre Przywara wrote: > > On Sun, 11 Feb 2024 12:28:24 +0300 > > Andrey Skvortsov wrote: > > > > Hi Andrey, > > > > thanks for taking care of this upstream! >

Re: [PATCH RFC] sunxi: pinephone: detect existed magnetometer and fixup dtb

2024-02-11 Thread Andrey Skvortsov
Hi Andre, thank you for the valuable feedback! On 24-02-11 13:13, Andre Przywara wrote: > On Sun, 11 Feb 2024 12:28:24 +0300 > Andrey Skvortsov wrote: > > Hi Andrey, > > thanks for taking care of this upstream! > > > In newer 1.2 PinePhone board revisions LIS3MDL magnetometer was replaced by

Re: [PATCH RFC] sunxi: pinephone: detect existed magnetometer and fixup dtb

2024-02-11 Thread Andre Przywara
On Sun, 11 Feb 2024 12:28:24 +0300 Andrey Skvortsov wrote: Hi Andrey, thanks for taking care of this upstream! > In newer 1.2 PinePhone board revisions LIS3MDL magnetometer was replaced by > AF8133J. They use the same PB1 pin in different modes. > > LIS3MDL uses it as an gpio input to handle

[PATCH RFC] sunxi: pinephone: detect existed magnetometer and fixup dtb

2024-02-11 Thread Andrey Skvortsov
In newer 1.2 PinePhone board revisions LIS3MDL magnetometer was replaced by AF8133J. They use the same PB1 pin in different modes. LIS3MDL uses it as an gpio input to handle interrupt. AF8133J uses it as an gpio output as a reset signal. It wasn't possible at runtime to enable both device tree