Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp115517imm; Tue, 10 Jul 2018 22:34:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdz11Qm6ExfniT62yS7M60Q6IqosdHVnoAwoGgQtc1q24xXJqj3blpW8g7rSnp+hdgqx2/q X-Received: by 2002:a62:90d4:: with SMTP id q81-v6mr28889477pfk.37.1531287240156; Tue, 10 Jul 2018 22:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531287240; cv=none; d=google.com; s=arc-20160816; b=ITdCPBP69GiE0eyiadHerIvGEC1IeHGpbDCU6C/y8WCtzdOHG0w0YntslAGXfyq9fm p7M4kj5DYPO2Ev9xmawWJ+FCxk//fFz4QZFltrFXZldcNR/9YkGwpSxPMwwIpuR7tEjW ieCBTuRejMpnhn++FzCngkf0r0Ns+ZFwlUjzkV+Mw1z2kedtu9riV6xUBXgsXTdgH2Sr Mqh33rEIkDMu5q4Ctj+wDIfIGScGanIqIjA2YnXjTnNlj7oHmH0lRgnmOEr8XWC1CpXy x2Br5YSlii/Dzc5joJmwBRnm6e36FTX7u33zp7jSkDmAnQjiJG1q4Fb77vB4/uMlS1Fp k5DQ== 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:dkim-signature :arc-authentication-results; bh=Dj6mBVhsBrF8XIKB1bidTmvR6Il8SyosUL7k//Sd068=; b=X9apFGca0cUhr7wKt05j67vr8NN8Xnrp3ZI39+b72bZXnkLf7Km0Bla6iIa4YUBUGR OOQQYttt1LiKmm4N2zID9Jm/thWJo3O9O1cKfRwWekyggv5E7lbBB4QP7heH3T9YttNh s/uyfOYXO3Q/rQ8Ui3UyEBOJNZoU+4n9IUmig+0NdJPdtJaYMPMoTvd1IWywqSiCxuGB ZHKmyW73uruCglMBtI6jeJYngPTtS/jex77xyBpHrfB1PcAfu3H+KXHurxfP0Z3T5009 CJ8FeOJXulD6ZVEDve3AP6gr5Pi/6IJ2PwLDHXBetXBIip6j/YWvVdFRE3j5ty2kO3fF ULtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=QEoXolVQ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=kCfSmbw7; 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 e32-v6si18257524pgb.0.2018.07.10.22.33.45; Tue, 10 Jul 2018 22:34:00 -0700 (PDT) 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=pass header.i=@aj.id.au header.s=fm3 header.b=QEoXolVQ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=kCfSmbw7; 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 S1726536AbeGKFfD (ORCPT + 99 others); Wed, 11 Jul 2018 01:35:03 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43569 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726499AbeGKFfC (ORCPT ); Wed, 11 Jul 2018 01:35:02 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EEEA920D92; Wed, 11 Jul 2018 01:32:30 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 11 Jul 2018 01:32:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Dj6mBVhsBrF8XIKB1 bidTmvR6Il8SyosUL7k//Sd068=; b=QEoXolVQpWfCsj8eBUPuYORmlybWZhLkj Kx77M+HrvqGtqtUb2suua3Fb+R28D32yLLXflWxLKrnyigduASM0mrCWOmBZoXag aqEufUXVltNXT7bAxGH+tkCfj0d+8Q4zUUgRptKZJeqEySWdXHLpytbTNtEzQPXH n/T30hkjkRBCmQAcoxZpZi1UQvVFCUbLYEUEHv2mzO5nymAWAEXTSEb3MJZI8Fuz KuDeIzoNOb3UmPUsE4AXbM3DZxD/EuRp2btLBAai5MIc3lNBBY34xhqNSn+RZySK ulohk9yYOB+ld0AK0UeZ8XxQj0sD5W8p5wHo/TAVvgkkjdh7I8f4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=Dj6mBVhsBrF8XIKB1bidTmvR6Il8SyosUL7k//Sd068=; b=kCfSmbw7 eblAAubM2qyMMq5tNInjJUo+GqxeYF2QYIHQaHdU7TdVyPx7v147YYeuiqGOlIP3 YxllaYg03NACDZ6TOvNwXpOClOzPhcyzu5cevwVPFBmN5e1pRVYNzudhRZtAZ0a3 6gkqtVMAk6YJWXw0wTmVGRchPVd6PB++9oVyupTY3Sy86DFZJgzQa2G2kzDjPSO3 FyEUSAusLDTKisTau5zbUzFqQ4nGP5ROB4dJhLKed4LSoQAr8F5PgExzejM3auXt O42PYNIx0KZkGrKOpeBrE1FfXdZy/yrH+M4o089SoJmYrjNP6lGx7raZTCQiOtDW rLnrRX7HdygoVA== X-ME-Proxy: X-ME-Sender: Received: from localhost.localdomain (ppp118-210-173-37.bras2.adl6.internode.on.net [118.210.173.37]) by mail.messagingengine.com (Postfix) with ESMTPA id 72C7CE473B; Wed, 11 Jul 2018 01:32:26 -0400 (EDT) From: Andrew Jeffery To: linux-kernel@vger.kernel.org Cc: Andrew Jeffery , robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, gregkh@linuxfoundation.org, Eugene.Cho@dell.com, a.amelkin@yadro.com, stewart@linux.ibm.com, benh@kernel.crashing.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v2 4/4] dts: aspeed-g5: Describe VGA, SIO scratch and DAC mux fields Date: Wed, 11 Jul 2018 15:01:22 +0930 Message-Id: <20180711053122.30773-5-andrew@aj.id.au> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180711053122.30773-1-andrew@aj.id.au> References: <20180711053122.30773-1-andrew@aj.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The AST2500 has VGA scratch registers that are read-only, SuperIO scratch registers that are a mix of read-only and read-write, and a graphics DAC mux that must be read or configured in the process of booting e.g. an OpenPOWER system. These capabilities do not really have a place in other drivers, so expose them as fields via bmc-misc-ctrl. Signed-off-by: Andrew Jeffery --- Since RFC v1: * Rework labels to what is documented in the bindings * Fix an incorrect offset property arch/arm/boot/dts/aspeed-g5.dtsi | 192 +++++++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 17f2714d18a7..c484ac637328 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -187,6 +187,77 @@ aspeed,external-nodes = <&gfx &lhc>; }; + + field@2c.16 { + compatible = "bmc-misc-ctrl"; + offset = <0x2c>; + mask = <0x00030000>; + label = "dac-mux"; + }; + + field@50.0 { + compatible = "bmc-misc-ctrl"; + offset = <0x50>; + mask = <0xffffffff>; + label = "vga0"; + read-only; + }; + + field@54.0 { + compatible = "bmc-misc-ctrl"; + offset = <0x54>; + mask = <0xffffffff>; + label = "vga1"; + read-only; + }; + + field@58.0 { + compatible = "bmc-misc-ctrl"; + offset = <0x58>; + mask = <0xffffffff>; + label = "vga2"; + read-only; + }; + + field@5c.0 { + compatible = "bmc-misc-ctrl"; + offset = <0x5c>; + mask = <0xffffffff>; + label = "vga3"; + read-only; + }; + + field@60.0 { + compatible = "bmc-misc-ctrl"; + offset = <0x60>; + mask = <0xffffffff>; + label = "vga4"; + read-only; + }; + + field@64.0 { + compatible = "bmc-misc-ctrl"; + offset = <0x64>; + mask = <0xffffffff>; + label = "vga5"; + read-only; + }; + + field@68.0 { + compatible = "bmc-misc-ctrl"; + offset = <0x68>; + mask = <0xffffffff>; + label = "vga6"; + read-only; + }; + + field@6c.0 { + compatible = "bmc-misc-ctrl"; + offset = <0x6c>; + mask = <0xffffffff>; + label = "vga7"; + read-only; + }; }; rng: hwrng@1e6e2078 { @@ -343,6 +414,127 @@ #reset-cells = <1>; }; + field@f0.24 { + compatible = "bmc-misc-ctrl"; + offset = <0xf0>; + mask = <0xff000000>; + label = "sio2b"; + }; + + field@f0.16 { + compatible = "bmc-misc-ctrl"; + offset = <0xf0>; + mask = <0x00ff0000>; + label = "sio2a"; + }; + + field@f0.8 { + compatible = "bmc-misc-ctrl"; + offset = <0xf0>; + mask = <0x0000ff00>; + bit-shift = <8>; + label = "sio29"; + }; + + field@f0.0 { + compatible = "bmc-misc-ctrl"; + offset = <0xf0>; + mask = <0x000000ff>; + label = "sio28"; + }; + + field@f4.24 { + compatible = "bmc-misc-ctrl"; + offset = <0xf4>; + mask = <0xff000000>; + label = "sio2f"; + }; + + field@f4.16 { + compatible = "bmc-misc-ctrl"; + offset = <0xf4>; + mask = <0x00ff0000>; + label = "sio2e"; + }; + + field@f4.8 { + compatible = "bmc-misc-ctrl"; + offset = <0xf4>; + mask = <0x0000ff00>; + label = "sio2d"; + }; + + field@f4.0 { + compatible = "bmc-misc-ctrl"; + offset = <0xf4>; + mask = <0x000000ff>; + label = "sio2c"; + }; + + field@f8.24 { + compatible = "bmc-misc-ctrl"; + offset = <0xf8>; + mask = <0xff000000>; + read-only; + label = "sio23"; + }; + + field@f8.16 { + compatible = "bmc-misc-ctrl"; + offset = <0xf8>; + mask = <0x00ff0000>; + read-only; + label = "sio22"; + }; + + field@f8.8 { + compatible = "bmc-misc-ctrl"; + offset = <0xf8>; + mask = <0x0000ff00>; + read-only; + label = "sio21"; + }; + + field@f8.0 { + compatible = "bmc-misc-ctrl"; + offset = <0xf8>; + mask = <0x000000ff>; + read-only; + label = "sio20"; + }; + + field@fc.24 { + compatible = "bmc-misc-ctrl"; + offset = <0xfc>; + mask = <0xff000000>; + read-only; + label = "sio27"; + }; + + field@fc.16 { + compatible = "bmc-misc-ctrl"; + offset = <0xfc>; + mask = <0x00ff0000>; + read-only; + label = "sio26"; + }; + + field@fc.8 { + compatible = "bmc-misc-ctrl"; + offset = <0xfc>; + mask = <0x0000ff00>; + read-only; + label = "sio25"; + }; + + field@fc.0 { + compatible = "bmc-misc-ctrl"; + offset = <0xfc>; + mask = <0x000000ff>; + read-only; + label = "sio24"; + }; + ibt: ibt@c0 { compatible = "aspeed,ast2500-ibt-bmc"; reg = <0xc0 0x18>; -- 2.17.1