From patchwork Fri Jun 28 22:35:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 808469 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.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 F19E38249B for ; Fri, 28 Jun 2024 22:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719614113; cv=none; b=uK5tuzLwFsYadz17Vb3D0aCOPw0KPy8cHt5WEsdW0332ALr8BtNY3OhQaXX2pAuS78tbrtNRlWM07/JDaUJdVNcSSQxznM/J9HQg/eYjlW07MRm5r+EjkPOmq2PIfSicFmug7EErwK3OCoDjqChyMpCWYdjTCX+4jikkagFVQqY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719614113; c=relaxed/simple; bh=5z39nspdCFa1waOp1np3+7VoVXwA4cwuinPBbzvRnSQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lzjAYv8tw8xREs22RgFbowyYnrCZo1ecXLsStW7dwmPBkLB+sX0aPfd3C1ZVxOHCF0eyinWEbpjlpTS5GQcweQ7HU9/SWueveXzn/W7od9l2rV7Ar/uo1Ac5lGrzBgMbBqCn7VFQpFEIo0k6pNKHTYqbcRrRWBQnZsbki1wV/M4= 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=E5FEurIC; arc=none smtp.client-ip=209.85.128.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="E5FEurIC" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42138eadf64so8861675e9.3 for ; Fri, 28 Jun 2024 15:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719614109; x=1720218909; 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=V1FJMdQVhtsVTBsP1IuwFsjq71hMcyI7HyXkWpIvov0=; b=E5FEurICSpySN4RvIt21tdZEwOtLgGPfoEjmxqHd3uDEqsYrp1yQim7hS5V8QBrSVh /nheAvZ5T6LL1jx+EtuByb7QNnVek3hamlw3S7mDjP12t5lkzGF9qSrsJOaI2dspRadL 9m/7LL2lp34mYqe04Fm+v5e6tyXWHbUrFQ6aClAxSiZaVFEL9rqUsP75T6mHJLAA6ZBo gqObSkMn9Q8AAxzkZvF2yQ+K8pjnYZKrxQfbhsXMqiDR72jkCBo28vMAm/yzWSgLCZc1 mMpRiRNGr45A4sq8MJ6w+Y2YZldTJjTcocozMHLmAaylKemvBmX0tJfvx84NMTzvcZE6 +I/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719614109; x=1720218909; 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=V1FJMdQVhtsVTBsP1IuwFsjq71hMcyI7HyXkWpIvov0=; b=B2ifKymObqVZuqrfSih7x1rWt67vnfDC53fq7uWSeac+zfVPV/CyGd2VUA+Foxjkrm H83WCmvfyVHEFr0xyJF1x5Uz40Z+qFW/JVI7kgH8+JwChJ2dagPPnAaCQacHMDk68prE tYpmUWOZEYTS2WyjZoDB74Lxy4m+DUchwSQGMI7sRisTNNCkTuxK0CdWrzdFuG8MSjdK 6+rk3ERrZPZ7zqtXtYuEi2JUtvYBeT/JIQ+TwhA2FxOg9XLIHNdHmZS/LjC6eg9YyJSG C7k2obNFlJ3ErOHZEfct1Vb5WKoIczU1kfA1B4W8MqtO7Wuna0s1ZqQ25IYRJWFMz35J 9ylw== X-Forwarded-Encrypted: i=1; AJvYcCX+ofDOQpU/i+w5H9DKVZrl8KhJnyD62QdHbTW4aa7kusK/SE9/FpN2Ogx2Ss/KbGPsRsdql52w1HVrRYKbk7axN/g+O3hlOUZMzgTxltZpuQ0= X-Gm-Message-State: AOJu0Yz5XK5/hbg0BLPhPXjoAOY9HjyHdMrWoR1XUr8pzx5oINc/QLQr jnq7xS1htqq0Z6h/JAbGKPmFMQ3NCarNkj72WqATRR+HGsJ54RZv6MFB90F2DBQ= X-Google-Smtp-Source: AGHT+IGSqJzC8Dv0ZKSrTzp5xhhumx6Iv2B0brr3AvE+VbFcW5m/di04oRuZDZW7DCMVkBqggSlS2Q== X-Received: by 2002:a05:6000:1448:b0:367:4e17:3ed0 with SMTP id ffacd0b85a97d-3674e17400bmr4705520f8f.64.1719614109349; Fri, 28 Jun 2024 15:35:09 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510::3aa]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3675a043a16sm3496711f8f.0.2024.06.28.15.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 15:35:08 -0700 (PDT) From: Peter Griffin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, cw00.choi@samsung.com, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Peter Griffin Subject: [PATCH 0/3] Add syscon-reboot and syscon-poweroff support for gs101/Pixel 6 Date: Fri, 28 Jun 2024 23:35:02 +0100 Message-ID: <20240628223506.1237523-1-peter.griffin@linaro.org> X-Mailer: git-send-email 2.45.2.803.g4e1b14247a-goog Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Krzysztof, This series adds support for syscon-reboot and syscon-poweroff to gs101/Oriole. It has been tested with reboot and poweroff commands respectively. Note the syscon-reboot/poweroff has *runtime* dependencies on the exynos-pmu and clk-gs101 patches in this series, as well as [1] which was just queued by Lee. As you are the maintainer for exynos-pmu and samsung clock drivers I've included those patches in this series. For the moment I have left out syscon-reboot-mode dt node as whilst it uses the same SYSIP_DAT0 register as exynosautov9, and setting this the reboot mode is correctly reported in the Pixel bootloader. The bootloader is also checking a scratch register in max77779 chip that isn't currently enabled upstream, and thus the bootloader doesn't actually enter fastboot. Kind regards, Peter [1] https://lore.kernel.org/linux-arm-kernel/20240621115544.1655458-1-peter.griffin@linaro.org/ Changes in v2: - Move PMUALIVE_MASK check into tensor_is_atomic() (William) - Collect up tags - rebase onto next-20240628 Peter Griffin (3): arm64: dts: exynos: gs101: add syscon-poweroff and syscon-reboot nodes soc: samsung: exynos-pmu: add support for PMU_ALIVE non atomic registers clk: samsung: gs101: mark gout_hsi2_ufs_embd_i_clk_unipro as critical arch/arm64/boot/dts/exynos/google/gs101.dtsi | 15 +++++++++++++++ drivers/clk/samsung/clk-gs101.c | 2 +- drivers/soc/samsung/exynos-pmu.c | 16 ++++++++++++++-- include/linux/soc/samsung/exynos-regs-pmu.h | 4 ++++ 4 files changed, 34 insertions(+), 3 deletions(-)