From patchwork Mon Mar 25 10:03:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10868723 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F33C91575 for ; Mon, 25 Mar 2019 10:04:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D815328FB4 for ; Mon, 25 Mar 2019 10:04:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C91BA28FED; Mon, 25 Mar 2019 10:04:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7151C28FB4 for ; Mon, 25 Mar 2019 10:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=vF8wfjxfK3CaR2kgI9Mgya+iOG3U/e3d2chWEeJfz24=; b=V0+SKGtH+bLLrm p6B862vnlbtmFQMWgFGTEx/EgiKT/idO9c2wOm/VEFBn62a2xOrfXLL2FDe07Ubals09dVjQSSTVY Duz1OvZtnhOn/gAKjKsqXHDUpqwdMkw6CWvYphgYPCXUq+w0IyuoAac6GldX7etfaB2nRmzBPmICx 8uLsJaHuPBsdBISnrIPT2KvZf2xNILRUqVDCIaHKJaOCNPbqikzsYtTty31qTOrknmbcoN/ML5wcO SKh/hugwUMF32+i3gTBMkV3lAMUcwjtPrHEFkdZ3XVkgzhDbEf3Q7MDeERUSVrTRr2IbPTFRtdwt4 QdE5FSZJ2167kjYjFA0g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8MSg-0000eX-1n; Mon, 25 Mar 2019 10:04:10 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8MSH-0000Ab-FT for linux-amlogic@lists.infradead.org; Mon, 25 Mar 2019 10:03:48 +0000 Received: by mail-wr1-x443.google.com with SMTP id j9so9341017wrn.6 for ; Mon, 25 Mar 2019 03:03:45 -0700 (PDT) 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=nHgKHPDIn4oZfNwrx5bv3RspG5o23PVCYfzbn1lDJUs=; b=Q7B5q3ATRV1w5atycDojfRWSj9ivifyCBPYS0daY12qNapjkoK43b0eBqNHOXH+YrT fhq/EeatGShg/HYIOGfNihuD4tk3lqCbYzSjlhPBl5WvJpoWBjW5euAFPSFF5Ie/JfXR UTZTLWF8vePvsFRK1JdD2NvaZKsbwFCUq76EQk9VWxVLI9JEOTP4LIEcIsdQMS6tYEO5 LnLSQ2LdmTXBu5/78E02kPukL7b1nVncAOo5t1lvxEGJopsW7HhgjdBzXbR2dHtyNlUh AXp2mIKH6W3m0v4TG7dnjpGhvgOXkQKLbEFwu5sFmXcB3wjAjtJvzY8bOeb27N0Z1VbR OKDA== 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=nHgKHPDIn4oZfNwrx5bv3RspG5o23PVCYfzbn1lDJUs=; b=mfh7N7CGOQqyqRtN9VRk70lIH4qtg2pxibhBpEVJYttmM44exlpxpG/l7Goa9HkUei 98Bq03BfaA7fB/scC2Fa+or1XIiVxkLq/bHXJP9s0XVFec/J6eLv92uvTfLBhktvqOzl 5kcAJ3RyB/yUyQ0+U9jzkJLMj3xrwO//PaulfeJsBLrCYGgacZX5syk5Kf0tCPOZtsPO yE4YIEjhazFIF1qUKqF6nPYE0VtHTeeZ3ZpKkTBrgZrpme9E79h6Sir9/6EIDOdTF+se mDlNhowZ5iL5J7uE3LVOwWGp+gPgiBn7+XTzkBetiV805ANP7FfFxDy+WeKs6C22xEOU 9kOg== X-Gm-Message-State: APjAAAXTBu3XD39AYxNRFHHAFXBamCjZOFWcFcseoId++rBtKVx1JGnM k3J0iVBvsQCxsIBjCdkMmQyWVQ== X-Google-Smtp-Source: APXvYqwZO5I+FBNv4f7hxmGJMhPBljwSh9//kLnLhGX78HWEVWmzOWflknEr0SGlVnObuIL1OMOxmQ== X-Received: by 2002:adf:f1c6:: with SMTP id z6mr14574387wro.232.1553508223264; Mon, 25 Mar 2019 03:03:43 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id g12sm11581215wrw.40.2019.03.25.03.03.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Mar 2019 03:03:42 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH v3 1/3] arm64: dts: meson: g12a: Add SAR ADC node Date: Mon, 25 Mar 2019 11:03:37 +0100 Message-Id: <20190325100339.749-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190325100339.749-1-narmstrong@baylibre.com> References: <20190325100339.749-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190325_030345_644365_6C67FD0B X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 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 X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the SAR ADC controller node. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 4d04742b05c2..4b3be7e60b4d 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -282,6 +283,20 @@ clock-names = "xtal", "pclk", "baud"; status = "disabled"; }; + + saradc: adc@9000 { + compatible = "amlogic,meson-g12a-saradc", + "amlogic,meson-saradc"; + reg = <0x0 0x9000 0x0 0x48>; + #io-channel-cells = <1>; + interrupts = ; + clocks = <&xtal>, + <&clkc_AO CLKID_AO_SAR_ADC>, + <&clkc_AO CLKID_AO_SAR_ADC_CLK>, + <&clkc_AO CLKID_AO_SAR_ADC_SEL>; + clock-names = "clkin", "core", "adc_clk", "adc_sel"; + status = "disabled"; + }; }; gic: interrupt-controller@ffc01000 { From patchwork Mon Mar 25 10:03:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10868725 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 61A081390 for ; Mon, 25 Mar 2019 10:04:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A7CA28FB4 for ; Mon, 25 Mar 2019 10:04:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E56F28FED; Mon, 25 Mar 2019 10:04:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C2B7428FB4 for ; Mon, 25 Mar 2019 10:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=Xm0Dbw3xD6gLy97VjVBFjc/TQNrGpqjlRQ6oerlDu1o=; b=g/terwWWDime81 9zbV6F47pV2D48Q4SfDXVHrSkhbdA+5tKcHZ9EaBXpODMxqbn+pebvEfGm7eKRecD3TjyZt355Ylu amT0mgHWv35FfxfpmeMoYwddcuSb75DhPKQnebSJLseqMXBa/t/rYpiixYnFvt6LW0ha6QHNG2zXT /RQyKe/EcoZzZQzSwwttjDu75kRceLqNi92sMUdM7Sjok9QIglHdgINA03lXopkSE1VecP4fHBDAh CKh5zKcU34doSkmCQtEXT6bMYhYQ7OYf/V7qdvomcDeruLan4fa8WbXG0Mjr1wl5oSiH8y2ziFipX NP0MgRiI1Y5jA/ddGaVg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8MSj-0000iZ-Is; Mon, 25 Mar 2019 10:04:13 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8MSJ-0000B8-Ls for linux-amlogic@lists.infradead.org; Mon, 25 Mar 2019 10:03:55 +0000 Received: by mail-wr1-x442.google.com with SMTP id k17so1387970wrx.10 for ; Mon, 25 Mar 2019 03:03:47 -0700 (PDT) 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=BiYphHszT1boPmgsGMzckEzxrSJiGDBV9O9U53D5dZ0=; b=geI4nahiemLBvlYgY6ecMbNBRWOJ//sJ600WY8df4KI+6Qx3CxptZzTJRYUcl8z3qN YsegQc0vLr62CEwDK+0bWZNFPWJFuHBqbcmNZranYf9lvlRM+ApujvAxYjbI3RX4SBnQ aDsPfNXg/N2qldzMTNXZpLJF2BdtjUHQ6FVBoOnNHTqe4ncMAaOPJ9Vqae9tZAzViS2a K+WQoOF2sKMZTUtGWYVQ9pHHL8YrBrVYW0qBy4wfcktbwb18zkLJHggGnnn2CQytzkDs uNLn/QpgvA4e2Nn4WKQWLddFnvHVOGldpALsznmnrJYzXnzbxqlyqOwucmRA8zfGDHu0 0jTg== 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=BiYphHszT1boPmgsGMzckEzxrSJiGDBV9O9U53D5dZ0=; b=lBlznm0rXqcKJBRq153KO7a1LM1xLcNS8TLPkGwQC+fOcsDnaSsghBE5tiqkjZDSdJ wOdqxmiiA+crAIT8qgNtxlwSFUmbItOuXuI6QCv0rlzCJrq30a0/fL56jKeetHSkZzXl 2b8fab4ht9OKEiyE1r9fwNApaNOvNk6MKWCqWxh4SWRloujvrQwxwRc1Hwj1BYbebFoT 0rRZxp23ioLoTuZhZyalltlF10Q3q+4/GzUsQadzMuYOT9hAPFs4YLyQu0maWokeKgU6 jpee/c+UYagvuGrSR+TcmhlYTgtOdKzeeXp8m//S9PRMyhOUJFnP3+M2LjTWNmLMGLop 5SjA== X-Gm-Message-State: APjAAAVxBgWjWVKLXEYDJCuTxtKQoUG3ZxF+rmNO9dQO9TP6bazZIsNe SvTynijbgTE0VnvUBYR1lbZIxw== X-Google-Smtp-Source: APXvYqy7CSyp6ENjlTRU7AfpXx927Bz4QGMg9seXy80C6ZW+rZthEBOe+nqe+Ue913Cf1TtSNDiHsg== X-Received: by 2002:a5d:6246:: with SMTP id m6mr15820702wrv.184.1553508224451; Mon, 25 Mar 2019 03:03:44 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id g12sm11581215wrw.40.2019.03.25.03.03.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Mar 2019 03:03:43 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH v3 2/3] arm64: dts: meson: g12a: Add G12A USB nodes Date: Mon, 25 Mar 2019 11:03:38 +0100 Message-Id: <20190325100339.749-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190325100339.749-1-narmstrong@baylibre.com> References: <20190325100339.749-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190325_030348_042538_5C8B361C X-CRM114-Status: GOOD ( 11.69 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 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 X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the nodes for the USB Complex found in the Amlogic G12A SoC. It includes the : - 2 USB2 PHYs - 1 USB3 + PCIE Combo PHY - the USB Glue with it's DWC2 and DWC3 sub-nodes Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 75 +++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 4b3be7e60b4d..a9cd91f033f2 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -3,11 +3,13 @@ * Copyright (c) 2018 Amlogic, Inc. All rights reserved. */ +#include #include #include #include #include #include +#include / { compatible = "amlogic,g12a"; @@ -175,6 +177,26 @@ }; }; + usb2_phy0: phy@36000 { + compatible = "amlogic,g12a-usb2-phy"; + reg = <0x0 0x36000 0x0 0x2000>; + clocks = <&xtal>; + clock-names = "xtal"; + resets = <&reset RESET_USB_PHY20>; + reset-names = "phy"; + #phy-cells = <0>; + }; + + usb2_phy1: phy@3a000 { + compatible = "amlogic,g12a-usb2-phy"; + reg = <0x0 0x3a000 0x0 0x2000>; + clocks = <&xtal>; + clock-names = "xtal"; + resets = <&reset RESET_USB_PHY21>; + reset-names = "phy"; + #phy-cells = <0>; + }; + hiu: bus@3c000 { compatible = "simple-bus"; reg = <0x0 0x3c000 0x0 0x1400>; @@ -195,6 +217,18 @@ }; }; }; + + usb3_pcie_phy: phy@46000 { + compatible = "amlogic,g12a-usb3-pcie-phy"; + reg = <0x0 0x46000 0x0 0x2000>; + clocks = <&clkc CLKID_PCIE_PLL>; + clock-names = "ref_clk"; + resets = <&reset RESET_PCIE_PHY>; + reset-names = "phy"; + assigned-clocks = <&clkc CLKID_PCIE_PLL>; + assigned-clock-rates = <100000000>; + #phy-cells = <1>; + }; }; aobus: bus@ff800000 { @@ -358,6 +392,47 @@ status = "disabled"; }; }; + + usb: usb@ffe09000 { + status = "disabled"; + compatible = "amlogic,meson-g12a-usb-ctrl"; + reg = <0x0 0xffe09000 0x0 0xa0>; + interrupts = ; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&clkc CLKID_USB>; + resets = <&reset RESET_USB>; + + dr_mode = "otg"; + + phys = <&usb2_phy0>, <&usb2_phy1>, + <&usb3_pcie_phy PHY_TYPE_USB3>; + phy-names = "usb2-phy0", "usb2-phy1", "usb3-phy0"; + + dwc2: usb@ff400000 { + compatible = "amlogic,meson-g12a-usb", "snps,dwc2"; + reg = <0x0 0xff400000 0x0 0x40000>; + interrupts = ; + clocks = <&clkc CLKID_USB1_DDR_BRIDGE>; + clock-names = "ddr"; + 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"; + snps,dis_u2_susphy_quirk; + snps,quirk-frame-length-adjustment; + }; + }; }; timer { From patchwork Mon Mar 25 10:03:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10868731 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0E5EF1708 for ; Mon, 25 Mar 2019 10:04:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6C1D28FB4 for ; Mon, 25 Mar 2019 10:04:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9FC028FDC; Mon, 25 Mar 2019 10:04:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 131812903A for ; Mon, 25 Mar 2019 10:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=H7tClXBCElGXgHK3kuXFxY7aDO2DXsAWQQ2dopt9GqM=; b=fgr8tbe06E7OAA WeHLk/HESDwvsvzQ7uzk7T6YfqpOs8dxABuv68il07OElBYn2VcqDmh6nwJsfLUDkGIllNb3+iP2M /OAwDK2VUHe6STDrYWZWFjH0rwmcQDyFK0SVX4r8hFZkRVW9vchuc2nzEzVbUm9mWFCnStrJYHcGt 8xNHXC5+cNFEdz5KAnD+/d9OR/RGoDa4pNk3pXomuaW1qMjoD8t7L2+tLhL6wIHWOw/ELBalz4ohI Q21SA0cImAr9Pw77TLo4KKi45Mo1pjZZU7AZfoBugURhJUkewCyLjYQWN2BP55V3o+sCna1F0LJSJ zsw8kyUFPF10h6SSzSFA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8MT5-00019i-AO; Mon, 25 Mar 2019 10:04:35 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8MSJ-0000Bc-74 for linux-amlogic@lists.infradead.org; Mon, 25 Mar 2019 10:03:56 +0000 Received: by mail-wr1-x442.google.com with SMTP id w10so9356554wrm.4 for ; Mon, 25 Mar 2019 03:03:47 -0700 (PDT) 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=Rj9dXO0PSj4zIwHhB+C8+xFo6dIfbTEEVH7yM8XGRx0=; b=Fxrp6R8h+NKPanlYEVS38S/Unml0hg3ZHiP5CaA1fDrXqH3pXJaw/FBJ6jgu1P91pG 1WEjOkcERfhTNiR0A2r8nkQpEc02BP8AaDn673PxQyjzXNNaCOhhc7nRMcfeC4yC00RI eUBd69ABkGT6DRagLlq2jDzBkqN9gFsaUVhBKMsKq+ymKMdyQodoctMu27o76SXZysLU ur4Off/qD4xu+D564EI9xbMLMWUmZNf9c3XqDyjtjhOZQpC4THpR+oeH02jXavHnm0N1 tyZgL/R9ShGdS9BD5CgL2wTttBUHA/Pozlf7MUGYa6oURrqcnXSp++pPaHN+h3/bz1X5 fj8w== 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=Rj9dXO0PSj4zIwHhB+C8+xFo6dIfbTEEVH7yM8XGRx0=; b=TWY5PRILzk6rKjB+38m11DjTFCWJu0Nw0GM6eH6e/8WBP7bjYmbd/EXfL6ovX8TxfS C7u7s8APdaqjO001x5CLzoIaFIoiUvHl1cMc2BfpLcMqxmbdVgpL1ZP+WkIkh6WTni1G v5ZFXCCL68pp3RP7JMqYEbqosB7TvVLz1LUnE5nzhB5z48dnUkLwy3ZHxJlxIVtPF2Y4 RKvCqy4DErQXTkHMDteuJJH/+ZciVKzi0UoYNIQArogjfxLyJQUULFU75ETYf9ja6LNO +rwrRNeqyn6DrQy3lSFXgeiF7tXLOeqQLFDR3ACy9Tb/EczI7KG7ZslmrzINlgsXPPne I7Ig== X-Gm-Message-State: APjAAAWjlkM/yRWy8MZKPgHpY9hHz9XZvxcIGTOFb/9z4Sz4WJJyyI6a iP+UiVoIXHB6242rS9D6QzBwew== X-Google-Smtp-Source: APXvYqy04QdQFMmsanhWv+DXKuDLHOz2aBSfy9CCzE/uLnHyaXZeC4TZPvMUcevf9kSZusb/dSr8GQ== X-Received: by 2002:adf:eb89:: with SMTP id t9mr14473811wrn.21.1553508225262; Mon, 25 Mar 2019 03:03:45 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id g12sm11581215wrw.40.2019.03.25.03.03.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Mar 2019 03:03:44 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH v3 3/3] arm64: dts: meson: g12a: Add mali-g31 gpu node Date: Mon, 25 Mar 2019 11:03:39 +0100 Message-Id: <20190325100339.749-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190325100339.749-1-narmstrong@baylibre.com> References: <20190325100339.749-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190325_030348_083256_4B26CD25 X-CRM114-Status: GOOD ( 10.62 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 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 X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the ARM Mali G31 GPU node. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index a9cd91f033f2..c762e2309b2b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -433,6 +433,33 @@ snps,quirk-frame-length-adjustment; }; }; + + mali: gpu@ffe40000 { + compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost"; + reg = <0x0 0xffe40000 0x0 0x40000>; + interrupt-parent = <&gic>; + interrupts = , + , + ; + interrupt-names = "gpu", "mmu", "job"; + clocks = <&clkc CLKID_MALI>; + resets = <&reset RESET_DVALIN_CAPB3>, <&reset RESET_DVALIN>; + + /* + * Mali clocking is provided by two identical clock paths + * MALI_0 and MALI_1 muxed to a single clock by a glitch + * free mux to safely change frequency while running. + */ + assigned-clocks = <&clkc CLKID_MALI_0_SEL>, + <&clkc CLKID_MALI_0>, + <&clkc CLKID_MALI>; /* Glitch free mux */ + assigned-clock-parents = <&clkc CLKID_FCLK_DIV2P5>, + <0>, /* Do Nothing */ + <&clkc CLKID_MALI_0>; + assigned-clock-rates = <0>, /* Do Nothing */ + <800000000>, + <0>; /* Do Nothing */ + }; }; timer {