Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1255577lqt; Tue, 19 Mar 2024 19:06:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtAUlVJ7m/i2nqCC1CQCD+9Iwtas+r6trEa3Tcar5CmTX9S9VWUPnqwQI2dpHj5laF+p36JmevbIppol9/jlpA4qwif4lvIPEk0JKPcA== X-Google-Smtp-Source: AGHT+IFcJAoF7yDNNqDJzkBTmBBfyq/tFGlaSXrviMN/GVV3cyXuOtVrodyctx5v3lSRrjp1KQ07 X-Received: by 2002:a05:6402:448c:b0:568:a30c:2db5 with SMTP id er12-20020a056402448c00b00568a30c2db5mr2060038edb.40.1710900363254; Tue, 19 Mar 2024 19:06:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710900363; cv=pass; d=google.com; s=arc-20160816; b=Uns6CHAGArkqs8C+l6SBTcKPAQdjV5ILyJUh45hLfJtyNAROR9pbgHiIJ1k/Ww/oSu 9wjvU0MbajDrSwoezc+O0kUodJtXaZGPWWPH8Mw2138Lq7kYixSacYAzWEJ6ToMqK9j3 h2SI+ykppLCwxwRyxI6uAlrZDu1y5cV+1J3vCmHW2klxm8eXMUD2g9No9vxFkp0cHxq9 KoCC5axHWkKw+OimrxzYoGs/y6djxx1iARqgq3VG9lv1VcTrQXKZ2uxY1ZUUg1eX/982 UvtjoIah3gRdMFrbp4AZd+wBVHuMoYsoTOaZM21Jja6smHLIoK2PozKB2thbqrQO67Kz 4TrQ== 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=MJbSfYpc/jJCFvciL1kM3GDBs5qlmkaejLmxGj8x3co=; fh=7rPE0WrCZk8vQ90vEfHiU8008f0OpTaOUwCyaDRa5WA=; b=hPCJsFUCRuq9kmFPP1ksPd7WpDFCjYIJwtGczHOZAbKce64D92lzO+ibQi5IWh5d/i 0c3gl+MSFRY5+IuN7dquczD2yF40ID31pZPmEs+dbJLCm21wZn/1UdaDfbVVbcAYN/6i pQLxxtdSoT/R0z4RiNBUavUVTFSCnZCdgwG8DfzsEldBw5KureshWk/l2t9j8tYX8rf4 HM+nX0sIzIOr050dM5+5Y/YzAfOHVwDEN/kAPpLiB85Th5ytFZA+YkwdQlGDDamF1uQ8 3LOcKABToXOFRIdvhW/0JJUx3ureW0mplWlttVJauqezkEDvaN2YCfOLQNP3g//ryn+x atjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Si4oQMwE; 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-108338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id fk26-20020a056402399a00b005689309d05csi5061483edb.8.2024.03.19.19.06.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 19:06:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Si4oQMwE; 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-108338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108338-linux.lists.archive=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 CA7D61F2391B for ; Wed, 20 Mar 2024 02:06:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0126D8827; Wed, 20 Mar 2024 02:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Si4oQMwE" Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 0ACDA6AB9 for ; Wed, 20 Mar 2024 02:05:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710900354; cv=none; b=g31/iI8+/yyGZlv0C0zyCUpzZmvT9oIGCm/aRCiLZA2PZm6gioaZ2FF9shET6Gd+Eey+pYa7HrbJ6VLeLG8UO6JhczpDEl7/uQe7VnBM39BE/n8DEPODS5+5JIKtS434/tZcK/DGfVrZxYuYFl2hQZsy+WpEP+a2NIO30x2UtGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710900354; c=relaxed/simple; bh=UDPA0ill2nwITsEd4B7gur+Ay98Nr/tWbJGEuMapLoo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LCM/SNr22E3WJdo9KGZXbpVD6ssxF76pa7ato3qOF6k9VGejaa8N+W9Po3B/+62earJmQexOElvnSTzUfvgtnlnFf22nh8b7vUoKXSGSpZ0LmsnT/TMyJ66NP06OodyH0E1V9DesHh8nzfiv1y/zeABU+C3L9IZvXuE4cGSvKX4= 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=Si4oQMwE; arc=none smtp.client-ip=209.85.221.49 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-wr1-f49.google.com with SMTP id ffacd0b85a97d-341808b6217so1289710f8f.3 for ; Tue, 19 Mar 2024 19:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710900351; x=1711505151; 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=MJbSfYpc/jJCFvciL1kM3GDBs5qlmkaejLmxGj8x3co=; b=Si4oQMwE4H/GNnHSK90+vLL9fQyZAjVHeyaM6dIwe6gYR2Ntm+Hkw62dAi+ZOp92sV 1RDXzCcYdHxyOSorpoU8Aho0ydK3FZ2VL6fd5Z3+l9TiwYmIrMr9kSj6pDkkgniUpYVk nIyzSW22l0IMOWQ0+IGaHe/IQpZo3Lve8wI19FwfeIwp9p1T79zwMreixFc2CMFPgRC2 HNnBBV0ZWsUxggT+dG5tcwEfcTnuQpnsuT9ER8uFYLXyq6BzwzXuH+7YeMjZxrXkU38O uLvIuebhKXMt4Q3Q+0q8U3Zzhbrsdax0Vfz8Mwpq8M5qGOOrVu1TbunJ6qABuUdUoTEV EA3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710900351; x=1711505151; 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=MJbSfYpc/jJCFvciL1kM3GDBs5qlmkaejLmxGj8x3co=; b=wXQJcrPhtPzUHo1ulA0a1i3ksNzi6FbDRF7Kw0ULzSHZE6b9ugs8795boXjQvwQU6T h3bvv7tIZf+P+kNki6mL7apRpWZtrw1YRdBG1FeE8ZosWbfsAyLVYpDByrx9kHH9jhK8 nfnkeL7RP25bYWkJ92MGs6+e+yZ8XkrLsrqEUfGr22pm4vQrMXnbHDbc67kFfNeuLnvm 9cIUd+O8H2WP51Y4W0/CfQTi3BNC/jtrG4eKNEY+De7lCfvbkKXm8aOtnySmaroxSsdj tGkwlIWBSyueqPgKvbWOHfuDCu8teADySTPIivmCLj0lmoLvjQ3UAsIpBnI4T6OX/Cat TTjg== X-Forwarded-Encrypted: i=1; AJvYcCU88HVX5GVn0JHdWoJcOr4oJyGsTrxJzWEn06vzO6KSsUrHb9al35uJTNmytHerHle0Y4+OYSoVQEmZ2ErgejrROH6RJeSJwutSxdgE X-Gm-Message-State: AOJu0YzBUzi+o+Wm8bbDFzito9uIc1HUkm3s2w7PBN48U2GymcikXDTF 2WjGxoldt0UYb2v2XGsovegcXWr6P2RIgzB++qBGhW8NIB9QvOc8SnXYWSibNk8= X-Received: by 2002:a5d:5102:0:b0:341:938a:cd95 with SMTP id s2-20020a5d5102000000b00341938acd95mr590725wrt.0.1710900351339; Tue, 19 Mar 2024 19:05:51 -0700 (PDT) Received: from localhost.localdomain ([2a02:c7c:7213:c700:e992:6869:474c:a63f]) by smtp.gmail.com with ESMTPSA id u14-20020a056000038e00b0033e34c53354sm9209295wrf.56.2024.03.19.19.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 19:05:50 -0700 (PDT) From: Alexey Klimov To: sre@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, peter.griffin@linaro.org, robh+dt@kernel.org Cc: conor+dt@kernel.org, linux-samsung-soc@vger.kernel.org, semen.protsenko@linaro.org, linux-kernel@vger.kernel.org, klimov.linux@gmail.com, kernel-team@android.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, alexey.klimov@linaro.org, alim.akhtar@samsung.com, linux-arm-kernel@lists.infradead.org, elder@linaro.org Subject: [PATCH 1/3] dt-bindings: power: reset: add gs101 poweroff bindings Date: Wed, 20 Mar 2024 02:05:47 +0000 Message-ID: <20240320020549.71810-1-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Alexey Klimov --- .../power/reset/google,gs101-poweroff.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml diff --git a/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml new file mode 100644 index 000000000000..d704bf28294a --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/google,gs101-poweroff.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google GS101 poweroff driver + +maintainers: + - Alexey Klimov + +description: |+ + This is a Google Tensor gs101 poweroff driver using custom regmap + to map the poweroff register. The poweroff itself is performed with + a write to the poweroff register from a privileged mode. Since generic + syscon does not support this, the specific one is required. + The write to the poweroff register is defined by the register map pointed + by syscon reference plus the offset with the value and mask defined + in the poweroff node. + Default will be little endian mode, 32 bit access only. + +properties: + compatible: + const: google,gs101-poweroff + + mask: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Update only the register bits defined by the mask (32 bit). + + offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Offset in the register map for the poweroff register (in bytes). + + samsung,syscon-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the PMU system controller node. + +required: + - compatible + - offset + - mask + - samsung,syscon-phandle + +additionalProperties: false + +examples: + - | + poweroff { + compatible = "google,gs101-poweroff"; + samsung,syscon-phandle = <&pmu_syscon>; + offset = <0x10>; + mask = <0x42>; + }; -- 2.43.0