Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6513656rdb; Fri, 15 Dec 2023 00:04:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+fMU8rJjuApBsUIa+rrf5mHRRhf2eStm8YFTc8ebOpW2CgV5sp9BGKSx75lI0zLX/oCKC X-Received: by 2002:a17:906:142:b0:a22:faf0:3bbc with SMTP id 2-20020a170906014200b00a22faf03bbcmr2449335ejh.139.1702627489842; Fri, 15 Dec 2023 00:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702627489; cv=none; d=google.com; s=arc-20160816; b=eeLowDllwdCR2ji6S0RKG8jiEjPKjXeavo0lrOZeX7Qo69+WlfT6FnzasbC4nL+OJG CnZzsh+UzgMixCfzAIjzqAyfReynLTlnZFXPRl0IZagq8AocBovTb7kpG/XqHl6JM+Pu 4Po8XOS8/K17pjPc7BCDFzv5GcudmRp/avADUDmQjIOWLYJShHtmvz9LBFnW4vSJDA+S hDIKiWjdm50OpMTVXj06/Kjl1Td0jSyOxsIQG0fimmaLNalzSN1AbOwVxk5g3lh1BVYj xOrfVgcxtAkaRn/eSB0F8tdcGk0IL93VeaMiRiHS9TnCqvGriWBJvoxCej49hosNbyov B6vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=d5odTxpWTtMiHyNqN3Yk0tN+p5CPTI+frNjcQBN0fCk=; fh=ULUieucapNHmwm30v2rLAp4VePoW+svdC7rkHeCbn4k=; b=IkbtKjncJoE7Ame08J3227QAQV0YqfEguNbvnpG7s0EkW4L5xpu+raOIgbyo20gV+F KiQ95L8SxtXKY5nNCE/UNdnr0eLLtbTYeVm9cYhJTy+qcQsnnWHHxC4bFH8PNyJ88TKL gSOP2XdknIMD9t0Sa+wum7bKjpZh7cZWHNuMJc+fiHrJiyA7lV42O4CHAj7ngvALhO1C Wq5vGi79keT3nXvPYOVCB2527JkP+6h2JQO+klqoTkzCfytkjk4Ct/nuMoqCtYdX9Dkm gRld1KyBfM6HGL5QMFGp48EeySrNOpQUTK/BQYOnCaRS7SdTM9MZfisWYsqrwm4zMu3E 94mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RscA19C6; spf=pass (google.com: domain of linux-kernel+bounces-580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-580-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 ef7-20020a17090697c700b00a1dbe2f5c7bsi6783124ejb.821.2023.12.15.00.04.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 00:04:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-580-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=RscA19C6; spf=pass (google.com: domain of linux-kernel+bounces-580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-580-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 6D1E51F22F59 for ; Fri, 15 Dec 2023 08:04:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06367111A9; Fri, 15 Dec 2023 08:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RscA19C6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 7539C10A30 for ; Fri, 15 Dec 2023 08:04:37 +0000 (UTC) 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-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-54cb4fa667bso410486a12.3 for ; Fri, 15 Dec 2023 00:04:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702627476; x=1703232276; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=d5odTxpWTtMiHyNqN3Yk0tN+p5CPTI+frNjcQBN0fCk=; b=RscA19C6oQP1wKydCCPjRP9wZ9ZHk2rQ7rvJNuLp95tzdB2/oPC6BJpgn0HcXonEzZ MhpWZd+yRoy6aPgmuaB3ok+Q/PztBMHxItoVxqpxnIeZ4hJZB11AWSTqAG19RYK6FmTh 0KeAUihgSokFTLRnYGEfmcBt18jrrKhrirz5Adh/FcYTJCVBQyE0Ht30/z52dUgXQ3Jq aJl9MweKMnQbWq9jPKTv8bhk3bIvbf7+1pDdBOjSOyFNl3sUlYJw/2tCcXyeTIKHgL4L CampXtz8s3CN3VjGe74Im+dXpyCCjR0LwLjjL+25pt8arP0+e7T7VkmFKM5P5UCxx6iY +aVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702627476; x=1703232276; h=content-transfer-encoding:in-reply-to:autocrypt: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=d5odTxpWTtMiHyNqN3Yk0tN+p5CPTI+frNjcQBN0fCk=; b=ICuKr3+UOyH2rABEIPrbh9XyBtEVWtk3cbPMVBZgA2gYKACarQMIhzCTWLLok/CgAR /FSW8i2JOn5SZ+kEKkpLuKA30DUSvpHV+DE81FeK7bcUQ1fC8QQDqHFD7WCP1wVH/QhC gYFT2sQfI9IohHAt2p7iXwy1uhaG7PfJckEtDj99fVb0Mr2Kce+rQjdIq7RA6yPONhvl CR6EfK9KSY1W3qUYfCpxLRP/5FXL5axdPsx9eBg2iHOgZWiIIWPU7r2Q3Pv1a7WupEF8 WOdT/SymV4U4D7gOtOiqVvWBxzj6G7cJ4t2oCrffLvcRp1RT00bDuOqtvPRmdW0Akv77 mvEA== X-Gm-Message-State: AOJu0Yw7j7uJ8XuvZnndBwZLMl1mvNZUbNqwIAobuup7Fh4NuO5VMfev 06afHYfBLGb7S+tSMlXArHHKZA== X-Received: by 2002:a17:907:bcf:b0:a19:a19b:789f with SMTP id ez15-20020a1709070bcf00b00a19a19b789fmr4900945ejc.98.1702627475694; Fri, 15 Dec 2023 00:04:35 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id tk7-20020a170907c28700b00a1d1ebc2206sm10465696ejc.72.2023.12.15.00.04.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 00:04:35 -0800 (PST) Message-ID: <11b4e79c-3d39-4924-877d-0f741e5904a8@linaro.org> Date: Fri, 15 Dec 2023 09:04:32 +0100 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 10/13] arm64: dts: exynos: gs101: define USI8 with I2C configuration Content-Language: en-US To: Tudor Ambarus , peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, catalin.marinas@arm.com, will@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, arnd@arndb.de, semen.protsenko@linaro.org Cc: andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.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 References: <20231214105243.3707730-1-tudor.ambarus@linaro.org> <20231214105243.3707730-11-tudor.ambarus@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2Xuc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Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231214105243.3707730-11-tudor.ambarus@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/12/2023 11:52, Tudor Ambarus wrote: > USI8 I2C is used to communicate with an eeprom found on the battery > connector. Define USI8 in I2C configuration. > > 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 dtsi file. > > Signed-off-by: Tudor Ambarus > --- > arch/arm64/boot/dts/exynos/google/gs101.dtsi | 26 ++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > index ffb7b4d89a8c..4ea1b180cd0a 100644 > --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi > +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > @@ -354,6 +354,32 @@ 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_DOUT_PERIC0_USI8_USI>, > + <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK>; > + clock-names = "pclk", "ipclk"; > + samsung,sysreg = <&sysreg_peric0 0x101c>; > + status = "disabled"; > + > + hsi2c_8: i2c@10970000 { > + compatible = "google,gs101-hsi2c", > + "samsung,exynosautov9-hsi2c"; > + reg = <0x10970000 0xc0>; > + interrupts = + IRQ_TYPE_LEVEL_HIGH 0>; This can be in one line. Limit of 80 is not a hard-limit. It can be violated if it improves readability. Especially if is about 1 character only. Best regards, Krzysztof