From patchwork Wed Feb 1 13:59:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 649174 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp304745pva; Wed, 1 Feb 2023 06:07:15 -0800 (PST) X-Google-Smtp-Source: AK7set/MECw5M2VloeqTHOt+onyN/oda6ynAwF8wAf1wo7Apjn7NVfcuxVTk+LkK2v82Dkg3Bt86 X-Received: by 2002:a4a:4155:0:b0:517:968f:73c0 with SMTP id x82-20020a4a4155000000b00517968f73c0mr957882ooa.0.1675260435042; Wed, 01 Feb 2023 06:07:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675260435; cv=none; d=google.com; s=arc-20160816; b=opl7ydnUc2wdoe4lZYi+8UJDJAlOWVTOP/R8rF5y9dCZ1mFG3a2lpHJHCf4UwGIr1d OF/xNGSfhha/BrHQjzcZAOk9pNNnhimU4ARQ/KhaWT/uK/5lxnXVb285LfpFFCGhOJy8 2TA4RpNdjNMpYxGkZK2nByDsctNTUttSCWhVtKMeAIelUPaZTbKaJpAp61SXf3p0/8DQ a176RfZcPPPqWmF8sG6nDbYFuYSpqfI+J+E4tc1+nxwr4PlT7kbWcUMGbkI58hvrturB 87smQGzvIBDBrIIJ61ZYZfGmvRoyytNPrZhhukCd+/oruQpfqZULwSI0LGkQS8mzU73+ 70hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6kr/g6m/4ZltE8jqlhDtEwO8Fv1oew34oK40awNbuVI=; b=QbAQsToWDf05U/EmLlwoXhniE+hwjWn/pvs0SSH8bkKNAyGLtSO+eo1bMza+t8TScj nxLVkF7KhAvkjestztASb8bh7sZPjJNlCESND/ykUzBZpUJRQWMoxM7iqRKkPxzVhdOu Arp9zvUDId3UVY672/lZtuNm5+UDZJoS0zq7ghsrx/jwgAIz3nSY3swl2vVeuQU/D/GQ B7DQi/bTVcQuDlXrwNuoQ66E4AyhRNE2+UHg27UlW2qaJ/8+ojb1Z2NNkIQ6CdPVXyAT wYYK2htJy47yiqXicUho48dAdyScKUa75H0z4NcUTPueb4zdZij7OyEzTAacvz15XJ2V uQ4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G5WJNO3q; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id p1-20020a4a95c1000000b00517810e5daasi8006829ooi.5.2023.02.01.06.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 06:07:15 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G5WJNO3q; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 553AC85C93; Wed, 1 Feb 2023 15:06:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="G5WJNO3q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A6C0685C97; Wed, 1 Feb 2023 15:03:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BL_SPAMCOP_NET, SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 02B9B85CA1 for ; Wed, 1 Feb 2023 15:00:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sumit.garg@linaro.org Received: by mail-pj1-x1029.google.com with SMTP id pj3so4556924pjb.1 for ; Wed, 01 Feb 2023 06:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=6kr/g6m/4ZltE8jqlhDtEwO8Fv1oew34oK40awNbuVI=; b=G5WJNO3qzIAHRVcPbhKnCYuOTTdwZTrlF7qK0PEz0CfrTwKw5dWr0HicYIW/5B3XhY 2BquO6QtPxLdvtBssPMS7ovthVtoYsJnlRP7tc5Umd4xuJKS219raAVHYnF5CZVVs5UX kk8iALqGqGwkFTP27v9tvjNfXj+tgfX0kzGr5LbjvRc4kAJ9PuO0gPl5KlYioTwLpNUj O5DSaHOm/yean0s3hxEGqGbM3PgOWIcBj10wAUW1NjPIOOHwyX4efxBiKH1kPvuONCXx c6Uk46CC5iuL8Nh0uVJwXUm6IQJWcxHVWCh/VHly2cAkhhZ/JHwtVKqwS9jaNM2fQB2s /sZw== 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=6kr/g6m/4ZltE8jqlhDtEwO8Fv1oew34oK40awNbuVI=; b=5uolBP+pR0VrbHZGD66Gh9sZcJZgWXCzpDxhojcwE3RVquv57v7DRShyFGCGY3zPeV HxMkS6R57/BlwyaQ1ZX02KbhSSth/5cDD35GMLIgTGyp+1IMfHo2gwToaAZZ2wjb7XE6 1ULQhMeLpm4IIW6zWjqMiJTI/FafDf/R6Zt5R9P2UnWBWAHafRnZtj4ey1wOyQ17J2hF iiFstCtbf5bWXieANREOwN9BKAPvO+9XVOZMcf+lNV3nzfpfFHiMMNvja5s68DAWzUdd LNMeU8TGP1GracAab4WUD9CWk4uEdAcf/3EHgccWWMe+UEaH+97a1IDvohqpjt02ciIb DZPg== X-Gm-Message-State: AO0yUKV7ajpdV1kC4Qj4hEVNLdEVW+62FVTs5P4Q9yBgCQMjVZBnIIo2 NZwls3X/Kp3jdNA/kOn30cm29gcJ51SmtlQj X-Received: by 2002:a05:6a20:d691:b0:ae:47a6:e6d9 with SMTP id it17-20020a056a20d69100b000ae47a6e6d9mr2789335pzb.6.1675260013995; Wed, 01 Feb 2023 06:00:13 -0800 (PST) Received: from sumit-X1.. ([223.178.209.222]) by smtp.gmail.com with ESMTPSA id i8-20020a17090332c800b001899c2a0ae0sm3636759plr.40.2023.02.01.06.00.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 06:00:13 -0800 (PST) From: Sumit Garg To: u-boot@lists.denx.de Cc: rfried.dev@gmail.com, hs@denx.de, joe.hershberger@ni.com, stephan@gerhold.net, mworsfold@impinj.com, lgillham@impinj.com, jbrennan@impinj.com, nicolas.dechesne@linaro.org, vinod.koul@linaro.org, daniel.thompson@linaro.org, Sumit Garg Subject: [PATCH v2 14/14] dts: qcs404-evb: Add I2C controller nodes Date: Wed, 1 Feb 2023 19:29:01 +0530 Message-Id: <20230201135901.482671-15-sumit.garg@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230201135901.482671-1-sumit.garg@linaro.org> References: <20230201135901.482671-1-sumit.garg@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Sumit Garg --- arch/arm/dts/qcs404-evb.dts | 97 +++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/arch/arm/dts/qcs404-evb.dts b/arch/arm/dts/qcs404-evb.dts index 2de0e7537b..8d7893c116 100644 --- a/arch/arm/dts/qcs404-evb.dts +++ b/arch/arm/dts/qcs404-evb.dts @@ -23,6 +23,11 @@ aliases { serial0 = &debug_uart; + i2c0 = &blsp1_i2c0; + i2c1 = &blsp1_i2c1; + i2c2 = &blsp1_i2c2; + i2c3 = &blsp1_i2c3; + i2c4 = &blsp1_i2c4; }; memory { @@ -49,6 +54,38 @@ function = "blsp_uart2"; }; + blsp1_i2c0_default: blsp1-i2c0-default { + pins = "GPIO_32", "GPIO_33"; + function = "blsp_i2c0"; + }; + + blsp1_i2c1_default: blsp1-i2c1-default { + pins = "GPIO_24", "GPIO_25"; + function = "blsp_i2c1"; + }; + + blsp1_i2c2_default: blsp1-i2c2-default { + sda { + pins = "GPIO_19"; + function = "blsp_i2c_sda_a2"; + }; + + scl { + pins = "GPIO_20"; + function = "blsp_i2c_scl_a2"; + }; + }; + + blsp1_i2c3_default: blsp1-i2c3-default { + pins = "GPIO_84", "GPIO_85"; + function = "blsp_i2c3"; + }; + + blsp1_i2c4_default: blsp1-i2c4-default { + pins = "GPIO_117", "GPIO_118"; + function = "blsp_i2c4"; + }; + ethernet_defaults: ethernet-defaults { int { pins = "GPIO_61"; @@ -105,6 +142,66 @@ }; }; + blsp1_i2c0: i2c@78b5000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b5000 0x600>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP0_I2C_APPS_CLK>; + clock-names = "iface", "core"; + pinctrl-names = "default"; + pinctrl-0 = <&blsp1_i2c0_default>; + #address-cells = <1>; + #size-cells = <0>; + }; + + blsp1_i2c1: i2c@78b6000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b6000 0x600>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>; + clock-names = "iface", "core"; + pinctrl-names = "default"; + pinctrl-0 = <&blsp1_i2c1_default>; + #address-cells = <1>; + #size-cells = <0>; + }; + + blsp1_i2c2: i2c@78b7000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b7000 0x600>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; + clock-names = "iface", "core"; + pinctrl-names = "default"; + pinctrl-0 = <&blsp1_i2c2_default>; + #address-cells = <1>; + #size-cells = <0>; + }; + + blsp1_i2c3: i2c@78b8000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b8000 0x600>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; + clock-names = "iface", "core"; + pinctrl-names = "default"; + pinctrl-0 = <&blsp1_i2c3_default>; + #address-cells = <1>; + #size-cells = <0>; + }; + + blsp1_i2c4: i2c@78b9000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b9000 0x600>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>; + clock-names = "iface", "core"; + pinctrl-names = "default"; + pinctrl-0 = <&blsp1_i2c4_default>; + #address-cells = <1>; + #size-cells = <0>; + }; + gcc: clock-controller@1800000 { compatible = "qcom,gcc-qcs404"; reg = <0x1800000 0x80000>;