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: 13573343 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 01ACA55E57 for ; Tue, 27 Feb 2024 08:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021285; cv=none; b=mO8dx2LM4RhZWN2EzcHBFj6AlJ3EQhA13YGjcYDd46NfDzDVAoMR0Y2vLqVvRyWs4mdBsepz3tdtegKO++M/bBeaaHuM7X4uYNANXaCAKnxIoMNqHbZakUgAF/diZoDjn8T3/h50hf8zXV3aEn9WCYm0v1l906VymMvn2QgjFsU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021285; c=relaxed/simple; bh=n1CqIB7HxwTIaN27h/cGfKFJJyQtYXmpjcrb3kKzZac=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ozqw0mT7YSS71728P5w2f9tZPNHBHi1Y9undnvnz+TvoVruz8s/OQlLrSoH+J1f6Mpiousq1/uV/LSwyqLVeGSN2ZhCuDFak2hpLDwqy+PYHuRmM68eQOXEmwr3bclLb17GgzAv93a5UsVrX7nS20MWP4npC1tCkDLnSgr//ICU= 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.43 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cmDbc12x" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-563d56ee65cso5113434a12.2 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=j3P3vgl8KA729v9baK9FbWS9OSqDcP0T4ZFoUwgYjIGMxyESc56l/H6CDvjtlWh+V/ i30ad3b1WrJU4sTuVInAXjqH0XstlvNEBQBM3FOc0fo2hj0fkpt377DG6gb3yzv9g0dB IYGw0wtb1VTTrhbhxzXFj56jS99jFXN8oP88sp2HnOROkojGDGeuk03ej23OMWrPOT50 44JhM70uUjq0vPB3EtUgN/tIqb1UK2r5XPJ2jeRNultwBwd5GtYU+k5nS50kf5+fjd3b jxQfPZ/PTVYNFNrYnTXozFXe7C9FCDibOshYuccu2rEE75QweP7ltb/XNVHuNF9cnQo6 92tw== X-Forwarded-Encrypted: i=1; AJvYcCWqq2AkARqw9ERuL386ipNrpDLwfSJFix6Pc1qwJMy19VSCBE/r20s8blKV4omA9qVZbTEOc7GQN1DHv25FGJdxrT4LK+HSbcW/RQoXFwVMFiU= X-Gm-Message-State: AOJu0YxD2IvapEeFui+AyYtVTCwUB5ya/DbFp/VsZz6a2QmQ10ITOacj UWl8fZmc2lDpGBDBtfwjJunIl9OY/ukgrRAi6pxjfG2DoLB7AN25s+k+i1ScoRQ= X-Google-Smtp-Source: AGHT+IFaapiS/FFG8BskCGhtgplEMxtjTEE3oU8cJgGqNh5gbBgUjZ/8L7PXjg1DmlNnflpw/Pm3Qw== 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-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13573344 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 E097156472 for ; Tue, 27 Feb 2024 08:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021289; cv=none; b=hZPPQH1D4w34EMi3bngxKrBfWSsnW1KSK/486pe6sbLJBhK4M4kZ/Nqc6QHOggW8hI7ch1YIcGbyLowxtNEZA7+hroHN/66tM0eKJlNTT2tVIS5DY8RmY+PHOMTJTuw94OrWivzXG0C38YFMdQZpCPQsfcHrvGSoCR76IZePpHE= 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.54 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sCO2m5yo" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-55a8fd60af0so5287223a12.1 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=w0kKloe588ygR/vi5IbkDmLrmD7XRx4kvruoYY0ksNTzrY2I3d3nD4DzFghwvnOlH0 HI9tAA1Cdbo57kgwrRaT2rG4sT2Err790Q+CrOSvuVKLjfIjbJ8SUVIbEZXwpqWuPcFn Fu94LI0YIxjhYc/10tphs1lsZRLO9aP5BrIlPMtExRufop4djt8cjl2UL5i7br60RXGH uwN9b+tNDfAUcEJAkiRrN4ih5O4R5K7HMxllCQjfn+MijO5XjVTUb9k3jHqhN5bjJHAQ 1AznoMEWDy+7vPpTtWpTgu64Xd1E7/qn8t5Ex219GSM1Eyg6wf9l1oiCXkIAWU6Do9D8 H38Q== X-Forwarded-Encrypted: i=1; AJvYcCVrcuBgeR1eiEUNtffT3p/03vIS3U3IyjpzSPVL+LtKWca12YuA7IOgxtzduOln5DjgVF10gwIwwM129hCekMeHmZlXd/rkiWVLs1MXKUT0+HY= X-Gm-Message-State: AOJu0YzNj+GxwJsb3KGGUmvE/9YgJIFg8FUAapAVLoNUmFaLyn44Vo1Y QuWwqGpiOWma9TIDNhEkdsitjez5wrfGw3XJnr/csMklJwdmXR3PuZF67ZwJnLA= X-Google-Smtp-Source: AGHT+IEnn4ZoBLr6QN1qXuyx3mJBtk/c9WxXrNxt6iO7Yiw9JjvAPGEUB00W3B8S2Fmrpo7bhflTVg== 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-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13573345 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 AE9C256762 for ; Tue, 27 Feb 2024 08:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709021292; cv=none; b=fxgbPFUBBs0k7/0TYPn2wtyyVdbP0+NjMOG/A79WS3LF43DIJQ3ofTVKe0lzFF2V3FG4PWdWt3kVk3Qd98hQeLFBQHPZ5wTlZSTyHhMIh7w3k06wLlK+TlPXsprSlrweSHJPkyHJ7F1orP1PtbtWMzbljwYeZsZrmhH31kpSfn0= 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.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="j4Pt4hfE" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-563d56ee65cso5113663a12.2 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=I0JuV3NO0wGhZ2YEoPEUr7ygvKnyng8EQ72tahsbE51tmm8JTjAHA9AcmIGg1grEuf 2kzZpjw9raYMPKEF4C3jNRt5246UQ8lb5KfRbFTjHtr+bsimiMl4wUL0wFHdSFLfcuVP MhGWXdN2Ij7dh1ZN8vxyaOnKZHoglv6rrv86yCcVWg0FqMo/4r9yCbT0f18snq8MLE5I ecGftHKh/wTLApiRIqTQitPDYY9XpP4Z1rOLerkt/BvJpPTuKg+kDSEGvNpz9f0RigzI geHNorD2nzCFhJK5AbWyT14S31gZQ2mvO4IM73hF3RA5j/BsiPkQBI8nn7FbyTPSiqyf HPVg== X-Forwarded-Encrypted: i=1; AJvYcCWliPBSv6T+iFHC8k1oX75mBG5AH8BvwE3/XLvdPVoCurSeYT2vK3IpBtrtvdS0/jST/01KcOdnxb/E4dhStEogPvHw+Vj1r8BQJRTQY6J+tvo= X-Gm-Message-State: AOJu0Ywmw4yg8Mj7IsiaBXSMivWwXV+5aImECxPEmEjf8FYl4CB10TDZ c4Y9Ho5ZTS5IlrK2VW4mgsQNZRtfLkBOr+K4ChQRQMLAoyMcLU5BQgqKM3C6OOA= X-Google-Smtp-Source: AGHT+IEWM6Nm8SPJY4tlU/DHnXZcjC6HFHDjix8q780UPHj1OCYUYpjhUE82VyM26QICREgDnkRfTQ== 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-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 {