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: 13716707 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 386FE824AE for ; Fri, 28 Jun 2024 22:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719614113; cv=none; b=E8r6wC00tuaIv3ueTkedkCbxMYkX2rDQ+rT/qbiZKobzZ1FDHXT1qdQEt8eQ6lZ37AAZJJXnOT4UCzUwTbTBE8WQ2hs3659SZnho9c0q9aPg8KR3PFhuUwzaT7D6yN7/CX8zeURs9PBod9cWlvpY/eoGEKPgBzcFKETkZsEk/d8= 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.221.50 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-wr1-f50.google.com with SMTP id ffacd0b85a97d-364a3d5d901so702012f8f.0 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=oUOu9gowlRHsEUnuUwS5up+2bOwgogDOJf8CCLWwbG5lV9VA3H7kNZN4NJExPKSRr6 j81nQkvn7XNAMEo4OI23DxXy1dgCfCP6QtGGRds1pi79H10qXkef9gaJzkRq5lHi+Eyp CU+2uAz4seAuioOoGU2KSlmbUsgtLz3WCWvjeKEsN7oigdWyL4R8iGWdQCnBDHdJGyK4 PNEsAg+ojr3j1RuQ3d/WGkYdv7T8Saoh/7jFvYF2jJWlLJmqZhOBvSb5HRTwQbByPzfv FuYNOS26xFyAV5JKcS+V3y34n8DmyzuuUabvCco19aazCsVqwBYvkzIpjm8jF63/DHIh fh2w== X-Forwarded-Encrypted: i=1; AJvYcCUQqjCuyZKPwZURw0hd9nUfn5dBdV6W3NUD3PEXrwfwIkM1jTkuec7AakN6q9zb5SLYbcH5srhANwHqynWaHlA1JR65di2679Nl X-Gm-Message-State: AOJu0YyRM7moQlViDxWFfFu9NN7Mj9E6cvtTdULLa9f51QY8DCbRJHwy nNNAdscrg7FWAN5t64+KolcvL+zELuK78TDqRpCnQcTUjKg8qIvUBMYu7FNyuJw= 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-clk@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(-)