Re: [RFC v3 04/18] firmware: thead: Add AON firmware protocol driver

2025-01-28 Thread Krzysztof Kozlowski
On 28/01/2025 16:54, Michal Wilczynski wrote: > > > On 1/21/25 10:56, Krzysztof Kozlowski wrote: > >>> diff --git a/include/linux/firmware/thead/thead,th1520-aon.h >>> b/include/linux/firmware/thead/thead,th1520-aon.h >>> new file mode 100644 >>> index ..3daa17c01d17 >>> --- /dev/nu

Re: [RFC v3 04/18] firmware: thead: Add AON firmware protocol driver

2025-01-28 Thread Michal Wilczynski
On 1/28/25 16:54, Michal Wilczynski wrote: > > > On 1/21/25 10:56, Krzysztof Kozlowski wrote: > >>> diff --git a/include/linux/firmware/thead/thead,th1520-aon.h >>> b/include/linux/firmware/thead/thead,th1520-aon.h >>> new file mode 100644 >>> index ..3daa17c01d17 >>> --- /dev/nu

Re: [RFC v3 04/18] firmware: thead: Add AON firmware protocol driver

2025-01-28 Thread Michal Wilczynski
On 1/21/25 10:56, Krzysztof Kozlowski wrote: >> diff --git a/include/linux/firmware/thead/thead,th1520-aon.h >> b/include/linux/firmware/thead/thead,th1520-aon.h >> new file mode 100644 >> index ..3daa17c01d17 >> --- /dev/null >> +++ b/include/linux/firmware/thead/thead,th1520-aon.

Re: [RFC v3 04/18] firmware: thead: Add AON firmware protocol driver

2025-01-21 Thread Michal Wilczynski
On 1/21/25 10:56, Krzysztof Kozlowski wrote: > On Mon, Jan 20, 2025 at 06:20:57PM +0100, Michal Wilczynski wrote: >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include > > How/where do you use this header? Indeed, it's used by the power-domain d

Re: [RFC v3 04/18] firmware: thead: Add AON firmware protocol driver

2025-01-21 Thread Krzysztof Kozlowski
On Mon, Jan 20, 2025 at 06:20:57PM +0100, Michal Wilczynski wrote: > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include How/where do you use this header? > + > +#define MAX_RX_TIMEOUT (msecs_to_jiffies(3000)) > +#define MAX_TX_TIMEOUT 500 > + > +struct th

[RFC v3 04/18] firmware: thead: Add AON firmware protocol driver

2025-01-20 Thread Michal Wilczynski
The T-Head TH1520 SoC uses an E902 co-processor running Always-On (AON) firmware to manage power, clock, and other system resources [1]. This patch introduces a driver implementing the AON firmware protocol, allowing the Linux kernel to communicate with the firmware via mailbox channels. Through a