Hi Beniamino,
On 03/12/2017 10:17, Beniamino Galvani wrote:
> Introduce a basic clock driver for Amlogic Meson SoCs which supports
> enabling/disabling clock gates and getting their frequency.
>
> Signed-off-by: Beniamino Galvani
> ---
> arch/arm/mach-meson/Kconfig | 2 +
> drivers/clk/Makefi
The Amlogic Meson SoCs embeds up to 256 reset lines, add the corresponding
driver.
Signed-off-by: Neil Armstrong
---
drivers/reset/Kconfig | 8
drivers/reset/Makefile | 1 +
drivers/reset/reset-meson.c | 90 +
3 files changed, 99
compatible
string for Amlogic Meson GX Socs.
Signed-off-by: Neil Armstrong
---
drivers/serial/serial_meson.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c
index 363affb..6412ca6 100644
--- a/drivers/serial/serial_meson.c
+++ b
://lkml.kernel.org/r/20180128202245.25021-1-martin.blumensti...@googlemail.com
[3]
https://lkml.kernel.org/r/20180303214309.25643-1-martin.blumensti...@googlemail.com
Neil Armstrong (3):
usb: host: Add simple of glue driver for DWC3 USB Controllers
integration
usb: host: dwc3: Add support for multiple PHY
Signed-off-by: Neil Armstrong
---
drivers/usb/host/Kconfig | 7 ++
drivers/usb/host/Makefile | 1 +
drivers/usb/host/dwc3-of-simple.c | 187 ++
3 files changed, 195 insertions(+)
create mode 100644 drivers/usb/host/dwc3-of-simple.c
diff
Signed-off-by: Neil Armstrong
---
drivers/phy/Kconfig | 8 ++
drivers/phy/Makefile | 1 +
drivers/phy/meson-gxl-usb2.c | 238 +++
drivers/phy/meson-gxl-usb3.c | 201
4 files changed, 448 insertions
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support
for a generic number of PHYs and adapt the code to handle a generic
number of PHYs.
Signed-off-by: Neil Armstrong
---
drivers/usb/host/xhci-dwc3.c | 105 ---
1 file changed, 58
On 29/03/2018 15:52, Marek Vasut wrote:
> On 03/29/2018 03:42 PM, Neil Armstrong wrote:
>> Signed-off-by: Neil Armstrong
>> ---
>> drivers/usb/host/Kconfig | 7 ++
>> drivers/usb/host/Makefile | 1 +
>> driver
On 29/03/2018 15:53, Marek Vasut wrote:
> On 03/29/2018 03:42 PM, Neil Armstrong wrote:
>> DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support
>> for a generic number of PHYs and adapt the code to handle a generic
>> number of PHYs.
>>
>&
On 29/03/2018 15:54, Marek Vasut wrote:
> On 03/29/2018 03:42 PM, Neil Armstrong wrote:
>> Signed-off-by: Neil Armstrong
>> ---
>> drivers/phy/Kconfig | 8 ++
>> drivers/phy/Makefile | 1 +
>> d
On 29/03/2018 16:24, Marek Vasut wrote:
> On 03/29/2018 04:23 PM, Neil Armstrong wrote:
>> On 29/03/2018 15:52, Marek Vasut wrote:
>>> On 03/29/2018 03:42 PM, Neil Armstrong wrote:
>>>> Signed-off-by: Neil Armstrong
>>>> ---
>>>> drivers/usb
On 30/03/2018 00:41, Simon Glass wrote:
> Hi Neil,
>
> On 29 March 2018 at 16:42, Neil Armstrong wrote:
>> Hi Beniamino,
>>
>> On 03/12/2017 10:17, Beniamino Galvani wrote:
>>> Introduce a basic clock driver for Amlogic Meson SoCs which supports
>>&g
This patch adds a "bulk" API to the reset API in order to get/deassert/
assert/release a group of reset signals associated with a device.
This bulk API will avoid adding a copy of the same code to manage
a group of reset signals in drivers.
Signed-off-by: Neil Armstrong
---
This ser
This patch adds a "bulk" API to the clock API in order to get/enable/disable
/release a group of clocks associated with a device.
This bulk API will avoid adding a copy of the same code to manage
a group of clocks in drivers.
Signed-off-by: Neil Armstrong
---
This serie and the &
merged.
The second patch adds the bulk reset API tests for the sandbox test suite.
Changes since v1 :
- Add sandbox tests
Neil Armstrong (2):
reset: Add get/assert/deassert/release for bulk of reset signals
reset: add sandbox test for bulk API
arch/sandbox/include/asm/reset.h | 4 ++
This patch adds a "bulk" API to the reset API in order to get/deassert/
assert/release a group of reset signals associated with a device.
This bulk API will avoid adding a copy of the same code to manage
a group of reset signals in drivers.
Signed-off-by: Neil Armstrong
---
drivers/r
ets
of the sandbox reset controller has been bumped to 101 for the "other" reset
line to be valid.
Signed-off-by: Neil Armstrong
---
arch/sandbox/include/asm/reset.h | 4
drivers/reset/sandbox-reset-test.c | 29 +
drivers/reset/sandbox-reset.c | 2
cond patch adds the bulk clock API tests for the sandbox test suite.
Changes since v1 :
- Add sandbox tests
Neil Armstrong (2):
clk: Add get/enable/disable/release for a bulk of clocks
clk: add sandbox test for bulk API
arch/sandbox/include/asm/clk.h | 32 +++
drive
This patch adds the bulk clock API tests for the sandbox test suite.
It's very similar to the main test but only uses the _bulk() API and
checks if the clocks are correctly enabled/disabled.
Signed-off-by: Neil Armstrong
---
arch/sandbox/include/asm/clk.h
This patch adds a "bulk" API to the clock API in order to get/enable/disable
/release a group of clocks associated with a device.
This bulk API will avoid adding a copy of the same code to manage
a group of clocks in drivers.
Signed-off-by: Neil Armstrong
---
drivers/clk/clk-ucl
On 03/04/2018 19:53, Simon Glass wrote:
> On 3 April 2018 at 17:40, Neil Armstrong wrote:
>> This patch adds the bulk reset API tests for the sandbox test suite.
>>
>> Unlike the main test, it also check the "other" reset signal using the bulk
>> API
>
t; CONFIG_NETDEVICES=y
> diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
> index 179e041..f5821df 100644
> --- a/drivers/net/phy/Kconfig
> +++ b/drivers/net/phy/Kconfig
> @@ -13,12 +13,20 @@ menuconfig PHYLIB
>
> if PHYLIB
>
> +config PHY_ADDR_ENABLE
&g
On 04/04/2018 22:49, Beniamino Galvani wrote:
> On Wed, Mar 28, 2018 at 11:54:37AM +0200, Neil Armstrong wrote:
>> The Amlogic SoCs have a registers containing the die revision
>> and packaging type to determine the SoC family and package marketing
>> name like S905X f
On 08/04/2018 15:50, Simon Glass wrote:
> Hi,
>
> On 28 March 2018 at 05:54, Neil Armstrong wrote:
>> The Amlogic SoCs have a registers containing the die revision
>> and packaging type to determine the SoC family and package marketing
>> name like S905X for the GXL
On 04/04/2018 22:40, Beniamino Galvani wrote:
> On Wed, Mar 28, 2018 at 11:54:36AM +0200, Neil Armstrong wrote:
>> Taking into account the Amlogic Family name starts with GX, including
>> the GXBB, GXL and GXM SoCs.
>>
>> Signed-off-by: Neil Armstrong
>
> Hi,
&
On 08/04/2018 15:50, Simon Glass wrote:
> Hi,
>
> On 28 March 2018 at 05:54, Neil Armstrong wrote:
>> The Amlogic SoCs have a registers containing the die revision
>> and packaging type to determine the SoC family and package marketing
>> name like S905X for the GXL
This is a port of the dwc3-of-simple driver from Linux to enable/deassert
clock and resets of a simple DWC3 Controller HW glue.
Signed-off-by: Neil Armstrong
---
drivers/usb/host/Kconfig | 7 +++
drivers/usb/host/Makefile | 1 +
drivers/usb/host/dwc3-of-simple.c | 123
ril/006952.html
[5] http://lists.infradead.org/pipermail/linux-amlogic/2018-April/006949.html
Neil Armstrong (3):
usb: host: Add simple of glue driver for DWC3 USB Controllers
integration
usb: host: dwc3: Add support for multiple PHYs
phy: Add Amlogic Meson USB2 & USB3 Generic PHY d
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support
for a generic number of PHYs and adapt the code to handle a generic
number of PHYs.
Signed-off-by: Neil Armstrong
---
drivers/usb/host/xhci-dwc3.c | 113 +--
1 file changed, 66
merged in linux.
Signed-off-by: Neil Armstrong
---
drivers/phy/Kconfig | 8 ++
drivers/phy/Makefile | 1 +
drivers/phy/meson-gxl-usb2.c | 238 +++
drivers/phy/meson-gxl-usb3.c | 201
4 files changed, 448
Hi Jaehoon,
On 10/04/2018 18:01, Heinrich Schuchardt wrote:
> On 03/24/2018 03:57 PM, Heinrich Schuchardt wrote:
>> On 03/18/2018 01:03 AM, Vagrant Cascadian wrote:
>>> On 2018-03-17, Heinrich Schuchardt wrote:
The Odroid C2 fails to read from mmc with U-Boot v2018.03.
The change avoids
Hi Marek,
On 11/04/2018 16:37, Marek Vasut wrote:
> On 04/11/2018 04:29 PM, Neil Armstrong wrote:
>> This is a port of the dwc3-of-simple driver from Linux to enable/deassert
>> clock and resets of a simple DWC3 Controller HW glue.
>>
>> Signed-off-by: Neil Armstrong
This is a port of the dwc3-of-simple driver from Linux to enable/deassert
clock and resets of a simple DWC3 Controller HW glue.
Signed-off-by: Neil Armstrong
---
drivers/usb/host/Kconfig | 7 +++
drivers/usb/host/Makefile | 1 +
drivers/usb/host/dwc3-of-simple.c | 109
i...@googlemail.com
[4] http://lists.infradead.org/pipermail/linux-amlogic/2018-April/006952.html
[5] http://lists.infradead.org/pipermail/linux-amlogic/2018-April/006949.html
Neil Armstrong (3):
usb: host: Add simple of glue driver for DWC3 USB Controllers
integration
usb: host: dwc3: A
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support
for a generic number of PHYs and adapt the code to handle a generic
number of PHYs.
Signed-off-by: Neil Armstrong
---
drivers/usb/host/xhci-dwc3.c | 113 +--
1 file changed, 66
merged in linux.
Signed-off-by: Neil Armstrong
---
drivers/phy/Kconfig | 8 ++
drivers/phy/Makefile | 1 +
drivers/phy/meson-gxl-usb2.c | 238 +++
drivers/phy/meson-gxl-usb3.c | 201
4 files changed, 448
Taking into account the Amlogic Family name starts with GX, including
the GXBB, GXL and GXM SoCs.
Signed-off-by: Neil Armstrong
---
Changes since v1:
- Resent as single patch since cpuinfo needs further work
- Aligned the defines in gx.h
arch/arm/include/asm/arch-meson/gx.h | 70
Synchronize the Amlogic Meson GX Device Tree and bindings with Linux 4.16 to
beneficiate with the new DT nodes.
The pinctrl bindings has changed since 4.13, so the pinctrl driver must be
updated with the changes.
Neil Armstrong (2):
ARM64: meson: Sync DT and Bindings with Linux 4.16
pinctrl
Synchronize the Linux Device Tree for Amlogic Meson GX boards from Linux 4.16.0.
Signed-off-by: Neil Armstrong
---
arch/arm/dts/meson-gx.dtsi| 87 ++-
arch/arm/dts/meson-gxbb-odroidc2.dts | 56 --
arch/arm/dts/meson-gxbb.dtsi
The pinctrl bindings has changed for Amlogic Meson SoCs since Linux 4.13,
update the pinctrl driver to take this in account.
Signed-off-by: Neil Armstrong
---
drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 12 ++--
drivers/pinctrl/meson/pinctrl-meson-gxl.c | 14 +++---
2 files
reset
signals")
Reported-by: Jean-Jacques Hiblot
Signed-off-by: Neil Armstrong
---
include/reset.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/reset.h b/include/reset.h
index d38f176..ae247ce 100644
--- a/include/reset.h
+++ b/include/reset.h
@@ -243,7 +243,8
Hi Jean-Jacques,
On 11/04/2018 18:17, Jean-Jacques Hiblot wrote:
>
>
> On 11/04/2018 17:08, Neil Armstrong wrote:
>> This is a port of the dwc3-of-simple driver from Linux to enable/deassert
>> clock and resets of a simple DWC3 Controller HW glue.
>>
>&
On 12/04/2018 10:07, Ben Dooks wrote:
> On 12/04/18 09:05, Neil Armstrong wrote:
>> Hi Jean-Jacques,
>>
>> On 11/04/2018 18:17, Jean-Jacques Hiblot wrote:
>>>
>>>
>>> On 11/04/2018 17:08, Neil Armstrong wrote:
>>>> This is a por
The disabled clk API returns -ENOSYS unlike the reset API returning -ENOTSUPP.
Fixes: ca7fdc8b1267 ("usb: host: Add simple of glue driver for DWC3 USB
Controllers integration")
Reported-by: Jean-Jacques Hiblot
Signed-off-by: Neil Armstrong
---
drivers/usb/host/dwc3-of-simple.c | 2
On 11/04/2018 17:49, Jean-Jacques Hiblot wrote:
> Hi Neil,
>
> while trying to test your patches on dwc3, I ran into a compilation issue.
>
> On 03/04/2018 11:40, Neil Armstrong wrote:
>> This patch adds a "bulk" API to the reset API in order to get/deassert/
>
On 12/04/2018 18:41, Simon Glass wrote:
> On 12 April 2018 at 02:03, Neil Armstrong wrote:
>> In the commit "reset: Add get/assert/deassert/release for bulk of reset
>> signals"
>> the disabled reset_release_bulk() and reset_get_bulk() used the wrong
>&
This fixes the Coverity Defect CID 175348 when dev_count_phandle_with_args()
returns a negative value.
Fixes: 0c28233903b5 ("reset: Add get/assert/deassert/release for bulk of reset
signals")
Signed-off-by: Neil Armstrong
---
drivers/reset/reset-uclass.c | 4 ++--
1 file changed, 2
This fixes the Coverity Defect CID 175347 when dev_count_phandle_with_args()
returns a negative value.
Fixes: a855be87da49 ("clk: Add get/enable/disable/release for a bulk of clocks")
Signed-off-by: Neil Armstrong
---
drivers/clk/clk-uclass.c | 4 ++--
1 file changed, 2 insert
-meson.c
> index 5324f86..c41d176 100644
> --- a/drivers/reset/reset-meson.c
> +++ b/drivers/reset/reset-meson.c
> @@ -77,7 +77,7 @@ static int meson_reset_probe(struct udevice *dev)
> {
> struct meson_reset_priv *priv = dev_get_priv(dev);
>
> - retu
Add the regmap_update_bits() to simply the read/modify/write of registers
in a single command. The function is taken from Linux regmap
implementation.
Signed-off-by: Neil Armstrong
---
include/regmap.h | 23 +++
1 file changed, 23 insertions(+)
diff --git a/include/regmap.h
Add an 'adc' cli command to get adc devices informations and read single
shots datas.
Signed-off-by: Neil Armstrong
---
cmd/Kconfig | 7
cmd/Makefile | 1 +
cmd/adc.c| 126 +++
3 files changed, 134 insertions(+)
c
: add regmap_update_bits() helper"
patch and has been tested using the newly introducted "adc" CLI command
in the "cmd: add ADC cli commands" patch.
Signed-off-by: Neil Armstrong
---
drivers/adc/Kconfig| 10 +
drivers/adc/Makefile | 1 +
dr
meson_mmc_config_clock - Please, consider for v2018.05-rc2
Date: Wed, 11 Apr 2018 16:39:08 +0200
From: Neil Armstrong
Organization: Baylibre
To: Heinrich Schuchardt , Jaehoon Chung
CC: Vagrant Cascadian , u-boot@lists.denx.de, Tom Rini
, open list:ARM/Amlogic Meson...
Hi Jaehoon,
On 10/04/2018 18:01, Heinrich
://lkml.kernel.org/r/1524561576-2201-1-git-send-email-narmstr...@baylibre.com
Signed-off-by: Neil Armstrong
---
arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts | 12
configs/libretech_all_h3_cc_h5_defconfig | 17 +
2 files changed, 29 insertions(+)
create mode 100644 arch
9ea70c4991e8d4c322e074359ac5e155d59d
> Author: Neil Armstrong
> Date: Wed Apr 11 17:08:01 2018 +0200
>
> usb: host: dwc3: Add support for multiple PHYs
>
> DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support
> for a generic number of PHYs an
is the first bad commit
> commit 7c839ea70c4991e8d4c322e074359ac5e155d59d
> Author: Neil Armstrong
> Date: Wed Apr 11 17:08:01 2018 +0200
>
> usb: host: dwc3: Add support for multiple PHYs
>
> DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support
> for a generic number of PH
ort on the UniPhier SoC family.
Fixes: 7c839ea70c49 ("usb: host: dwc3: Add support for multiple PHYs")
Reported-by: Masahiro Yamada
Signed-off-by: Neil Armstrong
---
drivers/usb/host/xhci-dwc3.c | 23 +--
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/d
Hi,
On 25/04/2018 11:09, Masahiro Yamada wrote:
> Hi Neil.
>
>
> 2018-04-25 17:37 GMT+09:00 Neil Armstrong :
>> Hi,
>>
>> On 25/04/2018 06:21, Masahiro Yamada wrote:
>>> Hi.
>>>
>>>
>>> I found DWC3 usb driver on UniPhier SoC f
Hi,
On 26/04/2018 16:40, Simon Glass wrote:
> Hi Neil,
>
> On 23 April 2018 at 08:16, Neil Armstrong wrote:
>> Add the regmap_update_bits() to simply the read/modify/write of registers
>> in a single command. The function is taken from Linux regmap
>> implementation
Add calls to regmap_read/modify_bits/write even if the proper memory
read/write calls are not executed in sandbox.
Signed-off-by: Neil Armstrong
---
test/dm/regmap.c | 24
1 file changed, 24 insertions(+)
diff --git a/test/dm/regmap.c b/test/dm/regmap.c
index 7f66058
from include to regmap.c
- added a sandbox test
Neil Armstrong (2):
regmap: add regmap_update_bits() helper
test: regmap: add read/modify/write test
drivers/core/regmap.c | 14 ++
include/regmap.h | 10 ++
test/dm/regmap.c | 24
3 files
Add the regmap_update_bits() to simply the read/modify/write of registers
in a single command. The function is taken from Linux regmap
implementation.
Signed-off-by: Neil Armstrong
---
drivers/core/regmap.c | 14 ++
include/regmap.h | 10 ++
2 files changed, 24
Hi,
On 26/04/2018 16:40, Simon Glass wrote:
> Hi Neil,
>
> On 23 April 2018 at 08:18, Neil Armstrong wrote:
>> Add an 'adc' cli command to get adc devices informations and read single
>> shots datas.
>>
>> Signed-off-by: Neil Armstrong
>> ---
&
Hi,
On 27/04/2018 14:53, Mario Six wrote:
> Some reset lines are implemented by toggling the line via a GPIO.
>
> Add a driver to properly drive such reset lines.
You are defining a "gpio-reset" binding which has always been rejected
under Linux, so I'm not sure it's a good idea to add it in U-B
Hi Mario,
On 27/04/2018 14:51, Mario Six wrote:
> The regmap functions currently assume that all register map accesses
> have a data width of 32 bits, but there are maps that have different
> widths.
>
> Implement a size parameter for the regmap_read and regmap_write
> functions to specify the wi
Add an 'adc' cli command to get adc devices informations and read single
shots datas.
Signed-off-by: Neil Armstrong
---
cmd/Kconfig | 8
cmd/Makefile | 1 +
cmd/adc.c| 121 +++
3 files changed, 130 insertions(+)
c
Mainline 4.14-rc4 with the Video Pipeline disables,
since it currently depends on Power Domains initialization from Vendor u-boot.
Dedicated reset and init code for the Video Pipeline for mainline Linux is in
the work.
Neil Armstrong (3):
ARM: dts: Synchronize Amlogic from Linux Mainline 4.13.5
Add the Amlogic Meson GXL pinctrl support based on the GXBB driver and
the synchronized DTS from Linux 4.13.5
Signed-off-by: Neil Armstrong
---
drivers/pinctrl/meson/Kconfig | 4 +
drivers/pinctrl/meson/Makefile| 1 +
drivers/pinctrl/meson/pinctrl-meson-gxl.c | 736
Synchronize the Amlogic ARM64 dts from mainline Linux 4.13.5
In the preparation of the support of the Amlogic P212 board,
import the corresponding meson-gxl-s905x-p212.dts file.
Signed-off-by: Neil Armstrong
---
arch/arm/dts/Makefile | 3 +-
arch/arm/dts/meson-gx.dtsi
This adds platform code for the Amlogic P212 reference board based on a
Meson GXL (S905X) SoC with the Meson GXL configuration.
This initial submission only supports UART and MMC/SDCard, support for the
internal Ethernet PHY in Work In Progress.
Signed-off-by: Neil Armstrong
---
arch/arm/mach
This patchset aims to add support for the Internal RMII Ethernet PHY of the
Amlogic Meson GXL S905X SoC on the Amlogic P212 Reference board.
The Internal PHY needs a specific config then acts as a generic PHY.
Neil Armstrong (3):
net: phy: Add Amlogic Meson GXL Internal PHY support
arm
The Amlogic Meson GXL/GXM families embeds an internal RMII Ethernet PHY.
The PHY acts as a generic PHY but needs a slight configuration right
before it's configuration.
Signed-off-by: Neil Armstrong
---
drivers/net/phy/Kconfig | 3 +++
drivers/net/phy/Makefile| 1 +
drivers/ne
On Amlogic Meson GXL/GXM, supplementary ethernet configuration registers
were added to configure the internal RMII PHY interface.
Signed-off-by: Neil Armstrong
---
arch/arm/include/asm/arch-meson/gxbb.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/include/asm/arch-meson
This patch adds support for the Internal RMII Ethernet PHY on the
Amlogic P212 Reference Board.
Signed-off-by: Neil Armstrong
---
board/amlogic/p212/p212.c | 39 ++-
configs/p212_defconfig| 4
include/configs/p212.h| 2 ++
3 files changed, 44
://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html
Signed-off-by: Neil Armstrong
---
arch/arm/include/asm/arch-meson/gxbb.h | 15 ++
arch/arm/mach-meson/board.c| 99 +++---
include/configs/meson-gxbb-common.h| 2 +-
3 files
On 19/10/2017 12:45, Ben Dooks wrote:
> On 2017-10-19 10:04, Neil Armstrong wrote:
>> As discussed at [1], the Amlogic Meson GX SoCs can embed a BL31 firmware
>> and a secondary BL32 firmware.
>> Since mid-2017, the reserved memory address of the BL31 firmware was moved
>
] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html
Changes since v1:
- switch to fdt rsv mem table and efi reserve memory
- replaced in_le32 by readl()
Signed-off-by: Neil Armstrong
---
arch/arm/include/asm/arch-meson/gxbb.h | 17 +
arch/arm/mach-meson/board.c
On 22/10/2017 16:36, Simon Glass wrote:
> On 18 October 2017 at 10:02, Neil Armstrong wrote:
>> The Amlogic Meson GXL/GXM families embeds an internal RMII Ethernet PHY.
>>
>> The PHY acts as a generic PHY but needs a slight configuration right
>> before it's co
EMMC_B_CLK0 122
> +#define CLKID_SD_EMMC_C_CLK0 125
> +#define CLKID_VPU_0_SEL 126
> +#define CLKID_VPU_0 128
> +#define CLKID_VPU_1_SEL 129
> +#define CLKID_VPU_1 131
> +#define CLKID_VPU132
> +#define CLKID_VAPB_0_SEL 133
> +#define CLKID_VAPB_0 135
> +#define CLKID_VAPB_1_SEL 136
> +#define CLKID_VAPB_1 138
> +#define CLKID_VAPB_SEL 139
> +#define CLKID_VAPB 140
>
> #endif /* __GXBB_CLKC_H */
>
Reviewed-by: Neil Armstrong
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
= get_timer(0);
> + while (readl(MSR_CLK_REG0) & BIT(31)) {
> + if (get_timer(start) > 100) {
> + debug("could not measure clk %u rate\n", clk);
> + return -ETIMEDOUT;
> + }
> + }
> +
>
>addr);
> +
> + return 0;
> +}
> +
> +static struct clk_ops meson_clk_ops = {
> + .disable= meson_clk_disable,
> + .enable = meson_clk_enable,
> + .get_rate = meson_clk_get_rate,
> +};
> +
> +static const struct udevice_id meson_clk_ids[] = {
> + { .compatible = "amlogic,gxbb-clkc" },
> + { .compatible = "amlogic,gxl-clkc" },
> + { }
> +};
> +
> +U_BOOT_DRIVER(meson_clk) = {
> + .name = "meson_clk",
> + .id = UCLASS_CLK,
> + .of_match = meson_clk_ids,
> + .priv_auto_alloc_size = sizeof(struct meson_clk),
> + .ops= &meson_clk_ops,
> + .probe = meson_clk_probe,
> +};
>
Ok for now to only handle the gates with the clock measure function.
Reviewed-by: Neil Armstrong
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
On 03/12/2017 10:17, Beniamino Galvani wrote:
> Use the clk framework to initialize clocks from drivers that need them
> instead of having hardcoded frequencies and initializations from board
> code.
>
> Signed-off-by: Beniamino Galvani
> ---
> arch/arm/include/asm/arch-meson/gxbb.h | 10 ---
From: Hans Verkuil
Using writel causes a "Synchronous Abort". Invert the arguments.
Signed-off-by: Hans Verkuil
Signed-off-by: Neil Armstrong
---
arch/arm/mach-meson/eth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Thanks Hans for finding this stupid error !
Neil
solves the problem but may take up to 6 retries to complete.
[1] https://lkml.kernel.org/r/20171208110811.30789-1-jbru...@baylibre.com
Fixes: 8995a96d1d67 ("net: phy: Add Amlogic Meson GXL Internal PHY support")
Signed-off-by: Jerome Brunet
Signed-off-by: Neil Armstrong
---
This patc
On 12/12/2017 14:23, Neil Armstrong wrote:
> From: Hans Verkuil
>
> Using writel causes a "Synchronous Abort". Invert the arguments.
>
> Signed-off-by: Hans Verkuil
> Signed-off-by: Neil Armstrong
> ---
> arch/arm/mach-meson/eth.c | 4 ++--
> 1 file
On 12/12/2017 16:03, Neil Armstrong wrote:
> From: Jerome Brunet
>
> This patch is ported from the Linux patch posted at [1] and applied to
> net tree as commit f1e2400a80ff.
>
> The purpose of this change is to fix the incorrect detection of the link
> partner (LP) ad
Khadas VIM is an Open Source DIY Box manufactured by Shenzhen Wesion NOT
'Tomato'
The fix was provided by Khadas Team member 'numbqq'.
Signed-off-by: Neil Armstrong
---
board/amlogic/khadas-vim/README | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boar
In order to support the "pinmux status" command, fix the GX pinctrl
drivers and add the necessary functions callbacks.
Neil Armstrong (4):
pinctrl: meson-gx: fix GPIO_TEST_N and GPIOCLK_ groups
pinctrl: meson: add common function to get pins name
pinctrl: meson-gx: add support f
The GPIO_TEST_N was in the wrong pmx group table, move it back with the AO
groups, GPIODV_18 was missing, add it back, and finally the GPIOCLK_*
group names were missing.
Signed-off-by: Neil Armstrong
---
drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 7 +--
drivers/pinctrl/meson/pinctrl
In order to support the "pinmux status" command, use the common functions
to get the pins count and names, and add the AXG specific function to get
the current function from registers.
Signed-off-by: Neil Armstrong
---
drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c | 48
In order to support the "pinmux status" command, use the common functions
to get the pins count and names, and add the GX specific function to get
the current function from registers.
Signed-off-by: Neil Armstrong
---
drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c | 44 +
In order to support the "pinmux status" command, add common function
to get pins count and pin name.
Signed-off-by: Neil Armstrong
---
drivers/pinctrl/meson/pinctrl-meson.c | 24
drivers/pinctrl/meson/pinctrl-meson.h | 3 +++
2 files changed, 27 insertion
ivers/pinctrl/meson/pinctrl-meson.c | 46 ++-
> drivers/pinctrl/meson/pinctrl-meson.h | 43 +++--
> include/dm/pinctrl.h | 3 ++
> 5 files changed, 89 insertions(+), 24 deletions(-)
>
Thanks
Tested on an Odroid-N2 !
n ret;
> + }
>
> - ret = regulator_set_enable(supply, true);
> - if (ret)
> - return ret;
> + if (!ret) {
> + ret = regulator_set_enable(supply, true);
> + if (ret)
> +
_groups[] = {
> "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", "GPIOAO_4",
> "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", "GPIOAO_8", "GPIOAO_9",
> @@ -383,6 +400,8 @@ static struct meson_pmx_func
>
On 04/06/2019 22:26, Maxime Jourdan wrote:
> The GXBB pinctrl is missing pins related to HDMI, namely hot plug
> detection (hpd) and I2C (sda + scl).
>
> This fixes HDMI support for GXBB in u-boot.
>
> Reported-by: Mohammad Rasim
> Signed-off-by: Maxime Jourdan
> ---
> drivers/pinctrl/meson/pi
On 04/06/2019 13:53, Guillaume La Roque wrote:
> The purpose of this patchset is to add drive-strength-microamp support in
> meson pinconf
> driver. This is a new feature that was added on the g12a. It is critical for
> us
> to support this since many functions are failing with default pad
> dri
On 04/06/2019 11:04, Neil Armstrong wrote:
> In order to support the "pinmux status" command, fix the GX pinctrl
> drivers and add the necessary functions callbacks.
>
> Neil Armstrong (4):
> pinctrl: meson-gx: fix GPIO_TEST_N and GPIOCLK_ groups
> pinctrl: meson
This patchset adds support for generating an unique MAC address per-SoC,
and enables it on the q200 (VIM2) and P212 (libretech-cc, khadas-vim,
libretech-ac)
based boards.
Neil Armstrong (3):
ARM: meson: sm: Add secure monitor calls to retrieve SoC serial number
ARM: meson: add unique MAC
The Secure Monitor interface permits retrieving the SoC Serial Number,
add a function to retrieve it.
Signed-off-by: Neil Armstrong
---
arch/arm/include/asm/arch-meson/sm.h | 1 +
arch/arm/mach-meson/sm.c | 24
2 files changed, 25 insertions(+)
diff --git
1001 - 1100 of 1934 matches
Mail list logo