Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Andreas Färber
Am 20.08.2017 um 17:40 schrieb Andrew Lunn: >> +static void rtd119x_rtc_set_enabled(struct device *dev, bool enable) >> +{ >> +struct rtd119x_rtc *data = dev_get_drvdata(dev); >> +u32 val; >> + >> +val = readl_relaxed(data->base + RTD_RTCEN); >> +dev_info(dev, "%s: rtcen =

Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Andreas Färber
Am 20.08.2017 um 17:40 schrieb Andrew Lunn: >> +static void rtd119x_rtc_set_enabled(struct device *dev, bool enable) >> +{ >> +struct rtd119x_rtc *data = dev_get_drvdata(dev); >> +u32 val; >> + >> +val = readl_relaxed(data->base + RTD_RTCEN); >> +dev_info(dev, "%s: rtcen =

Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Andreas Färber
Hi Alexandre, Am 20.08.2017 um 10:32 schrieb Alexandre Belloni: > On 20/08/2017 at 03:36:30 +0200, Andreas Färber wrote: >> +static int rtd119x_rtc_read_time(struct device *dev, struct rtc_time *tm) >> +{ >> +struct rtd119x_rtc *data = dev_get_drvdata(dev); >> +

Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Andreas Färber
Hi Alexandre, Am 20.08.2017 um 10:32 schrieb Alexandre Belloni: > On 20/08/2017 at 03:36:30 +0200, Andreas Färber wrote: >> +static int rtd119x_rtc_read_time(struct device *dev, struct rtc_time *tm) >> +{ >> +struct rtd119x_rtc *data = dev_get_drvdata(dev); >> +

Re: [RFC 3/3] irqchip: Add Realtek RTD1295 mux driver

2017-08-19 Thread Andreas Färber
Am 17.08.2017 um 12:11 schrieb Andreas Färber: > This irq mux driver is derived from the RTD1295 vendor DT and assumes a linear > mapping between intr_en and intr_status registers. Code for RTD119x indicates > this may not always be the case (i2c_3). > > The register initializa

Re: [RFC 3/3] irqchip: Add Realtek RTD1295 mux driver

2017-08-19 Thread Andreas Färber
Am 17.08.2017 um 12:11 schrieb Andreas Färber: > This irq mux driver is derived from the RTD1295 vendor DT and assumes a linear > mapping between intr_en and intr_status registers. Code for RTD119x indicates > this may not always be the case (i2c_3). > > The register initializa

[RFC 3/3] arm64: dts: realtek: Add RTD1295 RTC node

2017-08-19 Thread Andreas Färber
Add RTC node to the Realtek RTD1295 Device Tree. Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi

[RFC 3/3] arm64: dts: realtek: Add RTD1295 RTC node

2017-08-19 Thread Andreas Färber
Add RTC node to the Realtek RTD1295 Device Tree. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index 503e2d5fc334

[RFC 0/3] arm64: Realtek RTD1295 RTC

2017-08-19 Thread Andreas Färber
xandre Belloni <alexandre.bell...@free-electrons.com> Cc: linux-...@vger.kernel.org Cc: Roc He <hep...@zidoo.tv> Cc: 蒋丽琴 <jiang.li...@geniatech.com> Cc: devicet...@vger.kernel.org Andreas Färber (3): dt-bindings: rtc: Add Realtek RTD1295 rtc: Add Realtek RTD1295 arm64: dts:

[RFC 1/3] dt-bindings: rtc: Add Realtek RTD1295

2017-08-19 Thread Andreas Färber
Add a binding for the RTC on the Realtek RTD119x/RTD129x SoC families. Signed-off-by: Andreas Färber <afaer...@suse.de> --- .../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindin

[RFC 2/3] rtc: Add Realtek RTD1295

2017-08-19 Thread Andreas Färber
Based on QNAP's mach-rtk119x/driver/rtk_rtc_drv.c code. Signed-off-by: Andreas Färber <afaer...@suse.de> --- drivers/rtc/Kconfig | 8 +++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-rtd119x.c | 175 ++ 3 files changed, 184 inse

[RFC 0/3] arm64: Realtek RTD1295 RTC

2017-08-19 Thread Andreas Färber
-...@vger.kernel.org Cc: Roc He Cc: 蒋丽琴 Cc: devicet...@vger.kernel.org Andreas Färber (3): dt-bindings: rtc: Add Realtek RTD1295 rtc: Add Realtek RTD1295 arm64: dts: realtek: Add RTD1295 RTC node .../devicetree/bindings/rtc/realtek,rtd119x.txt| 16 ++ arch/arm64/boot/dts/realtek/rtd1295

[RFC 1/3] dt-bindings: rtc: Add Realtek RTD1295

2017-08-19 Thread Andreas Färber
Add a binding for the RTC on the Realtek RTD119x/RTD129x SoC families. Signed-off-by: Andreas Färber --- .../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt

[RFC 2/3] rtc: Add Realtek RTD1295

2017-08-19 Thread Andreas Färber
Based on QNAP's mach-rtk119x/driver/rtk_rtc_drv.c code. Signed-off-by: Andreas Färber --- drivers/rtc/Kconfig | 8 +++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-rtd119x.c | 175 ++ 3 files changed, 184 insertions(+) create mode

Re: [RFC 3/3] irqchip: Add Realtek RTD1295 mux driver

2017-08-18 Thread Andreas Färber
Hi Marc, Am 18.08.2017 um 12:53 schrieb Marc Zyngier: > On 17/08/17 11:11, Andreas Färber wrote: >> This irq mux driver is derived from the RTD1295 vendor DT and assumes a >> linear >> mapping between intr_en and intr_status registers. Code for RTD119x indicates &

Re: [RFC 3/3] irqchip: Add Realtek RTD1295 mux driver

2017-08-18 Thread Andreas Färber
Hi Marc, Am 18.08.2017 um 12:53 schrieb Marc Zyngier: > On 17/08/17 11:11, Andreas Färber wrote: >> This irq mux driver is derived from the RTD1295 vendor DT and assumes a >> linear >> mapping between intr_en and intr_status registers. Code for RTD119x indicates &

[RFC 4/4] arm64: dts: realtek: Update RTD1295 UART nodes with clocks

2017-08-17 Thread Andreas Färber
Replace clock-frequency with a reference to the respective clock gates. Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch

[RFC 4/4] arm64: dts: realtek: Update RTD1295 UART nodes with clocks

2017-08-17 Thread Andreas Färber
Replace clock-frequency with a reference to the respective clock gates. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek

[RFC 0/4] arm64: Realtek RTD1295 clocks

2017-08-17 Thread Andreas Färber
.org Cc: Roc He <hep...@zidoo.tv> Cc: 蒋丽琴 <jiang.li...@geniatech.com> Cc: devicet...@vger.kernel.org Andreas Färber (4): dt-bindings: clock: Add Realtek RTD1295 arm64: dts: realtek: Add clock nodes for RTD1295 clk: Add Realtek RTD1295 arm64: dts: realtek: Update RTD129

[RFC 0/4] arm64: Realtek RTD1295 clocks

2017-08-17 Thread Andreas Färber
Andreas Färber (4): dt-bindings: clock: Add Realtek RTD1295 arm64: dts: realtek: Add clock nodes for RTD1295 clk: Add Realtek RTD1295 arm64: dts: realtek: Update RTD1295 UART nodes with clocks .../devicetree/bindings/clock/realtek,rtd129x.txt | 20 ++ arch/arm64/boot/dts/realtek/rtd1295

[RFC 2/4] arm64: dts: realtek: Add clock nodes for RTD1295

2017-08-17 Thread Andreas Färber
Add 27 MHz oscillator and two clock controller nodes. Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/r

[RFC 2/4] arm64: dts: realtek: Add clock nodes for RTD1295

2017-08-17 Thread Andreas Färber
Add 27 MHz oscillator and two clock controller nodes. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index

[RFC 3/4] clk: Add Realtek RTD1295

2017-08-17 Thread Andreas Färber
baudrate. Signed-off-by: Andreas Färber <afaer...@suse.de> --- drivers/clk/Kconfig | 7 + drivers/clk/Makefile | 1 + drivers/clk/clk-rtd1295.c | 385 ++ 3 files changed, 393 insertions(+) create mode 100644 drivers/clk/clk-rtd1295.c diff

[RFC 1/4] dt-bindings: clock: Add Realtek RTD1295

2017-08-17 Thread Andreas Färber
Naming inspired from Zidoo X9S Device Tree and clk_summary. Signed-off-by: Andreas Färber <afaer...@suse.de> --- .../devicetree/bindings/clock/realtek,rtd129x.txt | 20 + include/dt-bindings/clock/realtek,rtd1295.h| 99 ++ 2 files changed, 119 inse

[RFC 1/4] dt-bindings: clock: Add Realtek RTD1295

2017-08-17 Thread Andreas Färber
Naming inspired from Zidoo X9S Device Tree and clk_summary. Signed-off-by: Andreas Färber --- .../devicetree/bindings/clock/realtek,rtd129x.txt | 20 + include/dt-bindings/clock/realtek,rtd1295.h| 99 ++ 2 files changed, 119 insertions(+) create mode 100644

[RFC 3/4] clk: Add Realtek RTD1295

2017-08-17 Thread Andreas Färber
baudrate. Signed-off-by: Andreas Färber --- drivers/clk/Kconfig | 7 + drivers/clk/Makefile | 1 + drivers/clk/clk-rtd1295.c | 385 ++ 3 files changed, 393 insertions(+) create mode 100644 drivers/clk/clk-rtd1295.c diff --git a/drivers/clk

[RFC 3/3] irqchip: Add Realtek RTD1295 mux driver

2017-08-17 Thread Andreas Färber
, without full insights into what exactly this is changing (TODO). Signed-off-by: Andreas Färber <afaer...@suse.de> --- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-rtd119x-mux.c | 201 ++ 2 files changed, 202 insertions(+) create mode 100644 d

[RFC 3/3] irqchip: Add Realtek RTD1295 mux driver

2017-08-17 Thread Andreas Färber
, without full insights into what exactly this is changing (TODO). Signed-off-by: Andreas Färber --- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-rtd119x-mux.c | 201 ++ 2 files changed, 202 insertions(+) create mode 100644 drivers/irqchip/irq

[RFC 2/3] arm64: dts: realtek: Add irq mux to RTD1295

2017-08-17 Thread Andreas Färber
Update UART nodes with interrupts. Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi

[RFC 2/3] arm64: dts: realtek: Add irq mux to RTD1295

2017-08-17 Thread Andreas Färber
Update UART nodes with interrupts. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index 2d2d84b573e3

[RFC 1/3] dt-bindings: interrupt-controller: Add Realtek RTD1295

2017-08-17 Thread Andreas Färber
Add binding for Realtek RTD1295 IRQ mux. Signed-off-by: Andreas Färber <afaer...@suse.de> --- .../interrupt-controller/realtek,rtd119x-mux.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/r

[RFC 1/3] dt-bindings: interrupt-controller: Add Realtek RTD1295

2017-08-17 Thread Andreas Färber
Add binding for Realtek RTD1295 IRQ mux. Signed-off-by: Andreas Färber --- .../interrupt-controller/realtek,rtd119x-mux.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtd119x-mux.txt diff

[RFC 0/3] arm64: Realtek RTD1295 IRQ mux

2017-08-17 Thread Andreas Färber
er <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Cc: Roc He <hep...@zidoo.tv> Cc: 蒋丽琴 <jiang.li...@geniatech.com> Cc: devicet...@vger.kernel.org Andreas Färber (3): dt-bindings: interrupt-controller: Add Realtek RTD1295 arm64: dts: realtek: Add irq

[RFC 0/3] arm64: Realtek RTD1295 IRQ mux

2017-08-17 Thread Andreas Färber
: Roc He Cc: 蒋丽琴 Cc: devicet...@vger.kernel.org Andreas Färber (3): dt-bindings: interrupt-controller: Add Realtek RTD1295 arm64: dts: realtek: Add irq mux to RTD1295 irqchip: Add Realtek RTD1295 mux driver .../interrupt-controller/realtek,rtd119x-mux.txt | 28 +++ arch/arm64/boot/dts

Re: [PATCH v3 3/5] reset: stm32: use the reset-simple driver

2017-08-16 Thread Andreas Färber
Am 16.08.2017 um 22:50 schrieb Alexandru Gagniuc: > On 08/16/2017 02:46 AM, Philipp Zabel wrote: >> The reset-simple driver can be used without changes. >> >> Signed-off-by: Philipp Zabel > > Reviewed-by: Alexandru Gagniuc > >> --- >>

Re: [PATCH v3 3/5] reset: stm32: use the reset-simple driver

2017-08-16 Thread Andreas Färber
Am 16.08.2017 um 22:50 schrieb Alexandru Gagniuc: > On 08/16/2017 02:46 AM, Philipp Zabel wrote: >> The reset-simple driver can be used without changes. >> >> Signed-off-by: Philipp Zabel > > Reviewed-by: Alexandru Gagniuc > >> --- >> drivers/reset/Kconfig| 11 ++--- >>

Re: [PATCH v3 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967

2017-08-16 Thread Andreas Färber
Am 16.08.2017 um 17:11 schrieb Philipp Zabel: > On Wed, 2017-08-16 at 14:12 +0200, Andreas Färber wrote: >> Am 16.08.2017 um 13:30 schrieb Andre Przywara: >>> On 16/08/17 10:46, Philipp Zabel wrote: >>>> +/** >>>> + * struct reset_simple_de

Re: [PATCH v3 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967

2017-08-16 Thread Andreas Färber
Am 16.08.2017 um 17:11 schrieb Philipp Zabel: > On Wed, 2017-08-16 at 14:12 +0200, Andreas Färber wrote: >> Am 16.08.2017 um 13:30 schrieb Andre Przywara: >>> On 16/08/17 10:46, Philipp Zabel wrote: >>>> +/** >>>> + * struct reset_simple_de

Re: [PATCH v3 3/5] reset: stm32: use the reset-simple driver

2017-08-16 Thread Andreas Färber
Hi Eugeniy, Am 16.08.2017 um 14:52 schrieb Eugeniy Paltsev: > On Wed, 2017-08-16 at 11:46 +0200, Philipp Zabel wrote: >> The reset-simple driver can be used without changes. >> >> Signed-off-by: Philipp Zabel >> [snip] >> >> --- a/drivers/reset/reset-simple.c >> +++

Re: [PATCH v3 3/5] reset: stm32: use the reset-simple driver

2017-08-16 Thread Andreas Färber
Hi Eugeniy, Am 16.08.2017 um 14:52 schrieb Eugeniy Paltsev: > On Wed, 2017-08-16 at 11:46 +0200, Philipp Zabel wrote: >> The reset-simple driver can be used without changes. >> >> Signed-off-by: Philipp Zabel >> [snip] >> >> --- a/drivers/reset/reset-simple.c >> +++

Re: [PATCH v3 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967

2017-08-16 Thread Andreas Färber
Hi Andre, Am 16.08.2017 um 13:30 schrieb Andre Przywara: > On 16/08/17 10:46, Philipp Zabel wrote: >> +/** >> + * struct reset_simple_devdata - simple reset controller properties >> + * @active_low: if true, bits are cleared to assert the reset. Otherwise, >> bits >> + * are set to

Re: [PATCH v3 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967

2017-08-16 Thread Andreas Färber
Hi Andre, Am 16.08.2017 um 13:30 schrieb Andre Przywara: > On 16/08/17 10:46, Philipp Zabel wrote: >> +/** >> + * struct reset_simple_devdata - simple reset controller properties >> + * @active_low: if true, bits are cleared to assert the reset. Otherwise, >> bits >> + * are set to

Re: [PATCH 3/5] reset: Add Realtek RTD1295 driver

2017-08-16 Thread Andreas Färber
Hi Philipp, Am 16.08.2017 um 11:44 schrieb Philipp Zabel: > On Wed, 2017-08-16 at 02:38 +0200, Andreas Färber wrote: >> Add a per-register reset controller driver. This deals with the fact >> that not all registers are adjoined. > > the way you handle the non-conti

Re: [PATCH 3/5] reset: Add Realtek RTD1295 driver

2017-08-16 Thread Andreas Färber
Hi Philipp, Am 16.08.2017 um 11:44 schrieb Philipp Zabel: > On Wed, 2017-08-16 at 02:38 +0200, Andreas Färber wrote: >> Add a per-register reset controller driver. This deals with the fact >> that not all registers are adjoined. > > the way you handle the non-conti

[PATCH 0/5] arm64: Realtek RTD1295 reset controllers

2017-08-15 Thread Andreas Färber
/commits/rtd1295-next Have a lot of fun! Cheers, Andreas Cc: Roc He <hep...@zidoo.tv> Cc: 蒋丽琴 <jiang.li...@geniatech.com> Cc: devicet...@vger.kernel.org Andreas Färber (5): dt-bindings: reset: Add Realtek RTD1295 arm64: dts: realtek: Add RTD1295 reset controller nodes reset:

[PATCH 0/5] arm64: Realtek RTD1295 reset controllers

2017-08-15 Thread Andreas Färber
/commits/rtd1295-next Have a lot of fun! Cheers, Andreas Cc: Roc He Cc: 蒋丽琴 Cc: devicet...@vger.kernel.org Andreas Färber (5): dt-bindings: reset: Add Realtek RTD1295 arm64: dts: realtek: Add RTD1295 reset controller nodes reset: Add Realtek RTD1295 driver arm64: dts: realtek: Add RTD1295

[PATCH 2/5] arm64: dts: realtek: Add RTD1295 reset controller nodes

2017-08-15 Thread Andreas Färber
Add nodes for the Realtek RTD1295 reset controllers. Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/bo

[PATCH 4/5] arm64: dts: realtek: Add RTD1295 UART resets

2017-08-15 Thread Andreas Färber
Associate the UART nodes with the corresponding reset controller bits. Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/r

[PATCH 2/5] arm64: dts: realtek: Add RTD1295 reset controller nodes

2017-08-15 Thread Andreas Färber
Add nodes for the Realtek RTD1295 reset controllers. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295

[PATCH 4/5] arm64: dts: realtek: Add RTD1295 UART resets

2017-08-15 Thread Andreas Färber
Associate the UART nodes with the corresponding reset controller bits. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index

[PATCH 5/5] arm64: dts: realtek: Adopt RTD1295 reset constants

2017-08-15 Thread Andreas Färber
Replace reset controller indices with constants. Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/r

[PATCH 5/5] arm64: dts: realtek: Adopt RTD1295 reset constants

2017-08-15 Thread Andreas Färber
Replace reset controller indices with constants. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index

[PATCH 3/5] reset: Add Realtek RTD1295 driver

2017-08-15 Thread Andreas Färber
Add a per-register reset controller driver. This deals with the fact that not all registers are adjoined. Signed-off-by: Andreas Färber <afaer...@suse.de> --- drivers/reset/Kconfig | 6 +++ drivers/reset/Makefile| 1 + drivers/reset/reset-rtd129x.c

[PATCH 1/5] dt-bindings: reset: Add Realtek RTD1295

2017-08-15 Thread Andreas Färber
Add binding for Realtek RTD1295 reset controller. Signed-off-by: Andreas Färber <afaer...@suse.de> --- .../bindings/reset/realtek,rtd129x-reset.txt | 18 include/dt-bindings/reset/realtek,rtd1295.h| 112 + 2 files changed, 130 insertions(+) creat

[PATCH 3/5] reset: Add Realtek RTD1295 driver

2017-08-15 Thread Andreas Färber
Add a per-register reset controller driver. This deals with the fact that not all registers are adjoined. Signed-off-by: Andreas Färber --- drivers/reset/Kconfig | 6 +++ drivers/reset/Makefile| 1 + drivers/reset/reset-rtd129x.c | 100

[PATCH 1/5] dt-bindings: reset: Add Realtek RTD1295

2017-08-15 Thread Andreas Färber
Add binding for Realtek RTD1295 reset controller. Signed-off-by: Andreas Färber --- .../bindings/reset/realtek,rtd129x-reset.txt | 18 include/dt-bindings/reset/realtek,rtd1295.h| 112 + 2 files changed, 130 insertions(+) create mode 100644

Re: [PATCH] arm64: dts: realtek: Clean up RTD1295 UART reg property

2017-08-14 Thread Andreas Färber
Am 30.07.2017 um 13:17 schrieb Andreas Färber: > The downstream RTD1195 and apparently RTD1295 trees have a modified 8250 > serial driver that acknowledges its interrupts using the second reg area, > which is an irq mux. > > Drop these unused second reg entries for the UART no

Re: [PATCH] arm64: dts: realtek: Clean up RTD1295 UART reg property

2017-08-14 Thread Andreas Färber
Am 30.07.2017 um 13:17 schrieb Andreas Färber: > The downstream RTD1195 and apparently RTD1295 trees have a modified 8250 > serial driver that acknowledges its interrupts using the second reg area, > which is an irq mux. > > Drop these unused second reg entries for the UART no

[PATCH] arm64: dts: realtek: Clean up RTD1295 UART reg property

2017-07-30 Thread Andreas Färber
o X9S") Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index d8f84666c8ce..43d

[PATCH] arm64: dts: realtek: Clean up RTD1295 UART reg property

2017-07-30 Thread Andreas Färber
o X9S") Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index d8f84666c8ce..43da91fce2b1 100644 --- a/arch/

Re: [PATCH 1/5] of: Add vendor prefix for Adaptrum, Inc.

2017-07-29 Thread Andreas Färber
Hi Alexandru, Am 29.07.2017 um 00:07 schrieb Alexandru Gagniuc: > Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) Not sure why I'm CC'ed here, but it looks sane, so Re

Re: [PATCH 1/5] of: Add vendor prefix for Adaptrum, Inc.

2017-07-29 Thread Andreas Färber
Hi Alexandru, Am 29.07.2017 um 00:07 schrieb Alexandru Gagniuc: > Signed-off-by: Alexandru Gagniuc > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) Not sure why I'm CC'ed here, but it looks sane, so Reviewed-by: An

Re: [PATCH v4 26/28] ARM: dts: s500: Set power domains for CPU2 and CPU3

2017-07-27 Thread Andreas Färber
Am 06.06.2017 um 02:54 schrieb Andreas Färber: > CPU2 has its own power domain PD_CPU2, and CPU3 has PD_CPU3. > > Signed-off-by: Andreas Färber <afaer...@suse.de> > --- > v4: new (split off due to dt-bindings dependency) > > arch/arm/boot/dts/s500.dtsi | 3 +++ >

Re: [PATCH v4 26/28] ARM: dts: s500: Set power domains for CPU2 and CPU3

2017-07-27 Thread Andreas Färber
Am 06.06.2017 um 02:54 schrieb Andreas Färber: > CPU2 has its own power domain PD_CPU2, and CPU3 has PD_CPU3. > > Signed-off-by: Andreas Färber > --- > v4: new (split off due to dt-bindings dependency) > > arch/arm/boot/dts/s500.dtsi | 3 +++ > 1 file changed,

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-09 Thread Andreas Färber
Am 06.07.2017 um 19:17 schrieb Andreas Färber: > Am 05.07.2017 um 04:36 schrieb Florian Fainelli: >> On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" <afaer...@suse.de> wrote: >>> - writel(virt_to_phys(owl_secondary_startup), >>>

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-09 Thread Andreas Färber
Am 06.07.2017 um 19:17 schrieb Andreas Färber: > Am 05.07.2017 um 04:36 schrieb Florian Fainelli: >> On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: >>> - writel(virt_to_phys(owl_secondary_startup), >>> + writel(virt_to_phys(secondary_sta

[PATCH v5] tty: serial: owl: Implement console driver

2017-07-09 Thread Andreas Färber
Implement serial console driver to complement earlycon. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber <afaer...@suse.de> --- v4 -> v5: * Don't clear HUPCL, IGNBRK or BRKINT (Alan) * Don't set CLOCAL (Alan) * Added tty_termios_encode_baud_rate() call (Alan) *

[PATCH v5] tty: serial: owl: Implement console driver

2017-07-09 Thread Andreas Färber
Implement serial console driver to complement earlycon. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v4 -> v5: * Don't clear HUPCL, IGNBRK or BRKINT (Alan) * Don't set CLOCAL (Alan) * Added tty_termios_encode_baud_rate() call (Alan) * Extended get_mctrl with

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-06 Thread Andreas Färber
Am 05.07.2017 um 04:36 schrieb Florian Fainelli: > On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" <afaer...@suse.de> wrote: >> Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop >> bogus holding pen") simplified the S500 SMP c

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-06 Thread Andreas Färber
Am 05.07.2017 um 04:36 schrieb Florian Fainelli: > On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: >> Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop >> bogus holding pen") simplified the S500 SMP code by removing a loop for &

[PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-04 Thread Andreas Färber
alidate_l1() assembler function is superfluous, too. Therefore drop owl_secondary_boot() and use secondary_boot() directly. Cc: David Liu <liu...@actions-semi.com> Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm/mach-actions/Makefile | 4 +--- arch/arm/mach-

[PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-04 Thread Andreas Färber
alidate_l1() assembler function is superfluous, too. Therefore drop owl_secondary_boot() and use secondary_boot() directly. Cc: David Liu Signed-off-by: Andreas Färber --- arch/arm/mach-actions/Makefile | 4 +--- arch/arm/mach-actions/headsmp.S | 52 -

Re: [PATCH v4 16/28] tty: serial: owl: Implement console driver

2017-07-02 Thread Andreas Färber
Am 07.06.2017 um 16:37 schrieb Andy Shevchenko: > On Tue, Jun 6, 2017 at 3:54 AM, Andreas Färber <afaer...@suse.de> wrote: >> Implement serial console driver to complement earlycon. >> >> Based on LeMaker linux-actions tree. > >> +#define OWL_UART_CTL_DWLS_

Re: [PATCH v4 16/28] tty: serial: owl: Implement console driver

2017-07-02 Thread Andreas Färber
Am 07.06.2017 um 16:37 schrieb Andy Shevchenko: > On Tue, Jun 6, 2017 at 3:54 AM, Andreas Färber wrote: >> Implement serial console driver to complement earlycon. >> >> Based on LeMaker linux-actions tree. > >> +#define OWL_UART_CTL_DWLS_MASK (0x3 <<

Re: [PATCH v4 16/28] tty: serial: owl: Implement console driver

2017-07-02 Thread Andreas Färber
Am 06.06.2017 um 15:34 schrieb Alan Cox: >> +static void owl_uart_set_termios(struct uart_port *port, >> + struct ktermios *termios, >> + struct ktermios *old) >> +{ >> +struct owl_uart_port *owl_port = to_owl_uart_port(port); >> +

Re: [PATCH v4 16/28] tty: serial: owl: Implement console driver

2017-07-02 Thread Andreas Färber
Am 06.06.2017 um 15:34 schrieb Alan Cox: >> +static void owl_uart_set_termios(struct uart_port *port, >> + struct ktermios *termios, >> + struct ktermios *old) >> +{ >> +struct owl_uart_port *owl_port = to_owl_uart_port(port); >> +

Re: [PATCH 4/6] dt-bindings: serial: Document RDA Micro UART

2017-07-01 Thread Andreas Färber
Am 30.06.2017 um 16:27 schrieb Rob Herring: > On Fri, Jun 30, 2017 at 6:12 AM, Andreas Färber <afaer...@suse.de> wrote: >> Am 29.06.2017 um 22:10 schrieb Rob Herring: >>> On Tue, Jun 27, 2017 at 02:55:18AM +0200, Andreas Färber wrote: >>>> Add an in

Re: [PATCH 4/6] dt-bindings: serial: Document RDA Micro UART

2017-07-01 Thread Andreas Färber
Am 30.06.2017 um 16:27 schrieb Rob Herring: > On Fri, Jun 30, 2017 at 6:12 AM, Andreas Färber wrote: >> Am 29.06.2017 um 22:10 schrieb Rob Herring: >>> On Tue, Jun 27, 2017 at 02:55:18AM +0200, Andreas Färber wrote: >>>> Add an initial binding for the RDA881

[PATCH] ARM: owl: Drop custom machine

2017-07-01 Thread Andreas Färber
Rely on the fallback to "Generic DT based system". This change is visible in /proc/cpuinfo. Cc: Arnd Bergmann <a...@arndb.de> Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm/mach-actions/Makefile | 1 - arch/arm/mach-actions/owl.c| 28 ---

[PATCH] ARM: owl: Drop custom machine

2017-07-01 Thread Andreas Färber
Rely on the fallback to "Generic DT based system". This change is visible in /proc/cpuinfo. Cc: Arnd Bergmann Signed-off-by: Andreas Färber --- arch/arm/mach-actions/Makefile | 1 - arch/arm/mach-actions/owl.c| 28 2 files changed, 29 deletions(-) d

[PATCH] ARM: owl: smp: Drop bogus holding pen

2017-07-01 Thread Andreas Färber
..@actions-semi.com> Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm/mach-actions/headsmp.S | 20 ++-- arch/arm/mach-actions/platsmp.c | 29 + 2 files changed, 3 insertions(+), 46 deletions(-) diff --git a/arch/arm/mach-actions/heads

[PATCH] ARM: owl: smp: Drop bogus holding pen

2017-07-01 Thread Andreas Färber
The S500 SoC can start secondary CPUs without busy-looping for pen_release, so simplify the SMP code compared to the LeMaker kernel tree. Fixes: 172067e0bc87 ("ARM: owl: Implement CPU enable-method for S500") Suggested-by: Arnd Bergmann Cc: David Liu Signed-off-by: Andreas Färber ---

Re: 答复: [PATCH v4 20/28] ARM: owl: Implement CPU enable-method for S500

2017-07-01 Thread Andreas Färber
Hi David, Am 01.07.2017 um 06:42 schrieb 刘炜: > OWL_CPUx_ADDR is the physical address of CPUx wakeup function. > OWL_CPUx_FLAG is a valid flag of OWL_CPUx_ADDR. > > After CPUxs are wakeuped by SEV instruction, they will check their own > OWL_CPUx_FLAG register. If the register vlaue is 0x55aa,

Re: 答复: [PATCH v4 20/28] ARM: owl: Implement CPU enable-method for S500

2017-07-01 Thread Andreas Färber
Hi David, Am 01.07.2017 um 06:42 schrieb 刘炜: > OWL_CPUx_ADDR is the physical address of CPUx wakeup function. > OWL_CPUx_FLAG is a valid flag of OWL_CPUx_ADDR. > > After CPUxs are wakeuped by SEV instruction, they will check their own > OWL_CPUx_FLAG register. If the register vlaue is 0x55aa,

Re: [PATCH 4/6] dt-bindings: serial: Document RDA Micro UART

2017-06-30 Thread Andreas Färber
Am 29.06.2017 um 22:10 schrieb Rob Herring: > On Tue, Jun 27, 2017 at 02:55:18AM +0200, Andreas Färber wrote: >> Add an initial binding for the RDA8810PL UART. >> >> Signed-off-by: Andreas Färber <afaer...@suse.de> >> --- >> Documentation/devic

Re: [PATCH 4/6] dt-bindings: serial: Document RDA Micro UART

2017-06-30 Thread Andreas Färber
Am 29.06.2017 um 22:10 schrieb Rob Herring: > On Tue, Jun 27, 2017 at 02:55:18AM +0200, Andreas Färber wrote: >> Add an initial binding for the RDA8810PL UART. >> >> Signed-off-by: Andreas Färber >> --- >> Documentation/devicetree/bindings/serial/rda-uart.

Re: [PATCH v4 20/28] ARM: owl: Implement CPU enable-method for S500

2017-06-29 Thread Andreas Färber
Am 29.06.2017 um 17:07 schrieb Arnd Bergmann: >>> +static int s500_smp_boot_secondary(unsigned int cpu, struct task_struct >>> *idle) >>> +{ >>> + unsigned long timeout; >>> + int ret; >>> + >>> + ret = s500_wakeup_secondary(cpu); >>> + if (ret) >>> + return

Re: [PATCH v4 20/28] ARM: owl: Implement CPU enable-method for S500

2017-06-29 Thread Andreas Färber
Am 29.06.2017 um 17:07 schrieb Arnd Bergmann: >>> +static int s500_smp_boot_secondary(unsigned int cpu, struct task_struct >>> *idle) >>> +{ >>> + unsigned long timeout; >>> + int ret; >>> + >>> + ret = s500_wakeup_secondary(cpu); >>> + if (ret) >>> + return

Re: [PATCH 3/5] dt-bindings: arm: Document Socionext MB86S71 and Fujitsu F-Cue

2017-06-29 Thread Andreas Färber
Hi Masahiro-san, Am 29.06.2017 um 14:18 schrieb Masahiro Yamada: > 2017-06-29 1:46 GMT+09:00 Rob Herring <r...@kernel.org>: >> On Sun, Jun 25, 2017 at 07:00:18PM +0200, Andreas Färber wrote: >>> For consistency with existing SoC bindings, use "fujitsu,m

Re: [PATCH 3/5] dt-bindings: arm: Document Socionext MB86S71 and Fujitsu F-Cue

2017-06-29 Thread Andreas Färber
Hi Masahiro-san, Am 29.06.2017 um 14:18 schrieb Masahiro Yamada: > 2017-06-29 1:46 GMT+09:00 Rob Herring : >> On Sun, Jun 25, 2017 at 07:00:18PM +0200, Andreas Färber wrote: >>> For consistency with existing SoC bindings, use "fujitsu,mb86s71" but >>> socionex

Re: [PATCH 1/5] clk: mb86s7x: Suppress build

2017-06-29 Thread Andreas Färber
Am 29.06.2017 um 00:29 schrieb Stephen Boyd: > On 06/28, Jassi Brar wrote: >> On 28 June 2017 at 21:43, Stephen Boyd <sb...@codeaurora.org> wrote: >>> On 06/25, Andreas Färber wrote: >>>> It fails to build once we introduce the ARCH_MB86S7X Kconfig symbol: >

Re: [PATCH 1/5] clk: mb86s7x: Suppress build

2017-06-29 Thread Andreas Färber
Am 29.06.2017 um 00:29 schrieb Stephen Boyd: > On 06/28, Jassi Brar wrote: >> On 28 June 2017 at 21:43, Stephen Boyd wrote: >>> On 06/25, Andreas Färber wrote: >>>> It fails to build once we introduce the ARCH_MB86S7X Kconfig symbol: >>>> >>>&g

[PATCH 6/6] ARM: dts: Add RDA8810PL and Orange Pi 2G-IoT

2017-06-26 Thread Andreas Färber
Add Device Trees for RDA Micro RDA8810PL SoC and Orange Pi 2G-IoT board. Signed-off-by: Andreas Färber <afaer...@suse.de> --- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts | 27 +++ arch/arm/boot/dts/rda8810pl.dtsi

[PATCH 6/6] ARM: dts: Add RDA8810PL and Orange Pi 2G-IoT

2017-06-26 Thread Andreas Färber
Add Device Trees for RDA Micro RDA8810PL SoC and Orange Pi 2G-IoT board. Signed-off-by: Andreas Färber --- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts | 27 +++ arch/arm/boot/dts/rda8810pl.dtsi| 94

[PATCH 2/6] dt-bindings: arm: Document RDA8810PL and Orange Pi 2G-IoT

2017-06-26 Thread Andreas Färber
Add bindings for RDA Micro RDA8810PL SoC and Orange Pi 2G-IoT board. Cc: serv...@rdamicro.com Cc: zhao_ste...@263.net Signed-off-by: Andreas Färber <afaer...@suse.de> --- Documentation/devicetree/bindings/arm/rda.txt | 17 + 1 file changed, 17 insertions(+) create mode

[PATCH 2/6] dt-bindings: arm: Document RDA8810PL and Orange Pi 2G-IoT

2017-06-26 Thread Andreas Färber
Add bindings for RDA Micro RDA8810PL SoC and Orange Pi 2G-IoT board. Cc: serv...@rdamicro.com Cc: zhao_ste...@263.net Signed-off-by: Andreas Färber --- Documentation/devicetree/bindings/arm/rda.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation

[PATCH 5/6] tty: serial: Add RDA Micro UART driver

2017-06-26 Thread Andreas Färber
Add "rda" earlycon driver for RDA8810PL UART. Signed-off-by: Andreas Färber <afaer...@suse.de> --- Documentation/admin-guide/kernel-parameters.txt | 6 ++ drivers/tty/serial/Kconfig | 19 drivers/tty/serial/Makefile | 1 + driver

[PATCH 1/6] dt-bindings: Add RDA Micro vendor prefix

2017-06-26 Thread Andreas Färber
RDA Microelectronics is a Chinese SoC manufacturer. Cc: serv...@rdamicro.com Signed-off-by: Andreas Färber <afaer...@suse.de> --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.

[PATCH 5/6] tty: serial: Add RDA Micro UART driver

2017-06-26 Thread Andreas Färber
Add "rda" earlycon driver for RDA8810PL UART. Signed-off-by: Andreas Färber --- Documentation/admin-guide/kernel-parameters.txt | 6 ++ drivers/tty/serial/Kconfig | 19 drivers/tty/serial/Makefile | 1 + drivers/tty/serial/

[PATCH 1/6] dt-bindings: Add RDA Micro vendor prefix

2017-06-26 Thread Andreas Färber
RDA Microelectronics is a Chinese SoC manufacturer. Cc: serv...@rdamicro.com Signed-off-by: Andreas Färber --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation

<    2   3   4   5   6   7   8   9   10   11   >