From patchwork Thu Feb 16 12:52:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 58044 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp283649wrn; Thu, 16 Feb 2023 04:57:31 -0800 (PST) X-Google-Smtp-Source: AK7set/8oUDyKElc7wFbxQQEYRM2nZB2ehDQKxtaJJQPrl0jdjSYOlf38D3XgblFszeX1WeRRUha X-Received: by 2002:a17:906:c2d7:b0:8af:2a97:91d4 with SMTP id ch23-20020a170906c2d700b008af2a9791d4mr6565835ejb.14.1676552251503; Thu, 16 Feb 2023 04:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676552251; cv=none; d=google.com; s=arc-20160816; b=nyiYq8dXwT2T1wo/sE62mlQCazBs8IqEsJFmjPZQ/LFXCQYdOozZgJ9QTCv0w0RjTx m4Edr4vpzt1qQubaZYQDvHYenm3P5JZNLqlDlIP+OZAeMXNpdSPVkVgPA9OZ8FpNT1my g/W+QiS0mx3vAf2bDSf/XMlISigYrnyAKC0NsEsa2P942NAHbHmXuD7IJjkJchLuo3O1 kAVWRo9OJdUUPNwBTvNPB7IUwVKeVC+N7s+tVa/plqVIO3zKcOBTiIIagOdP2mvrH1Do thenCDfs8fEgS73kKYoSr27b3GKbt18MCPZ1MGHskYdWjDXljpqJjvqpA8KT/rWm0KVC i6Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LIbmvEodTo/kIMv9iHrU04rcMXe5obN6DOGgl5KOWXI=; b=rmP+jI8sBbzGs0uglCESDK/HuvnqQFcBjbsiuwh7lYDBy2EsPHQ+rT+PpLeQU43ILR qdL1GqGVWWJBbYoY624OypXZNQTuGqwQq74nEZfttYmpJRhZDblqhcHGCogZy2eblXGm LiWRGzcZRkscjPdeW5I7iTlJ8W8SKrvuz3EizkltkzKrcUaJSe9UAyZggbd6PpsgI98p /oiymnQ3wHhzTZ9sPNUICWQdDL+kvfDQf7hpD96uPfc+p6D4S6e1rbfT/YggjKWXTH12 2jE1u4/KVB2itwt8S5BAyobiBy3wn/ZEZT3s1eXsgb/ucoHDbp4UXjTrvz5T5UhH+dMv TpUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="J8q9/OVs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 30-20020a17090600de00b0088f97d978b3si2524397eji.633.2023.02.16.04.57.07; Thu, 16 Feb 2023 04:57:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="J8q9/OVs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230490AbjBPMxR (ORCPT + 99 others); Thu, 16 Feb 2023 07:53:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjBPMxH (ORCPT ); Thu, 16 Feb 2023 07:53:07 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CBBE45F70 for ; Thu, 16 Feb 2023 04:53:05 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id m10so1752278wrn.4 for ; Thu, 16 Feb 2023 04:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; 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=LIbmvEodTo/kIMv9iHrU04rcMXe5obN6DOGgl5KOWXI=; b=J8q9/OVs3hya9brx9d0S1cgjcrRSbFYTFIKNrW8s3EG61lVfEURRat1xOzwnPcZWy9 FA67oviWqfVVhwA7oPtQO/uT78WFGxW/MlSHaZVytYP6c0Do4VFMdagczPTYlfwbkTc3 mUxs21Msn1HOtbEsjxrmsxSiw4C74bxyjaLPDmeLqjwZno2hPntVxfpG00qJESiw3N8A 3XAsGz97Jw24g+B6OtSh4ffMkvIkbZ9DXd0nkcvBMJKfUgULhxYjQ5C7c6J6W4hm6kG7 sJT5jXfEwYPyFacW7pf42huvLTm0kAt1o0X3dhazmZLQ1tMJVctaoOQ4efF6l5foMm3D P+8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=LIbmvEodTo/kIMv9iHrU04rcMXe5obN6DOGgl5KOWXI=; b=KgmlnB6gZ2SDbaUyvfMev0vWw0JOHirdpkArtI19ZXgUx1cUPpans5SMl6EoR4MTav uo3CfAEbNaYIU3Rc7wMDK2cB/THO1ucDiCbx6iJzU0f9/KMsYLZhknuLs8CLIwsigVFr 2eifmKhDzcM+/JzHy2Vn0g0DhpnwtccE0oWTzHzBQUHET3hlLoK/lzxMKpDrtpEX6zDE zo8cPD3mZGRtxH17Yv3Mk6a+D2FTf7L0qiUP9sP7TaUpTHpX0ldhWCvEt4bo9ZMkepl4 RTMl1walGmLZ8Fw5HIOi4DrAlpHvsTOUHtEE03S9J9XhnIUj9yRmSEWDGUy23lrA/Lxa J10Q== X-Gm-Message-State: AO0yUKUpnKt0kKb6rC8soRYeCbMiOOATbxCBE23l87LsR/etmyza7K+R NdGk9t/r62ND+N5uDrs/zbguqJ1H1sJP3vS8 X-Received: by 2002:adf:cd03:0:b0:2c5:58fb:fa92 with SMTP id w3-20020adfcd03000000b002c558fbfa92mr4155175wrm.7.1676551984193; Thu, 16 Feb 2023 04:53:04 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7c5b:1160:db5d:72da]) by smtp.gmail.com with ESMTPSA id h18-20020adffd52000000b002be5bdbe40csm1453292wrs.27.2023.02.16.04.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:53:03 -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 v3 4/9] arm64: dts: qcom: sa8775p-ride: enable i2c18 Date: Thu, 16 Feb 2023 13:52:52 +0100 Message-Id: <20230216125257.112300-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230216125257.112300-1-brgl@bgdev.pl> References: <20230216125257.112300-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757992453558875524?= X-GMAIL-MSGID: =?utf-8?q?1757992453558875524?= 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 {