From patchwork Mon Aug 22 14:42:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Schneider-Pargmann X-Patchwork-Id: 12950682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8FB6DC3F6B0 for ; Mon, 22 Aug 2022 14:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=T6qtlkM9KIdrPLKFin7tFo5WMceH1XsFBjtXhJYt4AM=; b=xKIZTsc1DF70KQ gtFZ6qsmmeqfywFjqdT+09WpjJEZwCXTCVMiWlfwqgRHPh0zlL9L39u9N/+wqwpYPQZAvtljoPMek 0yicBpTHo1DqOsmXI7UpedCxoYZjrN+TUsZIluHxVkPm9CKegD1S8AXOT0rbAbaTxWokl9EwxZhGX NCBtfW4pO1HTt1psAQZWRhSammoDrmBlmrch36dgbcXOgqXD4kPWl8KUJs3bPzkEanJInEb44N1zv o2OJ/WD4MiwTuRSCfdXOYNpWHaBgiQMMI9rIoGNI/O/pET6WCNc9X9qBPfIwixVO0As9b9mZQ9U/I Ede9xz9vO/70Ss+HIoHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ8gc-00BhTG-0d; Mon, 22 Aug 2022 14:45:54 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ8gI-00Bgfm-Lv for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2022 14:45:36 +0000 Received: by mail-wr1-x42e.google.com with SMTP id d16so8217544wrr.3 for ; Mon, 22 Aug 2022 07:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=IMH0wVoJhc1Ycztouvr0JOiX6tFg+IdkseqQF/l41XU=; b=a8LgB6dxvrnNo6HSr4dF5TcaSB3xK2TzxBTQ26T+saIpMMsbc+pnRQmDiKvyCs6fnQ e7JYnQJqHdwpHEHIrIhIt9lJgT3lfL6D+bSfTbgooakUDnTJZ+o7wlT6EuAMY7D09Rpm 70AKRn3UycXyqhN5AHvG/scg9YgbcAsV05Bk0vsx6aVHlQBNanO54Ml1rKIF1RxN5o3t h2PbBGmyJAkhITziNuUL8vZFxUShDqZbNG1ENDTaKz3ByPQp5tMv1uyZPhk1TFx5cVaM w/MwQPDP5lgtsyHJ+pAiUzI/k2HNoVMFPn9aEA5ymjILZaK7px0bjajdhz6bU8p0oJdG R2+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=IMH0wVoJhc1Ycztouvr0JOiX6tFg+IdkseqQF/l41XU=; b=EQyv2Opwg2elge4UEvXku+7juxXK8nmDOHp3Y/zys9YJIoTEh9Lnc9fD53zLMoRZvt ID0jC8GXwaMamIyPWm6iKjLAtcBufzdZZPp13EYZKSfCjw3tTXnoe2TzAjnL+TGbgsVO lJDQrQZ+C46ZyyzpTZau4xUqPFNdYxuaGECqamAYDmM/U/N+NptaVOnpgdYcb42sASeX s7lxgUz9M92KOVGvI4ImxlKQZV1+oIGrcb4NuKJcjr/2Ehv0Yvqf9jse+bNo790WSanJ g2n2wBRwm8Prffnd+UCCRrdods6qrR6nqCvwEfXmiLTV066E53mhhHKz3dMuqpSigTEm kKgA== X-Gm-Message-State: ACgBeo38oygh6mXADUlMPP74I6Mcw8bfdEKJJuEEOsptrBb7iq/p+aVj Y83eIz41iZwRFlmdQp6OVB8CMA== X-Google-Smtp-Source: AA6agR4erdnjvw/jkmfls/AyT/KCqbqXNSZqdyKxtQx5jliqXa0V0rwxhFEY6l7D749SDWll+tEa4w== X-Received: by 2002:a05:6000:104f:b0:225:29be:a39c with SMTP id c15-20020a056000104f00b0022529bea39cmr10779384wrx.641.1661179520706; Mon, 22 Aug 2022 07:45:20 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4090:a245:8020:2658:1f7c:362:3e99]) by smtp.gmail.com with ESMTPSA id z24-20020a1cf418000000b003a5dadcf1a8sm14670935wma.19.2022.08.22.07.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 07:45:20 -0700 (PDT) From: Markus Schneider-Pargmann To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: Chun-Jie Chen , AngeloGioacchino Del Regno , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Markus Schneider-Pargmann Subject: [PATCH v3 0/4] soc: mediatek: MT8365 power support Date: Mon, 22 Aug 2022 16:42:59 +0200 Message-Id: <20220822144303.3438467-1-msp@baylibre.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220822_074534_819347_E41E99CB X-CRM114-Status: GOOD ( 12.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, this series contains patches related to the support of mt8365 power domains. Thanks for your feedback so far. Best, Markus Changes in v3: - Mainly redesigned WAY_EN patch to be easier to understand - Rebased onto v6.0-rc1 - Several other stuff that is described in the individual patches Changes in v2: - Updated error handling path for scpsys_power_on() - Minor updates described in each patch Previous versions: v1 - https://lore.kernel.org/linux-mediatek/20220530204214.913251-1-fparent@baylibre.com/ v2 - https://lore.kernel.org/linux-mediatek/20220725081853.1636444-1-msp@baylibre.com/ Alexandre Bailon (2): soc: mediatek: Add support of WAY_EN operations soc: mediatek: add support of MTK_SCPD_STRICT_BUSP cap Fabien Parent (2): dt-bindings: power: Add MT8365 power domains soc: mediatek: pm-domains: Add support for MT8365 .../power/mediatek,power-controller.yaml | 2 + drivers/soc/mediatek/mt8365-pm-domains.h | 147 +++++++++++++ drivers/soc/mediatek/mtk-pm-domains.c | 194 ++++++++++++++---- drivers/soc/mediatek/mtk-pm-domains.h | 29 ++- .../dt-bindings/power/mediatek,mt8365-power.h | 19 ++ 5 files changed, 346 insertions(+), 45 deletions(-) create mode 100644 drivers/soc/mediatek/mt8365-pm-domains.h create mode 100644 include/dt-bindings/power/mediatek,mt8365-power.h