Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2933125pxy; Mon, 3 May 2021 11:10:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ41vN5a2oTlOUVyyTC1p0sn1kwrmtti/YVWivOikL1/5qGC+9cSKGpAB2iFnCKlcuGfK7 X-Received: by 2002:a65:4382:: with SMTP id m2mr19462696pgp.354.1620065445056; Mon, 03 May 2021 11:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065445; cv=none; d=google.com; s=arc-20160816; b=KbUL4lV83k9yBbAwk+Vyt2Td7XtlVmbqliXMghEMd+SuIB5wMLwrZwGXNFs4VQ+wJO gq3yKuCGx3BpGqDrGLzg9PsNMcLYuODfKc8kqbIqz47kluF7XmZOOZQpwbqSGvi5DgrN bwStKQNRs40feQOr1a4slepQnM/k8AqtTxCOIkdOL1F0jGK2/SlAU1DdU8+Wk0nHEyK4 +P7FNxXu/Y6MFX6F8LOivgCswOmrySFYbdLYuhljl9AH9/4ck5xoNMTvUIaqYfZK/+R0 ujKuugZt1segnMcz+3Athm36uMiDBAK4I8U7nYkuFxM64FG3A40V6GjERdqjZFFi94FE ZU/w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8e82Fw8ZdhiWxmWRJT09dHY82V2CPKcFuKG3LSkUO+s=; b=atN2xBatxl0e/wuj6HMCYcv+cc+wZBsHLDHsA5GXZdXWr8euVXfpRxt+xrSdGVeW5J Cgr63CwgSFAx6U18JZ+ZNuZHhMVx90lwFtt9LxjQpdlMsZeFM1xvtPe2DKZ0Vdsg7Hgy ncX7X50wDhU5jsmHCRDxS00zC4ItNpTfdzf33qbYKYcoxLqMIxtkny2qBLs3FxJIc9Ha 055+ohRKSm0gBGQ6+AJ9SKz3JKisNaZwDjGhRyWGPuac1e10zmMPaR5T28OmY7s0J6xd RutFw9muRqqjIBLOU13gJLCLEm5SAitPiTw2bGWX4oKkndCFH+kfZzoKsDZ+RMSnjene 9aKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="o/s/ipX6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 88si14181009pjq.64.2021.05.03.11.10.31; Mon, 03 May 2021 11:10:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="o/s/ipX6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230102AbhECO7d (ORCPT + 99 others); Mon, 3 May 2021 10:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbhECO7c (ORCPT ); Mon, 3 May 2021 10:59:32 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B27C06174A; Mon, 3 May 2021 07:58:38 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id v13so2960774ple.9; Mon, 03 May 2021 07:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8e82Fw8ZdhiWxmWRJT09dHY82V2CPKcFuKG3LSkUO+s=; b=o/s/ipX6lhIS0rkr1BNOrxZHkysLFiZsXMj2JKwLYw5n1HbW5DuV1LytOawGwV7FXC TLHg7gI83DM87ny6EZnlxTIfGPogEIgj/0sE98YtARI0s0zD/NjJo4QyonIxN132LVH/ Sw37NW0HGqPKs93MBoO9ZzE12qujiTSe3S9JtAsAC7GHgH/M2pfypBUEK7zlZUranjW0 9WBLE4a9vjVx/VGvpgpNLe7ewI6wesroGWal1slHu8ZNPqfYz2u+vjhDZVjizw5SrcBI CPrNWzbHVpcvrC1Hk9vWkE99Q3Iblf5yIC2Ulth7wdisqjr5yOFdg9xh6RKqMQyIPgAn 3OXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8e82Fw8ZdhiWxmWRJT09dHY82V2CPKcFuKG3LSkUO+s=; b=scauVghiMQiBQUWTRGP2NSqj/sJQC4QMjfhmZgcMGsC3zd717llSo6xulp42lojxjY P+H/77yyBUKga6YFsMaF82EvgZJfl1HDkHt6UzrkVuEJpz9Md9GSUF1KLCWjRq2SQNlH UMzO2znexXGmudyoYTHrUTTULNC7qNb1Sv+aX137/hc6Tc0WByayq7cCQ35n7mJUzfNm QdJ831IwVyGeUYWInP6EYwIqBlFBPuqPlOl1Jsy3Uu+WGR2VCEf8INmGZxInsaMqVv9L 6hlX5ge3C+fvz5dPnRY/qw//DBaj/uYgDFAHfqu4bSrcJPaTiPmAbeDKVTm5BIglin1X LCBA== X-Gm-Message-State: AOAM533Dax1dKBHl/+Mn5zhAlMIWklgIUy9vFjDKWyUOCguM94vTfix3 ayOmS/4GdVFEyvBrSRd57YTT6AF9ne4= X-Received: by 2002:a17:90a:a2e:: with SMTP id o43mr30532107pjo.163.1620053917551; Mon, 03 May 2021 07:58:37 -0700 (PDT) Received: from archl-on2.. ([103.51.75.154]) by smtp.gmail.com with ESMTPSA id k38sm3593983pgi.73.2021.05.03.07.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 07:58:37 -0700 (PDT) From: Anand Moon To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Anand Moon , Neil Armstrong , Rob Herring , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Subject: [PATCHv1 3/9] soc: amlogic: meson-ee-pwrc: Add hdmi power domain Meson g12a SoCs Date: Mon, 3 May 2021 14:54:36 +0000 Message-Id: <20210503145503.1477-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503145503.1477-1-linux.amoon@gmail.com> References: <20210503145503.1477-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As per the S922X datasheet add hdmi power domain controller for Meson g12a and g12b SoCs. Cc: Neil Armstrong Signed-off-by: Anand Moon --- drivers/soc/amlogic/meson-ee-pwrc.c | 5 +++++ include/dt-bindings/power/meson-g12a-power.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c index 2e07ddf2d6a6..ec402c4ab931 100644 --- a/drivers/soc/amlogic/meson-ee-pwrc.c +++ b/drivers/soc/amlogic/meson-ee-pwrc.c @@ -154,6 +154,10 @@ static struct meson_ee_pwrc_mem_domain gxbb_pwrc_mem_vpu[] = { VPU_HHI_MEMPD(HHI_MEM_PD_REG0), }; +static struct meson_ee_pwrc_mem_domain meson_pwrc_mem_hdmi[] = { + { HHI_MEM_PD_REG0, GENMASK(15, 8) }, +}; + static struct meson_ee_pwrc_mem_domain meson_pwrc_mem_audio[] = { { HHI_MEM_PD_REG0, GENMASK(5, 4) }, }; @@ -256,6 +260,7 @@ static struct meson_ee_pwrc_domain_desc axg_pwrc_domains[] = { static struct meson_ee_pwrc_domain_desc g12a_pwrc_domains[] = { [PWRC_G12A_VPU_ID] = VPU_PD("VPU", &gx_pwrc_vpu, g12a_pwrc_mem_vpu, pwrc_ee_get_power, 11, 2), + [PWRC_G12A_HDMI_ID] = MEM_PD("HDMI", meson_pwrc_mem_hdmi), [PWRC_G12A_AUDIO_ID] = MEM_PD("AUDIO", meson_pwrc_mem_audio), [PWRC_G12A_ETH_ID] = MEM_PD("ETH", meson_pwrc_mem_eth), }; diff --git a/include/dt-bindings/power/meson-g12a-power.h b/include/dt-bindings/power/meson-g12a-power.h index 1cf20e4e412e..900924d17798 100644 --- a/include/dt-bindings/power/meson-g12a-power.h +++ b/include/dt-bindings/power/meson-g12a-power.h @@ -10,5 +10,6 @@ #define PWRC_G12A_VPU_ID 0 #define PWRC_G12A_ETH_ID 1 #define PWRC_G12A_AUDIO_ID 2 +#define PWRC_G12A_HDMI_ID 3 #endif -- 2.31.1