From patchwork Sat Sep 23 14:14:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9967569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0C3560353 for ; Sat, 23 Sep 2017 14:17:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B167D2850E for ; Sat, 23 Sep 2017 14:17:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2C9C28438; Sat, 23 Sep 2017 14:17:20 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3486B28438 for ; Sat, 23 Sep 2017 14:17:20 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=wmk7rMWz1kpsxw31KYkzQavMGGAKGxChKZxb5JjtgLM=; b=Fr6NXuM6x8sLti6L9SzxqNtmXH EVe/a45QCUoekr6sTginvOfWyG8qvmP6zDiGjGrsRTRUv/7mH+/nL9BEhPHWcxWnuHQtjsF1m9kzo rADC2d7TPpHKiLSstRwksmXJsWokU3pRpmkKIsIyGtLyEATlKnN7xC7Ae5kBmNPHuB0sXXpiEvu5i 8rgy6dNg5BQwWmGjlH5NJS5cWQNL1Tg2RipbCe1qcDScO5nq0CpKlU7+xuFWHFDKOhGov5QiIOjQ8 YHPYz//tNJFW6ZT7iMZiL9R7YaYHRGm853m1BpBeMsl6IsTjyZ+VV9UKFzlRfaV5A3VQ80kUPhwrx iKsyBf0A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dvlEv-0005YB-KD; Sat, 23 Sep 2017 14:17:05 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dvlCe-0002oF-RK; Sat, 23 Sep 2017 14:14:48 +0000 Received: by mail-wm0-x241.google.com with SMTP id e64so3528561wmi.2; Sat, 23 Sep 2017 07:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UgFgoljYlCt7q3CKH6S1GcFv45UhCatdIYEt51WU9qE=; b=VkjQqsH+FnbtVCU7l4t8jnskfO+g9gz44kb5SiiGwcC90Bc8JZa5ZpjDvwRgg8zPL1 Y0saQ1JmDHxYNvQOjT4G6+M5LBjnOQJj2V9NLF79+XazdhKm6EYDxy1dVYJivV6DhT63 rjuOb4rQLe1YrE7NLgKmTNi1AGM0wFdbFr9OsrkfYOW/K/aRkF/NmNljr7XDCMPeEBgT sZLzGWt7mmVKado9Eu8Ct8wATG62r46XjP1XM7n00wLexeiVMUuaEeIfAOFZqq7XmgSD CiAYZ+JJsR6ZbDnisrh5CVLia4GHLfWMmJEpN9wkeqjkR8V0nhoZbJqFADDWSsUk6xEY /TYA== 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; bh=UgFgoljYlCt7q3CKH6S1GcFv45UhCatdIYEt51WU9qE=; b=VMqupmUQsr1vI3+Xi2EHIojUURLR1+iP/flD65j12eA+ARyGFdkPL2UcNursGWR9IR rdp7Q7Y+YNsTPmnnUtQy/D7pZvFjACJA4XdxQkA4P30yJH/xBTDLPl+yEl7KBwu+dLCQ ygRycZTpOTlEq0kS1dceuz2rx2suy1ZXJiKhRp/u0ADnl1Ug3I8kyMp/zTdqcIAm6PJj JBmhDGn5azeYOr5yvT9BtIP0rsaFSV/yqebfN9zEXBqqJ+f0JemE278tDELfSribY3sZ 94/tjusGgGE5ecbVq79hNZMQktC2ovPMs5Kq94t+hK3Ndn/OtTjqkAzD7u191kPOruaL YJDA== X-Gm-Message-State: AHPjjUhnpRq4GBTxPQuY87nTlwg9ePVjXXYSB1kWRawG7CqQeIZkKG/H /MBBmtiQ2beiF6gR7ec54jhDA+8l X-Google-Smtp-Source: AOwi7QBsuMMVuOZaewzr1f1REYYA9bNBoAfG19gPdeKw3Nq8E38ycjwxG4xmEzemuIAj+mQ6ht3dxA== X-Received: by 10.28.65.8 with SMTP id o8mr6620701wma.146.1506176065029; Sat, 23 Sep 2017 07:14:25 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3F644048154F1156768CB50.dip0.t-ipconnect.de. [2003:dc:d3f6:4404:8154:f115:6768:cb50]) by smtp.googlemail.com with ESMTPSA id t36sm3719702wrc.28.2017.09.23.07.14.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Sep 2017 07:14:24 -0700 (PDT) From: Martin Blumenstingl To: carlo@caione.org, khilman@baylibre.com, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: meson: add SoC information nodes Date: Sat, 23 Sep 2017 16:14:03 +0200 Message-Id: <20170923141403.20882-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170923141403.20882-1-martin.blumenstingl@googlemail.com> References: <20170923141403.20882-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170923_071445_085969_03E573AC X-CRM114-Status: UNSURE ( 8.77 ) 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: mark.rutland@arm.com, Martin Blumenstingl , linux@armlinux.org.uk, narmstrong@baylibre.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The SoC type and version information is encoded in different register blocks. The SoC type information is part of the "assist" registers. The misc version information is part of the "bootrom" registers. On Meson8, Meson8b and Meson8m2 there is additionally information about the minor version. This information is stored in the "analog top" registers. Add the nodes for these register blocks so we can decode the SoC type and version information. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson.dtsi | 10 ++++++++++ arch/arm/boot/dts/meson8.dtsi | 5 +++++ arch/arm/boot/dts/meson8b.dtsi | 5 +++++ 3 files changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index e7edc2d7b75e..ea95c9773eb8 100644 --- a/arch/arm/boot/dts/meson.dtsi +++ b/arch/arm/boot/dts/meson.dtsi @@ -80,6 +80,11 @@ #size-cells = <1>; ranges = <0x0 0xc1100000 0x200000>; + assist: assist@7c00 { + compatible = "amlogic,meson-mx-assist", "syscon"; + reg = <0x7c00 0x200>; + }; + hwrng: rng@8100 { compatible = "amlogic,meson-rng"; reg = <0x8100 0x8>; @@ -261,5 +266,10 @@ #size-cells = <1>; ranges = <0 0xd9000000 0x20000>; }; + + bootrom: bootrom@d9040000 { + compatible = "amlogic,meson-mx-bootrom", "syscon"; + reg = <0xd9040000 0x10000>; + }; }; }; /* end of / */ diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 1db9bbe94337..6c0886633820 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -271,6 +271,11 @@ reg = <0x8000 0x4>, <0x4000 0x460>; }; + analog_top: analog-top@81a8 { + compatible = "amlogic,meson8-analog-top", "syscon"; + reg = <0x81a8 0x14>; + }; + pwm_ef: pwm@86c0 { compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; reg = <0x86c0 0x10>; diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index a31668cda166..d65017ced82e 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -223,6 +223,11 @@ #reset-cells = <1>; }; + analog_top: analog-top@81a8 { + compatible = "amlogic,meson8b-analog-top", "syscon"; + reg = <0x81a8 0x14>; + }; + pwm_ef: pwm@86c0 { compatible = "amlogic,meson8b-pwm"; reg = <0x86c0 0x10>;