From patchwork Fri Dec 15 06:24:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 122047 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp72974qgn; Thu, 14 Dec 2017 22:25:44 -0800 (PST) X-Google-Smtp-Source: ACJfBosUGsM+OsVSZXQZvXivyu+uP4a7n/9hmP4pzhrle+1pkogqDugT1FcJjZXIEs0imsu0etlN X-Received: by 10.101.80.140 with SMTP id r12mr10781934pgp.250.1513319144535; Thu, 14 Dec 2017 22:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513319144; cv=none; d=google.com; s=arc-20160816; b=dAIh1Y3AhQIa2O1zHWZJqjPOcl6sKhJ/o8MvQkqBU0FYlXsl3wJZdxvLPVJpBrQwqs 8mRKOCQMnBgY3nIx5V9rVyVeRTAgiqD13Fq7YIanv80xkqKYJxrRvWVBCqx8wWtTKbdM smjF+H6EpmtgbpcbL0cEGdxYE+ldsI/p7YW6Jz7DCYdDVcseJuz+0Ck9QNhDeYOnpIRH xTPm19CKBMhER4AW/2b958zBAQ70gwHGMCwZFXcUJ3Yr8EdOFZsLvLl9jAhqOzjVg23S Hi7MKtlU/ktXaJ/szNwDDpJY+3yk2sCJU3xVAkIvzzBBWdq852IBOi5Szz53uRyr6gSf 3XIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=CEo12AGTdkWcEt2EgMXU5SaW8BEDcLXaSSV0G0NnFH4=; b=Qj3VG1X0qtAhikX4yrc0BOLdLWRDVC2+k00Rhydv3U8otvs2XRy+8ZleXsr/aTKoIZ F/6YccmQtcIXjV5RvDSJ9qAd4Qh62RSH1i+jIDvL9qcUgnZgd2nbvBgV3TZTcophvPXg yQ+xBaSklwFjRJC7vHnpn6rhhKi9Ovga6av2pB/096UJQf9/uagjkzy1gidbd2wxAxlR UAEjuftrOX3yztm0YOhgzWF9jJVMHGa1iFVA5VZciutryybOPmWHdwqB8KKNvIOhXzLT z2zgodOfPWpdT3Em7F+BmRjgeN5NO3m48OlDi/mcfhf9F1+4V/5Nmay6AP6153SSzLvc 3L1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CdqhhPvQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si4445439plh.705.2017.12.14.22.25.44; Thu, 14 Dec 2017 22:25:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CdqhhPvQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753429AbdLOGZl (ORCPT + 20 others); Fri, 15 Dec 2017 01:25:41 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:41319 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751825AbdLOGZf (ORCPT ); Fri, 15 Dec 2017 01:25:35 -0500 Received: by mail-pf0-f196.google.com with SMTP id j28so5484622pfk.8; Thu, 14 Dec 2017 22:25:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=CEo12AGTdkWcEt2EgMXU5SaW8BEDcLXaSSV0G0NnFH4=; b=CdqhhPvQg+iaNwMcJEXWf24GFlKGGKkCZjtRJKBZqALieYXmRn+ntzQkzH3N9yZjCh TVbXBdx0BKuKZ9uF2ozbwAhpGlWGMzTot76Si3Cy229ScMco+KXJHfe7ezV9aXHh/JUO f2KvLhHs7YoqpXAogQCjVckDyaX64vSZxvK4cHluTLGnxAzClGlf7sUQKBgtRndkF0LG oKsX/zH6HZxoskm67Tjmo4F57yNnDsEz83YTr+LYDIjJmFQI7Xbk9UJwfgJCebjU4kOP fVOBgXfvkbwBObKPKfXPpW4sx2Ms1qALDmtr7KRfVYoSTIejxmFv1A/rePqHcPWz/xF7 B9zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=CEo12AGTdkWcEt2EgMXU5SaW8BEDcLXaSSV0G0NnFH4=; b=nEH8DPJSO0x0RFe3Nzy1hpVTZtSFdz+TBDC5Yi5sewVJvsY0SpQIk44C0vMdVZWiLq lHioDy3ax22V5lpVYI3FugtFBjTnKJ73ev6OLoH3hYs3F9Uh+LwvMfeANn34PuHnuPGk zE3xw3BlbmdUf6S9wvumKCIK3aHCYEKW3qW2KBectvJdgWwrg02C8qw8PwXQR8prdFzn YVUECUshP/cbP02PxrH23Q8y/llVBse85eEfMWMfluqMhJ0IvFTMFvcFgp8pz3XD0AHK 04QgB/88JF67YTvgtSTH600+7/zpmirpFyx6rcjAu2CAhw0XxG71dPd57aIkIYpJvSJH 2gyg== X-Gm-Message-State: AKGB3mKUPPQMluuM650S4iPcL7f5w78EFtlcLfrOrJTDmTlpQY+1jKgr KlN+Z3e8X48/qdWBACsaI6A= X-Received: by 10.99.124.9 with SMTP id x9mr10921706pgc.68.1513319135147; Thu, 14 Dec 2017 22:25:35 -0800 (PST) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id h192sm10498157pfc.139.2017.12.14.22.25.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Dec 2017 22:25:33 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Fri, 15 Dec 2017 16:55:25 +1030 From: Joel Stanley To: Rob Herring , Mark Rutland , Arnd Bergmann , Andrew Jeffery , Patrick Venture , Xo Wang , Lei YU Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Benjamin Herrenschmidt , Jeremy Kerr , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-aspeed@lists.ozlabs.org Subject: [PATCH v2 03/19] ARM: dts: aspeed: Add LPC and child devices Date: Fri, 15 Dec 2017 16:54:27 +1030 Message-Id: <20171215062443.23059-4-joel@jms.id.au> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171215062443.23059-1-joel@jms.id.au> References: <20171215062443.23059-1-joel@jms.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Jeffery Ensure the ordering is correct and add all of the children in the SoC device trees for the ast2400 and ast2500. Signed-off-by: Andrew Jeffery Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g4.dtsi | 35 +++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/aspeed-g5.dtsi | 27 +++++++++++++++++---------- 2 files changed, 52 insertions(+), 10 deletions(-) -- 2.14.1 Reviewed-by: Cédric Le Goater diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index 100d092e6c07..a3bc5da7d42c 100644 --- a/arch/arm/boot/dts/aspeed-g4.dtsi +++ b/arch/arm/boot/dts/aspeed-g4.dtsi @@ -226,6 +226,41 @@ status = "disabled"; }; + lpc: lpc@1e789000 { + compatible = "aspeed,ast2400-lpc", "simple-mfd"; + reg = <0x1e789000 0x1000>; + + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x1e789000 0x1000>; + + lpc_bmc: lpc-bmc@0 { + compatible = "aspeed,ast2400-lpc-bmc"; + reg = <0x0 0x80>; + }; + + lpc_host: lpc-host@80 { + compatible = "aspeed,ast2400-lpc-host", "simple-mfd", "syscon"; + reg = <0x80 0x1e0>; + reg-io-width = <4>; + + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x80 0x1e0>; + + lpc_ctrl: lpc-ctrl@0 { + compatible = "aspeed,ast2400-lpc-ctrl"; + reg = <0x0 0x80>; + status = "disabled"; + }; + + lhc: lhc@20 { + compatible = "aspeed,ast2500-lhc"; + reg = <0x20 0x24 0x48 0x8>; + }; + }; + }; + uart2: serial@1e78d000 { compatible = "ns16550a"; reg = <0x1e78d000 0x20>; diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 1f9d28313f82..7861631940fe 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -266,6 +266,16 @@ status = "disabled"; }; + vuart: serial@1e787000 { + compatible = "aspeed,ast2500-vuart"; + reg = <0x1e787000 0x40>; + reg-shift = <2>; + interrupts = <10>; + clocks = <&clk_uart>; + no-loopback-test; + status = "disabled"; + }; + lpc: lpc@1e789000 { compatible = "aspeed,ast2500-lpc", "simple-mfd"; reg = <0x1e789000 0x1000>; @@ -289,6 +299,13 @@ reg-io-width = <4>; + lpc_ctrl: lpc-ctrl@0 { + compatible = "aspeed,ast2500-lpc-ctrl"; + reg = <0x0 0x80>; + status = "disabled"; + }; + + lhc: lhc@20 { compatible = "aspeed,ast2500-lhc"; reg = <0x20 0x24 0x48 0x8>; @@ -296,16 +313,6 @@ }; }; - vuart: serial@1e787000 { - compatible = "aspeed,ast2500-vuart"; - reg = <0x1e787000 0x40>; - reg-shift = <2>; - interrupts = <10>; - clocks = <&clk_uart>; - no-loopback-test; - status = "disabled"; - }; - uart2: serial@1e78d000 { compatible = "ns16550a"; reg = <0x1e78d000 0x20>;