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: 10843097 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 C8CA91575 for ; Thu, 7 Mar 2019 15:14:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2BB228B26 for ; Thu, 7 Mar 2019 15:14:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6FFC28E91; Thu, 7 Mar 2019 15:14:01 +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 42C1B28B26 for ; Thu, 7 Mar 2019 15:14:01 +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=Wwzo6ijMqqRhAmPAm+AqK3FYFxjnIuezkyE8Du3cPmY=; b=sWAJSwo9TdCU/P Qtbzq2DknSzZfERPSx/pCMMl2/nVhe2162xWyGZ+UleESzEHviQ7G6FSpZHtpB60658kp+Aee1eLn whrINB9MD6wLcMQvZwqMXuiQZw3iIammoKfnPqWrx+hBCx8ENqAOkn1B/oaDak4NLXIFyawzYLRAG 7UvVNDr+hw37NGylzYkiqkAz7e7uWGReFHMwr0nziXe4jACtdxs2fMDRGZCkoRAUi7sDwBd+/Q+CE +6IEQzNFpcjnCXKPKqA1ZO8KC3KR+YKwLwxZ2L7ZAGUNCWA8aVAVj46DYro5vZmLuhDaKhTu9Hzff idAJJzq3SvQojwrYVQHA==; 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 1h1uid-0003gf-Fc; Thu, 07 Mar 2019 15:13:59 +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 1h1uiQ-0003Pq-77 for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:13:49 +0000 Received: by mail-wr1-x442.google.com with SMTP id o17so17870033wrw.3 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=BfSAgZeg1+tpsTRsAxTAdtly5DPcsfhzXvBrdSDiAvsgsO6QlOrtSvThA2iVXvGEZC +RJjnQTUIPj5k1gznUb5N9/4AcDwAJf95U5ytrI/rcsBxfzWJHhQoN3zfdZqtkuG1zTT 64L1X4RRvB/hl4c5Dwbt4jDBCQdSDA6ibBY8nvfHnlNBZC8pVL3BEU4FLRBrZgv2naxD eUV51GnRjstSyRxUGXznJjFliqHdqdaHQLBfcIOAIs2QCRl98lFeYxsJ/15DCu1sst88 TqLRk/2ryVGd3S+cBu5roloWT2JGyaQ/WPOdpFssI9UHQXh97IllHY4Xy29PKsUZoWwG 0akg== X-Gm-Message-State: APjAAAVRQ6f4vZV6Gd7Cx6jxk0dM+K6s2QHymskvj8Al3nGCl2cARvrn lTpX7LwPq8RlVJoMahbtVFO7MA== 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_253020_C42C5BDB X-CRM114-Status: UNSURE ( 9.45 ) 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: linux-amlogic@lists.infradead.org, Jerome Brunet , 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 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: 10843103 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 6861E922 for ; Thu, 7 Mar 2019 15:14:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E18728B26 for ; Thu, 7 Mar 2019 15:14:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42A16290FA; Thu, 7 Mar 2019 15:14:27 +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 F3E2E28B26 for ; Thu, 7 Mar 2019 15:14:26 +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=5HRJlHnZRHwCImXa1+qvs6871pNYHeRmZ3zZykwRV3s=; b=aVkNMyJ7L3chfw v84hkJMFTbCK4rJVXjMDIbaR9+7dBDKKpfWm3dTrZyfzxjx3+uMKXVmI8LkMnR1P35ofRHmWxlMXn 5JzU2KIOWpebMo0Lq/jCZu/SHcWZ5UhCHUAMgeC8TNoa6S5ghJo0Lp4HzfdjLeoffR/75QSXgkLh5 zOGWQbiwS4sjexymRlCoLRKISFbiPHVV7LVGThHwVN9SAuGRAwkt3UoUvPowmXTlgwl/swl/Tigak mFRaHZRBuNOXMxArpQmBHsafjIMRRgG0H18g6TeVDzqLhSeeKD9YqHDVVxxSWoYso2KD0iXeEcToI 8c8nrhPqZA8ChmYG1NgA==; 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 1h1uj2-0004FW-Fg; Thu, 07 Mar 2019 15:14:24 +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-0003Q9-QA for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:13:49 +0000 Received: by mail-wr1-x444.google.com with SMTP id i16so17834425wrs.13 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=sfPF8SaccCHONGMuGDIvnWLuZFv692yA2gaILCQ7dV48+2yhGyldoKFnbeYx4Ju2jU 6iTURRlLbrl0ZsbMHRSpRiMbTxDuLvXdD7WaiJF97LWcXlsAeFOms7es6cDC6oDUhs39 wLXAtlLlIAV6Dh4k5EsO941Y9lYNNH+oeRVcrJI7OJzPn0VPhLZ8l7I7JVcomUdmF5yM a3Otp7oiS04VqCnOxiNgUrt/va5pQyJ5w0wzlARjq+xcbQDEv2/KX9O9JXN28JAO9vkg 87B+Yucmtc+Oof+z4LlxpbqgFcq+zo4kp9GkL5SWy6uFVUnw2mrFOoUxFY7N7MObSgdY 2IDA== X-Gm-Message-State: APjAAAUXDNPDxx59qsS14KFmj9ZP587B9sMvVztSFxrZf/j/jXJur02H iL6rZTPIctV41w0Xth2EJCbXXg== 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_071346_847381_48C63CE0 X-CRM114-Status: GOOD ( 10.23 ) 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 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: 10843107 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 0D4E5922 for ; Thu, 7 Mar 2019 15:14:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9C0428D59 for ; Thu, 7 Mar 2019 15:14:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB08C2E2E1; Thu, 7 Mar 2019 15:14:28 +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 8B63D28D59 for ; Thu, 7 Mar 2019 15:14:28 +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=O7Bff90Bt3aoSeA2kP8YZjno7Fio/wzXfwGLEADoL9c=; b=flLIDrdcZK/csw 1bJSmoJspOo0ZQwX/IzuAiO/6w6TRWiJCRSMDDDbdfe9CWm7RUsBPE07diJFSfNUewGSawlQ7JSuV KDDwuN+KVU6O4QEn6DLM2o8NYW9S8K6Mwvby56y6BUJlj2N+6OyeIMwkRRj5t+T95mt+w8cX7JrZG QTbd8scGgeQO87g+eGS+gN/G71Nl8kiEX/f0+d9v0xj9c3Rc8piIxXDOHa7C7KHKvcmYNJy53sG9d IMOobGq5EaHDEibzlycg9SFYYMgrWut4+M1mS+/Ns7dE7/8qEvmSF/2v2zsa4LAmSwCudXRyhkDnI FRERuq7Dn8DYDz20U60g==; 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 1h1uj4-0004ID-Aq; Thu, 07 Mar 2019 15:14:26 +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 1h1uiR-0003Qs-Qn for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:13:49 +0000 Received: by mail-wr1-x442.google.com with SMTP id i16so17834501wrs.13 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=E9WZWAownLVk8L3HlZS4LB5+WDn8h/QsWMCOP6Ir+RycxYRjI/xH3awjbyiPnqrl8j JXDWQ5UUZjTjowUg7Y99AtYWiqXOWlDHPZS+NStU9udqWkXWrKM4vpB1nUMs2Cokw0DN JL2PjttbYxdSPHB7vv5Sjarlimj9YG8Ba7Ivx1XVhBDWtgC2wSLiv4H27WnWd+3PTCg3 xy9P810iRbBOkcDrTB/2Iee7Je42ceAP7epgYHzoRCOvpV85t0QtkmbHr6pH/eTqbJhN RAM9Zp48x2ASETS1wmXt7hrh46uU6i2yZMQmlqv+yIKthTJvh295FGY4a476XZdeIaZu I4IA== X-Gm-Message-State: APjAAAVuHWDOwyD8EuFhpCnOs+QMSvqgwHgo8zgafvMu1hG+dR0q7ErA Q2DIuePj/4IeFQkCg1LOai0vvFFHfDoRIQ== 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_867688_4FF947B0 X-CRM114-Status: GOOD ( 10.26 ) 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, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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: 10843109 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 E7051922 for ; Thu, 7 Mar 2019 15:14:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D049428D59 for ; Thu, 7 Mar 2019 15:14:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4B2E2E2E1; Thu, 7 Mar 2019 15:14:30 +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 7A8B828D59 for ; Thu, 7 Mar 2019 15:14:30 +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=4Gbwr8ZPptEkEdvUq4ZBlWFqJykjmeKHWdFmNbarBHc=; b=ofCXvFRXXkvc8F vTUMqVBl/odQ8FIfF6R1tlLNHghZeCtEsNbVpA7bvoS16rE43vl38FIkizYi5/UknHlFHZqUm9ej+ ff+VRBQl7UGhwgj7+coh/Isss7I6BYjseszlJnV1pH3U1RSl59yT7auNHiXdg653JGvVHHYCvKSbU h2Ls+PHsOnzQMeWvmIBOkkxfqgWjES9wHVT0UeSSQRvesalJpnVEIiUr+WzvVHSi72fjeH9VrYBDa V793b4g6rbMR1JnWcyikogzZ+L5MdCwyTAz0GcsrP6VIeRvzfNYNER0oZE/TpUjSKwyay6aa3ISkT rYH0ipKYbKS8QfZBhamQ==; 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 1h1uj6-0004LV-HZ; Thu, 07 Mar 2019 15:14:28 +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 1h1uiS-0003RA-Ih for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:13:52 +0000 Received: by mail-wr1-x441.google.com with SMTP id l12so1399184wrp.6 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=PDhsrJ9fvcUu18lP3mVDfXFdpYSdvZX3oKJFZbHtTxHh2ONrj5fMUv2vT1GWDBRdSF NX4FMm67mdXPkcXSznYBnTexHLEJtHuGBz1PpEKznaXmLbf9fxC6YXdca/SdEC3FdRWQ ZWOBdB8P7CddRjdHnG3nzsihR1RqjSg/7wl6JNb2UgsHBp33F4NlHVaESDnDoI3GUOGQ P7sqzPFfC/AE5ILv0ERO2uGDZ/wcr7n2vi/FjiDZtW8B4c8jLR2m+9rWuq2Qpj9LyI7G ptK4WyVhSRVbnrZDxuN6xz7SapvDFqLzB1F/AHi74GcIVoB6KjXD9z9QPa8DYIjMEnq1 CReg== X-Gm-Message-State: APjAAAV3/P0Ub6ikfgQgYRAUOUCeunSREdbiwYZKuLFhZhh0BXw0LwcM pVo+YsZbV1dUmLm44ENk4Ti+Gg== 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_612267_97C83762 X-CRM114-Status: GOOD ( 10.67 ) 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, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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: 10843111 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 9754D922 for ; Thu, 7 Mar 2019 15:14:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8152728D59 for ; Thu, 7 Mar 2019 15:14:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 762A42E2E1; Thu, 7 Mar 2019 15:14:35 +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 2478E28D59 for ; Thu, 7 Mar 2019 15:14:35 +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=vlT7m/qTm09nTyixdE9xu5/L4pG9eEPYRikmAm85Syw=; b=VCct8B959L47Xf xjeS5LMsG8S357HgkSmErtBE1dUZqBH4Coaw+98LWQZRnAe9KHawXyl3Kx0WUzVbGN3kz016GF/p5 DwqObvs362QArTBXlld319ex3mN+pyAOlWER2YB8ok2A/ir1j0sC6RO6VUFau6+MqYXgbRkzelXs2 nMSmgtOV9ac0kjEyGHsNcGLvxCRXAOeHg9SJf7PYwvxFnoctnsCfsOpDbr2Bfrh7qDMEe39iJ/LWV YL/pFRxKthKHwuOO4h6iu8jWtWlo86kRY8Aglf9tPEcD+bmEx7gSWOPqD7TNM5FfphX+Q2ype9YZL UcBUtV+86GKWKOyt/yWw==; 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 1h1ujB-0004T9-AG; Thu, 07 Mar 2019 15:14:33 +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 1h1uiT-0003Rp-4G for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:13:52 +0000 Received: by mail-wr1-x442.google.com with SMTP id l12so1399243wrp.6 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=AWBmhMSPT8ofedgk8LVY1UT7Crz5HsKpt9dlK7GWh6ejWfIz/tgL3NTkSka/Xdadfs /898hq0/uc5CdAI6FUejn8SD196NkQPokq1YqpEeTCmszrIICUOt8y5YTYgLjoVlumMF 6EIJXZE+FnE9NwcqqtyQJC65IbNl081uiUByTqUYUrq0pacwBIuMiy7CntEw4CcUlGM+ NQvCJUUvHt9EGSiTneaYuAKPKi7PUVvqLAZ/GzZRFeSIXRymliUj2SE5XJ3y2JAlSN54 0GhvG5ncPyrApWcFz2Tcybu8g7BlHBTsxqG4RSvLk+kTFuvQeixA6XyCKTfCuQ0eVesX jbmg== X-Gm-Message-State: APjAAAWQ4C3MKStNIlkHTsykwrVOzUgCKNo9M3NRhthjfdg91IoK3ocX XZRBsIHJ74xxjW208O0Q5Uv7eg== 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_165116_770E66ED X-CRM114-Status: UNSURE ( 9.03 ) 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: linux-amlogic@lists.infradead.org, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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: 10843129 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 493931669 for ; Thu, 7 Mar 2019 15:15:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3024928D59 for ; Thu, 7 Mar 2019 15:15:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 242302E2DD; Thu, 7 Mar 2019 15:15:42 +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 CA8D728D59 for ; Thu, 7 Mar 2019 15:15: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=pe/JHtenEe8qKeXSTwfxZ09Y5CG4NKGS2DfAB1jwKV8=; b=GZ72h+pAKZl9bZ d/8IUOhVTrauWVCRhs0H7EN7i8ZbXMjc7rhfPnDqVYb6PgKcsGb12BDxeMo6ZaYc/6EKi8g9dxJ+P hUctU2wGW/hgQLm8LkjUyhzTXhKjkA/OmAHcfSyGY10d5QAZYrfJO31YcPhvkEvskodOVpyHmEQHr riXrMF5REqg+DNm9dmH3BNlWbbZM0dsQQGwUiCGB033JxfmDB5FynI5bTbsS9CL/NDFUc0Jhlascw elaVO6cYV/bJheB5nfkEEWz2WNxG0deICx6apMIDGdi9UcsIlM7jkSS+6tzjR3ZFtsStrDMH+NY/j yHOyFFO4HEQj6GU/R47g==; 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 1h1ukG-00073S-3m; Thu, 07 Mar 2019 15:15:40 +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 1h1uiU-0003Sj-4h for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:13:58 +0000 Received: by mail-wr1-x441.google.com with SMTP id n2so17854872wrw.8 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=LHPeYx3weBUm43zuxMFMZBrlSRErqKF2U6TKA7WfPkq31OIlKBfRzfrNvEul7104vT SpAhWs1ehlA7gj8A2em7YpvwfNAqBahJGGLnkj4QZn8UVJki3SLVFOME8hakNxQBR9LQ fvrQjM+8qRRK7LFp2zkk4FztC4pOGp15Ni+rphoGV8PJmh8D0yNpo471fQ1S2YV0xqjN 7tiRllrcMl9o28sdsblmZGhpqnKStZOq9gtRxuGYafwnzIyPh7XSPdj+CY8r2qvEpIRa IL8l1Fxwr4RYI6PhQyr7fZMx/5ZLCZMWoItSX2s1fcjQpxPsYo1kURRWS/TRSCR5TMZf 3Rcw== X-Gm-Message-State: APjAAAWAmeQt/qv4FdNH1HfXCrLyyveuGce0irQZVlkOfFoFEBiOGRUl dsD345LT5mVJSmCHWctxPIpcBw== 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_471547_F8DF14FE X-CRM114-Status: GOOD ( 10.54 ) 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 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: 10843117 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 14C43922 for ; Thu, 7 Mar 2019 15:14:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFC3928D59 for ; Thu, 7 Mar 2019 15:14:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E02802E2E1; Thu, 7 Mar 2019 15:14:48 +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 957D228D59 for ; Thu, 7 Mar 2019 15:14:48 +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=uIb4ysUSUpi7dRwdthZAnxnldoMH9vqJEXaudrxrpbI=; b=Z2TNcNUQFN9ZDf gZIfxJXfyqfpksbMGlA3L8lPb5wedWNuW89WPq7YWzWwHD8O5sawKgfelzqSaMP6wcF0OQLIIcOgh ykP0/Tj2kZMa2ANGDIoP3XJDsniLtArmHKenxXMBUITPSgFCtb/UyKWQXuZJzgALfZx/mFIC2PvPz U6o/GM0jCL8O9R6//qszkukN6N6t578Ws6h2nmdJoHY0PVHSlzK+4PTEFsK/ZxeMf3RKYmpj4Kb8w BcWDhGWlWFJUwqM2g7DuuOKd7GsoVPLQpoD0PB376sQYS9C+tFQP9N+3Do+QDwG0fCRLRFq6vu6dI wGdOI+OksX3lHd/B4Q/w==; 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 1h1ujO-0004kC-MM; Thu, 07 Mar 2019 15:14:46 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiV-0003T3-7N for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:13:57 +0000 Received: by mail-wm1-x341.google.com with SMTP id g20so9518881wmh.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=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=RgqZzCiJrJKXOdMP2kKz/gujPftK0lST6rQklW3a/WQjgrt0lm7VXwY/WbiY8oxRuI i3nWiOOKy4aXS0nSJcB2u0KDDwhXBdqRq5ei9KnlkcOmYCC0pytXP6EawshwGJXpSLiZ usU3nlIp/x7MqwOpwcgkEJXHv4f+BlGPi8J7GTtXqecf4PNZCxDUcbtnFl4jXU2e5OOO 9aCPU9leHi2TP0/tvRokh1R1hTonN6fnItSYz7JfGOvyq3MWGsRHpWBMZIoE9OEfEEaQ esNac4RMMB9R1PCJPLEMePV+sLZPslej/EWi+gtb5n9SNOfpkG+9Jnx6xy+vOw1ddnre j6Zw== X-Gm-Message-State: APjAAAXgyGee5TXvHjF4vzBAGHIWC+wjQKHrjr1buF4rufcNHa6vKi7e YqtMQDxexunEGFRlOpZOzfhEnQ== 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_549390_B026397A X-CRM114-Status: GOOD ( 10.15 ) 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 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: 10843131 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 AD5A41575 for ; Thu, 7 Mar 2019 15:15:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9794628D59 for ; Thu, 7 Mar 2019 15:15:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BEBE2E2DD; Thu, 7 Mar 2019 15:15:43 +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 2A14D28D59 for ; Thu, 7 Mar 2019 15:15:43 +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=pKkOt4qJP/z8Ez7auIqnsEfg7vs5N7gV3+aENuZZM5g=; b=KWSMTVypxk5mw2 jAiZgxA7tVaNzfZmcCOytZQO2uF3TtbOEzkWh+I6jaIXU9eABNGUOnqBgeKiZ5wluNXJb8xm90kFS mt51pQA3HiXqq0dRJoXfoTxKw2QzK45o61npCD5P3E2P6mUGbM+ycfugucKaYnzg4QuCUq4h9hZ3V ZIF929zJb52VxmFggBjrJisHAqMkOBP8tn9FA3ekgz3FDQO5K/+bId6cipnoz/PfCw9cpxdPx3oem PuhlMx8r/3XIHYwqxzXfIjkNc1xU1PiO3riKdXqzbKj4XXWrMgTpSGwVUNcl9PCHYUQPwWfoyEv6f RoAmI1nvXb29eTsskJDw==; 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 1h1ukH-000758-FP; Thu, 07 Mar 2019 15:15:41 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiV-0003U5-H1 for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:14:00 +0000 Received: by mail-wm1-x341.google.com with SMTP id e74so9614993wmg.3 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=L9ZCyhU5ASlqjOjKGTBwJ+x2NQxnuSd3EjECBFGzyCMjWj++U/EoMzDnyTqZ0vWR9l 2affs8QQxthb5qakOikOFhpvNSyfbNx3PRlf/QfgH4fCtcFGUh19dGBrpAV4/9cbPZ/O xNPXz+UWT8DD3DG3HScML1jHFlR+pzganEwPlouu71PFb4cKmmCSZKjg4geVQYcgnVLf Tixq4ieEjYbXjNbrutk5ZKMSjq14zwWnsJ6BRv/ZxBAJC2b3D7FUo7cPGbI62bkJL8Pn dctsnMy/xwUlaoOVai29fMcDhZO0B0ngnbVsMoK+uupQS+mxuF9/qVHLS5sfan6UELlN KUZw== X-Gm-Message-State: APjAAAVzBhBHAD5NaUA7OJbYRNEX61MpxfQGBeUesznaE35kxE/5eHty 6CMnu8aJZ+l2nXGwUebgLjEQ4jhD/UbRaw== 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_071351_886021_FB00A941 X-CRM114-Status: GOOD ( 12.24 ) 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 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: 10843179 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 EBF6D1390 for ; Thu, 7 Mar 2019 15:26:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5D742F372 for ; Thu, 7 Mar 2019 15:26:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C96DF2F396; Thu, 7 Mar 2019 15:26:50 +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 7E1F62F372 for ; Thu, 7 Mar 2019 15:26:50 +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=pHboH1tE3/KjnDYYgp6bTZuoZzihqKcHzK+Gc16dTXk=; b=akvFChqfvxVfef FLskQ9sHPhNMIcdWeIaymul9ENwatIvFikITH+vVp82WBmn5elly8NFLiZYjUhHVBeEQ82rGT7Ec0 LlCC0hfisBfwFG5T5YbC5T/RPYx98SdICRMsZKdapbh0IDIFpns7t1/ExcW/wFoTMiHX2GBBevLFO 8Td7Sc7Hua8e+OhTz4L94YIWRhoRoancJHlsFQqPbJWQB20WFD5OOTzPn3W//5eHR2YV00PiDoqu+ Jo2m36akUHBSHiubRqAbOSRz1WhKkACHPJbuj4bdzptG//eyKyDSX9RuE8X8qV693hdJ1M+gFGSCj qWKEKaHegrNMcJEkD96g==; 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 1h1uv1-0002yD-GW; Thu, 07 Mar 2019 15:26:47 +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 1h1uiW-0003Uk-7o for linux-amlogic@lists.infradead.org; Thu, 07 Mar 2019 15:14:03 +0000 Received: by mail-wm1-x342.google.com with SMTP id e74so9615043wmg.3 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=Ob2H889cEMHCCBTwAam1NvBhDAVUPSOpzPYKN5oAZmutbmNtfKp2pWI09GyoleBcqR EYkuKlSupHqcYzxJcRDUVszsgeZFx209VBaxFnKYaBvvh7DrzT/04Bj11juhJhZpSvVr A9IVyeDoQui+g04I0+4RluYOrNjFPveL2z7Ji7T4BdTCn57v57nci+0WGvLRkaPXTubM YS2xS90ODSfgR9VT0wlcNTFMlh1QQyE5lZxVkEKt22ZGbuiIanS1h6BcnkaU+4b9Bq9u kGu1rABia81buFHwA5VLn2biwHZs6nniLSCrlf7e2UV5Roz5z7swN++FzCInYo+ClCXe JcOg== X-Gm-Message-State: APjAAAVHGbyKptBOAEkg6z0gfev4OGijb8lYppNjV7k+JC3TTjMzYSQl ++8hrs+yY91kpHYuDhGCuGjYtCvJVY7TKg== 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_547042_6DA64F4C X-CRM114-Status: GOOD ( 10.77 ) 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 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 {