From patchwork Thu Mar 7 15:13:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10843099 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 726C8922 for ; Thu, 7 Mar 2019 15:14:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DFDC28B26 for ; Thu, 7 Mar 2019 15:14:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5245A291F9; Thu, 7 Mar 2019 15:14:09 +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 3AA6E28D59 for ; Thu, 7 Mar 2019 15:14:08 +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=x5lY3lvk+dGR9m2HNFHNQUMuTXsd0XOrmW6nQOL6pwo=; b=iTTE4pJZEJfrix PLSBFw5hG9+a9yzX0VxYqmV19DTrw21gqJXUHFp0Sv+mFREnBUMkbFnobQdx8yGLUI1Mq/9s8vNg0 KZVSFAEfOHpnlz6kpg5WA0AcxQYJfTDcoF+hEZUCNJy/G+KCuLCYdsk4El0/IX0U0GObuziZcH6MU lWEhYsDjnx6QSVgmtb34daiEk8dJtx+diF5BkDTlGApODlbmLouAwalJpNHBL/0SxQU/97oJClgre Mxy7l70E2AsyL1ruZzX5GYh7vvFYDNVqwkmt29aHo8uSxgcIyZu1NurPy9IogmKO/yYYkNsJnZbyA 3yHHNy/gnJrNGwt+wu+g==; 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 1h1uij-0003nY-Jn; Thu, 07 Mar 2019 15:14:05 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiQ-0003Pr-DK for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:13:49 +0000 Received: by mail-wr1-x444.google.com with SMTP id y6so2706703wrn.7 for ; Thu, 07 Mar 2019 07:13:46 -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=o5XEdwpDX11r9A87w3stM5IV0M/gayIT+SRuFG7e6Us=; b=WrfwCJ8BCOUDT7aZTmwMIPbmA8q1v4b54YOtZaezz78B504KuEY9DykUQddhdB5SQa /vWT2RT+GeLV/Hw2ugUzZw7aTWISgL2FbGcAVfsH1yVP6vztT3n60SQyX+LVfCJyTT/J jVRLfh8hu/MbFSAiLThJB0uE6a9Db+cPcbQR8v/k6Pl/5h1AyrUen/9y9NkLzNqdtLDO prjoBGxsL1v1QKRA5U+aVA0l/sAqklL89xYk06NKk16oL4CuQ8x6e8eowvp2VrAKp9Lo h2qnOaQO0op1p4tDE1Cyq/l5w77JW2eOsMxGJ2fXZYKsNncETHFMXDDbYqHQViqOBju2 g+eQ== 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=o5XEdwpDX11r9A87w3stM5IV0M/gayIT+SRuFG7e6Us=; b=tGYvAgwZTL5gyhQ9qEWxanUkW1rWzkv9tNP2z/TzQf95q2ikg0ptecSAjuGBF/98Qq AGwEYLffLhQuIMSs1bDerz4pXxJKQLi9uHEWUdFXf8L+9NkIbtF6owChtxJUR8fYf0aZ 3Yz527Iu4B6SQagBxFTP0de2qbbLCxXNbMxLsE3vlILNWrSlZEQkGMUtALFU8csn9axm 0fveDlc1/VelqlaRJwdHNtSEi21sGKtnEaHLD5EQ6GAilmiJyp0SDzv3HkQzQcRSNoHd p4mEVCz59XScYTMH5AvhXSEvI6cdrb4UhHmksZFXYjVCYDRkr0mvGY7iNKVS9FsrCbqZ 8QJA== X-Gm-Message-State: APjAAAWn9eZg2sKwgSQIxmnbh8zrpkT2FPPcADuPQINXzfcyrzlF/4PB 4qXWJfHcCEr6ghu7ryPIR+tVvw== X-Google-Smtp-Source: APXvYqy277dgVFlzsKDF/aVIaUHzXa37oZcGXrXImL0Oo6jVAMWbpKSACNU2iWMFTQLk9hQuiYWuYA== X-Received: by 2002:adf:e3c9:: with SMTP id k9mr7018064wrm.291.1551971624762; Thu, 07 Mar 2019 07:13:44 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:44 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 1/9] arm64: dts: meson: g12a: Add AO Clock + Reset Controller support Date: Thu, 7 Mar 2019 16:13:33 +0100 Message-Id: <20190307151342.7381-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071346_444419_C9950BBC X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-arm-kernel@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, Jerome Brunet , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add nodes and properties for the AO Clocks and Resets. Signed-off-by: Neil Armstrong Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 191d31db9853..0eb5220da82c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -122,6 +122,23 @@ #size-cells = <2>; ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>; + rti: sys-ctrl@0 { + compatible = "amlogic,meson-gx-ao-sysctrl", + "simple-mfd", "syscon"; + reg = <0x0 0x0 0x0 0x1000>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0x0 0x0 0x1000>; + + clkc_AO: clock-controller { + compatible = "amlogic,meson-g12a-aoclkc"; + #clock-cells = <1>; + #reset-cells = <1>; + clocks = <&xtal>, <&clkc CLKID_CLK81>; + clock-names = "xtal", "mpeg-clk"; + }; + }; + uart_AO: serial@3000 { compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; From patchwork Thu Mar 7 15:13:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10843101 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 C984A922 for ; Thu, 7 Mar 2019 15:14:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B420C28B26 for ; Thu, 7 Mar 2019 15:14:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A838528E91; Thu, 7 Mar 2019 15:14:22 +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 546DD28B26 for ; Thu, 7 Mar 2019 15:14:22 +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=1YtLvNlgu4+0lG6RznOiv36Wz16cIA6htfN2+lSS/SA=; b=kSu0CBybcwFdoN SR3s95fgq7/3beL6NZi16+C6Kt9Cd8/x+Swg8wYvhkDIsatqmq0mTsaaY7bvIaEA/QqVdtzmU1VJ6 x/diO5UdARyCnmVN/S0k8B45xWtWXzlwc1NkVpOJw3AOUkuh2lp8G28vXt+fu+UVfZEOwEmAeUD/l +pxAMs1NJ0f1LgoI9y0BYoRfck88rg8AMwUSLl5OGVVuKxFUO2Wnsf0xqtPoOr0gGTP7lFpkEpJYG KqCNi7COLNAv6nGjPp+9OfPtw1DMCTji9b2PMmnkqctPkZ8Lam89ybP4DW0phU1j1jgJsaYYKN/+V tSun3H8HBzNLa1ZRpxRg==; 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 1h1uis-00041D-Us; Thu, 07 Mar 2019 15:14:14 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiR-0003QA-53 for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:13:49 +0000 Received: by mail-wr1-x441.google.com with SMTP id t18so17871270wrx.2 for ; Thu, 07 Mar 2019 07:13:46 -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=GBFRZsUQw0bBZQL90PNVj3Jv0ULoLY5X2nGjMgBmdvc=; b=ty2zUG67x5jO05y7afpZl98SU7hXHheLhviOFxtAB/sADi7zTrPmb51U/ABPKRYMxW LlkYKH5qCtVHihrEFPYVGN5fvdAU0Sm5kb0rhkHDGj9cmL7zH3vonzwnAlYypcRCwOOr fm/yGvk51YFIH4tmYp5pylRnVKDgigPoGYYbQ4OjShrS/s0ZJxUyF0ie1wiw8O1VMB/n MWfIMPHT++rbzEGgBEinHuim9uXOiEjSTAv50GfzaHrQGo1Pr2QIzVvsVqCCRoRT2p+/ xMGz0oFRvLpm9LXxmXfYaKZAHMK7KO/7+TST9/DA6kxjyKQ3dtfa3boLmZW+3JRD2ifE IBMQ== 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=GBFRZsUQw0bBZQL90PNVj3Jv0ULoLY5X2nGjMgBmdvc=; b=Y5NzQZDj36dnZxpBDLaqwGChM177TIw/56kEhoFvd0qSw6YJRTNhgbBchTcknHvKxA p2wLTTVpnSbwqGBOJBaZlTO7YGaZ3Y48a84XQ6aZ6VWlDOoV7cKH4n4vcDMjCYI60GkJ Utt/hNNr3R3y5noYMXBp8+vANBWc+dcCq4N5Ms0N+DbpHNu6IsOylIgy+WVZoBWvoKZj s4eDhtv1mFFX0ISY8ZoVXCfSuMsTgHQOhvUlFDRjss1gjzs+Prt5jWj3DfMVoKv8eaa+ jJiV9aIEuE3pGlca+9CBlvhLGLkwZTlhAfzG4WjLMxpagaZcPxaLwvEVbscwqlXQLMdt m2Fg== X-Gm-Message-State: APjAAAV1aLDKhdFU+FotXU/wwT+vV7PNoeBOVIRtg9AV9R3mGbomUepQ o+lzO1D8eimWq6lbg4r4CcZdwA== X-Google-Smtp-Source: APXvYqw5tHzPpQjgs5Cg5xx7q1ecOXwNxUk3p6vmcrlDy60aFeZmfHWt8vu60kclREdd6stK40h3Gg== X-Received: by 2002:adf:ce91:: with SMTP id r17mr6941861wrn.80.1551971625386; Thu, 07 Mar 2019 07:13:45 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:44 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 2/9] arm64: dts: meson: g12a: Add AO Secure node Date: Thu, 7 Mar 2019 16:13:34 +0100 Message-Id: <20190307151342.7381-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071347_189792_EEF9CFA2 X-CRM114-Status: GOOD ( 11.68 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the Always-On ao-secure system control registers node, which is used by the meson-gx-socinfo driver to detect the SoC IDs. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 0eb5220da82c..f2fc0f654150 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -139,6 +139,12 @@ }; }; + sec_AO: ao-secure@140 { + compatible = "amlogic,meson-gx-ao-secure", "syscon"; + reg = <0x0 0x140 0x0 0x140>; + amlogic,has-chip-id; + }; + uart_AO: serial@3000 { compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; From patchwork Thu Mar 7 15:13:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10843119 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 3F0611575 for ; Thu, 7 Mar 2019 15:14:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 294A328D59 for ; Thu, 7 Mar 2019 15:14:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D1DF2E2E1; Thu, 7 Mar 2019 15:14:59 +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=unavailable 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 B88A828D59 for ; Thu, 7 Mar 2019 15:14:58 +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=arcOYp6yorDrlqF4AUoKSLX9J39zxh6OQtXGzsFEQ60=; b=ntlTuJe1cc7Rk6 5SJZ3N5AFhwLvkmBnld/NrcKkqchWoeZeOLaXJ9Vd3RR44XjBh/3A7kTyrd2VNPGyOP1TUGVpWH+F sCfeNytr4P8gg5G062pxxf0eC27nvUFVjzepkx7VlLioWNH7CrRIifROnq3NSa9VmxjhUZ+rUVBr+ 1WrJw4DLp4RKUvYOAi1bzPAURiq+G5I3Ytmd7jFhjEyyzcy1lPHSHs4/G2h43mcXR136KxjK+PnDX CjKhh1IVYdVP6pnd7+xs/Vo7tgHmbu2XWB+UNDU0dKKgV1IBfSR61qiHIYUSNcjzPyFxdnPQXWUAm EwuEOqjEolI99ElBLG2A==; 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 1h1ujU-0004qr-Ks; Thu, 07 Mar 2019 15:14:52 +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 1h1uiR-0003Qt-R8 for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:13:52 +0000 Received: by mail-wr1-x443.google.com with SMTP id y6so2706810wrn.7 for ; Thu, 07 Mar 2019 07:13:47 -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=R5vLPLHD1u8ZKSzf8/MNIriNP/bQNhz6kTsOhKPAebg=; b=M0/9j5+ktnBXtm9Y3+kdp2HiDFOK3F8lvKtWoJsEBoSLGk0lcKV9olvxIgFpDV41kW 8f2VuawmWRPYSI5fN/w7hb/Dmi/JN32VIRxPAn8/vKp0WMyeXLrBUWSBgbcmyhWNa6jS nicp5lAM/G224vGGmwapFtQhLGsSSy0uRmgNSsA75wM8UYXltedl/t1IaKIgtu7qgtmF EWlUOBsb0lkMxlyedFpfu+QseJc695GbpFb6QHnXOqHAMFBG4ed+yPzr0gYTtYnkp5pl cDas9vkVwkRYPTzAXJ9vwhLIAKxpd9r/NcJNggnneSElHczzMWKWtLVD6vmC9qbSAuht DPag== 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=R5vLPLHD1u8ZKSzf8/MNIriNP/bQNhz6kTsOhKPAebg=; b=kiW/96BgYtHOeYHTLt4K2GnBl9DhkrXjJlAk+e4G9sA3R1G6T6WoxoJ/4w8pAw785z jU+HpmDLI8K5ilVV11vEaMr/9KefNRF6h1itAjwqUlr0iHBng5EFWEkVcFb7WTT8zILD 1ItNQI/mU6LE0L1NYpl1EQCBDK9qxgmec4KieQW3KDghi2noR9W4YqSU3O9cVTvwpcNn q9oioEKudpgxwU9VmV1ScSLh16ERNKfI7F25sZrSvKuR/QYsNOSu8zoay+MmjdmkUyi3 0Hw49I48kLcyy74iXx85MzZPJYUIL+RozkkkhUyHkHyqa0H/sOfkHocE9f4yiaUwlRHF HiAA== X-Gm-Message-State: APjAAAUAHfYsp8YCeF6Q5TetzfKi96hCiRGINyy/7g2tyM4tJOVQ5vue by5w7ZMCeZQScHGlRAFFghmGVw== X-Google-Smtp-Source: APXvYqwgmx0WDwSidnP2KR1Czind1bkHzqSxfAgLdwZ1QVm1YlPCf529X8abJGgQJOMDywgb0liRAA== X-Received: by 2002:a5d:668b:: with SMTP id l11mr7139662wru.116.1551971626321; Thu, 07 Mar 2019 07:13:46 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:45 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 3/9] arm64: dts: meson: g12a: add pinctrl support controllers Date: Thu, 7 Mar 2019 16:13:35 +0100 Message-Id: <20190307151342.7381-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071347_887633_AA6C0DE6 X-CRM114-Status: GOOD ( 11.72 ) X-BeenThere: linux-arm-kernel@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, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jerome Brunet Add the peripheral and always-on pinctrl controllers to the g12a soc. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 41 +++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index f2fc0f654150..c141cc7f6b09 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -91,6 +91,28 @@ #address-cells = <2>; #size-cells = <2>; ranges = <0x0 0x0 0x0 0x34400 0x0 0x400>; + + periphs_pinctrl: pinctrl@40 { + compatible = "amlogic,meson-g12a-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@40 { + reg = <0x0 0x40 0x0 0x4c>, + <0x0 0xe8 0x0 0x18>, + <0x0 0x120 0x0 0x18>, + <0x0 0x2c0 0x0 0x40>, + <0x0 0x340 0x0 0x1c>; + reg-names = "gpio", + "pull", + "pull-enable", + "mux", + "ds"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&periphs_pinctrl 0 0 86>; + }; }; hiu: bus@3c000 { @@ -137,6 +159,25 @@ clocks = <&xtal>, <&clkc CLKID_CLK81>; clock-names = "xtal", "mpeg-clk"; }; + + ao_pinctrl: pinctrl@14 { + compatible = "amlogic,meson-g12a-aobus-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio_ao: bank@14 { + reg = <0x0 0x14 0x0 0x8>, + <0x0 0x1c 0x0 0x8>, + <0x0 0x24 0x0 0x14>; + reg-names = "mux", + "ds", + "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&ao_pinctrl 0 0 15>; + }; + }; }; sec_AO: ao-secure@140 { From patchwork Thu Mar 7 15:13:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10843121 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 23FD81669 for ; Thu, 7 Mar 2019 15:15:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0ADAA2E2E1 for ; Thu, 7 Mar 2019 15:15:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1F8A2F339; Thu, 7 Mar 2019 15:15:10 +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 97E762E2E1 for ; Thu, 7 Mar 2019 15:15:10 +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=0VreKBHnPStjhlPEp3DpguErrh/pPp17WqW/CdxTrww=; b=LYO8yGMmCPjK7k S0b/vR5v+iflKljvlQFNYDALUQUT4mNNDbge6RrlvfAvuLGt6lLZQDGhsi7hMhBnV0pYIL7Yh+lRH OW28yHfK5aoKct+K9CRjzR2z6yEQZHrmvP2fkUFj/2D623WnJmDeYd46panMhShyVKuV1+wV5/RTR zCgxps9DO+tpl5qpvNAZJ4xBS/gWq3Nxv0Ia6JHtq3t9YupDSjGED3dyoPmOwfcTwr/ZG2UsD+mBV WNN/wfMm8js2gDJe7T4oc3h8bS1tHAvfS5MRCH8TgbRe2zsIip4Jp0XTwIvwEAK3b/sn8+V4DK8MA WR8kDKYYWOm/W+tkmcKw==; 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 1h1ujj-0005CO-Vz; Thu, 07 Mar 2019 15:15:08 +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 1h1uiS-0003R9-IR for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:13:52 +0000 Received: by mail-wr1-x443.google.com with SMTP id t18so17871376wrx.2 for ; Thu, 07 Mar 2019 07:13:48 -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=pTKXutykj7vwY0VfsJAxh3ulcw4nav4DaRakY0rdQgM=; b=x05kA46l6Ub4SgMg1oVMBKRlw00P7ZOno653ZCbKjWvjaDW16/H9sw2Dll+a2S1WJG nay07eixuRsFC7gSdhiytqqDHI1n7wNlZGm5NIeeTOg2oCywv1YYaZFp2ifDLZg0GZJf HHLcrrgpjniUmnTKjbHYO7541ksgK5V7UzI9BdLl3+T6PpbtDT13uk4qkrkvqKpZXLTe CeRHB58iXswzThnyVz24DkXSDsDAHXYAerJyFmkeAeS5BalCu1Gfwu4tyYFzZQqsanzl cw7Y1aaea2Py1muGyTOapWwmBWgxOWZQnGabDE+e3xOagxNMBJaNdbvLkm/G3sOC9Tsz KBYw== 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=pTKXutykj7vwY0VfsJAxh3ulcw4nav4DaRakY0rdQgM=; b=BX9Mevxt6SL/gdp/vQfBKCOkQMNVwvrH3e/5aEpqnBVRv034X1K+DyZ9HaYqNmjMDB es/4o71oCH6Pm2aekc2EvGwgZzK8fkpTmpIH9h1VfGLSftRQtdfUjFcM/vNDU2XcXeZ1 aaplkpdhrwRzaQGWMCpuwMjHOAlxy4zk59YojwehnySR7QRCfhbD4RAbD8RmC9rYX0s7 DGtkhvUin8U5wn2Cv1pFfLGBVDOZPlMp34ZBGZDIB9cp/LZY1ltIHRjosXKziuvOjK3M B9RfROhV2vN4d/QeywR7Wr7Zaedy6gpjjYdZCbIXGEVWZBF4/YP0MlqVEX5tSeXVFl// 5Ktw== X-Gm-Message-State: APjAAAW6Q9etPSUkI/5f9ZnIouucjUIiYYYQufMq/LioATh1iJH5XQ4S j3K0ZCIxrU45mptT1PBMn/730w== X-Google-Smtp-Source: APXvYqzrBJHweFCZ+0W1kt+i0Xl1xJ7WPNLiGJgYkl9B+D0E4iAQkHB6LHd2tmZvp6+b3Fxkei0iVw== X-Received: by 2002:adf:cd04:: with SMTP id w4mr7310512wrm.25.1551971627071; Thu, 07 Mar 2019 07:13:47 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:46 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 4/9] arm64: dts: meson: g12a: add uart_ao_a pinctrl Date: Thu, 7 Mar 2019 16:13:36 +0100 Message-Id: <20190307151342.7381-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071348_609545_2477CA82 X-CRM114-Status: GOOD ( 12.13 ) X-BeenThere: linux-arm-kernel@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, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jerome Brunet Add the always on UART pinctrl setting to the g12a soc DT and use it for the u200 reference design Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- .../arm64/boot/dts/amlogic/meson-g12a-u200.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts index c44dbdddf2cf..f2afd0bf3e28 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts @@ -25,5 +25,7 @@ &uart_AO { status = "okay"; + pinctrl-0 = <&uart_ao_a_pins>; + pinctrl-names = "default"; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index c141cc7f6b09..f8f055c49f9a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -177,6 +177,24 @@ #gpio-cells = <2>; gpio-ranges = <&ao_pinctrl 0 0 15>; }; + + uart_ao_a_pins: uart_a_ao { + mux { + groups = "uart_ao_a_tx", + "uart_ao_a_rx"; + function = "uart_ao_a"; + bias-disable; + }; + }; + + uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts { + mux { + groups = "uart_ao_a_cts", + "uart_ao_a_rts"; + function = "uart_ao_a"; + bias-disable; + }; + }; }; }; From patchwork Thu Mar 7 15:13: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: 10843115 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 F3AE11575 for ; Thu, 7 Mar 2019 15:14:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDEE728D59 for ; Thu, 7 Mar 2019 15:14:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D216D2E2E1; Thu, 7 Mar 2019 15:14:41 +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 8DCE728D59 for ; Thu, 7 Mar 2019 15:14:41 +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=w88pvpWrbHTH95RMFRQNvPlev8a0PcY7SbUAaJ+bfYQ=; b=tsU0oNeuysjNpP NBdwtLY27L5ipx5X/kTbs4Gze5+aPJUYf6tSV/xNpTWXXgGWi8wD0UyWsQ3thiU9mHaVa67o/qt0O ZX2DWyEnL0k6syPu5kthESigZH6KRtdVofPeGDG4SfJ1DcOlNs+p2BRlrfN9pYmHnRStf28P8eXtI H02tlbP9nMSMfBbPCy+SNWjdAiReU3n5DN0f9M9Dgy9YdnMH6xOYs/sqJABvvJ2vsjVHnD0vXFZK3 VTPBtDWk3BAXsPCH6fOJS/hrwfIItNuFDU61vCeBW/1KR7XyRlhQGo87+NZaVzKGcpPC/0di5/wTg 3CObZIAwAYwlig6c5feQ==; 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 1h1ujH-0004Ys-5H; Thu, 07 Mar 2019 15:14:39 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiT-0003Rq-4j for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:13:53 +0000 Received: by mail-wr1-x444.google.com with SMTP id o17so17870241wrw.3 for ; Thu, 07 Mar 2019 07:13:49 -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=bf1+mf6QfF0AsCLbNkZ8mPUtWVYO9Du/N5n2zl8nGt8=; b=bpGg0R5lH1fa5WfXHk0KkF12jcH5G5qkJgiPhF857EkVXitlkhzOPKOsAa7cshICu7 wS7rO0HpWnBXmKYUOxvl6+9qgi94yAvvO4LXSH9IIlS+9EWghEtrszyfs2B4JIDcvD+6 x72M1dQBfERvWxk6pmdry/RnK8SIMBuYxQ1XSR+RyZtiyJCpyRXC7eSy3DmMYdQPcyWU sklEgjyP5x7+FnkpqWgPa/Z+jqOtLnYegVH8jLvDtv1MJ3NvSNfEiC/S3nZpF450QPor uCkZzQk3szbY8a9USEDH0JJKai2zT0Dx0XTyPYWg5ErW2+e4QaDNLNFvWebCwaL42SmL 8NnA== 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=bf1+mf6QfF0AsCLbNkZ8mPUtWVYO9Du/N5n2zl8nGt8=; b=ZNwTvtKnA0AiQW8XKEV4UNEk3qzlQDK+0dyfFAXwTxSUXnvS1Bu6N8biQ9sB0OKG2A C/4ygJbKJpN9AfDof39pkicwBHniYWH1wwFRoapm1pX02KcPI6MepOVQwAjO9IGRTCn0 NnADIQzdtfJtSRq5V8odsM9eQ5VeuVaq8SCT04UX6V705e3Puy2GCDpQ7kznnWqWmVkX Jm9a3q0O7fNtk5BstlS05Y9P0KPVJdNA6E/ZcWHs9F9auS2TTJ+kZnA99xHmYCMHnchR QTFazyBoNZW8zFAzuXf+Ly0tB/DJexG5D/v07uPdYLlgCTw8UxdmHpHdVD84+GHFwYXz XjTQ== X-Gm-Message-State: APjAAAUmcVPYAUis/uHxO7+XQzQyBCrut6dAb9ZId2ymhp5q9rv2Ic4E igNxXLKY2ChmiF+QBgTw6Tf1lQ== X-Google-Smtp-Source: APXvYqwmQzpfl9/1mNwGo7zgz2jQGPTPZYva7ziWJYqeIKewiGh2ykoHTRFEoLay4q7YqEW/kL6QOQ== X-Received: by 2002:adf:e3c9:: with SMTP id k9mr7018237wrm.291.1551971627761; Thu, 07 Mar 2019 07:13:47 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:47 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 5/9] arm64: dts: meson: g12a: add reset controller Date: Thu, 7 Mar 2019 16:13:37 +0100 Message-Id: <20190307151342.7381-6-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071349_178171_EE7B1DAA X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@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, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jerome Brunet Add the reset controller device of g12a SoC family Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index f8f055c49f9a..2a700bb45d04 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -245,6 +245,13 @@ #size-cells = <2>; ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x100000>; + reset: reset-controller@1004 { + compatible = "amlogic,meson-g12a-reset", + "amlogic,meson-axg-reset"; + reg = <0x0 0x1004 0x0 0x9c>; + #reset-cells = <1>; + }; + clk_msr: clock-measure@18000 { compatible = "amlogic,meson-g12a-clk-measure"; reg = <0x0 0x18000 0x0 0x10>; From patchwork Thu Mar 7 15:13: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: 10843127 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 49BB61669 for ; Thu, 7 Mar 2019 15:15:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33C8028D59 for ; Thu, 7 Mar 2019 15:15:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 281F92E2E1; Thu, 7 Mar 2019 15:15:34 +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 C342028D59 for ; Thu, 7 Mar 2019 15:15:33 +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=2Bd2+j+c8laT50v2v955/RkdrdtwXJug/rAiphW8onE=; b=lyG6qZs/4k8ykV p6I0b1RplJM8UVCZ7G1wqqPVsqELL+vJyAZIWI4BrLB3YguKcTm8ndyFEJpzeoN/HvFc1pXX95NST h0N9zt3k3gRdJ/iVuKGqfyethI1oRZT+kHljAZnF97NmmU2DJQEGc/rPPX0HoBW+ldCmBmY8goYMt keefV0tKOwS8vPYPYzHsBIoPaRCjY/PnB11lL/z+dwgy4FqGUPkkVLs4p2fqTkKck4rOVSJ1V7rCa tZc+Fn/rRFhI0VS+O7WsysB2IKdFZVqM1V4zoUQm1Cfsj99Kvoyf6ZocCfMLhlnQWJM8uWRk1gQ/e nORgheVvjJmQYqS/WCYw==; 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 1h1uk7-0006nx-7w; Thu, 07 Mar 2019 15:15:31 +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 1h1uiU-0003Sk-4N for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:13:57 +0000 Received: by mail-wr1-x442.google.com with SMTP id g12so17854500wrm.5 for ; Thu, 07 Mar 2019 07:13:50 -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=g90x653fp10tWOEz2NsdqDP+qS+7JhLDzpCoi1kfPmo=; b=LJYbRSl9e48UyWFjWVOS8FsXzY4tY+BP+USZp0/nQIfYHijpq6xi+i273vkKLTAgLS Gvz8XxOWomYScRLdMdoWBn11HheL/WRcSGssxAwChbwLEItkEo6bem9id5x1Wvlb2wHQ OVGFruqk9cex+jsIqoQWSqdID87eWamQHjKuxOsZt07AIHMgsA6xghybwMo0GwirdPDH 3Wp+8p1eNM5DR63q/BDI3UApDxaoqo5KVB755zzXQFxaTEmxEHH/z/bFaOkR0J8SFA9b T5OPKB5F0rq8TweQOHKrytI53vy7iebQQVzvQblfBpHDU6MN/wNn2JoUCW3KhZhDBwM1 7aeA== 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=g90x653fp10tWOEz2NsdqDP+qS+7JhLDzpCoi1kfPmo=; b=IDTIAmibimTM5VSeCNeyLrU0WWH0e2jH7AsUg82KW7qLbXYZpxahBBa4XG+caixSyi 4vLyRpK9qqwY73if5xhSbE3tZClemXrBrTzYfyWv1y3KljcdtYUGmQzMmhmCHf+iOkoz I3j1Am30LrLltt51Yi/xUDRzI47w9LUB237Dxc+5PFdDUw+io34lAV4dyITfCs5/BMfp 3gs0FgZGE8dHSoufTaVtbs1RE3j6AywORT1eUrhjzDJ0gwYF0UoxpnZNJXS2+EZjr/Ad 8sQdCA8CuP5FwQCRzhdeO/xntAX9lt5qIEOuxrEYOXFBBLJi1Gi+1TTY8zxdU57ObGIu A9vA== X-Gm-Message-State: APjAAAVr28JM5VOX46UeX+q1/sj3HeVZmLQhAhwkjEWLs0Les9zPqaBz yDyYq5D6KQACCbCoQ054MAm7EN9JpCeYtA== X-Google-Smtp-Source: APXvYqyjTkFCM+4w0UmrWDhrI9RijhFS56AiX4SNVemfSJpcl7INIj7i7WGwmtPnMV/qrVG+QhgUgw== X-Received: by 2002:adf:a49c:: with SMTP id g28mr6968409wrb.147.1551971628621; Thu, 07 Mar 2019 07:13:48 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:48 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 6/9] arm64: dts: meson: g12a: Add UART A, B & C nodes and pins Date: Thu, 7 Mar 2019 16:13:38 +0100 Message-Id: <20190307151342.7381-7-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071350_470346_705C48B3 X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the 2 UART nodes in the EE power domain with the corresponding pinctrl nodes. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 82 +++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 2a700bb45d04..50e2cd36e08b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -113,6 +113,61 @@ #gpio-cells = <2>; gpio-ranges = <&periphs_pinctrl 0 0 86>; }; + + uart_a_pins: uart_a { + mux { + groups = "uart_a_tx", + "uart_a_rx"; + function = "uart_a"; + bias-disable; + }; + }; + + uart_a_cts_rts_pins: uart_a_cts_rts { + mux { + groups = "uart_a_cts", + "uart_a_rts"; + function = "uart_a"; + bias-disable; + }; + }; + + uart_ao_a_c_pins: uart_ao_a_c { + mux { + groups = "uart_ao_a_rx_c", + "uart_ao_a_tx_c"; + function = "uart_ao_a_c"; + bias-disable; + }; + }; + + uart_b_pins: uart_b { + mux { + groups = "uart_b_tx", + "uart_b_rx"; + function = "uart_b"; + bias-disable; + }; + }; + + uart_c_pins: uart_c { + mux { + groups = "uart_c_tx", + "uart_c_rx"; + function = "uart_c"; + bias-disable; + }; + }; + + uart_c_cts_rts_pins: uart_c_cts_rts { + mux { + groups = "uart_c_cts", + "uart_c_rts"; + function = "uart_c"; + bias-disable; + }; + }; + }; }; hiu: bus@3c000 { @@ -256,6 +311,33 @@ compatible = "amlogic,meson-g12a-clk-measure"; reg = <0x0 0x18000 0x0 0x10>; }; + + uart_C: serial@22000 { + compatible = "amlogic,meson-gx-uart"; + reg = <0x0 0x22000 0x0 0x18>; + interrupts = ; + clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>; + clock-names = "xtal", "pclk", "baud"; + status = "disabled"; + }; + + uart_B: serial@23000 { + compatible = "amlogic,meson-gx-uart"; + reg = <0x0 0x23000 0x0 0x18>; + interrupts = ; + clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>; + clock-names = "xtal", "pclk", "baud"; + status = "disabled"; + }; + + uart_A: serial@24000 { + compatible = "amlogic,meson-gx-uart"; + reg = <0x0 0x24000 0x0 0x18>; + interrupts = ; + clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>; + clock-names = "xtal", "pclk", "baud"; + status = "disabled"; + }; }; }; From patchwork Thu Mar 7 15:13: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: 10843123 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 770771575 for ; Thu, 7 Mar 2019 15:15:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FFB928D59 for ; Thu, 7 Mar 2019 15:15:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 541112E2E1; Thu, 7 Mar 2019 15:15:25 +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 0E17528D59 for ; Thu, 7 Mar 2019 15:15:25 +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=SgZtK6jUaB0J/DeWghWoaH/iWKxLuQqswZmFm8YTTh8=; b=GO6A7cDlNlAWp9 pw52PbBmdP0BaJYBMYRkmaj3qp7izoT4N4G3SWlrBHwt+zKtd7E5YlXtmilsC38YmK7+Q5j4RlIXZ AOVHDa5RBQ0GWFvy4TmNBFQYRn620E1bP1++DQCRPJQMaaPJdUe7tHPek5wmKAuoPF3ItO8FRqhBX 7O6iWbckxrgPtFwJgZ0rSR1eJbDL2o+SsdLY2/XnB3pJvIfE18ljpoXml/mVRYVu0/XIZHaTALE6G C+Cetuv3c20KixEO2AEthgUmWl/lFDb237IpTWQFJnyd+czqj6LRb/Xkm60F3GT+Yz0f3W6UpZYMt mkHaVGGuLQ66NzAITlZg==; 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 1h1uju-0006Yw-IR; Thu, 07 Mar 2019 15:15:18 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiV-0003T5-7g for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:13:56 +0000 Received: by mail-wm1-x343.google.com with SMTP id j125so9647535wmj.1 for ; Thu, 07 Mar 2019 07:13:50 -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=HuUseLa2zmd8/nZS2QxaCguzDudsaF0923rEqJjh/Uc=; b=u2b+USzzZuknePxesV1i3XLW46MLNIfHeJ1uXhlCrDlrqh/2zc9re1W6y5bLdK5tCk XSECgJ542UTyTJ+2g7K34xukuXRA2IkUjhjX5j5tt8+TPtNtlfb9OpQ2Ac8NBSE78RCs mpls+bQlg62oVM/CPKd6Gl9a0XHfSCM2z+NObYE9j9mgh16ESU9+Pu4dYz44nwgkgeIx 5iJatANpwWW+jJ3fLTPnR+SeAmyrzuBS23rnW/M8IhdSpAHHKEY6HJF/W39aAyAfYssB wK/BG2Gmjmz1LksoNbJfGVDKl3t8CZVTljltdlIDTCDkpJU7zMz+HyBpE25taPqeYylr HuYA== 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=HuUseLa2zmd8/nZS2QxaCguzDudsaF0923rEqJjh/Uc=; b=tDTznQ0W8mrsNOLL9iks7djxyhWPdUY1UN4Iv8YRRBoW0LBJk0Nr19ycu1gip/yn1V LaQRvitwagOzBxPf8XxAa8lW3rXgVDTqL3B1opYqUGNTtLUPawt1uShfG95TfWLgfBla oCGaBcIwZgBta+lUu6bCpLmixKh0aSXZQOACuwf5cipBxEZraj26/GHu/YI8c9wxSMDQ PvfVK0Eret+ZA/KcZhUCg94l6xxEePKyvAFJT02+n782JB2NPlVfB4CGMYr3QEA598s+ lYF74QFC9mA52AAvxBKK2ZqEwUuD9r5/KO/67hS6LbEv/euhDim/ApDu89u0s6DLQC11 n++w== X-Gm-Message-State: APjAAAVZpCIpMdtvQ2Vu9hkhxc2WHo6stDe2SH3e5DJQTdpBjsPEzUzG /z2JaY0IbZfYk2++y91Tf24Fyg== X-Google-Smtp-Source: APXvYqxHwJOBmWipAe3mwBTFHjRKhGEGOdYqEvoIPUCBtbTTKuLVoot/CGmhDmOGHdpPKiTdJTQ13g== X-Received: by 2002:a1c:400a:: with SMTP id n10mr5856094wma.56.1551971629333; Thu, 07 Mar 2019 07:13:49 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:48 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 7/9] arm64: dts: meson: g12a: Add SAR ADC node Date: Thu, 7 Mar 2019 16:13:39 +0100 Message-Id: <20190307151342.7381-8-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071351_679796_C4D0FD18 X-CRM114-Status: GOOD ( 11.61 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 50e2cd36e08b..3bcddd412aa1 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -278,6 +278,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 Thu Mar 7 15:13:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10843135 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 8A78B1575 for ; Thu, 7 Mar 2019 15:16:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 743BE2B7B1 for ; Thu, 7 Mar 2019 15:16:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 683B32F333; Thu, 7 Mar 2019 15:16:02 +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=unavailable 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 12C1C2B7B1 for ; Thu, 7 Mar 2019 15:16:02 +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=pRYW4iQW966un2EOa8xi8ipQSPPRmDYtL84LUW9jNZ4=; b=Mo5nOk2PTiHv20 IlU3kpn9uJwKqhsXWDwu/lnFyzQomEVUt6zt+Uw4XNXA8FXSxjqopU0mTGaS00Y2LDFxbvvldNJBE fwSnM5ZnMAqLCYAd62INcF57Fm/BYaZuo72zhGvc81f+m61T1+bJYB1fuILfjrtRGH1j4dzGbU+bs LbMHk0SyP07wl+kBx0DLlEaBht6tcjyF1K7wts3+68KnnT/LOIbjnnEqKdQUjwaBJp8HvGHPKfR9p YSRBvWSGu1fkFYmJTAe6PpYqLowY0mUEtw9f9wsO+FSSuTEUXEh9UIcEIY2hT1dE1apN3hQrxiAH/ IpbWue7X4A7ewFa9MhBg==; 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 1h1ukV-0007MT-2B; Thu, 07 Mar 2019 15:15:55 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiV-0003U6-T1 for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:14:04 +0000 Received: by mail-wm1-x342.google.com with SMTP id f3so9688095wmj.4 for ; Thu, 07 Mar 2019 07:13:51 -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=WGl0+t6qc0DE+q8X5n35oktYj1wBnQw0GSdQfqfiPJ8=; b=drGqb91M6prHbc31ZNqryIhYO+lEpu3P6PVOQ7rx6c33cKiItjGaWL8jKkg37dEPlO hGk3FYXR0A/5BQwUKWxHg/D5bglImGYxhdgpmh/IGVMaVHCX7iH7o78vdd3KfAuKVjFg ewjRUTB9E8sGbKGJcQKvhJP3YavuOJ4iluM9NPe7YvAvZvtfKTTjer2TPBHdYOob2cRX YsJG3zZ6XMT2bASgExY0/UOxvunx7MVvw6Srd3e3YrmufepLdN5/zdMAzrcgVo7k4UIq 0rYOGmbqTDkh36ILevPpw+iPRW2d0SlVUyoch3yQ73gkq2LC56uLhj6F8OxkO+WO7hxC W6eg== 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=WGl0+t6qc0DE+q8X5n35oktYj1wBnQw0GSdQfqfiPJ8=; b=JakgNn6n5yCwvPCxjOMMxL+RtfE2kd4OlIEtcwutxV48ma+hhgHKg8j5kIsyoaS+tE nySsRe4gNoWjP1Kj1cCl7TZKJPho8U3X/drVHadTRxguvsooz6RnG+WUJ1YJT2h4bOsf nD67SLcHoB4DufMUQi/nKXeV+tAQ5zFBG/WxYwBLElt8aI1guGBlA0X06b9Npe/y1iM8 iAVTwvh6dyAjJ+cQmffrkW1z4BqAGpLZkIMFs3ylile/XrkTmfcAY+8ctm++L6mXaQpP ktzBvlaWsMQSphotPsXrAQuCHCawS8MZlVhAYucIsCR+yGH2/u6eqzi4V2uTpql7tm+1 Nm7A== X-Gm-Message-State: APjAAAXYk0RHxS7ZeU/sr2YpVLH0GuQ0CD3vVRH/nbUSik6odUX7tUid MVWzd21WgAe959iwx/K4RDniWw== X-Google-Smtp-Source: APXvYqy/T9v8I2sGM64jbUlJ2r4vGKb02JpwRzKX1BZDhCug/VA6xzbzq89DkWmJ05q8gysfyGZEQA== X-Received: by 2002:a1c:751a:: with SMTP id o26mr6124150wmc.10.1551971630000; Thu, 07 Mar 2019 07:13:50 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:49 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 8/9] arm64: dts: meson: g12a: Add G12A USB nodes Date: Thu, 7 Mar 2019 16:13:40 +0100 Message-Id: <20190307151342.7381-9-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071352_294676_FDB25A0B X-CRM114-Status: GOOD ( 13.69 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 | 78 +++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 3bcddd412aa1..991883ea023c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -3,9 +3,13 @@ * Copyright (c) 2018 Amlogic, Inc. All rights reserved. */ +#include #include +#include +#include #include #include +#include / { compatible = "amlogic,g12a"; @@ -170,6 +174,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>; @@ -190,6 +214,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 { @@ -353,6 +389,48 @@ 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>; + status = "disabled"; + }; + + 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 Thu Mar 7 15:13:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10843177 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 DC9431390 for ; Thu, 7 Mar 2019 15:26:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C32E12F372 for ; Thu, 7 Mar 2019 15:26:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3D7D2F396; Thu, 7 Mar 2019 15:26:49 +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 413092F372 for ; Thu, 7 Mar 2019 15:26:49 +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=EJd1VlI7SJc0gpCTVB0t7zZu4MOKryahF79+lWzK3qg=; b=cDGBjpdTKTEGXV gvbu7ungmNTtf4umQZLnJzBl0d56NnZhdtno6a02tl8VhaTbpIYRtZWhJDGm/v9oM8z9Dmp4KztAZ /UF+Xofo8I68iKnfNJy2rctH2YbP82YFU+/cOcfGeWAzDRdmPDgPCit+nqRgcBcCOOc1BxWzyC8jh mmhVzROsa3GjdsiYTQqKIHGGbnKLSicOlGa2ReORr8OCea5bc4beRImmnx8/KjSWxVl+OYubbVWbn 17J6sT6liAM2Rx9cqt8KbnCq+jjCCUtVL++B9TmMspb7l/VDZV5L/Jq08e+MJ2P2GR55SAwvhP65Y 5PlAM49sIDTzxb2hsp6A==; 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 1h1uv2-0002yM-94; Thu, 07 Mar 2019 15:26:48 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiW-0003Uj-7O for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:14:03 +0000 Received: by mail-wm1-x343.google.com with SMTP id q187so9690765wme.5 for ; Thu, 07 Mar 2019 07:13:52 -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=kmcKckFFoMcjeya15ZmDQKDKc+LuZwnHpbF6leSa7CM=; b=R88ieLypq4ahZHl4Hz/vkiNMGbHyglkQCCJ5MG2kcH/UTsHng7NZbOiIfgMHym0cnG u4lMN1tj+jEdL9JkpMTOQbQmHpd3dDFyQ7wDZbgjfCpVCbp00j4gH5RPxDfDQNfrzpLt 6n0E/RYSlHhdAvH1ys2B6yJQ2jMuPSzN5djjlx/YGRUHqeYA982SL8lEQ+pFGWYOF5z3 J55GT6KlkUTitEotrsOytI6ARK1OquHUFJ0o1I22Ji1DrMIF7tf5BJ8mo5SAYrMDpdc5 cO8MByqVfyPfI8jr82qPSpsOa2x2I+GMEk/KjtTwegInJ1xa1qr26rcVZtrP9qN2lAFE Feog== 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=kmcKckFFoMcjeya15ZmDQKDKc+LuZwnHpbF6leSa7CM=; b=WyjqA0ho9nsJ2rrs01qWBW9toFe43EgWI1trbGYgMwTFyTW8Rci7XyPMb3vY75dgGL fV4fHoqOQ/X1oNsRBggsVSVH6kIjUTROcFKWnery7pCYgYk8D4CmXhePBL9yqJQTAq3F XP7ODEQARNcshDY872wdpuKuULhmZeI8JDjIg1Z+pm2db8QEWgHQxGzv5waKFi+A76lg RR7BzLxOWZKBkgensvkwNC9rLigRF0iBWcghRAKw8LJugX5eDoauHC6ruAtfya2BKkh2 MFCXIBixzpJczvOWWO/rAid2q/ICZ8olVkMEkkIPDiSXB0OPGHeYiA0kuYLSFBcJhr1K 1ZYQ== X-Gm-Message-State: APjAAAWzu6VtmBYHw+lsqHrnz7OEgkYNcCNmsdgWSQzHBdttnCSvX20K kbEe8Z+hvHWw9njAX3BUfm6g5Q== X-Google-Smtp-Source: APXvYqxSlBK/CV8ggTc1nVlXI79nkBo7btojOUczdtNPu3F7Hj96Dipv0Fap+6ZNAh7o9KVT/Lswgw== X-Received: by 2002:a1c:6506:: with SMTP id z6mr5902373wmb.153.1551971630737; Thu, 07 Mar 2019 07:13:50 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:50 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 9/9] arm64: dts: meson: g12a: Add mali-g31 gpu node Date: Thu, 7 Mar 2019 16:13:41 +0100 Message-Id: <20190307151342.7381-10-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071352_621513_DE2AD1DC X-CRM114-Status: GOOD ( 12.22 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 991883ea023c..bd2d9379dcb5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -431,6 +431,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 {