[PATCH v1 0/2] Meson A1: fix USB and NAND stack

Hello!
After a recent sync device tree with the Linux Kernel, some drivers broke. These patchset will fix that.
Alexey Romanov (1): clk: a1: add new clocks for USB stack
Dmitry Rokosov (1): drivers: sm: bind child sm devices in the device tree
drivers/clk/meson/a1.c | 6 ++++++ drivers/sm/meson-sm.c | 1 + 2 files changed, 7 insertions(+)

Since we sync device tree with Linux, we have to add this clock definition for USB stack.
Signed-off-by: Alexey Romanov avromanov@salutedevices.com --- drivers/clk/meson/a1.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a1.c index 1075ba7333..d0f5bb3753 100644 --- a/drivers/clk/meson/a1.c +++ b/drivers/clk/meson/a1.c @@ -241,6 +241,12 @@ static const struct meson_clk_info *meson_clocks[] = { [CLKID_USB_PHY_IN] = CLK_GATE("usb_phy_in", A1_SYS_OSCIN_CTRL, 2, EXTERNAL_XTAL ), + [CLKID_USB_CTRL_IN] = CLK_GATE("usb_ctrl_in", A1_SYS_OSCIN_CTRL, 3, + EXTERNAL_XTAL + ), + [CLKID_USB_CTRL] = CLK_GATE("usb_ctrl", A1_SYS_CLK_EN0, 28, + CLKID_SYS + ), [CLKID_USB_PHY] = CLK_GATE("usb_phy", A1_SYS_CLK_EN0, 27, CLKID_SYS ),

On 01/11/2023 15:04, Alexey Romanov wrote:
Since we sync device tree with Linux, we have to add this clock definition for USB stack.
Signed-off-by: Alexey Romanov avromanov@salutedevices.com
drivers/clk/meson/a1.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a1.c index 1075ba7333..d0f5bb3753 100644 --- a/drivers/clk/meson/a1.c +++ b/drivers/clk/meson/a1.c @@ -241,6 +241,12 @@ static const struct meson_clk_info *meson_clocks[] = { [CLKID_USB_PHY_IN] = CLK_GATE("usb_phy_in", A1_SYS_OSCIN_CTRL, 2, EXTERNAL_XTAL ),
- [CLKID_USB_CTRL_IN] = CLK_GATE("usb_ctrl_in", A1_SYS_OSCIN_CTRL, 3,
EXTERNAL_XTAL
- ),
- [CLKID_USB_CTRL] = CLK_GATE("usb_ctrl", A1_SYS_CLK_EN0, 28,
CLKID_SYS
- ), [CLKID_USB_PHY] = CLK_GATE("usb_phy", A1_SYS_CLK_EN0, 27, CLKID_SYS ),
Reviewed-by: Neil Armstrong neil.armstrong@linaro.org

From: Dmitry Rokosov ddrokosov@salutedevices.com
One well-known sm child device that provides secure power control is the Secure Power Controller. This device utilizes SMC calls to communicate with power domains on the secure monitor side.
Signed-off-by: Dmitry Rokosov ddrokosov@salutedevices.com Signed-off-by: Alexey Romanov avromanov@salutedevices.com --- drivers/sm/meson-sm.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/sm/meson-sm.c b/drivers/sm/meson-sm.c index faef369f35..1dd1584855 100644 --- a/drivers/sm/meson-sm.c +++ b/drivers/sm/meson-sm.c @@ -194,6 +194,7 @@ U_BOOT_DRIVER(meson_sm) = { .id = UCLASS_SM, .of_match = meson_sm_ids, .probe = meson_sm_probe, + .bind = dm_scan_fdt_dev, .priv_auto = sizeof(struct meson_sm_priv), .ops = &sm_ops, };

On 01/11/2023 15:04, Alexey Romanov wrote:
From: Dmitry Rokosov ddrokosov@salutedevices.com
One well-known sm child device that provides secure power control is the Secure Power Controller. This device utilizes SMC calls to communicate with power domains on the secure monitor side.
Signed-off-by: Dmitry Rokosov ddrokosov@salutedevices.com Signed-off-by: Alexey Romanov avromanov@salutedevices.com
drivers/sm/meson-sm.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/sm/meson-sm.c b/drivers/sm/meson-sm.c index faef369f35..1dd1584855 100644 --- a/drivers/sm/meson-sm.c +++ b/drivers/sm/meson-sm.c @@ -194,6 +194,7 @@ U_BOOT_DRIVER(meson_sm) = { .id = UCLASS_SM, .of_match = meson_sm_ids, .probe = meson_sm_probe,
- .bind = dm_scan_fdt_dev, .priv_auto = sizeof(struct meson_sm_priv), .ops = &sm_ops, };
Reviewed-by: Neil Armstrong neil.armstrong@linaro.org

Hi,
On Wed, 01 Nov 2023 17:04:55 +0300, Alexey Romanov wrote:
After a recent sync device tree with the Linux Kernel, some drivers broke. These patchset will fix that.
Alexey Romanov (1): clk: a1: add new clocks for USB stack
Dmitry Rokosov (1): drivers: sm: bind child sm devices in the device tree
[...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-amlogic (u-boot-amlogic)
[1/2] clk: a1: add new clocks for USB stack https://source.denx.de/u-boot/custodians/u-boot-amlogic/-/commit/8ec790399aa... [2/2] drivers: sm: bind child sm devices in the device tree https://source.denx.de/u-boot/custodians/u-boot-amlogic/-/commit/e9f4f7789cd...
participants (3)
-
Alexey Romanov
-
Neil Armstrong
-
neil.armstrong@linaro.org