Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2933268pxy; Mon, 3 May 2021 11:10:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmdloJnwphKczf5QJebL8IQum6taVoq0dyOANmxyqw+2Jg4nuMigxXobnjSw380ZsQC5cx X-Received: by 2002:a17:907:c1c:: with SMTP id ga28mr341315ejc.122.1620065453014; Mon, 03 May 2021 11:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065453; cv=none; d=google.com; s=arc-20160816; b=n5y8NnWiYmuqjhMgu8On+vnTp6DTuTXCyAmGXpsvzj+X3eWsE3zkEykOJGWftbr4he 9aaRpxKrPTjQyqo3jeoyTihOS0OdP6PQSnvjCsYBALUcPMktU2bKDxjUOVCPqOzfACV2 aAxM5oRLjPVbHspqknZ0QtQUKyQBnKSOPGWzAn9c0LPoi1MyraB0HrsFIQ3SWmTjS650 6866ee5HiU3XL+Zc74PGqAgMvZnjaCgI5hK/v5elzRegIKbe0/4lnNkvN8btKg28EdHe KtFytKu8+L8Yl68mmd75dXqXkvoD/jZKyq6U3bea20bWy6OP6CDNn6w8JusMMGozbphR 7WNw== 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=a1fdsn/UqipHakxIGXIN7yVeQcOHlVqXqVo8GiLuBOY=; b=qaSlva9CS2q+2I1XKw4RYjNX4UqJ2gNSAtu7NtRidnv48kvDm5g3vEIf86M+iPH3Sl dYlQexGlJYN1wu8FmrK2ltwQW4sbqxKT/eti/yJVeYLSwa2wdcTJiXlM+j1OrPpuLuty +EaIuO1quX+Q86N8/xxCXDDWYSoM7fY5cQh8B/ytOPKgXFOTUfLfEg7nS9P8g2VCXb3F 10hQPUS9Q8yMMnnw1binGyKpa8SKsEf4S97a/nn1v1WV0NgGBb7LpkqjE8txtDhxb2m0 mctI7sw8s3uGkQcffEGTT1YjO7osOJ89TdFFbEC7Pm5tQKl7BZ3Up8WSe84+A5dGGW+Q 6l1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sK9V6pUT; 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 bq19si1167929edb.311.2021.05.03.11.10.29; Mon, 03 May 2021 11:10:52 -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=sK9V6pUT; 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 S230092AbhECO6o (ORCPT + 99 others); Mon, 3 May 2021 10:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhECO6l (ORCPT ); Mon, 3 May 2021 10:58:41 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52224C06138B; Mon, 3 May 2021 07:57:47 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id i14so3813002pgk.5; Mon, 03 May 2021 07:57:47 -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=a1fdsn/UqipHakxIGXIN7yVeQcOHlVqXqVo8GiLuBOY=; b=sK9V6pUTJjDj8PitUOzz8v0oR3NrpgGdQSiWY+mIZkQHOd4JDGv2mlbSzWzfQEGXkv NvX0haqQB11zldQr1PH+nnlWGCQ1hWVPe3zWNq3SVmAX75l7pZNAQnt/zCRnNqcGCBvx SKMC2ny41vH1kHP7dAQGKLoc8uSGmrP8Vb8pRDazdxi4yhPNMOQSA6S/rw7J1kGdiJdk UKeYNGcr3mQBdqPqqmc1SGPK0Jri12G3eWjJ/0wSdSbd7BXCDLRjQfNXRzqNhAQoX1BM 9xfqY7Ygn5luvURPcajJqOs5QeZg3SAIz6Py+RKtSujJmOLyecA8y9Sjqsb2oburd9W5 133w== 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=a1fdsn/UqipHakxIGXIN7yVeQcOHlVqXqVo8GiLuBOY=; b=KlN1AeoSnkuu7/Afej4r8F32bWX8f0/drBT59bdxlY/999Na0Abjnuc5dAZEmN4aY2 89sGAt8lRgdw3s8y1w0BjrxrWdhg9SokcbnaV50yS+VwwXaODXDyffJeuCLoW1phYnRZ nELn+dzAlQ7S++njXeA0oHYGTX6SC3Tpa9Wu5cNWHVI3v24eLra55Cybfngyc1YSPvF8 BzmxD2CACagPmvFBL+r9s9nk6Uaw89TYiBBrNAAzciEsWEdvrbP/xZ+E/NavBYQW/0Mm Wr8puraOvKca7YeCK9/EEFJ5Rs4k0lLCQNqqIDAJ/MnuvM8BaP6Jk7BDxKO26xag2QTh LXEg== X-Gm-Message-State: AOAM531QMEdXC0ndCB83lov1u2OUOVD//exNf+Dp2RN6BisaxLVOPnKb rTChkXZb+9ANdMcJ0JQBl1i02O0AC98= X-Received: by 2002:a65:4c89:: with SMTP id m9mr18333911pgt.330.1620053866701; Mon, 03 May 2021 07:57:46 -0700 (PDT) Received: from archl-on2.. ([103.51.75.154]) by smtp.gmail.com with ESMTPSA id k38sm3593983pgi.73.2021.05.03.07.57.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 07:57:46 -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 1/9] soc: amlogic: meson-ee-pwrc: Add audio power domain Meson g12a and g12b SoCs Date: Mon, 3 May 2021 14:54:34 +0000 Message-Id: <20210503145503.1477-2-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 audio 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 50bf5d2b828b..2e07ddf2d6a6 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_audio[] = { + { HHI_MEM_PD_REG0, GENMASK(5, 4) }, +}; + static struct meson_ee_pwrc_mem_domain meson_pwrc_mem_eth[] = { { HHI_MEM_PD_REG0, GENMASK(3, 2) }, }; @@ -252,6 +256,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_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 bb5e67a842de..1cf20e4e412e 100644 --- a/include/dt-bindings/power/meson-g12a-power.h +++ b/include/dt-bindings/power/meson-g12a-power.h @@ -9,5 +9,6 @@ #define PWRC_G12A_VPU_ID 0 #define PWRC_G12A_ETH_ID 1 +#define PWRC_G12A_AUDIO_ID 2 #endif -- 2.31.1