From patchwork Thu Feb 1 17:22:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 13541490 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 3E4F2C4828D for ; Thu, 1 Feb 2024 17:22:44 +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: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:In-Reply-To:References: List-Owner; bh=9y9d6a1gS8IP5RkUbPbfa1Ir5ijBPbSCw0/bWE51g4Q=; b=uEhvtkHR3X+Sz6 WfrRpuP7muA/Rat0hYFgx3pLdBYpqJaFpbVoLdJCqGxZo7aWMoaZaNaJ+Pu0SwYOyoZ9hK3JDG7fA zYAx9ukZTMFcFwhrm2dE2s7RBHfslShbLoYPK5Xy8y4khDmJyHBmqvH0LyOhQLv2RCSaMZnQLBiK+ Bw7+dTMvBTtr0aBZYKWafhZpzaQFrSnLEnthNFooVys1xMNC6TT46vvCMB7gVyrtgkmxSXQbcgvkB unfeNXAOZPNsXSY9CsLoqlFW1WhpNX2M4aU77wOhT4rv2x+iEPzOPyEeWdK9BxIcIHzzd8YuayVzz g9GMtjc8p4HS1AOv/Dmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rValj-00000008m6n-2bJQ; Thu, 01 Feb 2024 17:22:31 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rValg-00000008m4f-2JpV for linux-arm-kernel@lists.infradead.org; Thu, 01 Feb 2024 17:22:29 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-33b11ea47d9so750121f8f.3 for ; Thu, 01 Feb 2024 09:22:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706808145; x=1707412945; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Olzs5jHBV5th4bf/0xR3cFxQ7USKSVC7J+wiOfI31K0=; b=FkCjOeT4BRUrgoSp3I+5R5k94CIdDrJe97dHqQ2pR4Vj/l7ZvEPrhSPjcWf0/8Ozsm t+YniyDGfk7oph4WiXonhF5hM4USG8nigflNFF/rqeUMD34g6VfBqQJZnhconvfvVA2I EDbXhOk3zsBgiQmvcdraD2a5KENpivUsP6ZpsX/Iv265VFf6k8PR37Ws8W0qX6pfvNM3 CfirEm7SmCc3NfXgGUTOy+LK2Z2PjQUtM0wqdvPQJwDEQumW4wgFfoaU3ARi501fOsxG ySXEfEPWhkQy54IFv1RdDZ0tvyh+mxLA85dZrFXzTlPLKYFhTvyqMbueY4kPa81zmn9Y g+2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706808145; x=1707412945; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Olzs5jHBV5th4bf/0xR3cFxQ7USKSVC7J+wiOfI31K0=; b=WQfYYdbs6Wm1zfQkGhaLvI6nFGGHpsczBtIu9s0jxx9IKMr0V38gi4spSz1XctG9Bn 8MeFSzX5CzSrH8qqXyjnGHE8CQcG5sBIr605frgg4ZbObGWYpyAaPggVJavWPkp8F+A/ Q0T991zYw6B7Mcxa6D+DxmFDcJUevgKgxemdpiEb54SRq0yDQQ/nSVPBIKOy0Nzm7dnZ ShRVXEfMlop6yhXXCzoDYo/CIbjQgqQuQioqnIazJpVVTX1yCi0VvoqFjUVpAIbCwcCh F5ebQ18XECFPIyG9WrEMFQojMjgM5TnvxxuWuciBm0GChYFWe+HZQ6bfHzunUV5cCqjF HYWA== X-Gm-Message-State: AOJu0YwQBPlEnUqWpLG3vWsqYWFu2xfY/kYG1saFaU3kmLcctL29mliO eY/kDTUynEYCwhrM6NAseCtexHpXpGgT21su+hSu3gkq51SJ3vEi/49tM+qB8XY= X-Google-Smtp-Source: AGHT+IFpmBY54yA+GRbMJhIIQPcZ3OaDrFdyCo+12N3dtJyiP8+y6KOZsPaHG6a6biOb79hAePH7Dg== X-Received: by 2002:a5d:610b:0:b0:337:9d3b:c180 with SMTP id v11-20020a5d610b000000b003379d3bc180mr4025840wrt.4.1706808145483; Thu, 01 Feb 2024 09:22:25 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXAyBCUGeofnISmWVvuayh3uWyPjp7ReG6k3Z7Cg4Ixith4cEy/8G9skYPPoXvjaLvnvvELl90LT/8UIpCz+FIb2gNldRtIzSIMfa3zk7ldRWyj2S/GtzBd0x+YuoVwvsOVeL2PGmo0wEhKpRxxmj/ldV0D4/uICodrORh3mxhdKB7LhY9oZtv4MDLlmsfkWgnIvH3MWc7BIF1NWvp4PR8cNidJKPAfyY30tqwaMQdEMX3vopapymYiwLjgaF0+XwjKsKzGej1zgHEy3qOZJMot+uKeLK8Fk5xv+Ky6qoeoG3vdIyBY7s3v/TpMUCL9k/Y+Q2a/Zktg5Ubhfb1cz2arRAc06pjbJ2+UBOprShdj3dGyr5U9/EdtAmwNri8XqoOBAxt0PgH6XrYoVvRuvvWomLMPJkVwkb1ahmIujePs+3YQtV72NoeQHmvbuUQBOR4EhVAv4d+iD44CS3frSGvzy2SuoeT0IoKkEdmoosiBqeAEumgoRDYMGlktdk+hDmpW+FT/YtCfdh7hTG/FyXjq1jqQOdKhH29mOhxRvqd1m0BzPDYACSx/if5FW+tylTs= 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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:22:25 -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 1/4] dt-bindings: hwinfo: samsung,exynos-chipid: add gs101-chipid compatible Date: Thu, 1 Feb 2024 17:22:21 +0000 Message-ID: <20240201172224.574238-1-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240201_092228_629179_3F92A4DC X-CRM114-Status: UNSURE ( 8.28 ) X-CRM114-Notice: Please train this message. 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 "google,gs101-chipid" compatible string to binding document. Signed-off-by: Alexey Klimov Reviewed-by: Peter Griffin Acked-by: Rob Herring --- .../devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml b/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml index 780ccb5ee9b4..b1d933808b6c 100644 --- a/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml +++ b/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml @@ -13,6 +13,7 @@ properties: compatible: oneOf: - enum: + - google,gs101-chipid - samsung,exynos4210-chipid - samsung,exynos850-chipid - items: From patchwork Thu Feb 1 17:22:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 13541491 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 E8E61C48286 for ; Thu, 1 Feb 2024 17:22:45 +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=zIGF+hJ+GuZch/0Uyy6IGeqpYEB2DuKXJMjCjIbBsKI=; b=sSZt0sO6UnDYMu Yt70b3tvk6SFyTTR776xB7J44WvMZNbIQahYOvXZbeLoz+rg14DyxyJKyDxxbweMIZN5fk43QMUPR w8Ugh0lwN5RTorjP3NdBG05VNrdLyh13cwdEiWZdJSDI9NNKpT4t/blroTI8OiNiD2evzaLy3Tsb0 G2cQ/1A9gq4xSdKYYg7xUfOOcNjHhNfbRoIruz8vxaiVW13Yi2VYxbOf12ESm6YsAjmTupH9W5u7d xs4Bcau1g/YFK8vUEAwTWsC21+XB7yL+Fh3NGDw0lRG75X2jGZXFwoJqz5hzTkh5UnBo9lPEvQDq7 FPGkmdh0dquAuLgCOWqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rValk-00000008m6w-0zhO; Thu, 01 Feb 2024 17:22:32 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rValh-00000008m4w-0Q53 for linux-arm-kernel@lists.infradead.org; Thu, 01 Feb 2024 17:22:30 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-33b0ecb1965so665517f8f.1 for ; Thu, 01 Feb 2024 09:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706808146; x=1707412946; 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=oqglFOjWZ32x4zOs0EjnPV29zDu0VG4eHKNa8brIj7Y=; b=LwBhvgN2VMpaOjw7FSrrP/DA8VNtwzifU220uRGTSyyzZBeQeDQgNvb7IF6MYdfTE9 ayFK3xAeDwgbAah2LqsnQbMGWiYR3CGbnGos9XY16P4yYaR51SZlkrLzYxvGvZSjoz9y a9wHg29cHH0opn9iamAqIJaQ+ENRclyj9weIgtO3ZC+IPUnHwjCvDbgJB25ikdqyL6kF guujF5wNdKFnsrMkmycjPOl2xWjww6htUY1MvdkbToI+EyeR2k1Sk2s5UC3niPAFDhWB XLY1/NWGnIBVW49wnt7bRiNnCkNocWN6gFeDISpvpn+me/Nq1R2iHdTCUgH4fK556I4K 6dKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706808146; x=1707412946; 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=oqglFOjWZ32x4zOs0EjnPV29zDu0VG4eHKNa8brIj7Y=; b=RXBjaOVZ/ErF++0h7gphOd82rP7IRwb0yuwxOsbVKTRCcIKtNhNeA9p1t8OVLZj3u3 O0KXUJbbzuDGNABI/KOygctEDNJ1GUmk2n8keEhIypXzjixM3vWoowZd9XNP2SNtgOiR ON7wmBxOYxLqAqK6vk+D1SOIg/+CByaPoolSumRWjPgGPTEmhmeA7dUo5xW77GWqcS7L 5Tl8llIi39qigdinb8i575hqkTWVGJavBxcwHmBc45aMh6P/oMmkFprCoIKEKK+3FX/p 9MGO+nCZwps5OUPKb9PjaBKlGbOjqyYTD6cz84xVBAPxMRBC8EH8uVv81/E8+XugLTqn gbIg== X-Gm-Message-State: AOJu0Ywie/wsxOzfQi3jMwvtj6kNpeeHSzQ68Eh+3nE6Sf3OjlRvmoE+ YS052WsTRbFEQ1vW+wiEvh4w9bpZNY/VDTBxX0iR8+qm7guMwoYcz9OV7uA9U2Y= X-Google-Smtp-Source: AGHT+IEPETwpPLT1E0d57PYiCMFFa8neKAkGmr8WdkDjdyh4iSPX4yWVBK1s/n6op0NjB4Pd1FxqUg== X-Received: by 2002:adf:ea0e:0:b0:33b:17fe:7eb7 with SMTP id q14-20020adfea0e000000b0033b17fe7eb7mr1680144wrm.68.1706808146473; Thu, 01 Feb 2024 09:22:26 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWgDLUJomtN15g1opxXiG5rl9OiizKz5aXqpR/8NPTgDztCPLP6LXlX7gvUorVckRh6tNcOnnHb/o9tfpkM9Z9nXJtRde1/rnPToLU4WUCqTTg56TI7h+7qCLL+cwtpNiii/y4BAUVp8R5A5lAhaFi71FzU1lq+B0HMMnnWl4BaAXVB1pNLC0h2f40vEcIf05wcoiseoVEXcRQQEeqwQ1/OiVHDNsSmjoQhjfWyFUNG7Qj5K1qcogJ6HfnD9Cpymu/+hh/oApC8rwDaM34+QXVfkwy5VYC35jZbwHFUBtgBp2sGXrOr911JQNer/YMppGebUoNHOq6kkFWMWOPWVUTpFxG5fyAZYZ6WYQ+2hPd5BckOWVXUEXTJj+dAw41ZlzCDAWc205uhF6sEfynnmz2Jii+xyhiVGdGOR6Ts0UFRfG84GcQ01K6T0gn8XbbMCN/carFJhdlx2T/DEviVD4FNPqykzGpWkBQnPqdN5dQ98JB3fHeSzpuCE9Eu2ImZCpAQae60DxPOawrxrGrQnm+gXgAMLgdFV+iN3uWhtOMMO8MUymNISDmDh4XTZYODt2A= 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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:22:26 -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 2/4] arm64: dts: exynos: gs101: add chipid node Date: Thu, 1 Feb 2024 17:22:22 +0000 Message-ID: <20240201172224.574238-2-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_157410_5D6CDD07 X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. 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 Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index d838e3a7af6e..156fec2575bc 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -283,6 +283,11 @@ soc: soc@0 { #size-cells = <1>; ranges = <0x0 0x0 0x0 0x40000000>; + chipid@10000000 { + compatible = "google,gs101-chipid"; + reg = <0x10000000 0xd000>; + }; + cmu_misc: clock-controller@10010000 { compatible = "google,gs101-cmu-misc"; reg = <0x10010000 0x8000>; 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, }, { From patchwork Thu Feb 1 17:22:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 13541492 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 02F7BC4828D for ; Thu, 1 Feb 2024 17:22:47 +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=b0LUPPbLgmn4Gi+XJKogXnHPDa4SqTUPH/SjDt7NZr4=; b=ycZGtTayZMekxw xenWGIO3ys6zXuQDTSu3VX5wxSJqp6xwPF6q8LPmToDP89vLvcTH7w6X9WO8J4mhAK43Uv1JqRxEu L8d2q9u2HMJZv9O+S0RU8sfiYOblc0/jaa48+nf0CBhQjHftbsPhSnUjzi46BMRONDqdQpdh+W37f qrWacSUOVGC/D4NkraXYW5Xs2505/9oTkls2sY4PAY5F6PllZXhZvKviV7MYg4Q+EVO8a40J65s6U o1B/BJr3EC8ZAeDyjwVFjfuBpgIB9TPcePyhII/Mz/zNvo+XD1cY8HQhteGPmI+dyjqENtI+MOA7b 3/ah0ouGKWaGfbCltTOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rValn-00000008m9R-2ieL; Thu, 01 Feb 2024 17:22:35 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVali-00000008m5a-2l75 for linux-arm-kernel@lists.infradead.org; Thu, 01 Feb 2024 17:22:31 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-33b130f605eso715440f8f.1 for ; Thu, 01 Feb 2024 09:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706808148; x=1707412948; 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=655phT6p/xX4gabPq+CgbuzehrB6Qvw3RCd729athhY=; b=cwMLuTD93GhtTcYu2WV7eIJmgtvUkCflS/ErknbKVVEIR5Xq7Zsm3SpDsJ+G3wQi69 nZVZA/2x3hyZi9YQczVjun1nxHZS7N8/c2Qbvo3IwZRMQ/tzmqs7YqZnrtR+0ACTBgk4 dCH3xfdoYiQ3A+kQRrDgteAgsPH4DCdu2Fu1aV5YyK4DhjvFNPXWkvADdOZJX/UL9fy8 mfOi1hmPKC2mjj/APTSM/2Nw8V+gdwoPuHfKjLX3ruQ/T28UGsy0yxKRbiI5bozuhlXp /B7USKGarcz2othMjhgHIs//zywnh7mk9QI2EWWq5TRZimhb+RPNSbDk0XAf8smSHshZ xmNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706808148; x=1707412948; 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=655phT6p/xX4gabPq+CgbuzehrB6Qvw3RCd729athhY=; b=UWFNbog7miTjWAAbtnwDJwyMNkofXPkkuILpnDQEEMdWuw8pkWMXHQAQfBBIuQ4lhr DpdJF3FJ8sMJ5R/KxQBKNXH6OXIV91h3zSl6JjSpGHHWmvpoOeGhyYHiN/L6C1FVXAFq sYjbxenIOsW9gE7BVCKJkccQ4kRZbGup6SAfgf6MYi4E05xGNp9Pk73/aiXzDvOOxMSC iPzuOj+H+rOx5ym2OBAnElPdle8yK4aQbp914r9fWHkZYVNxT42Dlso1GiBjyHX7rZVn wNLQ4firN/uU4zcWYNm0r2gQ+xClRExaPy63FcM+dw6WDG/q0AY4dKb/XkbgN1899F2w ZCkw== X-Gm-Message-State: AOJu0YxkO5+f2xKwuoykkJZw25S+WsVXrN0jBYh4QAqKhdvmqopeIgv0 iJy2xyHYVj9HO5oPiDkTrX5bXIgREBMDd+/pdeZB2+34K8gLz3TLjf6CClXD4EOwlxyXvYZIVeT zTPRRmA== X-Google-Smtp-Source: AGHT+IFOsiz899UMNmir60Feb50FhEcxnYz80YcKYleMfajNk/aqDsleyVRR78NvhALhRngCdU0V3w== X-Received: by 2002:adf:f590:0:b0:339:39ea:aaa3 with SMTP id f16-20020adff590000000b0033939eaaaa3mr4042470wro.54.1706808148176; Thu, 01 Feb 2024 09:22:28 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUdrtxBDnY1A3xcSW6aLqqdnaZ61n5bIgrQUbPZtoaim07Ow3vHyyZM7skGO5J14mICRMK8c/V12CHhtfZnPhvhARkbATId9ksintnLX7edGzdXf0n0m+hwRVJ+fABZYnzWuHcFrxVq6D5Okm72XGhVO4ZTJQuUWlnkY9V3I1q7kiEN/h+QNnUgzwUUUKrT26bAYd0qzSvFpYjcUCHAfE+3Nly0aL3OMbUAOlvnhZgc5Cl9AFH2cYyLIgvIEJFSYmxYNNGlTIwYfNy6dDtj2BFnIJDlHnovmzTDwoD55AwIgfi9GH92V1Ibn+IFZd3U8s9FEz7fpqAbR7z3RFrw0O1l5MweKVBCIC7443Hxw8diGijYa05UCV4QCliR0W1McSSdYdYlCdl6JX8hU/Yvrmz74jao1Dk/BEaiF4XGe9NNpnpedjpot8YAJqydMOO8P+ME/LbWMuQ3YS8b2wcmvEKS556Epq3q5Kfwt90HwTHiUjHBftpZq8dLMmYhWMwlTHjKZdrSBmTVbSDSlWsm51XYoaorqwsdI/jMTcuyTgRoopkLOGogGhm8bxqECVH4Dp4= 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.27 (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 4/4] soc: samsung: exynos-chipid: fix revision calculation for gs101 Date: Thu, 1 Feb 2024 17:22:24 +0000 Message-ID: <20240201172224.574238-4-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_092230_716927_A932400F X-CRM114-Status: GOOD ( 16.36 ) 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 The main revision for gs101 SoC is not reported in the CHIPID_REV register. The gs101 Product ID and revisions registers have a behaviour split between old Exynos SoCs and new SoCs. The sub-revision is reported in CHIPID_REV register in [19:16] bits but main revision is still present in Product ID [7:0]. To construct soc_info->revision correctly for gs101 the main_rev should not be reset from a value read from CHIPID_REV. Signed-off-by: Alexey Klimov --- drivers/soc/samsung/exynos-chipid.c | 20 ++++++++++++++++---- include/linux/soc/samsung/exynos-chipid.h | 1 + 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index 7fee6094db12..3b952ffd8cf7 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -87,14 +87,26 @@ static int exynos_chipid_get_chipid_info(struct regmap *regmap, soc_info->product_id = val & EXYNOS_MASK; if (data->rev_reg != EXYNOS_CHIPID_REG_PRO_ID) { - ret = regmap_read(regmap, data->rev_reg, &val); + unsigned int val2; + + ret = regmap_read(regmap, data->rev_reg, &val2); if (ret < 0) return ret; + + if (data->main_rev_shift == 0) + main_rev = (val >> data->main_rev_shift) + & EXYNOS_REV_PART_MASK_GS101; + else + main_rev = (val2 >> data->main_rev_shift) + & EXYNOS_REV_PART_MASK; + + sub_rev = (val2 >> data->sub_rev_shift) & EXYNOS_REV_PART_MASK; + } else { + main_rev = (val >> data->main_rev_shift) & EXYNOS_REV_PART_MASK; + sub_rev = (val >> data->sub_rev_shift) & EXYNOS_REV_PART_MASK; } - main_rev = (val >> data->main_rev_shift) & EXYNOS_REV_PART_MASK; - sub_rev = (val >> data->sub_rev_shift) & EXYNOS_REV_PART_MASK; - soc_info->revision = (main_rev << EXYNOS_REV_PART_SHIFT) | sub_rev; + soc_info->revision = (main_rev << EXYNOS_REV_PART_SHIFT) | sub_rev; return 0; } diff --git a/include/linux/soc/samsung/exynos-chipid.h b/include/linux/soc/samsung/exynos-chipid.h index 62f0e2531068..1eb13068f513 100644 --- a/include/linux/soc/samsung/exynos-chipid.h +++ b/include/linux/soc/samsung/exynos-chipid.h @@ -10,6 +10,7 @@ #define EXYNOS_CHIPID_REG_PRO_ID 0x00 #define EXYNOS_REV_PART_MASK 0xf +#define EXYNOS_REV_PART_MASK_GS101 0xff #define EXYNOS_REV_PART_SHIFT 4 #define EXYNOS_MASK 0xfffff000