From patchwork Fri Jul 1 07:09:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 586516 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2583AC433EF for ; Fri, 1 Jul 2022 07:10:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234007AbiGAHKI (ORCPT ); Fri, 1 Jul 2022 03:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235362AbiGAHKF (ORCPT ); Fri, 1 Jul 2022 03:10:05 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4015168A27; Fri, 1 Jul 2022 00:10:03 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 1FE83100007; Fri, 1 Jul 2022 07:09:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1656659402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=043xki5ybzdJf/eZrX7vsjG3WJvxmYS8FW1MP76lKiI=; b=cOwGLgkRMb1f/8Fa1e2q1B0gFtcryI9bDB9Zys2sAnsMp2xdSWfBrpxirubH4eM0Rgkdvt eJQ8qofiVeLsZdKxDk2ENaBK25C5UorAzdrAoFaMZ1atA0q3G/6/U2P1uHvw/4nFxy5kEd ZOBllkCcvb1qWIcfzLeWucIOvBaM0Jj+EOw8XEOKfoH12jBNKJqvKalCGgyEzNn7A4mTOA LcpomN7eDhdcaKbnsSllBN/jHoE+FdmDjurlvoTqq7FdRLrqNAqjm6mM9LKHf3CEAUsdrM ggvH932QQzJhqKrropOf44gBffLHStWm6Sj1IAi1jAvYy5soRQmrG4HOaECpAg== From: Herve Codina To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Michael Turquette , Stephen Boyd , Horatiu Vultur Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Thomas Petazzoni , Herve Codina Subject: [PATCH v4 1/3] clk: lan966x: Fix the lan966x clock gate register address Date: Fri, 1 Jul 2022 09:09:26 +0200 Message-Id: <20220701070928.459135-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220701070928.459135-1-herve.codina@bootlin.com> References: <20220701070928.459135-1-herve.codina@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The register address used for the clock gate register is the base register address coming from first reg map (ie. the generic clock registers) instead of the second reg map defining the clock gate register. Use the correct clock gate register address. Fixes: 5ad5915dea00 ("clk: lan966x: Extend lan966x clock driver for clock gating support") Signed-off-by: Herve Codina --- drivers/clk/clk-lan966x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-lan966x.c b/drivers/clk/clk-lan966x.c index d1535ac13e89..81cb90955d68 100644 --- a/drivers/clk/clk-lan966x.c +++ b/drivers/clk/clk-lan966x.c @@ -213,7 +213,7 @@ static int lan966x_gate_clk_register(struct device *dev, hw_data->hws[i] = devm_clk_hw_register_gate(dev, clk_gate_desc[idx].name, - "lan966x", 0, base, + "lan966x", 0, gate_base, clk_gate_desc[idx].bit_idx, 0, &clk_gate_lock); From patchwork Fri Jul 1 07:09:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 586515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5F3ECCA47F for ; Fri, 1 Jul 2022 07:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235375AbiGAHKP (ORCPT ); Fri, 1 Jul 2022 03:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235367AbiGAHKN (ORCPT ); Fri, 1 Jul 2022 03:10:13 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F044868A0B; Fri, 1 Jul 2022 00:10:11 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 34E29100006; Fri, 1 Jul 2022 07:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1656659410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TAVl3S8ScYCQZWxGRYXT6xqPfVpbnnDskmYQYuu02mo=; b=RdVNE00Qe16mfApzHbUeADqeDz3OVtP/S7p2Cv8BDCRDmQULMk0TDlkhkArGFMb+8mA9mW YbrrIVfgNXWp6qKNkfwSxttfIp9aHTHUZk1jonuIUhLYjyFho8rQ+2174l6vXdsD8t+evL Qvht+2YPXxm9FmWrfr4o1JIXzDJwRgXH3fxqLYDprqfSIXz5QFHa/Hmf9dMlWgbjFGgq53 gTTpTv+0WrOJSDluCnfoanKlPy9eXOWkWq5HT5PoAL4+zQlfk0zqd4bIR28ByTlaeBk7K2 buvHVktN3qKapGtMmN1ixHGHkOERCl1llrFprAT2J1ErmlcSdABTMeueyiBzzg== From: Herve Codina To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Michael Turquette , Stephen Boyd , Horatiu Vultur Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Thomas Petazzoni , Herve Codina Subject: [PATCH v4 3/3] ARM: dts: lan966x: Add UDPHS support Date: Fri, 1 Jul 2022 09:09:28 +0200 Message-Id: <20220701070928.459135-4-herve.codina@bootlin.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220701070928.459135-1-herve.codina@bootlin.com> References: <20220701070928.459135-1-herve.codina@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add UDPHS (the USB High Speed Device Port controller) support. The both lan966x SOCs (LAN9662 and LAN9668) have the same UDPHS IP. This IP is also the same as the one present in the SAMA5D3 SOC. Signed-off-by: Herve Codina --- arch/arm/boot/dts/lan966x.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi index 3cb02fffe716..c98e7075c2b4 100644 --- a/arch/arm/boot/dts/lan966x.dtsi +++ b/arch/arm/boot/dts/lan966x.dtsi @@ -458,6 +458,17 @@ cpu_ctrl: syscon@e00c0000 { reg = <0xe00c0000 0x350>; }; + udc: usb@e0808000 { + compatible = "microchip,lan9662-udc", + "atmel,sama5d3-udc"; + reg = <0x00200000 0x80000>, + <0xe0808000 0x400>; + interrupts = ; + clocks = <&clks GCK_GATE_UDPHS>, <&nic_clk>; + clock-names = "pclk", "hclk"; + status = "disabled"; + }; + can0: can@e081c000 { compatible = "bosch,m_can"; reg = <0xe081c000 0xfc>, <0x00100000 0x4000>;