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: 12902832 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E947C43334 for ; Fri, 1 Jul 2022 07:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vt0FRuhaYmmHRT1FZabSdbBaG/n41Ypmhzmm3yGqYsE=; b=zcp7s//WLqFIyf yEyNQg81ACkUdJ8Fv7TAdt6Hodaoy8yfcEYQzgRSgXLkEBDvv5fY8DTzuF9ikAGkyAoobjMEgb5Pq wruPj3Cjpeunmnyy7oF5sr7Np+kWdR9gTHaTB0Nuln7NC+duDEZCumEwMnJK7x1eBPEHtU3Tin3Fk FP6vgOTmkhb6tIY90DIvOEV8U+Ubl9se1/Gyg6hist3o2NAQrLzvvT/rHwVezMvUP7IzZJTbgOY1T eJ3yRIsyOmsIeCN2iNy9GgaVdsZ4SO2h7A0GQS70fMFlqr0+j7gen2Kl4uduwus4emqAhTcsmdC30 d2hIcpNfzWzsoHl/b8fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7An0-003KyG-KV; Fri, 01 Jul 2022 07:10:06 +0000 Received: from relay11.mail.gandi.net ([217.70.178.231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7Amx-003KwY-DS for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2022 07:10:04 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220701_001003_645105_69B368AE X-CRM114-Status: GOOD ( 12.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 12902833 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 276F7C43334 for ; Fri, 1 Jul 2022 07:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3iGWRp6d5ljKeaQ6/qNe4JMxsdaN+tAzXfGuBJL9X6g=; b=2ono1wiwnu+nMx kbJwtqC2Wsd9dyT75ipCCgkSeKVRiVOJg+LxccETc6l0iW17I5lIAmXYiK149P8zXnQeglo1Wrr9+ 5FpTGYgrJVYp9snRi7oiGVsY5QH+6RFjGm9R5ieabYuKlrx2TJA+WkwQto/NEPrvBeUM/BjklyMmC ZcPvy877jN5jweFyG+dUsshvIG+AT0NAKFStgzFmCoj1PrCQQ5uDUvvsZORAOitVdbMd79K7L0F8D aSRThkCBQGAVLtBSwtz5jk2kPCk41beKl3UlW2Pf4BZ+Wal7K5IQzNa/aXuZ6sG8n3oalO/+Do6i2 m3116nWlvoI0Bf6o2eVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7AnH-003L7b-Kk; Fri, 01 Jul 2022 07:10:23 +0000 Received: from relay11.mail.gandi.net ([217.70.178.231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7An2-003Kz5-G5 for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2022 07:10:09 +0000 Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 1623B100015; Fri, 1 Jul 2022 07:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1656659407; 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=bY9k2hKqsyHlaoLqP64+/s43+QLgOGGKL1kqn0fNDuQ=; b=DJRY+cgIdDUtXuww4VCZkhCH6oCKR+ONgBdOMTZC2iR10TzO8U6yz/Z7zvFcOXE3oK+zFH 28V5ulzwEysidNR/DvUtpwGvdoZG0G+NPyqTlgV19Rk0SB8+fRYuHJZLfMN5zx2Ys2YucO /70/VukO1Oy66aPsbLfxKWHFfnyXO3la2jxs3YaFr2BdrOfsqDCl/vHN09gil0Aa6mY+fM CtXy2ntX1pTzNjCD6vXAWb53AP17Osb6pn+/mSWjZAAhURegSl9z6vzDHvLI/shaaEHjeq af0e4/eoKVjg9T49nB39VuCqkvLc8gRoOPiaIvkqQZzf102YpgfSPL1rFpviZw== 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 , Krzysztof Kozlowski Subject: [PATCH v4 2/3] dt-bindings: usb: atmel: Add Microchip LAN9662 compatible string Date: Fri, 1 Jul 2022 09:09:27 +0200 Message-Id: <20220701070928.459135-3-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220701_001008_720759_47F7AE90 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The USB device controller available in the Microchip LAN9662 SOC is the same IP as the one present in the SAMA5D3 SOC. Add the LAN9662 compatible string and set the SAMA5D3 compatible string as a fallback for the LAN9662. Signed-off-by: Herve Codina Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/usb/atmel-usb.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Documentation/devicetree/bindings/usb/atmel-usb.txt index f512f0290728..12183ef47ee4 100644 --- a/Documentation/devicetree/bindings/usb/atmel-usb.txt +++ b/Documentation/devicetree/bindings/usb/atmel-usb.txt @@ -87,6 +87,9 @@ Required properties: "atmel,at91sam9g45-udc" "atmel,sama5d3-udc" "microchip,sam9x60-udc" + "microchip,lan9662-udc" + For "microchip,lan9662-udc" the fallback "atmel,sama5d3-udc" + is required. - reg: Address and length of the register set for the device - interrupts: Should contain usba interrupt - clocks: Should reference the peripheral and host clocks 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: 12902834 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21D0CC43334 for ; Fri, 1 Jul 2022 07:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Z/bxYWy9XWiXLGjf+Fl2+OW/cMpk+8KiSYZ4gIhSU9w=; b=XZy9Bdym2uxADl z3+IbpvABOpmXi4MWglbDhDisqJ8AnOsJzw5jp5k7zYo1qlsaB2y+t2HeN+Ly80d/9YwKJ/k8dn50 M6w6xgw8GCNBGpgClnscDD4iF0CnlxUNyjJZ3Fc2voGn5OEBTkPZ/pVaAHgDns/8Nr5pEUqEroY+f +mgUV3kktMrXciDb/IdBeqwwmVaPd2A2GuUJj32T5Ql6b7Suat9OSxWNprXWCR39bxKeWppLA/4m9 ApjsdyJpAJrIUoUNRJZnNACv/sqRr4d69VHyUrHqwtNm7r692pAeYvTQxxVzWj/ZwkSvl+agKEsM5 uayEylQCNRb792idrGxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7Ana-003LGI-GN; Fri, 01 Jul 2022 07:10:42 +0000 Received: from relay11.mail.gandi.net ([2001:4b98:dc4:8::231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7An7-003L0s-N9 for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2022 07:10:15 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220701_001014_000937_68B7B08D X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>;