Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1138037lqp; Fri, 22 Mar 2024 06:46:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOFXB1d3LWQoHfyHhUW5LyzLTACqLdN+YCxtWL+eKuiRPNc9apaSbv073O/gK2ZYBCNyx7A3FGlfBg7WxkWHpcByZpc+2mPZ3TkGyQxA== X-Google-Smtp-Source: AGHT+IEiN3Uq2GKmBbbr/zqgkm/196xQbnYpOmsjBuJtr9DB+ANcegG6S7taZs1CIxeY9ZgnP6+3 X-Received: by 2002:ad4:4ea7:0:b0:690:e990:c183 with SMTP id ed7-20020ad44ea7000000b00690e990c183mr2205858qvb.10.1711115181316; Fri, 22 Mar 2024 06:46:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711115181; cv=pass; d=google.com; s=arc-20160816; b=kQJXm/hHuubvhqBGHCpZ61aM1yRQGeRI8hisoKqnzzx6kUoyTs2WqFTAZ17zP8kiED GODfk/1GXgRPQQj3oqG4YK2AHGUu9RlDrKO3W7+c8LyqyHKeMymZL7KndxxCwIeCcJfE swmVEHEmm2oRWLMys4dNwKV4tcPL7XB058WMC8s4iumz75KTqvzNRVuktzZYzrNjlF9R /mh81rf73gsh8ThVHpiB2Dnu+AlGgHNifisODiXquPTgMh41mzk3xft4mYQTd/BAF6gY U0K/6jS1h5rxEhDpF1qIzJLYmBr639TfxaXt8h+EDxJtU0JU2bMhiI7B/uixg6opZgUX LBPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=SSOUe1D1Ck4AK4cXhnMlYCbQiMs6c7j3t9qtjEagchs=; fh=3lYypXe/+qmoWH79fNXddoB8vKBuZXLy/edTZMgG6Sw=; b=VphEr2QIU8y8Djv64vkzxR0i14muPVB2BAMBpOB6imSrbuP1+B76HcdRoVtfb8QqA+ 3nG8A79/6sTO2YvzDTAhjdnbtQKHJtF9Zw+UyJ9RVHWY53agovSOqz7ok9IMr5EZjI9R PWF6ly22KeN90JNBJAjH2n2oe8XwOdHNG7ba9pAjZv1zHXvT4Az/sjBunfQw0PjYcSUf ac/FowrMDlngsc5AzcnYToa4GW4JTz4SU7csY76eaj4pwHLCtbmbMLAPoC2vKthByUD0 U9lCAeIau6rDe+k4lId4bgBRdTzNewRQdhEjyx/VkR9zV9g8b/VtiNO/u/1LliVY6bYV 2/3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aVROYI1v; 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-111558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 15-20020a0562140d0f00b00690c86259ccsi2012525qvh.581.2024.03.22.06.46.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aVROYI1v; 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-111558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111558-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 126A71C230CE for ; Fri, 22 Mar 2024 13:45:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0C12604DC; Fri, 22 Mar 2024 13:39:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aVROYI1v" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 39747604DB for ; Fri, 22 Mar 2024 13:39:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114793; cv=none; b=Y/vvQpkXm30drbhFSdZMV23b7c6SQXcZE1LwAqV2s2cEmWxN9le2z/+eeIJlf/Rl5vAohQKjAO4ItmYJFN+z/lbBfiqhOogEscnI1IWJojVvu84I4P6EE5mNyOfN4eaILUnSMPZ6qdFM9+saMs31daUzjo3Gw5RGqXUC59fb3t8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114793; c=relaxed/simple; bh=vRgpQASesDWjf3HIxcAUMYfFe8R0lGVoGSSqkSo7PmI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SrV89F0Qh8Nu+uXmSQepLdMUXfzsNKWxlagm4QZzqqvgZFCj/q8Y1aepFk9AxzWlsExpBSPBX742rna3l6SwNcrcWo7XPit1+Iyb+JVqFaeAq8q9dAaz9kxSNdX0DVmwD/dhoPd99yyNFeDpsrjurMMg9XLrekVHqy/cJwfytaY= 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=aVROYI1v; arc=none smtp.client-ip=209.85.167.48 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-lf1-f48.google.com with SMTP id 2adb3069b0e04-513dc99b709so2691681e87.1 for ; Fri, 22 Mar 2024 06:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711114789; x=1711719589; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SSOUe1D1Ck4AK4cXhnMlYCbQiMs6c7j3t9qtjEagchs=; b=aVROYI1vmP4ro+9K2zmR3W7EasBe/So2KJhcRDOZtbR5P4LACAspPyRbrX+9n/m1mq rlX8r+XWZwFhDsYF0ph+2bsVezm/nm4vjXOGTqYyl4FROGlVX27jwM86+PGlJrJoxE9A NBdghgx++/xuFJFCgS8WqWs2TRjyIGypS0prPGQQzlRu0JNlz+Mz0xA/vnsgHy0yIpIi f13UGE+ZjFk3yk3Df8ZbvaU7fRLxIoJyO0zXDeYzE9g7p5s6BZJwQtgveIED/538rQhY FXduyDZj3IZxaFhfmeHW46ukgbxMvKB4SBq0FbuEfLQmLkP33chRJFAnMo2YzYHxectD rp2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711114789; x=1711719589; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SSOUe1D1Ck4AK4cXhnMlYCbQiMs6c7j3t9qtjEagchs=; b=M1SeAochs7+3NCkSLLcvIQcjfB1TpsvC2GUWmt31j1WlCpDvwMxNOv93Ml8nF3j9Zv KSQUc8azn6sPNQYjssN6rJrTpyxzpc/EatK8IOi1408nesQDbv78jWz3W6clAUL0ZrMG b2GfISuCJhnoZUsZTZcztIW99WOce8OwkCbH6gfP1eaYmY3QPIYmbZSbv7hUQLGFxZ3P w9Alow2RYU7YhYhkAhwfzXvkDqlxJkbEYuX+lo8NpNsBPeTGwQUcqN2TWURcFxJcQPtr Aar8Tm80LwUUf8I2UYf9xZZyVp7Hm4+Yyu0sYww+xCQbeZnFVLEIwB36GXe+xzVw6Fvc TJyw== X-Forwarded-Encrypted: i=1; AJvYcCV+/a4fqzE8oVCbHHM++WAUXrQhTvGp3r9FVlzA9OHYDiiGGsdMLM2Um8GHvlD8FA4jBFlOgc9UO1fxiyMb9kgCBfF9P7vyq+OEEEBM X-Gm-Message-State: AOJu0YyqNpTO/nJnd3YFIrF2RPC6LelXmjsXN2KXrX2DdBlVqnn/600V 1uwc6gtxLA/ORzvwELE++HfBr7b+fGhSzCHNoSvUmLcGIuDaisfH/kIDzMtneWQ= X-Received: by 2002:a05:6512:54d:b0:515:9aba:7430 with SMTP id h13-20020a056512054d00b005159aba7430mr1260462lfl.13.1711114789248; Fri, 22 Mar 2024 06:39:49 -0700 (PDT) Received: from [172.20.10.10] ([46.97.168.208]) by smtp.gmail.com with ESMTPSA id og18-20020a1709071dd200b00a4725e4f53asm906510ejc.40.2024.03.22.06.39.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 06:39:48 -0700 (PDT) Message-ID: <73ba6104-aa54-444e-b6c5-7f89d1fa0060@linaro.org> Date: Fri, 22 Mar 2024 13:39:46 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: exynos: gs101: define all PERIC USI nodes Content-Language: en-US To: Krzysztof Kozlowski , peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: alim.akhtar@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, willmcvicker@google.com, kernel-team@android.com References: <20240307135912.163996-1-tudor.ambarus@linaro.org> <073e5ef5-2a2e-4300-93d6-e25552276e13@linaro.org> From: Tudor Ambarus In-Reply-To: <073e5ef5-2a2e-4300-93d6-e25552276e13@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Krzysztof! On 3/8/24 16:45, Krzysztof Kozlowski wrote: > On 07/03/2024 14:59, Tudor Ambarus wrote: >> Universal Serial Interface (USI) supports three types of serial >> interface such as UART, SPI and I2C. Each protocol works independently. >> USI can be configured to work as one of these protocols. Define all the >> USI nodes from the PERIC blocks (USI0-14), in all their possible >> configurations. These blocks have the TX/RX FIFO depth of 64 bytes. >> >> Signed-off-by: Tudor Ambarus >> --- >> Please note that: >> - google,gs101-spi compatible was queued through the SPI tree: >> https://lore.kernel.org/linux-arm-kernel/170742731537.2266792.3851016361229293846.b4-ty@kernel.org/ >> - SPI dma properties were marked as not requiered. Queued through the >> SPI tree: >> https://lore.kernel.org/linux-spi/170967132774.228925.1759895846287455970.b4-ty@kernel.org/ >> >> arch/arm64/boot/dts/exynos/google/gs101.dtsi | 782 +++++++++++++++++++ >> 1 file changed, 782 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> index ee65ed9d2cfc..d7ecfbc7e440 100644 >> --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> @@ -373,6 +373,398 @@ pinctrl_peric0: pinctrl@10840000 { cut >> + >> + hsi2c_1: i2c@10900000 { >> + compatible = "google,gs101-hsi2c", >> + "samsung,exynosautov9-hsi2c"; >> + reg = <0x10900000 0xc0>; >> + interrupts = ; > > I wonder why we use four cells in GIC... > >> + #address-cells = <1>; >> + #size-cells = <0>; I'd like to respin this patch. Any preference on coding style for #address-cells and #size-cells? I guess they shall be above ranges property if present. >> + pinctrl-names = "default"; >> + pinctrl-0 = <&hsi2c1_bus>; > > Please reverse two lines, first pinctrl-0 then pinctrl-names. I know we Ok. > did not follow this convention till now, but at least new code can be > correct. Also clocks should be before pinctrl, so we keep some sort of > alphabetical order. Ok. I guess the order shall be: 1. compatible 2. reg 3. #address-cells (if applicable) #size-cells (if applicable) 4. ranges (if applicable) 5. Standard/common properties ordered alphabetically (ex. clocks, interrupts, pinctrl) 6. vendor-specific properties 7. status (if applicable) Please let me know if you have other preference. Thanks! ta