From patchwork Fri Nov 20 15:32:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11921131 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 34892174A for ; Fri, 20 Nov 2020 15:33:00 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9781241A6 for ; Fri, 20 Nov 2020 15:32:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1pQMkQ8J"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="eAiZZPHa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9781241A6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=89INASGpFkkMo5tzws3HiAC5BYFbHcC0+pxzz07uaGI=; b=1pQMkQ8JMR36lUyh65PU6ZUBi yTyXOuTofBvrWiGozwRNh7zGV7e3MNpGN7bOQv/lu5WfAkAfj2Vb8zB1qdDjKRRYYfO2WFMNfhIaA EyF1kfbE7pR63vhPpVGLp5BCXBGoNpjd2VT3V/PVwn1LQbFrt1fVOipez2Nu+jxvwOdpsaQKBe+Fo RGX8lkUJwxYVSrfWzAdYqRFZuXd/OBUaTpHfdQas2PNvCAzGvijDrdvqv0SAdXp279JqJAmAOO9PG 8ArebBgp9jYNP4AakEFrf1561MOufRUoe7Y0+yYJjbOEdQ0MKNhCa7Dt/y8QAGwj5+1847/JbZhT8 8tODfzJYA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8Oy-0007iI-Nx; Fri, 20 Nov 2020 15:32:44 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8Op-0007eG-OF for linux-amlogic@lists.infradead.org; Fri, 20 Nov 2020 15:32:37 +0000 Received: by mail-wr1-x444.google.com with SMTP id r17so10494891wrw.1 for ; Fri, 20 Nov 2020 07:32:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qECUmJ7i37OI126KT2ZCqYFNHb2XPZlIEHKmEDXRy0k=; b=eAiZZPHayWxA496THQg2NO4o3xrHZFbzfQv0s0bsYfyepKbenM+hPIcFj7YUU7udiF wztzGdNlShDPVvAHia9mKF3ec9ZWCfyf2Cdyq3jCgnOws0ln5bpjxBVksTWWyXwzR0Kj xEwQSFz3GzaS4AWdUO6z5zIotRqdGJnvO7cF8rWUffE6XYxuc0GLTY+ACllpCweNSPKu CJAKWcf1MtnuvukpwXPuColV2M0V4pjvSoqEKN3OUpqgRIz0w4jLmunLrZSCQIVKcPwX 2vH4i6IDY5Vp31fefRrpmO2UlKOFgucp1OtbhyqrA33BOweMAp7uCKIIbdTHfZc+MveY ZudQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qECUmJ7i37OI126KT2ZCqYFNHb2XPZlIEHKmEDXRy0k=; b=PSOsvym+cCQFmmBKAwzRVIYvMy7DyN0pmYunLiDIMoOKMfyg5ebCildU2LW7tMC2IR 7Yg2LgZLKHFYpWwffMK+bxUwbmihxxhz0bOe0LHbxqjWzy/uLYEO8q0MNbSjBESZUz3Y CxuxnJECQa8uRDRgQhxZXM+dDC13R9rwuqq+h45PuT72nqJwhK84+gT9sDlYmTIvbTIo PKRUUBqwbHOOOvlVz6YWgE6B5EaV4JMYNUXi50NFCZceqN8I9Xj3zQu591Yn3H6I/heX pESwCxFHVvuHnBYNIXg7hoyJNMnAH0Z7oRi8TJWxUqfhZjf3vGptllJvMmOCV1h2Igqz neJA== X-Gm-Message-State: AOAM532vXgmH6B8RJhhUrP9/tMndNkDQWEPvL/kzhpTAJ7XuJONHL9BW Fg5gLLnTTpapjJ0IAMNlSoAfSQ== X-Google-Smtp-Source: ABdhPJyhYc/oVgaBEiYn8vj3ptWCf6cMyzmrnejPst3ogZ35ww5mclSng4q5wzZIM0qZL2cPPNB/Yw== X-Received: by 2002:a05:6000:89:: with SMTP id m9mr16796731wrx.412.1605886354671; Fri, 20 Nov 2020 07:32:34 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:2ec0:82b0:419f:dca4:d17a:66a7]) by smtp.gmail.com with ESMTPSA id i16sm5398180wru.92.2020.11.20.07.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 07:32:33 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 1/4] arm64: dts: meson-axg: add USB nodes Date: Fri, 20 Nov 2020 16:32:26 +0100 Message-Id: <20201120153229.3920123-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120153229.3920123-1-narmstrong@baylibre.com> References: <20201120153229.3920123-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_103235_939666_0B735A9F X-CRM114-Status: GOOD ( 11.76 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org This adds the USB Glue node, with the USB2 & USB3 controllers along the single USB2 PHY node. Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index d811708f8f67..0c4f0cf076ab 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -172,6 +172,46 @@ soc { #size-cells = <2>; ranges; + usb: usb@ffe09080 { + compatible = "amlogic,meson-axg-usb-ctrl"; + reg = <0x0 0xffe09080 0x0 0x20>; + interrupts = ; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1_DDR_BRIDGE>; + clock-names = "usb_ctrl", "ddr"; + resets = <&reset RESET_USB_OTG>; + + dr_mode = "otg"; + + phys = <&usb2_phy1>; + phy-names = "usb2-phy1"; + + dwc2: usb@ff400000 { + compatible = "amlogic,meson-g12a-usb", "snps,dwc2"; + reg = <0x0 0xff400000 0x0 0x40000>; + interrupts = ; + clocks = <&clkc CLKID_USB1>; + clock-names = "otg"; + phys = <&usb2_phy1>; + dr_mode = "peripheral"; + g-rx-fifo-size = <192>; + g-np-tx-fifo-size = <128>; + g-tx-fifo-size = <128 128 16 16 16>; + }; + + dwc3: usb@ff500000 { + compatible = "snps,dwc3"; + reg = <0x0 0xff500000 0x0 0x100000>; + interrupts = ; + dr_mode = "host"; + maximum-speed = "high-speed"; + snps,dis_u2_susphy_quirk; + }; + }; + ethmac: ethernet@ff3f0000 { compatible = "amlogic,meson-axg-dwmac", "snps,dwmac-3.70a", @@ -1795,6 +1835,16 @@ sd_emmc_c: mmc@7000 { clock-names = "core", "clkin0", "clkin1"; resets = <&reset RESET_SD_EMMC_C>; }; + + usb2_phy1: phy@9020 { + compatible = "amlogic,meson-gxl-usb2-phy"; + #phy-cells = <0>; + reg = <0x0 0x9020 0x0 0x20>; + clocks = <&clkc CLKID_USB>; + clock-names = "phy"; + resets = <&reset RESET_USB_OTG>; + reset-names = "phy"; + }; }; sram: sram@fffc0000 { From patchwork Fri Nov 20 15:32:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11921133 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C36921398 for ; Fri, 20 Nov 2020 15:33:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D95F24073 for ; Fri, 20 Nov 2020 15:33:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DkeDWz4n"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="h8exnCpZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D95F24073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Kueor1eMYtBiTY9f88mjK31Q5BEJFOmUbfXKpkfaaFg=; b=DkeDWz4n8uHtE0muimFNfxoWL 3bPl+UPQjhC7LYc81DOeNd8tkC7dA3TFuwmLJzWMZUJz90NthgCq27he6Obj1TBi8hSiXkuyHfTA8 0WGwcmqGL08I0+Ijw7NLZMCE/E7/TJCWTjXQb4TDDk9oMjj9IOLshtF4/eGGbUaHGkntND7AL9+r+ DeUZyB2aEqYcrQ/Ta85isbWJQW/FI54z9LKb7uFcw630ab8SFpXVuXvJJJCpYYnyt6S4Vk8ZzBSbY UnDzeAGkuFaP3t1Tg1c5bAwBdKT4e0LxRnatl931EfX3/bucvsvV6cbSBLPAKWV1N3znBpCnTFvg7 rPBrpU3Pw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8PB-0007lt-Fg; Fri, 20 Nov 2020 15:32:57 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8Or-0007fA-Vr for linux-amlogic@lists.infradead.org; Fri, 20 Nov 2020 15:32:41 +0000 Received: by mail-wr1-x443.google.com with SMTP id 23so10420804wrc.8 for ; Fri, 20 Nov 2020 07:32:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2URB6hakc3nWkld7N5FdP4Ld/qwc/CD2JkWsHdCYAQs=; b=h8exnCpZKHXR89TT/5X8scjQZIQp3im2/S/Q0Ksp7sXE4P0d5ZfiUHbxdI60xBusxD d75hym+1Gog6SD5dRzL1efyh6z8fHNoxXCUZ08VMEpgUPJucRq0xGmOihHoj8EJVIGvg RhogM8G/L91ltrIuCFL5GAGHggEcbLwJVd6MUco+1ziBct4rQjm8MKClLQoD8fhjpEoM ICWBcKX/Ocrhfgyty+xHlq5/oG4DQc4/5c83+tc+THRl6v8a1BG5J2nHc8hJyZeQlaKS JjqSnIdq7Z9YnLAxDtOI5GMVXuUy2aHFdcdW1c6A3idDuVosvHNws/97BRGUHE3YGfyQ XfMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2URB6hakc3nWkld7N5FdP4Ld/qwc/CD2JkWsHdCYAQs=; b=VcLK8TbYkB60jSM2spYJ+z0Tteu3zYFs/FiNNmKi6Uj+0Li0SKE9YzG39MkqySv4Du DvjjqwK4XTcMDcNeLj4BVb3OaMn2bMQxNc/fG4yT6mkfhQ7f4PzzWgAFLo3GOVjdCCym Nr1ONC6e0KK05gWKEkbDxmPHT8D3bNT8OxTByNDNVK2ITX1oRFGWBz6X3RHZ6BSbLIfn N7KA6M8ziLi982mXpO8jRWB19Rx7QjVvOGECZB1PUOuhdGMUfwnuo8Nz/6u9maj33yvC 0/5C8Qc3XSTySQlekgYkdu+YdfmdkHvVOPpZXf0ZiceETlcwOOizSTTIrAdPbhDQAjCm NyaA== X-Gm-Message-State: AOAM530i16giYfZEAulPGhrr0mLB5t19hAY0qmzkz44OPHJqa3E5BJbL 5OmP+0wTL7KlVhM5BIpEQVx5NA== X-Google-Smtp-Source: ABdhPJwfTf3h73Vesxg5zZZDESi0OcUkDcB0L1ZerQOBfi/92rBfQHISXh4c/iYb8xFzstjxUrWu0w== X-Received: by 2002:a5d:5702:: with SMTP id a2mr17909454wrv.371.1605886356665; Fri, 20 Nov 2020 07:32:36 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:2ec0:82b0:419f:dca4:d17a:66a7]) by smtp.gmail.com with ESMTPSA id i16sm5398180wru.92.2020.11.20.07.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 07:32:35 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 2/4] arm64: dts: meson-axg-s400: enable USB OTG Date: Fri, 20 Nov 2020 16:32:27 +0100 Message-Id: <20201120153229.3920123-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120153229.3920123-1-narmstrong@baylibre.com> References: <20201120153229.3920123-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_103238_078753_92E12282 X-CRM114-Status: GOOD ( 11.21 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:443 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org This enables USB OTG on the S400 board. Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index cb1360ae1211..7740f97c240f 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -584,3 +584,9 @@ &uart_AO { pinctrl-0 = <&uart_ao_a_pins>; pinctrl-names = "default"; }; + +&usb { + status = "okay"; + dr_mode = "otg"; + vbus-supply = <&usb_pwr>; +}; From patchwork Fri Nov 20 15:32:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11921137 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A0D2697 for ; Fri, 20 Nov 2020 15:33:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB7C424073 for ; Fri, 20 Nov 2020 15:33:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GHfsiktp"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="HXBYOzbh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB7C424073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cS/KFpfhkgCV+dlo0Vn2+bCSF1C/kE2PvkZ02tq/m2U=; b=GHfsiktp0wYcAydGQSQWdLP16 t1+6a3wwHpmh/2XX8yMcsQ5z7q89k3XFATVdh+aROj5c4ov5BL8K4J+1w0dNhyszuCJatTuNcKT1h VIG5qhQXqlO4ALreP7fjiqypevjnjQ4IQy9klLSZltC1dDxTgtlKSVWTDM3yqbXDeNiHQ+N6jjsh+ HAX6UxlWWfPnjBSWwVkscf8ukx5/iKeLPp4Fg3ugcFd3Oj66Ptn3SC7en/GxRmZX0/ehF634avVkH 7glR40YkphbV8DLxwJm/s6R82N5uksqrhnsxqCI+rnTzu80AJJelzOkgst6LkY4qxmmzogvJhuGUV w0mlZZodA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8PU-0007tA-So; Fri, 20 Nov 2020 15:33:16 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8Ot-0007gA-Vy for linux-amlogic@lists.infradead.org; Fri, 20 Nov 2020 15:32:45 +0000 Received: by mail-wr1-x444.google.com with SMTP id o15so10450321wru.6 for ; Fri, 20 Nov 2020 07:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sy+npf4qPF0hQlWQGZkG29ESoHVhDUO9bSuS4H9zF4M=; b=HXBYOzbhhXmSyjWEDFN61kOL4DFh60eZtEvpShrq/4pUHXnoVh0sBP7EM2X4RVtdvc aMNY7gKfuBz84ig/MTRHz1D7IWrH3f8aUqMS1DQIdODMpztoaNSA/KUvqJu91SX7KZmK VgHmgzGCb0o4TZzhbHeQxPd76RWm+4L26FlJQqZ25E54//EpDOYshiVpI57VU8Lr46zy sWoRpqThp8YrbCAvl8RUI2TPf+dvC8irVUtdG3w4Bx9RgeTtxdMZxNfHYU0s+o2lb8eG 6sJbCWTyIKDaAhW5rUzxJ2/f3dB7MOw0VjMETcE1QOXhSEUhgcM6Tesm+Lrrmk/uPnY/ 2ayA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sy+npf4qPF0hQlWQGZkG29ESoHVhDUO9bSuS4H9zF4M=; b=EeknIupqnQSw5NJxBImCEHzr1+0qoPwYyOLMgPC6lAFApb4d6a2OdMaJM6qrpgdehK w/33mHoH74qCDWBw4yIeG3QtRnfsNdeZUF+9C7wXeJZwLoZS44xqx1X3kqXDGRiPpYLE H+39NGSg6Xx3fmjgKG3P4+pmCtrZsc3BebrOjBO/Jvarl3bx9PJgQHG1dht2pep4p9RY 4f0jbKD3nZRwutyPA4/yeDdQ7y3+vXymS4SNfEiE+mGTCLPdUbtEBmemBkNiuJwrvq7f skp7uaWJuwEFIzm4dNo7CQZIHioMeeGpu23SIaybrvMVzJ1QAyzYUqJhjC/WAwSEoh2y lmoA== X-Gm-Message-State: AOAM531FubqFySI9Ir5VTATVaCR8EkZQV0pV9xE3mQnACyGCZiD7ZB5N 0Ul2S5lemHwRtVHBMm0/EWBviA== X-Google-Smtp-Source: ABdhPJyz6mra4I7tNvn0ImxS7+5dhfVI4AZGFHDt2MjVCkmcYSSSvvgsYSbh60Ckrcus6kS0DPgiAg== X-Received: by 2002:a5d:6452:: with SMTP id d18mr16575614wrw.200.1605886358656; Fri, 20 Nov 2020 07:32:38 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:2ec0:82b0:419f:dca4:d17a:66a7]) by smtp.gmail.com with ESMTPSA id i16sm5398180wru.92.2020.11.20.07.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 07:32:37 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 3/4] arm64: dts: meson-axg: add PCIe nodes Date: Fri, 20 Nov 2020 16:32:28 +0100 Message-Id: <20201120153229.3920123-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120153229.3920123-1-narmstrong@baylibre.com> References: <20201120153229.3920123-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_103240_203566_BAA6D9C1 X-CRM114-Status: GOOD ( 12.42 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org This adds the nodes for the : - AXG PCIe PHY, using the shared analog PCIe/MIPI DSI PHY - 2x AXG PCIe controllers Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 0c4f0cf076ab..b5a06210c49a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -172,6 +172,58 @@ soc { #size-cells = <2>; ranges; + pcieA: pcie@f9800000 { + compatible = "amlogic,axg-pcie", "snps,dw-pcie"; + reg = <0x0 0xf9800000 0x0 0x400000>, + <0x0 0xff646000 0x0 0x2000>, + <0x0 0xf9f00000 0x0 0x100000>; + reg-names = "elbi", "cfg", "config"; + interrupts = ; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 179 IRQ_TYPE_EDGE_RISING>; + bus-range = <0x0 0xff>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x82000000 0 0xf9c00000 0x0 0xf9c00000 0 0x00300000>; + + clocks = <&clkc CLKID_USB>, <&clkc CLKID_PCIE_A>, <&clkc CLKID_PCIE_CML_EN0>; + clock-names = "general", "pclk", "port"; + resets = <&reset RESET_PCIE_A>, <&reset RESET_PCIE_APB>; + reset-names = "port", "apb"; + num-lanes = <1>; + phys = <&pcie_phy>; + phy-names = "pcie"; + status = "disabled"; + }; + + pcieB: pcie@fa000000 { + compatible = "amlogic,axg-pcie", "snps,dw-pcie"; + reg = <0x0 0xfa000000 0x0 0x400000>, + <0x0 0xff648000 0x0 0x2000>, + <0x0 0xfa400000 0x0 0x100000>; + reg-names = "elbi", "cfg", "config"; + interrupts = ; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 169 IRQ_TYPE_EDGE_RISING>; + bus-range = <0x0 0xff>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x82000000 0 0xfa500000 0x0 0xfa500000 0 0x00300000>; + + clocks = <&clkc CLKID_USB>, <&clkc CLKID_PCIE_B>, <&clkc CLKID_PCIE_CML_EN1>; + clock-names = "general", "pclk", "port"; + resets = <&reset RESET_PCIE_B>, <&reset RESET_PCIE_APB>; + reset-names = "port", "apb"; + num-lanes = <1>; + phys = <&pcie_phy>; + phy-names = "pcie"; + status = "disabled"; + }; + usb: usb@ffe09080 { compatible = "amlogic,meson-axg-usb-ctrl"; reg = <0x0 0xffe09080 0x0 0x20>; @@ -232,6 +284,15 @@ ethmac: ethernet@ff3f0000 { status = "disabled"; }; + pcie_phy: phy@ff644000 { + compatible = "amlogic,axg-pcie-phy"; + reg = <0x0 0xff644000 0x0 0x1c>; + resets = <&reset RESET_PCIE_PHY>; + phys = <&mipi_pcie_analog_dphy>; + phy-names = "analog"; + #phy-cells = <0>; + }; + pdm: audio-controller@ff632000 { compatible = "amlogic,axg-pdm"; reg = <0x0 0xff632000 0x0 0x34>; From patchwork Fri Nov 20 15:32:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11921135 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3B17697 for ; Fri, 20 Nov 2020 15:33:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F8D6238E6 for ; Fri, 20 Nov 2020 15:33:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q7fbwNwm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="QjmC/vYN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F8D6238E6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VdESFw4c09Zp2bgdAPe/MduQxFPXF0rEsq23Dc9pRXo=; b=Q7fbwNwm6pf1mb9ZmaznVs0BT wqJToxpUiyc7LpcEGrWRKpaP8uspaJ9FzMRLzwFxb4mpouWjBcduYlCzwew17pdODrswOWEnmlNL4 +H07FMNHBWSLQj1udkpp2Up9WXi0fWQqRJAeuj5oGCg4EI2P+fUpu5cQG2DEFNEv28l6JMx3Q9h0x 1ekfRR5jBf6jNtCabQP9KZIPNu0wIGe3ZriiYT0nUoyV9BSQU/9w98EtzdeHaGx+7SpdtpeuMmMYp fhaNLTNe9/mY6rUXm/sbcI+Fs7UdE0mz/a5BsnMpgCZjlDpbYNRgOFWPx7WNUGgLJkIumVg0uE8f2 bh6sIgsnQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8PW-0007u8-BM; Fri, 20 Nov 2020 15:33:18 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kg8Ow-0007hE-Bq for linux-amlogic@lists.infradead.org; Fri, 20 Nov 2020 15:32:47 +0000 Received: by mail-wr1-x436.google.com with SMTP id u12so10500424wrt.0 for ; Fri, 20 Nov 2020 07:32:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WWLpASMBxVE+IPMT5Mp6WJ1oEGYYgS3ffEicpvS60qU=; b=QjmC/vYNDPg97/NVYbQCCrN7sYdOdulM4zrGr3bvsj+fbGazH/ZLGUdgcFoaNPY0Vi d2/Y+QFt3d81B4v/cPkFSDD1W4T5kNxoa8CLHgHUoEmg6yqKHyQ7NDTGZhzuPAwNWxIa Y5FeMVifvZVhHvJOabAw4d9IgwwfU2cqe5xJBTENkRMSUj25hdoe+BO1fXXaeRHTCkRg aVDA2s5MwCbvFnIk2yz5m6vURc4oQ4K7cC0bZhggJuw9Yz/g1DPiQX6LNbWYCAe65+NS ocKVWrMgSsP4uHPgAS7tX3vLpDu9/Ubr2LJIzKPRkc9uynwwCgJbVK/kBP1+PmDr1C3Q oj7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WWLpASMBxVE+IPMT5Mp6WJ1oEGYYgS3ffEicpvS60qU=; b=LSBqmxFyDPn26ekVWNenYrgSPVm5AV3cwR15cSeIQTBuShUAkd5r6bpApuz1zVcDSy 68MdOKF24lqJ4LVB2tLz4eyMoE/9pSjUVDKj3rc1cOhrG+KGlNAvpRNASLI4oehJgFON aR/qlU/3DtFUeL9ws81cFJN40z6lA4+J1/+ISY+Ngjsc0AB3ktiF85Ry7CZXo1QTP4X5 n1QhUDq5XzvPjc3+CO6g+h1ohqgtsjOSsknDcOZ0mHW80FPppgjJbkYVyvcVSZYHd/6i zFvnstSdVhjZDI3Zmy+CA3Eb/UXYeA3JAd0mVn7gfGtWViOPiy71pn2CkvfSBixcvrOf C89Q== X-Gm-Message-State: AOAM533VdRGu0Kqr2sT3pmfU7/KnDw1tM+cqJxneoAAi50Wjjb82JHvO 0CY0QiAqy6y7MSQLTI+bYRVYZbm4tpNRq//b X-Google-Smtp-Source: ABdhPJwpfwqS6yqXt9ilELkqNOY6AP9nT2FadVetjhTu1xFeukbk2Kt3NtiX3Lv87W5ZuPBwVcRsQg== X-Received: by 2002:adf:a551:: with SMTP id j17mr18250041wrb.217.1605886360646; Fri, 20 Nov 2020 07:32:40 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:2ec0:82b0:419f:dca4:d17a:66a7]) by smtp.gmail.com with ESMTPSA id i16sm5398180wru.92.2020.11.20.07.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 07:32:39 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 4/4] arm64: dts: meson-axg-s400: enable PCIe M.2 Key E slots Date: Fri, 20 Nov 2020 16:32:29 +0100 Message-Id: <20201120153229.3920123-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120153229.3920123-1-narmstrong@baylibre.com> References: <20201120153229.3920123-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201120_103242_456666_3C904E25 X-CRM114-Status: GOOD ( 11.06 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:436 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index 7740f97c240f..359589d1dfa9 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -441,6 +441,16 @@ &pdm { status = "okay"; }; +&pcieA { + reset-gpios = <&gpio GPIOX_19 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + +&pcieB { + reset-gpios = <&gpio GPIOZ_10 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; + status = "okay"; +}; + &pwm_ab { status = "okay"; pinctrl-0 = <&pwm_a_x20_pins>;