From patchwork Thu Mar 9 10:37:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13167193 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1411BC742A7 for ; Thu, 9 Mar 2023 10:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230387AbjCIKiG (ORCPT ); Thu, 9 Mar 2023 05:38:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231293AbjCIKiE (ORCPT ); Thu, 9 Mar 2023 05:38:04 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A89902A for ; Thu, 9 Mar 2023 02:38:01 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id bw19so1337025wrb.13 for ; Thu, 09 Mar 2023 02:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678358280; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=B8KzYFaNC31XGy3z1a5fC/b9IAo0DBq/FXy8tjU946A=; b=DO8k7fPNDDmPBblcD1EQBHtrAcYkuYotdqK/W83NPqgPruh4/jqz7zPv6SzqmC48Nt MWVylCIKxpVklFOabPti8pPq/nzbK7ANAcZyWJBa+syuIgujaOB52eW95D1QguD/F2Ix /H+rZ0TMUATREoe51WKSjDO6xpoFg/Fyi9gPbubq1eK5Kq3f+pm0URO+vGld5DyomKjm 61r6Dx5E7XjfkMgOiXpS1vLoFWW0fdCZsV1uVsixEwiFdfAZLkH23eEPHdvwtHN99d/w PL1UsF2cjGKT7rMqhXi1+1iI+jejaA3dOSKt0d5c6JnJXgIV+vORRh3P8LZxIvF+jAcD WULw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678358280; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B8KzYFaNC31XGy3z1a5fC/b9IAo0DBq/FXy8tjU946A=; b=pqla7CZaaeE84fILttBPMESLBeE2H/c9Ciz269psSQ/f1kPvUFAypH98rESOg7rXkh OTrLzQVB9UzNdo/tPc43P867n1ikqYbGKulPN88WspiT8RX0sKhXZimORsNMf6ih+h7e razxBmOzuxO/9+1Ff1FVUaASNV25PDpmRAALLY46V2sqX4A3iflsUjXT3Opl7yS083tT Qzsv3DEBuk0CD/x9NQULoN8VtQHiHW0+2RVuk88ws6SrQ61nosrSqDAkVjX05manDuS1 +UldJzTyhGwA5dw/EO7Rlt8sReucJEzlwRQl9Ld/uaDtXUnuckABkL1zRlq4h1RJFuG5 V39g== X-Gm-Message-State: AO0yUKXDa/1ECgRxhlWtrr3JbW3AqSnklJH3tO13p6I5UdMXrjM8ymxG JdEb2zzmV8t7FB/UwrS5ZyjYlg== X-Google-Smtp-Source: AK7set8BdnsQOqBxFxXWZdPGWFHZzTyInEswB0CiSMdMY5dlkRWdYfwHJJfD+luucG+/pU6eISbopg== X-Received: by 2002:a5d:5689:0:b0:2c7:1b3e:362c with SMTP id f9-20020a5d5689000000b002c71b3e362cmr13091572wrv.42.1678358279886; Thu, 09 Mar 2023 02:37:59 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:f14c:2275:50fc:c056]) by smtp.gmail.com with ESMTPSA id f2-20020a5d58e2000000b002c56af32e8csm17638119wrd.35.2023.03.09.02.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 02:37:59 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v5 4/9] arm64: dts: qcom: sa8775p-ride: enable i2c18 Date: Thu, 9 Mar 2023 11:37:47 +0100 Message-Id: <20230309103752.173541-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230309103752.173541-1-brgl@bgdev.pl> References: <20230309103752.173541-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski This enables the I2C interface on the sa8775p-ride development board. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index a538bb79c04a..5fdce8279537 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -13,6 +13,7 @@ / { aliases { serial0 = &uart10; + i2c18 = &i2c18; }; chosen { @@ -20,6 +21,13 @@ chosen { }; }; +&i2c18 { + clock-frequency = <400000>; + pinctrl-0 = <&qup_i2c18_default>; + pinctrl-names = "default"; + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; @@ -37,6 +45,13 @@ qup_uart10_default: qup-uart10-state { pins = "gpio46", "gpio47"; function = "qup1_se3"; }; + + qup_i2c18_default: qup-i2c18-state { + pins = "gpio95", "gpio96"; + function = "qup2_se4"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart10 {