Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp454976rdb; Wed, 17 Jan 2024 07:08:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1tBiOM0qfwUYek/lwCdyXjeatcOUdfxGsexqvoBS9UBzxtr0OyXU43WPDNyD9aHOEXtkh X-Received: by 2002:a05:600c:138f:b0:40e:44b5:511e with SMTP id u15-20020a05600c138f00b0040e44b5511emr4667766wmf.99.1705504126520; Wed, 17 Jan 2024 07:08:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705504126; cv=pass; d=google.com; s=arc-20160816; b=DAG0CygS9+rsYXnxM/636GceKpBWn9vbkydZ3ZhMIltgtDHiqqIlun+Dt3Ndo/oEoI fSW6mgMv6383oCEWQslVLMOa13R9Ldx0+4lBvPl0DZQfNBmoFzCTTKGJl27ZpYa9Zcoy JUYKtzuKzszc5CNyeH4nBiZW8FRGcXtY3rru47jqkt8m0sI1MHIq/IPAyYemKogsESA+ kjifYZGY5iNv1lUiQ/wAF1r9TQKDljIYZrji7JTD9wTdd729MWyg4cHtbb0c4RksJwVl u6+sZhb4SzeoCLC1qTmGBohJB4S8PWH+lXc6F53KVOrGNxaUkkMWhG3Ec0UxAB8tsn60 o11Q== 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=kkGmMglMSGi1Tk3tWRTcLr5B6FcpdYBkxOQWqzkF1BE=; fh=J+NkDdm0N3ZKQP+3G3x2ygZD23aPspRa7XB5tfaokdw=; b=GVtiW/e1yALI6jaapiUFlUTjs3fMFBFjCYh6YxHgYYqYGbjTjJWolv8N5R2PiJ3hXN v0dv3vzr4CJDGj1P3ASmhzSAMYsb+uLyaoY2jK7qwUZlHS2hr9MOjtZ/2CcLNMtOMDAh XuV+JpXtd3s1iO0VuCCq5HSSgOi+lsiIDxigfUJIVjtZrO96ANGzUdsOqwQjEUpA6I9x XubdIOi+JFy0/P7koNOMOOrQ+vSLP2BcKeLNcvYvR3+c5p54p4NDomWjP7WprJAIKxLW bN/XXQgyxI3C0vQzgZmmrk5JL540uNVHIf2WSErxuUKhtx8dQuGSYQ80B8U27dz9Ut2X gZ4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IoFWo24i; 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-29125-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dy28-20020a05640231fc00b00556d34969c9si6007022edb.522.2024.01.17.07.08.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:08:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29125-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IoFWo24i; 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-29125-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29125-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 am.mirrors.kernel.org (Postfix) with ESMTPS id F23E91F25E3D for ; Wed, 17 Jan 2024 15:08:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A91D52137B; Wed, 17 Jan 2024 15:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IoFWo24i" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 21C9D21366 for ; Wed, 17 Jan 2024 15:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504113; cv=none; b=Q7VgJ7tQ/1W5hwFYLRx0xvA3oSmJ1rPj1KeBwMBVGCPYUkzyBl0+Xxif7ocF+nZi8MnaP5w+rTNpC00/vqBd4dLrC/LCyJFiTSbAJnfUFlHsCL6MOFkgB+biYsZZ8IydLaEXJ27n+p32uB/hvkI+vBrA6il2bBNgcBAs+yvzIVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504113; c=relaxed/simple; bh=i3U2j7vOQbkMVl1sDwVpugX13EUmGtzhct0T+w72pZY=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:Content-Language: To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=mU/G73t4VQxCoGBCx9bH9ukZk1Gs+V1lt8/pdPy0hO0WtdJ/6zKKKl2dB+tIjJn4KvJaFtalQTCiQw/hIroNpSTKabxBmDXfFCWIccHXUKbpFr+z66zottYuoo/OncSHlGFQQER2SDefQeCx5OnSyvcJIYHLZdFb+585tC5XNa4= 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=IoFWo24i; arc=none smtp.client-ip=209.85.218.50 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-ej1-f50.google.com with SMTP id a640c23a62f3a-a26f73732c5so1288785966b.3 for ; Wed, 17 Jan 2024 07:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705504110; x=1706108910; 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=kkGmMglMSGi1Tk3tWRTcLr5B6FcpdYBkxOQWqzkF1BE=; b=IoFWo24iaR3hQ1M4rgyN5CUsu5s6R53Or23kOcZeAqzVW7oNlFjA5XnUV8PwNRIvHG fnOQ4jCWvvy1V916ykLmXv3PU0TUahEAWNR8cHwtFjtlWZdWCQWiqJmplSU2RjG8fWyf +/rqkP2yLXHal/9HxxftrMD+exN4LhtmAemTVy5hwtJmKQDCFevaJ3zJWw2/XuczMeOy WfgjzYUrAtKRKhDE7PeiCZRGNetHh11E/maAf3ROqiMIy32B0hZoMl92EOkUkJXZ4iI/ 1Pfhbpqka0CjaMpqrs0ttbi+wG/PdGC6yjOwUFkZxkArZz+WhKKt13ME1m+f1Z6ruR3i EQBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705504110; x=1706108910; 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=kkGmMglMSGi1Tk3tWRTcLr5B6FcpdYBkxOQWqzkF1BE=; b=XkRqBDXHyMSK4lfR4A66rN6Ay+m7RcOwdSEsirgxR37Em2snb1vHCVaR4xw3akIM4W CLCXnTyM1OvgZZ6MJnXBJcQKTtvHfidfqEw/cuVJCEeOEooCztoixDGFxmSl47XiJ3Mm 7iNfCggSn07VNw2CBh4rcaaDCsDLbxNEN/WA9VKLOSH5HtLaFjBNK8kin4fxmA1uzckU zY/CXMdGMXr/gC4S42PZXm9Ur+w53WbzKx2rT0dGdioPa9aDqzTPwpCTxOv4isVTpGut Q98Pgm3al7z53XUKbcui32qhaI0r/hSHF6VqTqrHnxtv1/w6FtFjd0I0zswJR+fqZ0rn S79A== X-Gm-Message-State: AOJu0YwwRxbF9+BpkaW9FjbrcXrzNMV+obCCaP9hY2wcnhzvdYmNuerg LAwDwFxo/vlVsJOkq6X4eNJkkOTUExhXYQ== X-Received: by 2002:a17:907:a08f:b0:a2c:b0a6:8ab with SMTP id hu15-20020a170907a08f00b00a2cb0a608abmr5384441ejc.7.1705504110276; Wed, 17 Jan 2024 07:08:30 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id o19-20020a17090608d300b00a2adc93e308sm7838583eje.222.2024.01.17.07.08.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Jan 2024 07:08:29 -0800 (PST) Message-ID: Date: Wed, 17 Jan 2024 15:08:27 +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 v3 11/12] arm64: dts: exynos: gs101: define USI8 with I2C configuration Content-Language: en-US To: Sam Protsenko Cc: peter.griffin@linaro.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, jirislaby@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com References: <20240109125814.3691033-1-tudor.ambarus@linaro.org> <20240109125814.3691033-12-tudor.ambarus@linaro.org> From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/16/24 18:03, Sam Protsenko wrote: >> USI8 CONFIG register comes with a 0x0 reset value, meaning that USI8 >> doesn't have a default protocol (I2C, SPI, UART) at reset. Thus the >> selection of the protocol is intentionally left for the board dts file. >> >> Signed-off-by: Tudor Ambarus >> --- >> v3: reorder usi8 clock order (thanks Andre'!). Did not make any >> difference at testing as the usi driver treats the clocks in bulk. >> v2: >> - identify and use gate clocks instead of dividers >> - move cells and pinctrl properties from dts to dtsi >> - move IRQ type constant on the previous line >> >> arch/arm64/boot/dts/exynos/google/gs101.dtsi | 29 ++++++++++++++++++++ >> 1 file changed, 29 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> index 6aa25cc4676e..f14a24628d04 100644 >> --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> @@ -352,6 +352,35 @@ pinctrl_peric0: pinctrl@10840000 { >> interrupts = ; >> }; >> >> + usi8: usi@109700c0 { >> + compatible = "google,gs101-usi", >> + "samsung,exynos850-usi"; >> + reg = <0x109700c0 0x20>; >> + ranges; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + clocks = <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK>, >> + <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_7>; >> + clock-names = "pclk", "ipclk"; >> + samsung,sysreg = <&sysreg_peric0 0x101c>; > I'd also add samsung,mode for the "default" USI mode here, just to > avoid providing it later in the board's dts. But that's a matter of > taste I guess. > USI8 CONFIG register comes with a 0x0 reset value, meaning that USI8 doesn't have a default protocol (I2C, SPI, UART) at reset. Thus the selection of the protocol is intentionally left for the board dts file. I wanted to emphasize that USI8 doesn't have any HW defaults and its mode must be chosen by each particular board. I mentioned the same in the commit message, please tell if you feel it needs updating. Cheers, ta