From patchwork Mon Feb 12 07:43:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10211931 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 EC71760153 for ; Mon, 12 Feb 2018 07:47:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE82E28BBB for ; Mon, 12 Feb 2018 07:47:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D31B528C02; Mon, 12 Feb 2018 07:47:06 +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_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CFD5528BBB for ; Mon, 12 Feb 2018 07:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=ZEbMx11I7145N8CtlDP0DF6YOG4Sj6K1HXx96I/KdAs=; b=FutKXdnQDvtbyi7YVliq88Ppxv 7wy1RxSJxuKwMBKkoy338ns3Ef6eZlNHjRqEa+bnpuRvOEdPuFIMXEwpKXrg2hGU94RmW5Z0XTat8 oy1cTZNzL/T/L8aSg3t1iYt625ZImDO6FMA3zlQITxyyOUlUHCSQO+Ym4AQ/zxBD+mvR8mUmvG3YK zk7IW3J4ON0IEkyY7puh0zL/j12ImZ/mvvJl4jqJiARQfxrNLhWzDlAoadogWvSez8JTmBzq4B1xp WW5A21syRVfJZRBMVd0AfYs9Ah4SY6UepBq4QUix1Lhs5+6NrAFuElXiqiyv99l8Gt3MQewkhbmLg kgifzqnw==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1el8pD-0000V3-0G for patchwork-linux-arm@patchwork.kernel.org; Mon, 12 Feb 2018 07:46:55 +0000 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=ZEbMx11I7145N8CtlDP0DF6YOG4Sj6K1HXx96I/KdAs=; b=k0bRsn8brxgsMRg1kn51bmtFkZ fLEKDXsw6b4JT4Ww4vGGR/htSzD0nefYj5ExTPmJbaYXf+/YK1FMi1IUULdxTpS18kd0GKsMDTz9D fkpGI2t8XXi8johX1ybTGg/7KLW3/AeD90elKu5Rqu9EqiXyxc24Bk1eF2QF7Pd8g7kZEvgmkj0jL XMtUivSTgBDgYKwDyVUWOmJxMAY38lEBPf+4Jo5eT3Glk64zCysmgq1CAWtbu3ksnYIgW5nhifnke dMR2xNV0xjwkxCDG9RXtfCgs8tEEFMmw2ri7j6I0g5pHR4D8bFKtVGDvj7L+V6yDnBqjUxZ7awPRq rtAlqUtQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1el8p1-0008If-8G; Mon, 12 Feb 2018 07:46:43 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1el8mw-0003cn-Bj for linux-arm-kernel@lists.infradead.org; Mon, 12 Feb 2018 07:44:35 +0000 Received: by mail-pl0-x241.google.com with SMTP id x2so677786plr.13 for ; Sun, 11 Feb 2018 23:44:24 -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=9UuKfRjeOjtUY7cN8Qki54BL6W8vdMuo1d8nu+001yM=; b=nSOpT7XkGVQFXc6bOu2GrY5xL1kgyfbAkbDVcU8YJm0bMOpZWfTFoEQYr8xcNzRcg6 5ig1BT7Y87ws08rOAues73P6NP8JiCv/jd6Z+YRh6VEjY1PnxjpXaRsyJf9mJHHHPRRg AnYJfbC3BjbEj5pe423R4SZpl9Ap+gFL89fGafFN6SUnJv6Xu2NtJlEGpxH20sfNr16c yvGY0z19ygECssZdjz+f7y8F8ZLlgZjPSx8frewN7fICuxJNF8gQZ7rPJg+L0TxnchfJ umykabyn5koDW/vmfqHr4kvXsoT+QhARGa+x0zUDpEjWebHvTzuQdJ78gaDJCOTvqMQ7 DR4w== 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=9UuKfRjeOjtUY7cN8Qki54BL6W8vdMuo1d8nu+001yM=; b=eABgEj62GFK3cdvxJ2Bs3q8AB7/m7Nf9UoweYThoNPq16NIh12bfTEoatYEyPBFsxa lTdQ4InMnDEl8KLNhCtqG+G6gCXLfIOOLu934A78AzaHCjI/1zQVvW/V5uo8wSm+TMWy ScoL/Z8G2DM2VyxHeVztHM7I3FpJuiZrNShcNh+61jYZRxgDQWgTVan4Mv/85wvavzV3 B8aTgNDW30mWoNnh8rz6hNv45fn1MWIpRWANpAPM+Sjt+AufClQW0Cytl1T0LVlDgiVf lUqzTZa3x2Rg9dyyx0R9eUbdbJQGdT3gNGBtpoReaFZwy+e55T+8gf5FTvM008wyltV4 BD4w== X-Gm-Message-State: APf1xPC8LR0HlzahYCIZ01Uvhl4THrY1tY0vPmLGA/s5NIq1UQLepWJv BuxjfTLhuRrlDkjkgaVSvhs= X-Google-Smtp-Source: AH8x2247DPN3gyXOAH5VnLLA9+wmdGWftBnWSJk6icSyUdHWB/RzI9CFuXzqPGMO9aOA91EtUlJtTg== X-Received: by 2002:a17:902:6d09:: with SMTP id s9-v6mr10066322plk.176.1518421462945; Sun, 11 Feb 2018 23:44:22 -0800 (PST) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id r14sm22562029pfa.136.2018.02.11.23.44.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Feb 2018 23:44:22 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Mon, 12 Feb 2018 18:14:15 +1030 From: Joel Stanley To: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Joel Stanley Subject: [PATCH 6/6] ARM: dts: aspeed: Add Palmetto GPIO hogs Date: Mon, 12 Feb 2018 18:13:25 +1030 Message-Id: <20180212074325.23436-7-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180212074325.23436-1-joel@jms.id.au> References: <20180212074325.23436-1-joel@jms.id.au> 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: Andrew Jeffery , Benjamin Herrenschmidt , Lei YU , Jeremy Kerr MIME-Version: 1.0 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 These hogs are for parts of the system that need to be in this state, but do not yet have a driver associated with them but they must be configured in order to successfully boot the host. There are also some pinmux hogs, where the default mode of the IP block is configured. Signed-off-by: Joel Stanley Acked-by: Andrew Jeffery --- arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 157 ++++++++++++++++++++++++++ 1 file changed, 157 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts index 2a4a355a779d..bbddfe1d1cc8 100644 --- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts +++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts @@ -74,6 +74,14 @@ }; }; +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flbusy_default &pinctrl_flwp_default + + &pinctrl_vgahs_default &pinctrl_vgavs_default + &pinctrl_ddcclk_default &pinctrl_ddcdat_default>; +}; + &uart5 { status = "okay"; }; @@ -142,3 +150,152 @@ &ibt { status = "okay"; }; + +&gpio { + pin_func_mode0 { + gpio-hog; + gpios = ; + output-low; + line-name = "func_mode0"; + }; + + pin_func_mode1 { + gpio-hog; + gpios = ; + output-low; + line-name = "func_mode1"; + }; + + pin_func_mode2 { + gpio-hog; + gpios = ; + output-low; + line-name = "func_mode2"; + }; + + pin_gpio_a0 { + gpio-hog; + gpios = ; + input; + line-name = "BMC_FAN_RESERVED_N"; + }; + + pin_gpio_a1 { + gpio-hog; + gpios = ; + output-high; + line-name = "APSS_WDT_N"; + }; + + pin_gpio_b1 { + gpio-hog; + gpios = ; + output-high; + line-name = "APSS_BOOT_MODE"; + }; + + pin_gpio_b2 { + gpio-hog; + gpios = ; + output-high; + line-name = "APSS_RESET_N"; + }; + + pin_gpio_b7 { + gpio-hog; + gpios = ; + output-high; + line-name = "SPIVID_STBY_RESET_N"; + }; + + pin_gpio_d1 { + gpio-hog; + gpios = ; + output-high; + line-name = "BMC_POWER_UP"; + }; + + pin_gpio_f1 { + gpio-hog; + gpios = ; + input; + line-name = "BMC_BATTERY_TEST"; + }; + + pin_gpio_f4 { + gpio-hog; + gpios = ; + input; + line-name = "AST_HW_FAULT_N"; + }; + + pin_gpio_f5 { + gpio-hog; + gpios = ; + input; + line-name = "AST_SYS_FAULT_N"; + }; + + pin_gpio_f7 { + gpio-hog; + gpios = ; + output-high; + line-name = "BMC_FULL_SPEED_N"; + }; + + pin_gpio_g3 { + gpio-hog; + gpios = ; + output-high; + line-name = "BMC_FAN_ERROR_N"; + }; + + pin_gpio_g4 { + gpio-hog; + gpios = ; + input; + line-name = "BMC_WDT_RST1_P"; + }; + + pin_gpio_g5 { + gpio-hog; + gpios = ; + input; + line-name = "BMC_WDT_RST2_P"; + }; + + pin_gpio_h0 { + gpio-hog; + gpios = ; + input; + line-name = "PE_SLOT_TEST_EN_N"; + }; + + pin_gpio_h1 { + gpio-hog; + gpios = ; + input; + line-name = "BMC_RTCRST_N"; + }; + + pin_gpio_h2 { + gpio-hog; + gpios = ; + output-high; + line-name = "SYS_PWROK_BMC"; + }; + + pin_gpio_h6 { + gpio-hog; + gpios = ; + output-high; + line-name = "SCM1_FSI0_DATA_EN"; + }; + + pin_gpio_h7 { + gpio-hog; + gpios = ; + output-high; + line-name = "BMC_TPM_INT_N"; + }; +};