From patchwork Fri Feb 8 10:14:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10802653 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 2019E14E1 for ; Fri, 8 Feb 2019 10:14:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0ED0726253 for ; Fri, 8 Feb 2019 10:14:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 025FD28462; Fri, 8 Feb 2019 10: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 A3E3626253 for ; Fri, 8 Feb 2019 10: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=WR/KxeDve9ACpfoCF+A6/FD0JKk9jMAzHp/2B0ILFeU=; b=bGShs1zhb6SYC3 Rphzwj7qV29xdI87wvdIQBrvP7qmQyFdUUXcDZauHSTpKrQHTQsYAZpneolWzfboDi7Bsj+DYdM4y E0LolvZNAIAiTh11i/W59CKjq2f5OHXI4XLx+oeRzo1z4jID1lQkMJabH/JWfo+hW6o6xsveNxRrk D+XaZjxg3l2nNxGGUNhkYOAq/A9uMz2YVlUp3gYQACiIANT9KcYjXL0Qx+HgF4987rge6RUeQ5HiW DGPO0Bo8BG3QNWO9PiSZOBFnXJvkQm8eBRRXwlIVhYEh1U9HmGG0JXpvXkLqPUBETIu0+p8YDL5n8 hvDrXfhayuNLuXJ/qCcQ==; 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 1gs3B8-000642-BR; Fri, 08 Feb 2019 10:14:38 +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 1gs3An-0005jQ-6l for linux-arm-kernel@lists.infradead.org; Fri, 08 Feb 2019 10:14:19 +0000 Received: by mail-wr1-x441.google.com with SMTP id z3so2955601wrv.3 for ; Fri, 08 Feb 2019 02:14:17 -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=eO3Voe2p456qMJUTmSfjfToLuBGLaNZbZuGLhlQmyS4=; b=0hQRI5ml79BHdo7QVJjEatDn9SdBBjSKQ830hTYMW02cSPmFhpf/6HfDjs3UJR1efv /W7A9VjraD0t7gMbW4JHzWIU8h64LyJRPHtYqSNOjFLSl/OZiY6EGDfbnVJ+oNIzIjYB U5ECkC0mIK0/jzS7EjH4jn2Un9gs7m/HwJZW0AzfFlU9JfCbY7pn1J1uX6BdM3RwCMxa pX5p1Gz4pG1GX+kEfR951JqalAmMI/qE8njq/c7Zz2u982iKnELdvUd6sxaVkTI7bcX2 XIYkNyPXVTRHbd0u8o4y3iV2/wCMHLtXKfVx4CVqtqmn55bNT9xVBnKSI874rI16kUzS H7xQ== 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=eO3Voe2p456qMJUTmSfjfToLuBGLaNZbZuGLhlQmyS4=; b=FyV07Yb9q/LEQoRDD0gT9Y76bOPu2tTVGg26e1IRxszacPGcSgi0o2F/Lems6L35+R FypIkadqU1EKOhXgQsiKRIwE17xlwHYZcxrCCDEuDcO0b1vzaAxegawLwYLGCex39fTb h/h6RW0azOfiftccLW1Rbj1vReZfgmYKcwJ+kg0NaBBEw7MRkNB0ccPtshAUEvqB5/dw PpdOIPoD6HHQ8fepXfUzkvWPrPqfZTTornF/LaNCZZ/xjuNKA/GXiSbp9wX0sG0omPrd 5iv4xEbHFk8OqPvHqbwdj4pL0wx7hCRMZPGNgeY7KiZcQpeyaWd4acT/KXzRRgXcdr5C M4aw== X-Gm-Message-State: AHQUAuYk+J+rcJXakkikbJDJ+7aza5zhFxCM+zFu0+HZ4yHLafJE1w7Z 4YOSZGDkFy8SliYaQRfP4ytUWVSvYxs= X-Google-Smtp-Source: AHgI3IYIaI8KHjDTHR5aZF/KcgqtLXoJxT3GFY0QhRtgChxkud4EHMSRI6sHmIX8/tV5dU097KLqxQ== X-Received: by 2002:adf:84e4:: with SMTP id 91mr15789126wrg.237.1549620855682; Fri, 08 Feb 2019 02:14:15 -0800 (PST) Received: from boomer.baylibre.com ([2a01:e35:2e9a:6060:2ed3:c463:803b:b085]) by smtp.googlemail.com with ESMTPSA id a62sm1901634wmf.47.2019.02.08.02.14.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 02:14:15 -0800 (PST) From: Jerome Brunet To: Kevin Hilman Subject: [PATCH 1/2] arm64: meson: enable g12a clock controller Date: Fri, 8 Feb 2019 11:14:04 +0100 Message-Id: <20190208101405.25699-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190208101405.25699-1-jbrunet@baylibre.com> References: <20190208101405.25699-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190208_021417_240544_5B1B26E7 X-CRM114-Status: GOOD ( 10.97 ) 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: devicetree@vger.kernel.org, Neil Armstrong , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.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 Enable the g12a clock controller for ARCH_MESON Signed-off-by: Jerome Brunet --- arch/arm64/Kconfig.platforms | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 819e74ae9224..d0e0bd4af05d 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -114,9 +114,11 @@ config ARCH_MESON select PINCTRL_MESON select COMMON_CLK_GXBB select COMMON_CLK_AXG + select COMMON_CLK_G12A select MESON_IRQ_GPIO help - This enables support for the Amlogic S905 SoCs. + This enables support for the arm64 based Amlogic SoCs + such as the s905, S905X/D, S912, A113X/D or S905X/D2 config ARCH_MVEBU bool "Marvell EBU SoC Family" From patchwork Fri Feb 8 10:14:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10802657 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 CE8311390 for ; Fri, 8 Feb 2019 10:15:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B904228462 for ; Fri, 8 Feb 2019 10:15:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9DD92CD29; Fri, 8 Feb 2019 10:15: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=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 1714628462 for ; Fri, 8 Feb 2019 10:15: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=lvno8z04vVYFYDGoHGd6u+CWmeJn14S1OMKmLFD4lnA=; b=Pwnt16L7pCrHEL fzCl/jn1wSqcjFF5Woz/Ct5qmUmQrOOtK2w25Mn920R/hYJkOE5OMS22z3taaZTxwx9NzgW9up+mf 55BnARHLaQsQtDh21MZUXnVBOiFBoOr5rXZpe5zzcUtn3UQUjGhpwtmlySK67RcSDolki0lzStisR v2thulb+WTj4nJCBGakz0E1RgBQK/gcwHh6XBKwb+ZcLTMLbWCJObWuLcwXgJS2nlcsE4EqxEcriy pjmCxf4sxngPW1p57b3+RCqFuz6VJGkebtzEPt3uGpsK6oMlx1g4yhyvNVwGtuS466Egpn5KD+1zz insB8hp9oOJh8Jn7klBw==; 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 1gs3BT-0006OI-Kc; Fri, 08 Feb 2019 10:14:59 +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 1gs3Ao-0005jq-Vu for linux-arm-kernel@lists.infradead.org; Fri, 08 Feb 2019 10:14:20 +0000 Received: by mail-wm1-x341.google.com with SMTP id f16so2773794wmh.4 for ; Fri, 08 Feb 2019 02:14:18 -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=BRXDa+0TVxZcYoEC45CBTpx7rG6dgcS0Dc6O77EV4hs=; b=kiIAwiTqinORRZqbH7rVzo72b8E9f7tv8pZtF5tGQwUsd7Gijie4pObU2AcxROrqGE ah92UYjSBCvCLCkMCRk2pyWnIF2j/UPQXrVIo5qKlmJ1OOIzJNrVP9DVEX3khfojqWOh WqCoxR/OalA32yXCo0MB15dZ0sAID+kKoiHVI+QPoRiEQNWTQdURZ0bN0UjRoIyR5sjP +nSRRqR9RBa7PP1NBYMkheF7/DuIHATa9yEVHCa8+2AdM29qKF3xWjv+QibzF0aWu275 YW/v96Td7G81c/eHQuxSHeQBSUgfQYY43/EQWrVRRI0/UIRN7Y7RZ7237tX6XARSl8vJ R7LQ== 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=BRXDa+0TVxZcYoEC45CBTpx7rG6dgcS0Dc6O77EV4hs=; b=uCMmGCMWx1SMx5J5biG4oR2BBUgbqzwjXahazz5uefofOhq3UWR9C8dLg8sWdwl4U3 3z+3KbMVWa3eG3/NaJ7/wife75osBid7fA+yunghLXCY041rJF2EkwL36eW29lo4tfR2 BrcngnfZsDIvvAndwrMS1tswW3Fz2erKMzBRmytutaEyKfQ/tQGiKEq30lFLDJKVhgra SzRg04veCz8VMg/TMpVCsEVlzgeIPpmNGBFKYITuAem2beLJwQwNxKlLl5Ui35X1q9gr brze03ijsC0lpJgqoUT6dG+KaKBU3X4PPDVjC3pj8WC5e2N8Et8pUXfcTa16D5xJtSuy 9cuQ== X-Gm-Message-State: AHQUAuZOiMVUjxYJ0XuUhmMGUuvLDzF96+lsMgpz7C+CX5dZXIhak86Z 7vVx/AFqjHC4E4ME5YFoCXeHyw== X-Google-Smtp-Source: AHgI3IaDcp0Kd3lbpFEdo8o04UwImuCBn8esuyWNfU5kXFZuDRopItxxaBfWAXrGzLFLj5E4UjFe0w== X-Received: by 2002:a1c:c282:: with SMTP id s124mr10748554wmf.105.1549620857288; Fri, 08 Feb 2019 02:14:17 -0800 (PST) Received: from boomer.baylibre.com ([2a01:e35:2e9a:6060:2ed3:c463:803b:b085]) by smtp.googlemail.com with ESMTPSA id a62sm1901634wmf.47.2019.02.08.02.14.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 02:14:16 -0800 (PST) From: Jerome Brunet To: Kevin Hilman Subject: [PATCH 2/2] arm64: dts: meson: g12a: add peripheral clock controller Date: Fri, 8 Feb 2019 11:14:05 +0100 Message-Id: <20190208101405.25699-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190208101405.25699-1-jbrunet@baylibre.com> References: <20190208101405.25699-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190208_021419_022324_AAC8E34A X-CRM114-Status: GOOD ( 10.45 ) 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: devicetree@vger.kernel.org, Neil Armstrong , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.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 Add the peripheral clock controller to the g12a SoC DT Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 05ea750b8c16..701a02244e04 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -121,6 +121,19 @@ #address-cells = <2>; #size-cells = <2>; ranges = <0x0 0x0 0x0 0x3c000 0x0 0x1400>; + + hhi: system-controller@0 { + compatible = "amlogic,meson-gx-hhi-sysctrl", + "simple-mfd", "syscon"; + reg = <0 0 0 0x400>; + + clkc: clock-controller { + compatible = "amlogic,g12a-clkc"; + #clock-cells = <1>; + clocks = <&xtal>; + clock-names = "xtal"; + }; + }; }; };