From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 09B20824A0 for ; Fri, 28 Jun 2024 22:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719614112; cv=none; b=Z+ItMzAMve/YJ8yYBucSVuVJ+VmsgrBmPj1fFi1QudSqvVp+uJBzeesOI2kudigyQ2b+QCedkKRAnmINMbzP/8xdztI9FsjCtGdNzcRiU+bo5V/ZedyaJKJaryZNwB1HZz5/jWlRcWJTF2KfxRE10aiBkCwUeEq/IWnxDFFOOuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719614112; c=relaxed/simple; bh=5z39nspdCFa1waOp1np3+7VoVXwA4cwuinPBbzvRnSQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k7xQnPjJAGrQ0uVoH0Td+gKbViWlnnZRQ16ORxbAE5AvZoCP3IZslnTLA5UIOkLr7nPoEgobx3b/ua9xXUrgOwZAWldAPGFr89R2VcF8OzHDw2q94n49rlKnDkrXu5WrFByANzpM7+08mpfGBudtR1i9g4z3EzNuaexSREDJFDU= 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.47 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-f47.google.com with SMTP id 5b1f17b1804b1-42138eadf64so8861685e9.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=v7tNCtFg3AT2KUfHGLJFVcwPvcW+czK4bzRu+lEoyjQNcEkJDL+j/I6L8wt+iwqUf0 hFcIAWEDx+4UQwQiZS/afkICmM9V0psSdLi7BVgp/ADBiLafiT8y2kLy8T9Lt+qDyJRr 9FIAdJHXWi3EkbrZ5iIuBqMDLghBn+jvfjHF0qjufHpDiYK+VHo1kRK71A2+SIP1nT/E fHgxjs6enRtvjiYAJIQxcO61Zc+e5DI5KHPr4Qxk+e0su7fEHH8nF/AKxm7Mb8cWhLkG OxjUD5DzrTgAgbkGc7HpqMurrNG1hKwhYfspoGYkRK9m7VEQ5Hzy3jgOz+aLwc4qyjZJ WR3g== X-Forwarded-Encrypted: i=1; AJvYcCV1gV/bUd39Vb/89RvWsOtSTzdsd6D76T3g1o3I/ejhTaAVW8FHIPHW+RoaKH5MHxvuHjVnC4gLrPnjMLmmbuwdOPNiBTeFIg7WYw== X-Gm-Message-State: AOJu0Yw8xpY0/h2DsAQep+A2TDPxD5g7UDi6d0/5MGOL6z/G/wmzoO2t H6Biib7MOXVgtwM/eD3+6HPr7lAPZzNEj868qBSaq5+Oa9R42KooBc3i8++aP7k= 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: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) -- 2.45.2.741.gdbec12cfda-goog