Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2515592lqb; Tue, 28 May 2024 02:12:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcHbzS7ztQYm+MuRtLwi1FMnHvFybt1t7D4QwU1lVYRNPW3JMIdqrjnU9fnYfEg9QOBGaH9VfTC0saCw7z2bpO8+iG4KjTv8Ec2pa0rg== X-Google-Smtp-Source: AGHT+IETh0GOyj7xTj1ZS1MBDUaxR+0Ix9kRNJi9SF8q2CT//B8Gq33z4+ZwZO8QFw4zHInP2oyW X-Received: by 2002:a05:6a20:8404:b0:1aa:48d1:2144 with SMTP id adf61e73a8af0-1b212f5f189mr13513380637.52.1716887519963; Tue, 28 May 2024 02:11:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716887519; cv=pass; d=google.com; s=arc-20160816; b=JrdQXRLS471kOQ3CR8oPfxUxg9O8GsCa/6JTrG+nfYT+HdvAlqsDaFM7sUe0FP7NRw d5kS1Zq+E4ZIJnc5TBWGN34CZK+kskv1bNLDIJ4v98L/lm4CSx7R4KBKgpHG21NHzdCv I0ktZVQAcr0RoSoiC+W6d35yox0u5Ds3otZdYD6RRclN62riDb/a9rnDtGAMgO8L/9EL ymQ7/UWK1PD58Z/6BXXz7AiXVaVzmGoBvrAXvIGmMBz3e8bDWZ8Qf5gUQR0OlIIt/VQG 2U7FjX8eU23A32UQeEOVmFEwmUix7EylmgVTcwpTjanEy24ljEzHQ3aJ8uJokt6+LQre xciQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=a3SQwXIIXHjRM5uNeBKtEGihfqD66qoKItzKJ4EdXAo=; fh=+C65LWJpQ7DkD7//JnZnnmLRBEioNhk2THkGPrqzsqg=; b=YUt5VfdUpcBfkRF++HzLkf29iHli+4HE2HujoHUly6a2y321Hsbs6nQYABdY5+mGeT Xhn+ZiwyMholzlD/3nSi4UEmBZjno0i8FkDVg7ZneW+uwpcw2FIJOc+ZCjkuZ+3XeIVq 5fi/mMEj4BoeGlxJJqyJgmVgCbyiM7HiI4Sgn38VgFRSMX9TiB575DiLrbjMRqQ2wvOs 8ytfLUOjcNNnhJXb5sHtgXuy+bIyQIuTBr4dz1E4HKKKsryowE4I+dsfD6yuGd00bSfA nlGwMsAcDAU2+tS3CZ3EzN8n4it9+6qHM2sDr+NneRbPsdfw0fTglgPQXsi/Wm+IS5iz f23g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IUcK+Hhs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-191987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191987-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bf5f996438si7655454a91.99.2024.05.28.02.11.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 02:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IUcK+Hhs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-191987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191987-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7E384B23918 for ; Tue, 28 May 2024 09:08:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A40113D2B9; Tue, 28 May 2024 09:08:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IUcK+Hhs" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 662DF58AB4 for ; Tue, 28 May 2024 09:08:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716887287; cv=none; b=MFTaCMLYnwPES0IaooykFZpyMDjO7uuHHFTAE3yHf6tm8hPIG8Oc+c1b6QuQWFie46TdDqJX/Q4nmV23XHRkS1fUSw6/XngFhO4ByMIOz/ctFnRw1exF+6pjp7ChMXx3uG7fvnIrHwM/OPY38lyunozoo1/zAU14w2NcLY85psk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716887287; c=relaxed/simple; bh=9+CGOjqCFI8cBZqMQUSyJVRaj598mOEhBKpeMA2uMMY=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=Wz29aSc85Q4kZXizOZo4mDZBKrpyLCkdrHZKlSj3bs853A5g/E/azQL18dW/bC77tLg6RJn3TamrZrABZRtyWkgrcSGcamhLMksueUsf8yU9qQGBoVqnsYCV4yiPwYRs4977BpAbhtOQKSs4vNLF9o3cWq7bEDH12zfaJV3QfoQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IUcK+Hhs; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4210aa012e5so4662585e9.0 for ; Tue, 28 May 2024 02:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716887284; x=1717492084; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=a3SQwXIIXHjRM5uNeBKtEGihfqD66qoKItzKJ4EdXAo=; b=IUcK+Hhs1shSX/so/CSGKdfwUlBwf+/zKWTFhP4T44UQK2MCURsKkU56ec+C86Uof1 QfvkBtKXm9MK3gc9vakfiSAqp7BesOtlhMKAL1tOwriQMQdCMfbNC7L2zeROeZXJCLgG v80QdUVfZhllyakBy2mgx2a7PBrEroKK3VZGgLmB1kFfnL83ax9cvQOSCtmbbzra/F/q imEVG7xIhKjA9kAY0UoRmCXZ+UhfkjkIWiexXcBRn9syGI8xQBiCXu+jTOWgIZeqD8TR NPgb5vh6gZa9HtnLwHlYGiKqtllc+aP2FKE66Y7x5ggzorKSAoIVrgGvbiK9qeC9CiRK N2YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716887284; x=1717492084; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=a3SQwXIIXHjRM5uNeBKtEGihfqD66qoKItzKJ4EdXAo=; b=a+nSDwelBBUnPd/rmJe/W9LbFbnIPBK/uQfFRWWC5vVXiqlEyKbR2dtigZCmggLxTP /iNcOdCc8EpHc8m0hxpM9MADH2+2nwyT56sZEkTnB1g55sK9X72Thak2IqK7pCHNNol6 xR+VqMbZ9ZgGu1D1QJ+WmZ2xKm1rtEBcS3z5t80wvDQVMtp8rQHSLg6kl6PmG0ReZNZt bJLaZh3lvIGB0oIO5PaUMwxSwWCspxgirFxSZgY4cip04OYJC0c7R1hFw5xX7a1aoXZY W1gSBbw5a7dj+4m4xj2T2sSRjqckqFZlZzRulIiHOBJNCCz+vdGccXJhsGqnSuOZwGXi AfQg== X-Forwarded-Encrypted: i=1; AJvYcCWdVStljh6IMF3XvITla64TlWOLEa7n6UPMSPjtPXFFakuPesPemrbeGpEl2YQirhuZpG5KM0BV8TKebHqJqQl3J0EhxzURfBgO8wI9 X-Gm-Message-State: AOJu0Yy+l45RWtBllAinDvSP+LjIZUjgCKaavF+tXbHjKq8A63835hly w2sZNrbKmkDetVwsc2yW4Lyd8ykAmQD4amJF46ubh7Bsro73v7CNeXNDl5kmK8Y= X-Received: by 2002:a05:600c:4f03:b0:41b:a8e8:3ff6 with SMTP id 5b1f17b1804b1-42108a59341mr95487685e9.11.1716887283658; Tue, 28 May 2024 02:08:03 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:8f19:f965:3f93:6385? ([2a01:e0a:982:cbb0:8f19:f965:3f93:6385]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-421089ae96bsm135209155e9.35.2024.05.28.02.08.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 May 2024 02:08:03 -0700 (PDT) Message-ID: Date: Tue, 28 May 2024 11:08:02 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 3/3] arm64: dts: amlogic: a4: add power domain controller node To: Xianwei Zhao , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jianxin Pan , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <20240528-a4_secpowerdomain-v1-0-2a9d7df9b128@amlogic.com> <20240528-a4_secpowerdomain-v1-3-2a9d7df9b128@amlogic.com> <70083d10-483e-4daf-a408-020f0147c5cf@amlogic.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXg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/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <70083d10-483e-4daf-a408-020f0147c5cf@amlogic.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 28/05/2024 11:00, Xianwei Zhao wrote: > Hi Neil, >    Thanks for your quickly reply. > > On 2024/5/28 16:46, Neil Armstrong wrote: >> [ EXTERNAL EMAIL ] >> >> On 28/05/2024 10:39, Xianwei Zhao via B4 Relay wrote: >>> From: Xianwei Zhao >>> >>> Add power domain controller node for Amlogic A4 SoC >>> >>> Signed-off-by: Xianwei Zhao >>> --- >>>   arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi | 4 ++++ >>>   arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi        | 5 +++++ >>>   2 files changed, 9 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi >>> index b6106ad4a072..eebde77ae5b4 100644 >>> --- a/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi >>> +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi >>> @@ -27,6 +27,10 @@ xtal: xtal-clk { >>>               #clock-cells = <0>; >>>       }; >>> >>> +     sm: secure-monitor { >>> +             compatible = "amlogic,meson-gxbb-sm"; >>> +     }; >>> + >>>       soc { >>>               compatible = "simple-bus"; >>>               #address-cells = <2>; >>> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi >>> index 73ca1d7eed81..917c05219b9c 100644 >>> --- a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi >>> +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi >>> @@ -37,4 +37,9 @@ cpu3: cpu@3 { >>>                       enable-method = "psci"; >>>               }; >>>       }; >>> + >>> +     pwrc: power-controller { >>> +             compatible = "amlogic,a4-pwrc"; >>> +             #power-domain-cells = <1>; >>> +     }; >> >> pwrc is supposed to be a child of secure-monitor. >> > Considered writing it like this when I wrote this. > > Here are two approaches: one is to include secure-monitor in the comm dtsi and fill power-controller by aliases in dtsi of each chip, while the other is to directly include secure-monitor in the dtsi of each chip. Which one do you suggest? The bindings mandates it to be a child of the secure monitor. Neil > >> Neil >> >>>   }; >>> >>