Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp906327ybz; Fri, 17 Apr 2020 12:10:39 -0700 (PDT) X-Google-Smtp-Source: APiQypIg20xR8l/9QIEXFynuEZWoXgENtHKtLHoVW3PT2Xe6rrzwhRVab7VpU54P5k9KQDBgvdaG X-Received: by 2002:aa7:d64e:: with SMTP id v14mr4487713edr.19.1587150639291; Fri, 17 Apr 2020 12:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587150639; cv=none; d=google.com; s=arc-20160816; b=VWTRl1L2x3hNQhZ0ne6601ZaINasJ51pI4wlBdKiiEzEa+/NXoRLjdHfZ8of10ML93 EdSybe8/drYy5yGpn8Jis1aE6QdPntCBkuO4oV/nvo9CMsUpAb+8D6ysuPjxZk1dGOKe AucYEi/9NlLVpPgg0hJf9Itl5rqNbcDoaeKcR0ROYHIMrepV570VMAtauv1IiercVWVh B1BDOSch8zePInvTmjJQPVPuR9DZzZZljfYWz1niYxIAZYNnlmvSv7e69f7N+gocWFlt 0fYgoMC2m2ukQ9U27Kw+VHnjQ2m74w1obdjEE9mSMkS1sML32hSKmCi59OaGG64CoVQ0 UHUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0n5h0em/Nkh2RKJZHyjjtZ5ecG51J1roeZUvKOcCbPU=; b=rYwEZaauPq6W9RS2L+yQzBLE6KRBr0f9L3Aj0QAu6ZdW3WXqfRSP1vi2WuHknHLwnD Mgm73zovfHaE7Z/Y+pDDiiS3nraQMRHHz6/5BBaKolXpAu7+8LjmCJolNES89+ZiuThA HH4yjjAx9nL3eIrvBwb6MSDWGOJp5u+dG6B2zqsvc+gmmi2q/AqyQER9S0ggFZDmc4Y0 II74b9V/sOfz8GY/oF+lL3J7PDDNWwpgekGb62R063o2sEjryCYHAjAdm7mzgPRVCB/8 aBA0Ut8X5zYaTIzCYftIB3sJLKXfTsKyUy43Neb4lzy6C5xMIcJnc50IofrBTQf4mkNy mz/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=CdJFoo8x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si13793036edq.121.2020.04.17.12.10.16; Fri, 17 Apr 2020 12:10:39 -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=@googlemail.com header.s=20161025 header.b=CdJFoo8x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729978AbgDQTIs (ORCPT + 99 others); Fri, 17 Apr 2020 15:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726050AbgDQTIp (ORCPT ); Fri, 17 Apr 2020 15:08:45 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C70E5C061A0F; Fri, 17 Apr 2020 12:08:44 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id k13so3067149wrw.7; Fri, 17 Apr 2020 12:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0n5h0em/Nkh2RKJZHyjjtZ5ecG51J1roeZUvKOcCbPU=; b=CdJFoo8xQOIRbA85683Lw5+DGKDpA0LVrzc8RACY32VlWa3C3srqTXMosWANNzpQQq gDLJcrkqKOW4zv0yf2zsVsLVXc+9/9APUcBqfHjj3Z1MDY5e+TSk++U1EF756tvmSFuZ BLaQpuW8x+mkCwi4vyx1l3tYz4f+uNzRijv6bVC+LRwmjVnrw3b06cpRejtnrfxeY0df 8g4hAL57lWst3RbypPXYuscsifQUXTEDDe8m4wR+K09bsJ7dhi8p4aH9zWterHZluKDg ijHtatg6kPH0GXZlK80S7m1dakMzurDGgcZeogjk1FZ94VCy0PknYTWzNfUXHQsUE7QJ Qy3g== 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=0n5h0em/Nkh2RKJZHyjjtZ5ecG51J1roeZUvKOcCbPU=; b=V++Co6uB8oC1Jd4UvP85AtbzsuB+1v8WP/K4eNDZ3CqON190bm5fcHiI5Buvwm6Gis 70ySgT4+84g6nxYPYNmJpoFQzoB1hp2/8KX2Eu6c4VDA0uyHqW4XNArcuOi3kTfd05LZ Yxj85WXQ6ihTftRkhO99GlAq3o9uGLBpqJrEPmFZOUaD34kR750LUZywYKHebzzJcukj Ni9yv5NXH05lK8BCOjZC7pnf0mC7g2Jl/gbr4VTLCO3WRXhENt1B/8oKZe9vPzCi15RA qCIpDJHcZCyGaBNCRLtUbp1HgL/yAuE/8HyrWWUi1XJzMXCQRVBRixUhkp0yUq9C5Gyb RSZA== X-Gm-Message-State: AGi0PuZRs7KfQKK8Cpb+j8BmB0syFqvQ61cMQCynLcY3YNU49dXgPlJF /ofGytW4Gwgr+zNWubwPZrI= X-Received: by 2002:adf:e5c8:: with SMTP id a8mr6000656wrn.56.1587150523506; Fri, 17 Apr 2020 12:08:43 -0700 (PDT) Received: from localhost.localdomain (p200300F137142E00428D5CFFFEB99DB8.dip0.t-ipconnect.de. [2003:f1:3714:2e00:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id q17sm8722220wmj.45.2020.04.17.12.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 12:08:43 -0700 (PDT) From: Martin Blumenstingl To: robh+dt@kernel.org, khilman@baylibre.com, narmstrong@baylibre.com, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl Subject: [PATCH v2 2/4] dt-bindings: power: meson-ee-pwrc: add support for the Meson GX SoCs Date: Fri, 17 Apr 2020 21:08:23 +0200 Message-Id: <20200417190825.1363345-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200417190825.1363345-1-martin.blumenstingl@googlemail.com> References: <20200417190825.1363345-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The power domains on the GX SoCs are very similar to G12A. The only known differences so far are: - The GX SoCs do not have the HHI_VPU_MEM_PD_REG2 register (for the VPU power-domain) - The GX SoCs have an additional reset line called "dvin" Add a new compatible string and adjust the reset line expectations for these SoCs. Signed-off-by: Martin Blumenstingl --- .../bindings/power/amlogic,meson-ee-pwrc.yaml | 27 +++++++++++++++++++ include/dt-bindings/power/meson-gxbb-power.h | 13 +++++++++ 2 files changed, 40 insertions(+) create mode 100644 include/dt-bindings/power/meson-gxbb-power.h diff --git a/Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml b/Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml index a0e4cf143b9c..15a29ed19327 100644 --- a/Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml +++ b/Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml @@ -26,6 +26,7 @@ properties: - amlogic,meson8-pwrc - amlogic,meson8b-pwrc - amlogic,meson8m2-pwrc + - amlogic,meson-gxbb-pwrc - amlogic,meson-g12a-pwrc - amlogic,meson-sm1-pwrc @@ -42,6 +43,7 @@ properties: resets: minItems: 11 + maxItems: 12 "#power-domain-cells": const: 1 @@ -77,6 +79,31 @@ allOf: - resets - reset-names + - if: + properties: + compatible: + enum: + - amlogic,meson-gxbb-pwrc + then: + properties: + reset-names: + items: + - const: viu + - const: venc + - const: vcbus + - const: bt656 + - const: dvin + - const: rdma + - const: venci + - const: vencp + - const: vdac + - const: vdi6 + - const: vencl + - const: vid_lock + required: + - resets + - reset-names + - if: properties: compatible: diff --git a/include/dt-bindings/power/meson-gxbb-power.h b/include/dt-bindings/power/meson-gxbb-power.h new file mode 100644 index 000000000000..1262dac696c0 --- /dev/null +++ b/include/dt-bindings/power/meson-gxbb-power.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */ +/* + * Copyright (c) 2019 BayLibre, SAS + * Author: Neil Armstrong + */ + +#ifndef _DT_BINDINGS_MESON_GXBB_POWER_H +#define _DT_BINDINGS_MESON_GXBB_POWER_H + +#define PWRC_GXBB_VPU_ID 0 +#define PWRC_GXBB_ETHERNET_MEM_ID 1 + +#endif -- 2.26.1