Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp134825lqj; Wed, 10 Apr 2024 06:25:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmXcy7iwvjeKOWqx7sdXCqH1zTYo88LqN4Sf4Y0WHVaGK0APfklEMgrZ5rUBYt2WanV1CxvBVEQHjKQecHkZWL+G9skdmIAFuxog8cfQ== X-Google-Smtp-Source: AGHT+IH0P1SDDP0ZCt1ukohej437ghmH9vT7kpioJ0GlyoMHyBDFY4RHcpcZoiOvJybhp7X5x7ok X-Received: by 2002:a17:902:eccc:b0:1e2:be4b:dd9f with SMTP id a12-20020a170902eccc00b001e2be4bdd9fmr3178040plh.15.1712755558184; Wed, 10 Apr 2024 06:25:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712755558; cv=pass; d=google.com; s=arc-20160816; b=hBSx7hAxT/rX5bLDMG/kMBynmtdd2HKv6ntpSTgek8OxTKMYY6ALKc/Q0ZHoGjvSRN L1MlgawHRAQRxzh8p/g10MvQE0NCK+TBWT6dKMU0N6QuktlZxnqkG/MurJ45Lrogklab CLK91M6f7wdBwKqkVJIC3roXxbqA4d06jpvfuQiHeJEMrNvwZmsA8tdBv9RS3roIzOJu lyRaOlentRaYTx2xSDh24ofVT72JCBLnCjal4svdtJrIaHlyQoS63y+bcfNdEB4ObTf+ /1la0YlVbYBeDUMTdRWRush1QhbP9eNZArO5HTUBhRgkO7bwyXfMwvUhZmuXMG/t33CF 6u2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=J2PFwDXgZfVE+WfzR1rcwCj5ZaHBOtQaxSlLqEZ1n4c=; fh=y7VKX694VLH2eb03/y0ljujQLJGtNdYVa6lu5bfy0Mc=; b=DrfgsdJ2/llSAEUZC+FkiHrIVcvANL5xSiYeVfkLvyA5pCDSoj97hQnB3oFazcThku BXaaWAVOI6F/zvjL+IjdEvG7Himjn2mBbzWZ75FfwQ+MALC40udWrHl6d6HkErLtN/zL 9tPNIN0XPifP3LTQoihgjp330sm3AGH4pwTj6X9LyZv0VR48f6YBp7fRVJeNNQrJ5fJu K4tT643u6xueJYl6SFDQDXiZZQPTQLlF1JWK33AATl/JljeYr512My+na9iBhbBIYrpO yt08lD+8KzQYeO2J8o64bDykiM+ocSoRhXTeIoHfX+l2dPOUddWZ0hfU58Epgtsk3qEp LbTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-138586-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138586-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x7-20020a170902a38700b001e3d68b3bf8si8738827pla.594.2024.04.10.06.25.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 06:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138586-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-138586-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138586-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B09D6284A7F for ; Wed, 10 Apr 2024 13:23:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F7C5160791; Wed, 10 Apr 2024 13:20:02 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97AC915E801; Wed, 10 Apr 2024 13:20:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712755201; cv=none; b=STynnCeTKrc2r0GHMxqVYHCTVKqawsF5y9Oq0JM84TPJlueM9nH6NPCV9YGSflLMB8/KQk7NbarEHOlSAd2hIB/EKQJda0ES1Caci7EwOy3x7NIimZuTQN/xDgeGDf4DaLK8ipiXz+X/nzCzDxvPaSjtq1axZaFmQtzQTVajTDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712755201; c=relaxed/simple; bh=Y2xFVKVJYXpxExcTVw1OG0qaRy+eheyCTegub5oKido=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BH4HxZFGGpZMPM/DTIdOXFVwl1prWz9xFC2lPkQoBz7hZgL4G3b5QATW1JIBEOocDgIw9fs75JYt72DGvzI+39n1NENNY2uu+AOHGon3bQ+eoFzNnsCtLspfbic54Jfr+buC2oGkAVx6bRmYLVYaDWgI2qTIYuLOFyRMVCwK0oI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EA4EC433F1; Wed, 10 Apr 2024 13:19:58 +0000 (UTC) From: Huacai Chen To: Huacai Chen Cc: loongarch@lists.linux.dev, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn, Huacai Chen Subject: [PATCH 2/4] LoongArch: Update dts for Loongson-2K2000 to support ISA/LPC Date: Wed, 10 Apr 2024 21:18:02 +0800 Message-ID: <20240410131804.2165848-3-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240410131804.2165848-1-chenhuacai@loongson.cn> References: <20240410131804.2165848-1-chenhuacai@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some Loongson-2K2000 platforms have ISA/LPC devices such as Super-IO, define an ISA node in the dts file to avoid access error. Also adjust the PCI io resource range to avoid confliction. Signed-off-by: Huacai Chen --- arch/loongarch/boot/dts/loongson-2k2000.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/loongarch/boot/dts/loongson-2k2000.dtsi b/arch/loongarch/boot/dts/loongson-2k2000.dtsi index a231949b5f55..dcee9f3783fd 100644 --- a/arch/loongarch/boot/dts/loongson-2k2000.dtsi +++ b/arch/loongarch/boot/dts/loongson-2k2000.dtsi @@ -51,6 +51,13 @@ bus@10000000 { #address-cells = <2>; #size-cells = <2>; + isa@18400000 { + compatible = "isa"; + #size-cells = <1>; + #address-cells = <2>; + ranges = <1 0x0 0x0 0x18400000 0x4000>; + }; + pmc: power-management@100d0000 { compatible = "loongson,ls2k2000-pmc", "loongson,ls2k0500-pmc", "syscon"; reg = <0x0 0x100d0000 0x0 0x58>; @@ -141,7 +148,7 @@ pcie@1a000000 { #size-cells = <2>; device_type = "pci"; bus-range = <0x0 0xff>; - ranges = <0x01000000 0x0 0x00008000 0x0 0x18400000 0x0 0x00008000>, + ranges = <0x01000000 0x0 0x00008000 0x0 0x18408000 0x0 0x00008000>, <0x02000000 0x0 0x60000000 0x0 0x60000000 0x0 0x20000000>; gmac0: ethernet@3,0 { -- 2.43.0