From patchwork Tue Feb 27 08:07:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 207081 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2554951dyb; Tue, 27 Feb 2024 00:08:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWb0I4uIxZ+9OojJD4j6yfgiIzJ3j4ed6jUvq4Tcusb9wOu84EH4ISyPnTB4sezKA8OnAuWp+2FS9nXscIpBfBsqbW45w== X-Google-Smtp-Source: AGHT+IHYwdeeicNATySWjBLGCuFxQJIO8bHHk9t9p5zVLfpCPck7m4APUSGsuCBtqESgQOwH1Xt6 X-Received: by 2002:a05:620a:1709:b0:787:dd42:4807 with SMTP id az9-20020a05620a170900b00787dd424807mr2539178qkb.3.1709021297008; Tue, 27 Feb 2024 00:08:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709021296; cv=pass; d=google.com; s=arc-20160816; b=0q1dr6YNzCZMYjSFHcGZeOM24We6ayzwUt2GYTf/yxegt6PXfL3D4jLIVMi6Sit/Wt QfX1oHWUYCHaVPIGOM7w7uohD2ttmJFjDbxrCjQK36/zB2JSYWr/VS7DpA0m979Phjzj 3LQh87Zna/u3LDV+rRu4dKdUJmGOBGwVfnLBhMo48GzmyEDs3JVwevuGCuL6MLEAHUAe 6xy11MJYFM7wTHnZn4gnLBskurpjTt1OqZBGt2xBzH3MrBtK21FFmQZQKCgz4N7dN31q alHiSPjBoFKGIQdW7sZeA3hDDKgXidGLNeKNahtzma75gLrZ01lksoPTwW0zOQ1ZnN5v 797Q== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=3X6X6/tz50wnZDUvbb5WN4nVEsnFWe25Xdt4g8Ugnig=; fh=Z/eGonhfNLVNbZ1J4nyA1gKzHhLYKpkMqRek9W3XfZU=; b=Kf35vs9Fd3paGrtX7gdx6WRRjrT8apLyoy6/qnmASWiq9j+8DwvpzLl1Ua4xovRlpn REzC2WplchN5/34uolJgFh/gq8vJwgHy1T+j4Rh9WY7yBmWJ8qTXry13vwnSvbdFa08U AujEqZvsZk8zfvXrYX05QieW7lsRVJKjnpyGUaDZdQiVIU7s4NLXBU+iKMFvNAWkIiiy 3AQzX18E57jA3HfXhsOxiqrnB5G6c+ucFlFV5ME8QmLqw01qbcQgrxHpg+wD7/WblVYS no96TUsbYv7INzd6yB4qRjxU1O00Od6nGxg4VSutTwq95BqXzBF3F30C9i5nPe58HHK9 3zTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cmDbc12x; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82842-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82842-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vr20-20020a05620a55b400b00787bf40d7c6si7044737qkn.295.2024.02.27.00.08.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:08:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82842-ouuuleilei=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=@linaro.org header.s=google header.b=cmDbc12x; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82842-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82842-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BB3271C20ECC for ; Tue, 27 Feb 2024 08:08:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FCA55646C; Tue, 27 Feb 2024 08:08:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cmDbc12x" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1D6A54F96 for ; Tue, 27 Feb 2024 08:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021283; cv=none; b=CGRm27R+DDM09/HcfhbbxGl/B6g1TfcqUpHWSq1zjuPELgW7z+BhhSFwWr0wxJMZm6QdGtRkSaoqXoo5zSS0DITTgwKnDBhj/55NIaj7O4ZNZOKeYfcpCzK4JUmEI232xrHxyKo9eirRnfds1Qha2LPD2g1W8/+meif5wjqEI/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021283; c=relaxed/simple; bh=n1CqIB7HxwTIaN27h/cGfKFJJyQtYXmpjcrb3kKzZac=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=VsUe/So7ziA/15Bg8qRynYxYTwkmZlbyE/qi7LzgdQrTt9iPb5A7XVnlYhBZuchnJuXoVTMOTHBcLd//a0AbAgkt4F5EhgiQ7j8S3SPvDVxmK7udl/difiRMfIJ8nnfmBHBI3s0tlecm0Q1+7ORM1AOoF48Yj2M/PkRJ1tEI6O8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cmDbc12x; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5643ae47cd3so5119499a12.3 for ; Tue, 27 Feb 2024 00:08:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709021280; x=1709626080; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3X6X6/tz50wnZDUvbb5WN4nVEsnFWe25Xdt4g8Ugnig=; b=cmDbc12xg7tUTv4OQ1H4ooGKndYbq0L5EX+HMy3ZiSORjIQkVJiXssADxWiEBs03UJ REWhXQA9XpQAYRdaziPbUcBNZWkZDBgxgqgI3Zokrp2bP+sVWD/zBZNQNj16dPnjL7EK +urufMSz12D4F+oId3y5Z5IIyAVbaYovUK4nu++q5PjQUoSAb+W9tGC7ObWnnrqYvaMz SX4Su54UeMxxLzBfRHEI3fP9lo9oAk7Qq17JNpJjYBwQ9+C1y7V944maGbH6PdmfIRfu HxUJqh6AVoZ1r517nAlJC5Tb/riiHuhDGhOgWYo47qy4R3oOxN6bzcng7rwVxEN+xDDd wuuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709021280; x=1709626080; 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=3X6X6/tz50wnZDUvbb5WN4nVEsnFWe25Xdt4g8Ugnig=; b=WhIf/ImuT7TcqTrkyICgRcVbRAsen7VhzM3jDfL/ls0RjnY3drmy4kIAkWX/oC60pt yUj3flyr4Bg/3YyW4KA7FMS5d+SnUX5nFcrNDihOja6Malr7OP4PM8Su14rqCGd1F66H JcO91MacNVYWQvviady8VBf39UK8QO9xzN6vuJ76eqMoWxHWnWzXl3A/A/XIkNewbdni 1dKv+fooppfe84JGxzg9LHEx+oSE7yNOrMzICMfO0ARE6ShtCnh/RaI/nA6PfvHfhk48 O9SeMGXVfl88SsXajwMYvVw1vg/2Bq4LsxMCDnkKtyOor30xPI0HDZzRcbF6uH/HVVSX WWKw== X-Forwarded-Encrypted: i=1; AJvYcCVHw2D19qhBOubvT+osO14nuNzawSFUfxx1NxWzWyZYrd/o9N0Esc6RIW/QDFnFOMluMdjzE/zEOfT7ao9wWc7qLYROX1aMJGv3WgIN X-Gm-Message-State: AOJu0YzEYYcjb8nr70itxLgIWaDeQEYvQl0yiw8VN0m9EJGdwUp7Dypf wmQidahHL/tGhka/y+mc9TluuJUahCc3BPtacWMJ7yi6jNKPoM/hz2XjxpKOeSs= X-Received: by 2002:a05:6402:b2d:b0:564:87c1:a1e8 with SMTP id bo13-20020a0564020b2d00b0056487c1a1e8mr6917441edb.13.1709021280356; Tue, 27 Feb 2024 00:08:00 -0800 (PST) Received: from krzk-bin.. ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id b22-20020aa7dc16000000b00564d7d23919sm509662edu.67.2024.02.27.00.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:07:59 -0800 (PST) From: Krzysztof Kozlowski To: Olof Johansson , Arnd Bergmann , arm@kernel.org, soc@kernel.org Cc: Krzysztof Kozlowski , Alim Akhtar , Peter Griffin , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [GIT PULL 1/3] samsung: drivers for v6.9, part two Date: Tue, 27 Feb 2024 09:07:53 +0100 Message-Id: <20240227080755.34170-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792038715228613072 X-GMAIL-MSGID: 1792038715228613072 Hi, On top of previous pull request. Best regards, Krzysztof The following changes since commit 97d4b55111efd72926eb92cbd81c5ad8e6a7b3b1: MAINTAINERS: Remove Tomasz from Samsung clock and pinctrl entries (2024-02-07 16:35:26 +0100) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-drivers-6.9-2 for you to fetch changes up to 746f0770f916e6c48e422d6a34e67eae16707f0e: watchdog: s3c2410_wdt: use exynos_get_pmu_regmap_by_phandle() for PMU regs (2024-02-25 11:39:25 +0100) ---------------------------------------------------------------- Samsung SoC driver changes for v6.9, part two 1. Extend Exynos PMU (Power Management Unit) driver being also the syscon to main system controller registers block, to support Google GS101. The Google GS101 has PMU registers protected and writing is available only via SMC. The Exynos PMU will register its own custom regmap for such case of mixed MMIO+SMC. 2. Rework Samsung watchdog driver to get the regmap to PMU block not via syscon API, but from the Exynos PMU driver. This is necessary for the watchdog driver to work on Google GS101. ---------------------------------------------------------------- Krzysztof Kozlowski (1): MAINTAINERS: samsung: gs101: match patches touching Google Tensor SoC Peter Griffin (2): soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs watchdog: s3c2410_wdt: use exynos_get_pmu_regmap_by_phandle() for PMU regs MAINTAINERS | 1 + drivers/soc/samsung/Kconfig | 1 + drivers/soc/samsung/exynos-pmu.c | 235 ++++++++++++++++++++++++++++++++- drivers/soc/samsung/exynos-pmu.h | 1 + drivers/watchdog/Kconfig | 1 - drivers/watchdog/s3c2410_wdt.c | 8 +- include/linux/soc/samsung/exynos-pmu.h | 11 +- 7 files changed, 250 insertions(+), 8 deletions(-) From patchwork Tue Feb 27 08:07:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 207082 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2555082dyb; Tue, 27 Feb 2024 00:08:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX30qHwPP3qoCWDEZHve0f6wzjV4/ivop8acfM3jTGoO97SkzDatqUALYutmOpvBqlW90Conmge0LDAngWDb5JefwQK3Q== X-Google-Smtp-Source: AGHT+IHnLk5nVD4Q3evvyuOPLLN3I8p7mAFewo7cEjvNsf7u55ReMelCEzT4etGrJPNhOrKwjEmr X-Received: by 2002:a0c:9c86:0:b0:68f:e35e:da7c with SMTP id i6-20020a0c9c86000000b0068fe35eda7cmr1119801qvf.33.1709021321998; Tue, 27 Feb 2024 00:08:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709021321; cv=pass; d=google.com; s=arc-20160816; b=kuchEQoRFw+yki78Ct8Zkm/SbLzcZIinTDJ0i1088gLwiyw5QavVcOBpGpsZUeT4IY KdwOqyswG5ZNCYNIj6eQERuSCFivIdSisnV73Y/ysfQJJ3WtWdMbFcxu69x09JfHG8y2 Cn1Slh+VOEV1xd/8Ph4EXUuSAEiSPGP92beHrF1SSV67Z6c/cdXvPgMqm9gI3f4vWmze 126dtAIZgs0uVMo0hEFS/kF5PzXijM4/ATsC2yYvcLFQnJqAOJbz2u4TLFCn98rpT6XD J8BkoiLfy0TeF5WkzfAZvT8kEIu/BJk3f4kGFN0Omg5tsE5KGPkhNNbUGYAwBgHOjaH9 6PQQ== 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:dkim-signature; bh=trQx0OfRMQbxsApd/n3MseZdPGhNtXwXAK07FPTCiBg=; fh=CUkuWu3uOUASyM7i0/senCIxyg0xBdgL2SmJm/Y+Rbk=; b=kG3TckkvRJl7aVm2KzdUXtFo7Ml0E1UODU8wIjinZUGCF57bFuu/xiITc/nsyo3A6T 6ebaAIDmNqjxBx1I8p6ApTp4cyE/e/9bTxkZIxpzET/wisEDgnro5KjJ77wPwEXNtZ14 jRP1uc9/MPUIOuQkpK6DimJj9D/iHdCTbt5NVKq2nb32ko7YZFbvX2mbGQuYtXVPWlRT UFb0tKkgKVzcUgKItwQnMONTu1expHHfxRYpqQJUkZ+p54fUQTLb5/RRnykGj46325Rj sY5x82JNqrQ/8viFB6LNS4f2osMtzJwI7bUrUUNOU35feqGuPT6cR++9kaRUxdth5in5 Erlg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sCO2m5yo; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82843-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82843-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gg5-20020a056214252500b0068fa1f5a782si6984496qvb.512.2024.02.27.00.08.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:08:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82843-ouuuleilei=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=@linaro.org header.s=google header.b=sCO2m5yo; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82843-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82843-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C6FF61C20FE7 for ; Tue, 27 Feb 2024 08:08:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95D6C5731A; Tue, 27 Feb 2024 08:08:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sCO2m5yo" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E09C556473 for ; Tue, 27 Feb 2024 08:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021289; cv=none; b=Y/up12OI2kpNL7b6/qnBYsNS6bVeNGmlcRKlUlCeJnUdy+oEPsS0kPOAnLGd27SSVRabfh9ZhziiQWWED7czsucj4+EdjbvyGFZhjZgErFVMy6XGcuQEVeqhJwWyo+U99L7V6FmNz5h1uYclpJer1hqxO/fOCtMGVevdqInjpyg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021289; c=relaxed/simple; bh=bSOt1LeX5Smqfy3y9LXkqvCS+4z2Xje+3YML8Y4vZzI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=RceipEFZn0rHbQS0HtslOJTx6sBzxK/n8YhBy4oGmH2qfwFWfbGzyre1ohTbRcriLP1kqWk3wxXFlPa7ab53LhDR6kQL3G7yp0eewuh+oXCND4IcqQ7VN/eA50rezsiZ5aYYLaJX0e5QLFxYrUNWKxqpGgGDTX7acpyIrSsU6h8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=sCO2m5yo; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-563f675be29so4139118a12.0 for ; Tue, 27 Feb 2024 00:08:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709021286; x=1709626086; darn=vger.kernel.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=trQx0OfRMQbxsApd/n3MseZdPGhNtXwXAK07FPTCiBg=; b=sCO2m5yo6e95e/DstbYD5SS7iFM/qVpwyg40adRbK3Ip3MOyW3pKnR1RkbCAgn25cI KKPVH5JMPXdRe+nK1i5F8jDVbsucZ1hIj8ngSDlOed3DM3RHk4rj6zRGFs7HWLqedOE3 R/nwAFQHxCP/qWC43YWomNjaVotYqg4e8VSGm1dsOi2e+cjHWk6xT8ltwoOLEzhiTSge ph0PPU0xvkc4y4MrsPjvp2y+Pcv9ybzbfiflzyWv5k/x7VX5szWMt6dOo025Xxpx2r3+ NwrsB2oToXIuEAeDiM1bAymSSQYtmU7jn25HWB4ptDvTfODUXM9aUffveM3gQZswrRU/ Kojw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709021286; x=1709626086; 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=trQx0OfRMQbxsApd/n3MseZdPGhNtXwXAK07FPTCiBg=; b=YrZGSI+cwo3P4l8JlXcr+pxYqeFuUqZz+X95SY0F0Xh8cIuLFopPsW7qTXYoEB+Jwf ZwRngEBpYn+mceUPPXf1EwJ9bHRiXlVqFAnNP9QrI6v4m3AcJBZaMEjvcUH82bui1BkF keaR8cVR4f9Z5r4UpA1i7LhukwFVeCut1wXJAJdEhSB1rHRV/2J5Tem7KlvrsHrF5aU/ AyiVSNHrDgY3jcpjEq6djFTR2WQPoTB7+3tFWsbphBlZx+OxagX1o6qH9GAbdvaz8kw0 IiV2l9/eWnPbotN4kGVMZB7VWkg0DnADNEb3RgxuD7QcWpoPtHEiZedLjtjQXJKbNQ8g SYDw== X-Forwarded-Encrypted: i=1; AJvYcCVbTqdcoRhHiOa3/ldFCQVAjKf5PwNSWRfqWhC6OZdY+aLcG7Dy9T9+RGSa2Cl13Qas9y03R059DAPsXPxQq0jqpxBAoOBKa31BQpdB X-Gm-Message-State: AOJu0YwYRe8zqy0fvnBXpHmDYtgD58jk/yzv2HBhHubEdUcoyWq16qlq ezu5ltBleEtbEFuqIv1EJey4iQWOPU/cGPwTEu9n+/8kE4lYlfEcAopGwXvxVPI= X-Received: by 2002:aa7:cd4c:0:b0:566:4895:c582 with SMTP id v12-20020aa7cd4c000000b005664895c582mr146303edw.15.1709021286457; Tue, 27 Feb 2024 00:08:06 -0800 (PST) Received: from krzk-bin.. ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id b22-20020aa7dc16000000b00564d7d23919sm509662edu.67.2024.02.27.00.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:08:06 -0800 (PST) From: Krzysztof Kozlowski To: Olof Johansson , Arnd Bergmann , arm@kernel.org, soc@kernel.org Cc: =?utf-8?q?Martin_J=C3=BCcker?= , Alim Akhtar , Peter Griffin , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Krzysztof Kozlowski Subject: [PATCH PULL v6.9 2/3] ARM: defconfig: enable STMicroelectronics accelerometer and gyro for Exynos Date: Tue, 27 Feb 2024 09:07:54 +0100 Message-Id: <20240227080755.34170-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227080755.34170-1-krzysztof.kozlowski@linaro.org> References: <20240227080755.34170-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792038741598591260 X-GMAIL-MSGID: 1792038741598591260 From: Martin Jücker Enable STMicroelectronics accelerometer and gyro drivers for the Samsung P4note device family in exynos and multi_v7 defconfigs. Signed-off-by: Martin Jücker Link: https://lore.kernel.org/r/20231221230258.56272-2-martin.juecker@gmail.com Signed-off-by: Krzysztof Kozlowski --- arch/arm/configs/exynos_defconfig | 3 +++ arch/arm/configs/multi_v7_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index c98d5ff8a1ed..7ad48fdda1da 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig @@ -318,8 +318,11 @@ CONFIG_EXTCON_MAX77693=y CONFIG_EXTCON_MAX8997=y CONFIG_EXYNOS5422_DMC=y CONFIG_IIO=y +CONFIG_IIO_ST_ACCEL_3AXIS=m +# CONFIG_IIO_ST_ACCEL_SPI_3AXIS is not set CONFIG_EXYNOS_ADC=y CONFIG_STMPE_ADC=y +CONFIG_IIO_ST_GYRO_3AXIS=m CONFIG_CM36651=y CONFIG_AK8975=y CONFIG_SENSORS_ISL29018=y diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index ecb3e286107a..0d885cb61206 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -1150,6 +1150,8 @@ CONFIG_STM32_FMC2_EBI=y CONFIG_EXYNOS5422_DMC=m CONFIG_IIO=y CONFIG_IIO_SW_TRIGGER=y +CONFIG_IIO_ST_ACCEL_3AXIS=m +# CONFIG_IIO_ST_ACCEL_SPI_3AXIS is not set CONFIG_ASPEED_ADC=m CONFIG_AT91_ADC=m CONFIG_AT91_SAMA5D2_ADC=m @@ -1169,6 +1171,7 @@ CONFIG_IIO_CROS_EC_SENSORS_CORE=m CONFIG_IIO_CROS_EC_SENSORS=m CONFIG_STM32_DAC=m CONFIG_MPU3050_I2C=y +CONFIG_IIO_ST_GYRO_3AXIS=m CONFIG_CM36651=m CONFIG_IIO_CROS_EC_LIGHT_PROX=m CONFIG_SENSORS_ISL29018=y From patchwork Tue Feb 27 08:07:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 207083 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2555208dyb; Tue, 27 Feb 2024 00:09:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXIhr6JPel1skr54S9paU5ExzIhcWqWbIgj44AGEJMGdQtRcd6DQnHbmcXAltcvKReKNP07V9IwlIsD++9Ru4WdVsGzVQ== X-Google-Smtp-Source: AGHT+IGp5zOMPztkxpkMrHD0OSTeAaVBtbuVryB9+Pt9k705BVsMkSMsiNX6K4J/P/LyYfkadfKU X-Received: by 2002:a05:6402:713:b0:566:733:917 with SMTP id w19-20020a056402071300b0056607330917mr2872822edx.16.1709021341453; Tue, 27 Feb 2024 00:09:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709021341; cv=pass; d=google.com; s=arc-20160816; b=Rzig9gviv9G+9b4DfM13tZYofbn7fXMxlo7j7dAlGhP776XISDLqDgSuyFXHiS3MCZ XOp/ROa6OYdjGFd+MrHA2rGzwIXmXPxYK8Wm0zMEUL2yveo4SCfO7ucI5CjH3ZJXCWYk wsUHknRnhRKWjMFN3sGv5FTfuj7Lkpeu7DEUb3JTxoRMJkMpE2gTBJlSXAybBOcqAxMs LrmlNmzGEK9sFMCeRnTMGYLEAdEydiBiui/apHGJ+Zh3Gk5L7f1+sQUCq7SbKj41j/7c wQkaL3ZUHK7tl4bARhv7EcyOyClMRi4y+sP9XxD5iWmGV14zyzt13xFHTOieDBN0cJQD C1SQ== 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:dkim-signature; bh=iiVrva5DwInjSui+Br+HHATpx+xvm6PVi1TQNYfveV8=; fh=APoOhDOq+NZpRVLXxkm65rsd46TptG/y9QOP9ZN9ATo=; b=bsrCF4yfiOnjac8CrKZnBmMubyku6M12/Qd1iw59wiYqo3ZpXX0K7olVo9CPfqyNDU hBTDISMRoDHBIqIycpBmigAynbKvsAEaepsQKY8xbo1/3CsYosxYrANzEX1uceMauBOi 24sy0TbjeBinbsT+XZaoYuI9b8TGxv+0lt6Gr+AimqQgH4tLZlA6LHMOxJzb1Nc+jIiy o/+CeMIeOpyhxQzqmZABo7zX/nMP9WkdYpVUnJ5/A4G8IlSlygjQjJ945TOrCyk1G/6t VbSK927EGHA5nwCZzy2OXAxEA4IyM0EOUW1VMvbCi2TQLzQ9iBDqqqciUEIsbFeL5tFH MXmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j4Pt4hfE; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82845-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82845-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y9-20020a056402440900b005662dc5962esi537417eda.236.2024.02.27.00.09.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:09:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82845-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j4Pt4hfE; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82845-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82845-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id DDC2C1F250E1 for ; Tue, 27 Feb 2024 08:09:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DC6A57878; Tue, 27 Feb 2024 08:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="j4Pt4hfE" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD00C5675D for ; Tue, 27 Feb 2024 08:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021292; cv=none; b=FlblgT8IP+s3oPARMXkYBjWaFdzFlseMV2JZJMLin+NONWdZwW5T4LVPOt+/WcCHEd9cXw3r+BocnquhZEFfScK02eqydgeUQEBCsF0irhDBQVyYeeGNSXqkpNPJQ20Mlk4ORtZWqBhkCdQsH3xGourYn4UNTkg0L3lT/q0tMyE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021292; c=relaxed/simple; bh=whJn6oRUulaQwJ9k8svjSJYyaK1DlOk/EVrP8cPTcEs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oy4CsYncv9VyETHZdy+I38ADAlVv49zQzLvGCxSQNj/Nl1nVvHRrKKczyyhleMSzYkukT+PSI3gdw3ASgyTFY1M6N21lxPOMivZuZt9nD/ZHnK1ImVDVfB6ZyINH6HOpMstTBm0TXjwuy1NeIv0vFGVDsNkP0uxbvRzLid52ojo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=j4Pt4hfE; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-564fc495d83so4539474a12.0 for ; Tue, 27 Feb 2024 00:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709021289; x=1709626089; darn=vger.kernel.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=iiVrva5DwInjSui+Br+HHATpx+xvm6PVi1TQNYfveV8=; b=j4Pt4hfEmEZyvRdEZWV4F2+aTOi9CrKhoSmM3KJ6+z7bkljwfLsIq9/ELeKJ67A9Kj LzMsZcUtNKs2pRrWOkYa81ww4DD4a81AfkOj5lg9LaGijvDj+elKr9ydFT2q2ClpUZ08 xtUeqOY4fFXWhC7u/8upPw4AzRzpod6cUpKRmYfeyAsJzyYBpGqZFgTUthAm0LZnzLIj 5pTlq3VDRUU/ygncc4PTuaTcR4nYjtB1jt+hnfZUZCGZKXQzJYS9kMSW9KaxcBFHwxJw IZxdM87sL9M5gPCV+kVUaFpGG9zOzWf0LyfJrTATP+L4SBgQUXffSIAFBrz6g/N9lOAZ nCLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709021289; x=1709626089; 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=iiVrva5DwInjSui+Br+HHATpx+xvm6PVi1TQNYfveV8=; b=RcCMbXG0+pSRwnlAmhu+Mk57fMskVj/RpakOlQ99ZEy8SH4V5iy8QQxaeoKWwAqmSk hEHJDgKSuXNtjlh66Ec0gvp4fsusEnHPeXkaztluFSsUoaSFu3ulM3C5eqERooDHNjdZ wt8Urtwv6PMtLgB1sTy8CBNHiGvCIjvUMJv1cP1sJec9w2wD+UGHSNciqcbswXq+CyB3 PMWR0opgmHEQJQ/dFN2EOGcxima8phgipWgjPDHfwfb05EujcHBfscf3uvknscNaC68T Lng0DNZsTYsGoq4cnjSi+0E95cuZtjZ6NygW7u67fyWO1oC0Ajy1umILJpa1YMyXL9RB 81ew== X-Forwarded-Encrypted: i=1; AJvYcCXlO6OPp6OyqaO8xyuIydN1c9AXJilB9LqIcMh4gN3E/pWzlT781j8/2q1OlKc/yvQyjGrlDI1pIdfo8cyjhIPn+p6z5on0XnYLT/hM X-Gm-Message-State: AOJu0Yyqq1PYdcq8JsaBW+eefkrn9/xxa/CrcmVRG3uX48RZmiYAZTzm a5ePByO+OjRAv9/s72DLu3VjJjozXFyv1GprlowK3UhmqcInBe45t7KSXM1kcoRcaCg7Y0yN2c0 P X-Received: by 2002:aa7:d349:0:b0:565:c34f:df4e with SMTP id m9-20020aa7d349000000b00565c34fdf4emr4938085edr.29.1709021289206; Tue, 27 Feb 2024 00:08:09 -0800 (PST) Received: from krzk-bin.. ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id b22-20020aa7dc16000000b00564d7d23919sm509662edu.67.2024.02.27.00.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:08:08 -0800 (PST) From: Krzysztof Kozlowski To: Olof Johansson , Arnd Bergmann , arm@kernel.org, soc@kernel.org Cc: Artur Weber , Alim Akhtar , Peter Griffin , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Krzysztof Kozlowski , Henrik Grimler Subject: [PATCH PULL v6.9 3/3] ARM: dts: samsung: exynos4412: decrease memory to account for unusable region Date: Tue, 27 Feb 2024 09:07:55 +0100 Message-Id: <20240227080755.34170-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227080755.34170-1-krzysztof.kozlowski@linaro.org> References: <20240227080755.34170-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792038762122144133 X-GMAIL-MSGID: 1792038762122144133 From: Artur Weber The last 4 MiB of RAM on those devices is likely used by trustzone firmware, and is unusable under Linux. Change the device tree memory node accordingly. The proprietary bootloader (S-BOOT) passes these memory ranges through ATAG_MEM; this change allows us to have the correct memory ranges without relying on ATAG_MEM. Tested-by: Henrik Grimler # i9300, i9305 Signed-off-by: Artur Weber Link: https://lore.kernel.org/r/20240217-exynos4-memsize-fix-v1-1-7858e9c5f844@gmail.com Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/samsung/exynos4412-i9300.dts | 2 +- arch/arm/boot/dts/samsung/exynos4412-i9305.dts | 2 +- arch/arm/boot/dts/samsung/exynos4412-n710x.dts | 2 +- arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4412-i9300.dts b/arch/arm/boot/dts/samsung/exynos4412-i9300.dts index 61aca5798f38..b79d456e976d 100644 --- a/arch/arm/boot/dts/samsung/exynos4412-i9300.dts +++ b/arch/arm/boot/dts/samsung/exynos4412-i9300.dts @@ -18,7 +18,7 @@ / { memory@40000000 { device_type = "memory"; - reg = <0x40000000 0x40000000>; + reg = <0x40000000 0x3fc00000>; }; }; diff --git a/arch/arm/boot/dts/samsung/exynos4412-i9305.dts b/arch/arm/boot/dts/samsung/exynos4412-i9305.dts index 77083f1a8273..1048ef5d9bc3 100644 --- a/arch/arm/boot/dts/samsung/exynos4412-i9305.dts +++ b/arch/arm/boot/dts/samsung/exynos4412-i9305.dts @@ -11,7 +11,7 @@ / { memory@40000000 { device_type = "memory"; - reg = <0x40000000 0x80000000>; + reg = <0x40000000 0x7fc00000>; }; }; diff --git a/arch/arm/boot/dts/samsung/exynos4412-n710x.dts b/arch/arm/boot/dts/samsung/exynos4412-n710x.dts index 0a151437fc73..eee1000dea92 100644 --- a/arch/arm/boot/dts/samsung/exynos4412-n710x.dts +++ b/arch/arm/boot/dts/samsung/exynos4412-n710x.dts @@ -9,7 +9,7 @@ / { memory@40000000 { device_type = "memory"; - reg = <0x40000000 0x80000000>; + reg = <0x40000000 0x7fc00000>; }; /* bootargs are passed in by bootloader */ diff --git a/arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi b/arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi index 39a3d1cbe4c3..28a605802733 100644 --- a/arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi @@ -23,7 +23,7 @@ / { memory@40000000 { device_type = "memory"; - reg = <0x40000000 0x80000000>; + reg = <0x40000000 0x7fc00000>; }; aliases {