Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1969448rdd; Thu, 11 Jan 2024 15:25:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpd0FbcAuHWIivlREqwoiT9Jm7yiEW2YhDsHxsg/SFHrOnsCThhwWL3H/+m1gb5Sn1oTQb X-Received: by 2002:a05:6214:1c0a:b0:680:704:1201 with SMTP id u10-20020a0562141c0a00b0068007041201mr140qvc.101.1705015510447; Thu, 11 Jan 2024 15:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705015510; cv=none; d=google.com; s=arc-20160816; b=Qr9QjyAhNo1XotMxINdfAvXG79I4WrejwY2G+1a2sG8i02GWsYumPKX0hZoxyE9w50 5djkpLsaQ1wc1SfZmhRwnIAauHo5Cc1T96NNeLXOiGQRcWibJ0ZhHtep3VGmKfEH+bA9 FcAZy09TR1Ax3hppKwC/YkAzZTyBib++LhTQ5gy6aEW/1jvGhE/6/w8OddxzkNMB7/wV d2U36VsGnHTN/TC3+DcTfb+fkPtnWZL4N8X2SRmSYu9g4s+FMdZdyQWA9PXXpf4HWqT+ XWdBVdU/3hfrCYLPWlbR6HvsJzeczUE5Y1qof353nb4ZooiFD27b548Kb6XdlavpvDB7 yxPg== ARC-Message-Signature: i=1; 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:dkim-signature:dkim-filter; bh=9Hevq7nMKxWJu5zxWNRM1sBGnmnix8MRKnXJg4T43mM=; fh=4mbZryJXwMDkiokcswMF6AGfPBgnpJxpkOKHdeXho9U=; b=XjcPsDppwUbVvmX4mgzz5API0KigzVRtCnPp08yPlP+eujmJcb64fXKLUCMpqwAiL9 Vq3TRTllFu5bdKMdDw3DfTYRGWevn/Krjgo9HZ/hdxObPXcCF0dAgdkHQQMVvrQcMue9 /1O6lBPVey3/ddUJYNmkFpNIRWfE2VhJBAdWJJrp89X1TtiMGjYIPkG+JV6ROPNZ4Egy LX/q14bQ2Dcn0BsfPIZBBpSXVCkfAqz51BjhM4vGDWarti9EGvXaq4mcQ2EARjyhNHKa XEzxdoflegJ0dxPJNHjJC8tKDin2iBdBN4N5tw5ff6UInrHw07g/1KlXfYGUqnVlCZ0k dolw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=CMHcxHp5; spf=pass (google.com: domain of linux-kernel+bounces-24130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h9-20020a0cf449000000b0067f962d07bcsi1889463qvm.56.2024.01.11.15.25.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 15:25:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=CMHcxHp5; spf=pass (google.com: domain of linux-kernel+bounces-24130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 169331C239C2 for ; Thu, 11 Jan 2024 23:25:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEBCB59B6C; Thu, 11 Jan 2024 23:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="CMHcxHp5" Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.205]) (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 2846759B5D; Thu, 11 Jan 2024 23:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 655E8C0000E4; Thu, 11 Jan 2024 15:15:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 655E8C0000E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1705014944; bh=0zK9IlUIaxglY1uUdlByTuJo2PKiDkOIZhKkGpO6xA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CMHcxHp5C+YRIBeq0K7N+oUN1fUdHBCzud8Ob3nw2/g/oK0xprx/CmDTRH7gHG07T xIfupzM9+2OVqTEi9tMSUQqO859hYCH7xdyTEWtVOigHTHON+qyOe0u8TxcP3suEik VhV4XGUMG2R5mhGxvANLDBTj1V9HkYdtz/Cfkz0w= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id B684418041CAC7; Thu, 11 Jan 2024 15:15:42 -0800 (PST) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Broadcom internal kernel review list , Bjorn Helgaas , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] bus: brcmstb_gisb: Added support for 74165 register layout Date: Thu, 11 Jan 2024 15:15:39 -0800 Message-Id: <20240111231539.783785-3-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240111231539.783785-1-florian.fainelli@broadcom.com> References: <20240111231539.783785-1-florian.fainelli@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit BCM74165 introduces a new register layout which is different from previously taped out chips, match the documented compatible and use the appropriate table of register offsets. Signed-off-by: Florian Fainelli --- drivers/bus/brcmstb_gisb.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/bus/brcmstb_gisb.c b/drivers/bus/brcmstb_gisb.c index b6dfe4340da2..65ae758f3194 100644 --- a/drivers/bus/brcmstb_gisb.c +++ b/drivers/bus/brcmstb_gisb.c @@ -96,6 +96,20 @@ static const int gisb_offsets_bcm7400[] = { [ARB_ERR_CAP_MASTER] = 0x0d8, }; +static const int gisb_offsets_bcm74165[] = { + [ARB_TIMER] = 0x008, + [ARB_BP_CAP_CLR] = 0x044, + [ARB_BP_CAP_HI_ADDR] = -1, + [ARB_BP_CAP_ADDR] = 0x048, + [ARB_BP_CAP_STATUS] = 0x058, + [ARB_BP_CAP_MASTER] = 0x05c, + [ARB_ERR_CAP_CLR] = 0x038, + [ARB_ERR_CAP_HI_ADDR] = -1, + [ARB_ERR_CAP_ADDR] = 0x020, + [ARB_ERR_CAP_STATUS] = 0x030, + [ARB_ERR_CAP_MASTER] = 0x034, +}; + static const int gisb_offsets_bcm7435[] = { [ARB_TIMER] = 0x00c, [ARB_BP_CAP_CLR] = 0x014, @@ -393,6 +407,7 @@ static const struct of_device_id brcmstb_gisb_arb_of_match[] = { { .compatible = "brcm,bcm7400-gisb-arb", .data = gisb_offsets_bcm7400 }, { .compatible = "brcm,bcm7278-gisb-arb", .data = gisb_offsets_bcm7278 }, { .compatible = "brcm,bcm7038-gisb-arb", .data = gisb_offsets_bcm7038 }, + { .compatible = "brcm,bcm74165-gisb-arb", .data = gisb_offsets_bcm74165 }, { }, }; -- 2.34.1