From patchwork Thu Mar 2 12:27:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 6033 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp4206564wrd; Thu, 2 Mar 2023 04:28:34 -0800 (PST) X-Google-Smtp-Source: AK7set88qXtUl0jrSo9HyfG9c3ZUXZq98sVKc+LKRbqUEUwB6B72eUNNOwkEZqPe/bExobAy+PCb X-Received: by 2002:a17:906:bea:b0:8fa:43fc:1118 with SMTP id z10-20020a1709060bea00b008fa43fc1118mr9198439ejg.41.1677760114434; Thu, 02 Mar 2023 04:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677760114; cv=none; d=google.com; s=arc-20160816; b=uKtoXZlKgik9jMPewayJeWk1XHhoihH4xJSrq9Gxri7jXbRxIUncre30ruG54k5JxV b0VxVs5W3G3qIxvYa9cS5Evj/QGvyZ0rgMV6mzEt0xdY2rtPFs5PR5dm47wmQO5f60vW NuBhq55iR15Y35iqzXRAxekZx4LuTKsytaz/DA/usWg3unNo24AYDyviq+Uxrklunf/A eqNw12UYocvCqyO/Kt8bgWDLEDpUoyPLcEqY9ndgiQMVL6T+SvH5MwmetM1/iR1RDgpF /1SpsayNKJExCzn1cjWSPkMjty2/+52sk6iD3hJsEok7we5IRfE0sYTwV2Zc/nGyPWW8 jW6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UCzu+CfYoO6L/88b2EATsbmRsnxpl5XJojzf9dpIYbM=; b=QAPFg/gYschcqDv8hHEHW3Mr3jwEF161zSGJGQahtEICeDhyIx/70ONwVlK6s+m6/W w2doGJ8a3phrpYX7NClt95G62glu5Taei3JrUwYOmbBHsh3vONGLgrpcgocighSa2r+q cLQAvNSQ3wyoYXppJTLa/pRdylt1J837HhwDMQzsTA6U8c81SGaWKjc/2lRNmXhgMqsB 4V8wzCGfbGLHoC393L+SpnLU5uQHFqeEdQnlJJKHmM6saPpGjjushazBgcszfaWCupYj z5MqvoRS1uBAb2pTjAnfVVfCRUdO+tLGQGBdsFyDx2ifPzu8E+Wl72+6YjIOaUdMJipY Iybw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nMWeYaQK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a17090617cf00b008b17e88ee87si16431161eje.537.2023.03.02.04.28.11; Thu, 02 Mar 2023 04:28:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nMWeYaQK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbjCBM13 (ORCPT + 99 others); Thu, 2 Mar 2023 07:27:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjCBM12 (ORCPT ); Thu, 2 Mar 2023 07:27:28 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C83E4615E; Thu, 2 Mar 2023 04:27:27 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id f13so66879058edz.6; Thu, 02 Mar 2023 04:27:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677760046; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UCzu+CfYoO6L/88b2EATsbmRsnxpl5XJojzf9dpIYbM=; b=nMWeYaQK6N2n+tcRBZmsETp9VrbSsWitZpxfoLVg9dzNOrnd/hoxPvxWQvmPhV/Lcz FiF0pr0nw8IU4Dbscq9aSQVa5jbCFXsGAZrerRZM+L3OtZCBV/hMjW4QzN2csYOfCqhF NY9UN9AvbZWXbCBBcZypwKWVjV0pFBhqdL1tIkz7ntdJvqxtsz1kHCXjLltF7i5QRxMc ojfNwCdwyyqaH1kRZX/hVTUmdYTmbTEONcJDBtcjUX5l9BYhRbpztFvkv0N3ZSmlRWPv sZ0ugavlEGWk7oC7qqgydCV/UJ41I7q6DzTZCgbZ/5e5QwBnV5KIK2C9JWgSq1oQh4lL 9mfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677760046; 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=UCzu+CfYoO6L/88b2EATsbmRsnxpl5XJojzf9dpIYbM=; b=4+jts75uwcvZ96V4XgH9laiUgWCZ2NrKerLgHzavypnB4dk0Cz3uqvG5HVVB82X5w3 ra313mSkW15DtoozIqT55ShB4qcyzKEYZFgrdcKDWc7UNaljYpwednBXU3zSN80TMbii 7luEz0451Z3or0SJz2eBNLOAg9OlfUKbMSZQNAxRTA0nbAxSkd8whaLTV+77/K4eXaNt 2RhRM5opKkL7tyi+l48Jh0LK/wtEpwuiVZ5oPllmb9FtdsbrEnc9IjjIoeeoFwgCIy+J qo3VqmVK+Ww0q8eDQxhBADwpHJIHD0IP92EzDqO8wQjywdB8QuM63pzhcJigIN/dE318 FCcQ== X-Gm-Message-State: AO0yUKXSKJHR5z6CNvP/N4rX1pfoDUn8ENokX5xKCQZ5qcthumlovYvv 2KNwFksCQZNMEcs/OED7+z8= X-Received: by 2002:a17:906:9156:b0:8d7:6699:3ba9 with SMTP id y22-20020a170906915600b008d766993ba9mr9434114ejw.29.1677760045782; Thu, 02 Mar 2023 04:27:25 -0800 (PST) Received: from localhost.localdomain ([95.183.227.97]) by smtp.gmail.com with ESMTPSA id qc17-20020a170906d8b100b008ca37f3eae9sm7038375ejb.131.2023.03.02.04.27.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 04:27:25 -0800 (PST) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Tinghan Shen , "Garmin.Chang" , MandyJH Liu Cc: Yassine Oudjana , Yassine Oudjana , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] MediaTek MT6735 SCPSYS support Date: Thu, 2 Mar 2023 15:27:06 +0300 Message-Id: <20230302122708.73848-1-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759258989964461231?= X-GMAIL-MSGID: =?utf-8?q?1759258989964461231?= From: Yassine Oudjana These patches are part of a larger effort to support the MT6735 SoC family in mainline Linux. More patches (unsent or sent and pending review or revision) can be found here[1]. This series adds support for most SCPSYS power domains on MT6735. See patches for details. Changes since v1: - Squash DT binding patches - Dual-licence DT binding as GPL/BSD - Switch to mtk-pm-domains driver - Add MFG bus protection bit [1] https://gitlab.com/mt6735-mainline/linux/-/commits/mt6735-staging Yassine Oudjana (2): dt-bindings: power: Add binding for MediaTek MT6735 power controller soc: mediatek: pm-domains: Add support for MT6735 .../power/mediatek,power-controller.yaml | 2 + .../bindings/soc/mediatek/scpsys.txt | 1 + drivers/soc/mediatek/mt6735-pm-domains.h | 96 +++++++++++++++++++ drivers/soc/mediatek/mtk-pm-domains.c | 5 + drivers/soc/mediatek/mtk-pm-domains.h | 2 + include/dt-bindings/power/mt6735-power.h | 14 +++ include/linux/soc/mediatek/infracfg.h | 5 + 7 files changed, 125 insertions(+) create mode 100644 drivers/soc/mediatek/mt6735-pm-domains.h create mode 100644 include/dt-bindings/power/mt6735-power.h