From patchwork Thu Feb 1 17:22:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 13541489 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 012C6C48286 for ; Thu, 1 Feb 2024 17:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NPixT7dZp1dDCl3BZ3xU+ZmsiD2R1Ub097kZm7x51W4=; b=Neo+STPpp0+kXS fF71+JIq6QpVvbzp/QQ60kIo6DJkQ4Tq1uR9G15tS2NhQw08PEpaemEZe1m3DYtCRjeDR4E1l7daS Rn+rKOYmkozpPtojMUYsKZletOxxEsThrOddTfWzqVaTpUenRp32+N4lH/9MOBDlczYcG2uCLGcQ3 xUaqHRDGF3T+L0iJ71TWnVGmwuyt9RLw4t3Vm6INIVqPauGLe5pLFuKSfPy385tANmxFKX+mwwblY CbD+yBqHcvfCBR9k0e42RbDQvxx6bfRLxnH5ch+qBkuT3CeBmx5kD0DBVDvSCBDwKkiiEz4FGVpl8 X08znQBgsQFt59XxlpMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rValk-00000008m7S-3aGB; Thu, 01 Feb 2024 17:22:32 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rValh-00000008m5C-3PDu for linux-arm-kernel@lists.infradead.org; Thu, 01 Feb 2024 17:22:31 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-33b1b95df3bso218286f8f.0 for ; Thu, 01 Feb 2024 09:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706808147; x=1707412947; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=y3CJ0iWr5V8UXz357xaAC95F3gSkf5APXRSfTg5VtQM=; b=fixX/CCLj7kIClve+z0cQ4DnnnfOlfp0X27F519rN50KE/29hqCsXv1IlcPRCEZUYj ExmXdAW98SVAi9dxjrVhI8kuHGS7rbbCXFMZctirQ5nmy4VHS0BIO6Vomjc5WekYCqej +A3HFxD8bDSUWSZ3vT2nTS5Y3ZEostkFt9f4Xz8/nwWNbPWN4siZHRlnJ9lJWx3wrwb+ h34r3yI5o4aC9PcncCIqwd/qRhalSII1SZILBJbcuuNyKhyDRqoYF3KY8R6rcrom003E 2V7olqZTYhjYBIn/ouqK3gCQ+0Gae01+WqkARzvNbK+QS1wGkBzg288IrFlUQd14q1QO NajA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706808147; x=1707412947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y3CJ0iWr5V8UXz357xaAC95F3gSkf5APXRSfTg5VtQM=; b=gWuyeG2XvesomRjvuvo/FfRmAuIPGxNryDJe7XVeSj/yCdA9jwksEd+v0nmkJ5bwEy 984iaJwhZmoZvsE6H6DKTOz874joSWH0vvJlT6xbz/sPOJW7CIHXBcxdQuaYyZK1LjHs BXVgG/MZvCGDyqZbyy9owVS0xJF3y/ulhiZPBUv6cNA3zLut4zjyBiUL7CMdhOey8g2S whyx3YT7FYoPCdZC3rwYMYrfo2c6yL6jDvsjFE1S+V8W57+0ctVd6q9JEuzkITBQKLHO axsQ1ErtIZHZs40GUp2CTifhgGJKT4Rm9Tmx0+6wcLpw5xfmXVesw63B3bXoqhFi5JdQ Db6Q== X-Gm-Message-State: AOJu0YzPzpyD3OSPogF+7XqNKbaMyLZ9CPP+zqDUSLTsr2tIyQiNBvVe BJJDXMOYLQhKIB2Z4Yr5uLjCw45YKOqZJAK5w6lk+IGKBP5A/b9LFhjcM7Fadwk= X-Google-Smtp-Source: AGHT+IG9KadcY2xJjtBrfhIPHRE6LP7zQktj8OvuqEn4klZ3Gzs5w6aG6iH028vzAbgRE2G2RFSCjQ== X-Received: by 2002:a05:6000:ccb:b0:33a:ff92:6e2b with SMTP id dq11-20020a0560000ccb00b0033aff926e2bmr4389377wrb.4.1706808147348; Thu, 01 Feb 2024 09:22:27 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCU0BhG3V9zNV82xJGHjYnuO0Z4gpRCANfGDa95RdqgHtQTIMdD71aouDdJeaXM6j3dFwUJWzOlXRtZHLITrFdkFg/4voaPT/81epNOedVuw/ACRtDmU504ztpfV6kyyjc5gepYfgCgFI6WkhluYhbMdOXhJgQGZjiSV0I9s4UzjNYQCymKENRw8uYsSolnzVwjDh0Io4XZbyEcOa6FapOguMvuc3OxtxR/9FgQInsz+bLOBKN9/k8lTk/LfCuY5sghJ5sVZGL8m4yVcV5yz2d/ZMHBqgE/8FwdkDcob2+dcYZCV3tCfcar6LI2PV3jOio5uQkX2KJZGm7/j2a/5qFBzWeb/E+0nJFijyv23O8n+bRR8ez4I62lWGWEhNgQMClXH3XVnHlBgZCo5Wpg+OcVFHvG0kToKU3XwnBcnK7zteV/uWj1sviNm3HwldDb9bcG+2KHFm0g7Z9dZdz4aDQRl0jLIyOV4GuKP1gKANwfJkan2d7pHhj78Aagr/AAimbE7w4jIEbZ4u6nNK9XdV468cHg5imPRbtM/ijszlM6gwotwD7nWcGu0wZ8phr9z3X4= Received: from tux.Home ([2a02:c7c:7213:c700:e992:6869:474c:a63f]) by smtp.gmail.com with ESMTPSA id f15-20020a056000036f00b00337d84efaf7sm16733582wrf.74.2024.02.01.09.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:22:27 -0800 (PST) From: Alexey Klimov To: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, linux-samsung-soc@vger.kernel.org, semen.protsenko@linaro.org, peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, klimov.linux@gmail.com, kernel-team@android.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, arnd@arndb.de Subject: [PATCH 3/4] soc: samsung: exynos-chipid: add Google Tensor gs101 SoC support Date: Thu, 1 Feb 2024 17:22:23 +0000 Message-ID: <20240201172224.574238-3-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240201172224.574238-1-alexey.klimov@linaro.org> References: <20240201172224.574238-1-alexey.klimov@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240201_092229_876319_B832A53A X-CRM114-Status: GOOD ( 11.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add GS101 information to soc_ids table and related entries to other places. This SoC product id is "0x09845000". Signed-off-by: Alexey Klimov Reviewed-by: Peter Griffin --- drivers/soc/samsung/exynos-chipid.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index b1118d37779e..7fee6094db12 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -60,6 +60,8 @@ static const struct exynos_soc_id { { "EXYNOS850", 0xE3830000 }, { "EXYNOSAUTOV9", 0xAAA80000 }, { "EXYNOSAUTOV920", 0x0A920000 }, + /* Compatible with: google,gs101-chipid */ + { "GS101", 0x09845000 }, }; static const char *product_id_to_soc_id(unsigned int product_id) @@ -178,8 +180,17 @@ static const struct exynos_chipid_variant exynos850_chipid_drv_data = { .sub_rev_shift = 16, }; +static const struct exynos_chipid_variant gs101_chipid_drv_data = { + .rev_reg = 0x10, + .main_rev_shift = 0, + .sub_rev_shift = 16, +}; + static const struct of_device_id exynos_chipid_of_device_ids[] = { { + .compatible = "google,gs101-chipid", + .data = &gs101_chipid_drv_data, + }, { .compatible = "samsung,exynos4210-chipid", .data = &exynos4210_chipid_drv_data, }, {