Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9589194pxu; Mon, 28 Dec 2020 22:34:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuwgis2wmrJEtPyqWoJfwQv0Q4zh+KxnWaHaJdkuJsrHHXZuvKRNZz+yYTvel/J7f0XX62 X-Received: by 2002:a17:906:ae43:: with SMTP id lf3mr41526078ejb.130.1609223664983; Mon, 28 Dec 2020 22:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609223664; cv=none; d=google.com; s=arc-20160816; b=R7giW0YjlQpjNzHUerY35H7f3iTsRPkdGxo5V4RdTsqWB21cI3tW4ViRNKhyrejsEl 55cf+YFMLcziAD9+xYl+tnlJqetByDc3Wf0krR/Q65kj88ndMMSYWgQNbby/KPAtktSD J1UCEE00biZsVIDJMjx7sKfoq3f8J4oV9CELC4z5CaeyWk/pzlSBjpvQFBW97tR+BQPb GI+Tm+KW+vCK9WdhG/LwA+/MLtgJitloP9Gou4qyW1l2Kjk6T3s0D9hcL1fAcJlfz6S5 ZAg1vW5+yBvvFatbc20X9kINR9V72Fu65GoiEynVM7kaBcTQoo8Mivy4dN97siKBuZzr /fEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=uP50l0tDYRyoubxYdWKJ8VyjzRHYgeY5deJbFuy2N34=; b=Zknd6kOyNmVUxbg4GnfpJYYqkSBBUArPKtulELZoO32ArxAAfp41+rx5AnEQc/+GA7 7PU0RI109AyXiEheRLVLsH1J2PtjtGFEN/afRy63P7np02jYyhmJfkpW/EgsUqf2aeFt CIGK541Ma8a1y7hbRKnkzbkKiaupZt+yCcsvNgdbKREMuoQk5Tbt2pxRBTXca9+xMLCu Gtvn2gnwEGkrIURDwk6NalivIOtrIl4nzoLpFIqp6z4t9OxgAMomq388U0T/E26qM2f3 OyhTVhrcSqGmGzC2EyM2UwG6T6Ab/5PhoNdTS8Bs91ej0WtlfdfhOezbEj1xARclWNWr n3XA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga12si19137736ejb.522.2020.12.28.22.34.03; Mon, 28 Dec 2020 22:34:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726507AbgL2Gcd (ORCPT + 99 others); Tue, 29 Dec 2020 01:32:33 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:22588 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgL2Gcd (ORCPT ); Tue, 29 Dec 2020 01:32:33 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 0BT6RTSM012593; Tue, 29 Dec 2020 14:27:29 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from ChiaWeiWang-PC.aspeed.com (192.168.2.66) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 29 Dec 2020 14:31:35 +0800 From: "Chia-Wei, Wang" To: , , , , , , , , , , CC: , , , Subject: [PATCH v4 0/5] Remove LPC register partitioning Date: Tue, 29 Dec 2020 14:31:52 +0800 Message-ID: <20201229063157.3587-1-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.2.66] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 0BT6RTSM012593 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The LPC controller has no concept of the BMC and the Host partitions. The incorrect partitioning can impose unnecessary range restrictions on register access through the syscon regmap interface. For instance, HICRB contains the I/O port address configuration of KCS channel 1/2. However, the KCS#1/#2 drivers cannot access HICRB as it is located at the other LPC partition. In addition, to be backward compatible, the newly added HW control bits could be located at any reserved bits over the LPC addressing space. Thereby, this patch series aims to remove the LPC partitioning for better driver development and maintenance. This requires the change to both the device tree and the driver implementation. To ensure both sides are synchronously updated, a v2 binding check is added. Chagnes since v3: - Revise binding check as suggested by Haiyue Wang Changes since v2: - Add v2 binding check to ensure the synchronization between the device tree change and the driver register offset fix. Changes since v1: - Add the fix to the aspeed-lpc binding documentation. Chia-Wei, Wang (5): dt-bindings: aspeed-lpc: Remove LPC partitioning ARM: dts: Remove LPC BMC and Host partitions ipmi: kcs: aspeed: Adapt to new LPC DTS layout pinctrl: aspeed-g5: Adapt to new LPC device tree layout soc: aspeed: Adapt to new LPC device tree layout .../devicetree/bindings/mfd/aspeed-lpc.txt | 99 +++---------- arch/arm/boot/dts/aspeed-g4.dtsi | 74 ++++------ arch/arm/boot/dts/aspeed-g5.dtsi | 135 ++++++++---------- arch/arm/boot/dts/aspeed-g6.dtsi | 135 ++++++++---------- drivers/char/ipmi/kcs_bmc_aspeed.c | 27 ++-- drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c | 17 ++- drivers/soc/aspeed/aspeed-lpc-ctrl.c | 20 ++- drivers/soc/aspeed/aspeed-lpc-snoop.c | 23 +-- 8 files changed, 225 insertions(+), 305 deletions(-) -- 2.17.1