Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4408228rdb; Fri, 29 Dec 2023 00:04:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpJO4pkKEoPmPei35C3aOFCGkpOUQJ8waEQmpyKBGfqEDE4xUtX/LXQFS3VITUMHmRlqSy X-Received: by 2002:a17:902:c3c1:b0:1d4:1999:d9ac with SMTP id j1-20020a170902c3c100b001d41999d9acmr5183829plj.94.1703837081078; Fri, 29 Dec 2023 00:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703837081; cv=none; d=google.com; s=arc-20160816; b=bAEU40RUssPRI8CU14+H92GzKegGgedn0BTcRNWoIHOaWWRTguEbwJZT3Pt1qV1ovR 57yw0+47fgFyP1ZuIyEA416hZbV9GwfRRIqFTIPhENaRi+n5yWfiOQxkh7LmqOL95swE ddbh3LBJ1xsYXBhDOo9vI53FEmPeKCpEUPaOTOUotNY6AjQ6+FRaWtWZHiCfxOGRYp0q qW2Yl7Lm0qbWiR2pKUqBuVO0glJQPcvUEV4o8pnHOubi7qRVtqFQ1Gkdh4exfDflckMq TpBMaa0vT+e01bDS2XkrYRsNjq8md4g0juWS1LfUdACXIzx2PsezLFvtKjp2zJTJmw/P Bjwg== ARC-Message-Signature: i=1; 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=0VWBP1TVQ7NQgud/UujhhMlQGKCoT87k5cfBJC4USCo=; fh=FqOQLeeVfm9n/r5JNX+Q+7hAK1mZ2AOKkCyOnFDmk3I=; b=uJf7x5MDJW4VTRiMPvtKZAuQKlUpHsZn03BzLyZEuYvg4H4U1ls8Q3L1kgvlFd2/OV rY4B9LKZ1PQnaGoZ4wUrVEaXWdVI7XTD8YMQSKS99tMNbg+0EirwLkfdUlqtK2Sn5Yo7 OMr0mtUztwrFSd7Im+0AUAzwtbK8AbdPpDZsJsSSTgUvdrw8OkfXK4qB3bHKpb1+WrQ1 z+/8BHCMX3hkT9F4b9Z1wga+i/JQLywNtqmDTCrcgLTzaeqYYx258tj/asZcOwWxZoKR HobOxLxeJWKhcLUzV/P6M0T1t5jFHGwr9ruCR/VpyVoLnYgCQPW61Q96VpPfxLM7S70e xw0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oIzOOtvL; spf=pass (google.com: domain of linux-kernel+bounces-12985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o9-20020a1709026b0900b001d45e257fb7si7474386plk.243.2023.12.29.00.04.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 00:04:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oIzOOtvL; spf=pass (google.com: domain of linux-kernel+bounces-12985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12985-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B99B728263F for ; Fri, 29 Dec 2023 08:04:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 514D8749E; Fri, 29 Dec 2023 08:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oIzOOtvL" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 B9D1B63D3 for ; Fri, 29 Dec 2023 08:04:26 +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-wr1-f52.google.com with SMTP id ffacd0b85a97d-33674f60184so6707846f8f.1 for ; Fri, 29 Dec 2023 00:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703837065; x=1704441865; 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=0VWBP1TVQ7NQgud/UujhhMlQGKCoT87k5cfBJC4USCo=; b=oIzOOtvLX8oxOgl/kB564knQV/hbgkwMOwaJO2aVa7wgYIPpEClXudNixvSPtV6SaH NrUXUDEeCG3cRZNH+zSfxK05qr4rkUJmjn0viGUbAE63tdS98HEQfhYpiYFblH7RzjiZ 4AOGZNqIqrGjS+sSL4Zkf7utLvqLgSyBUIJOwZ0nrG76WEWx6XDQ6M1jElU+mpSDyH5n 7CppcQPlEOV1VbIFKCF78EZ3GyUmTIqOBndylxLsGDoQR/+u++oHRshpIFGnqnupxS51 QgMHO1Guth+gZueg+IvQed9GNVWcAD67L3qmOpKvKV+Wufg5rouHF1RyRztWBC+uIoZM xneg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703837065; x=1704441865; 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=0VWBP1TVQ7NQgud/UujhhMlQGKCoT87k5cfBJC4USCo=; b=cxrwPMh31GlCVUEejuYLb3KTESZy5cjWjpXjQgv5ZEnSdGR9mlKu6SL/xkqC/KkoNe +qR65QMxh/dqRfL0i0sZeoQ/78uQd5YGAl1Y7L5RPLNXo/0yGrp9JbXdiedubuXuRx4N Bxxkfa5Sb/H00QTHqiuV0t2AzQx1wDZQUgi6UkbMrfSX72ssfLE/sabtjG6nTcl1MFeB pO+jGTnkzH4AnJYPR9S75K17YrkfpyW8wHkDTBZfDdCu1p2piwOhi1PkptpFJg3en+tD S7tW4dT5ENwEt62T449QCfD0f6q+NatF3N5O8zQFSPsOl5qxB9TqeSpQhspOj0VKpkaP Q+Lw== X-Gm-Message-State: AOJu0YyU23Z2raYZvsgNL3M4fOdy/QIX0ZsuN+2iQkI4Qkws4FYtHo3U 9isRTeKQRPXr3RYOqd0AGOi7vCJ1wEf2ww== X-Received: by 2002:a05:6000:100b:b0:336:8d4f:6b1b with SMTP id a11-20020a056000100b00b003368d4f6b1bmr6064936wrx.131.1703837064908; Fri, 29 Dec 2023 00:04:24 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id d5-20020adffbc5000000b00336e69fbc32sm7218151wrs.102.2023.12.29.00.04.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Dec 2023 00:04:24 -0800 (PST) Message-ID: <387303b4-d912-480c-a50c-9f9efa386ef3@linaro.org> Date: Fri, 29 Dec 2023 08:04:21 +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 v2 11/12] arm64: dts: exynos: gs101: define USI8 with I2C configuration Content-Language: en-US To: =?UTF-8?Q?Andr=C3=A9_Draszik?= , 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, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, arnd@arndb.de, semen.protsenko@linaro.org Cc: 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, kernel-team@android.com References: <20231228125805.661725-1-tudor.ambarus@linaro.org> <20231228125805.661725-12-tudor.ambarus@linaro.org> From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/28/23 14:04, André Draszik wrote: > Hi Tudor, Hi! > > On Thu, 2023-12-28 at 12:58 +0000, Tudor Ambarus wrote: >> [...] >> >> diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> index 0e5b1b490b0b..c6ae33016992 100644 >> --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> @@ -354,6 +354,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_PERIC0_TOP0_IPCLK_7>, >> + <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK>; >> + clock-names = "pclk", "ipclk"; > > Given the clock-names, shouldn't the clock indices be the other way around? Also see below. You're right, they should have been the other way around! Didn't make any difference at testing because the usi driver uses clk_bulk_prepare_enable(), what matters is the order of clocks in the i2c node, and those are fine. > >> + samsung,sysreg = <&sysreg_peric0 0x101c>; >> + status = "disabled"; >> + >> + hsi2c_8: i2c@10970000 { >> + compatible = "google,gs101-hsi2c", >> +      "samsung,exynosautov9-hsi2c"; >> + reg = <0x10970000 0xc0>; >> + interrupts = ; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&hsi2c8_bus>; >> + clocks = <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_7>, >> + <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK>; >> + clock-names = "hsi2c", "hsi2c_pclk"; > > Here, pclk == CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK (which is correct, I believe), whereas > above pclk == CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_7 > Indeed, I'll reverse the order for the USI clocks and do some more testing. Thanks! ta