Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1687565ybt; Thu, 25 Jun 2020 11:39:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWTYa2tVZHfI37K1+VBzTZnpTFmwdTOEueEfpELcTmHu/YpwLEplEgBv5B3u0L1DoKNIPb X-Received: by 2002:a17:906:95d9:: with SMTP id n25mr1230508ejy.437.1593110355758; Thu, 25 Jun 2020 11:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593110355; cv=none; d=google.com; s=arc-20160816; b=0uGV5CUnkVEFtnd4iWW2MB7jdPyRF30jMbvVCJ0BXaSnLIpqFTo0e3hP5L4u59fNIR I8edTq88oBiZZKg29KzDdkst9Q2yo0LvMR7nbeX3dETCqnUHhtR9ic2c7iWfcXvddBw/ uTV8v9EYx6DqrCT6aTzRgvNlmB7nu8ZB96sERCWbVEkleKRUYc9c7yboD5O/y0uNQYUo 6Qq5MiCpyn3zOm7Ry7E9pFboVEW+vOnOy94bv0vOMK87bHsB9+lvI3/bWZnIgLOWgPxg gBNSNvWllEqqrW4AMip+ter0v223xIeBmp0XlgYJr6oshCxkXbTXn544tW/M+fiHxtHv vlWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nINX/kfwXFeE0ZC5NuendZlvDPr7E/82LokYi5uJ2C8=; b=QwjZfnP95aK2GTWXPB5ud5PwqcZKnPYwEO386VPhJkcKav3lsIJz8GwCjdQLjMH/qO 1r9Xlv23PNK10W7uZh+kkBa9SheA4WAQhxgICQym2XVTLvPLPDi+zFhGX9EcO9/oaPjm FraDXr0+06F/xLxUv5C9LvmvT5VoaBh98SD7cXdU4eqvFcTDtTot2iVtT4DIzoMqNK89 y9WO+/Aq2c0niwQXxIC9QVEwbBxYoW36Jqs0lmdD8alPS9HaxuslL09KCUZgIBEPfNqd LEBj698kymbw4QJ0DBkW9tbdN9fjUqBEMd6NcN5jHBFkc2NPHvBAhPmeLZIyFDgTo/80 vfLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kNZHcKqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si14982645eje.123.2020.06.25.11.38.52; Thu, 25 Jun 2020 11:39:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kNZHcKqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436483AbgFYSNe (ORCPT + 99 others); Thu, 25 Jun 2020 14:13:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407029AbgFYSN3 (ORCPT ); Thu, 25 Jun 2020 14:13:29 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00969C08C5C1; Thu, 25 Jun 2020 11:13:29 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id g20so4716559edm.4; Thu, 25 Jun 2020 11:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nINX/kfwXFeE0ZC5NuendZlvDPr7E/82LokYi5uJ2C8=; b=kNZHcKqsg7JkDXsz7OWb98HSmSJWsKOeEsy3A5QNIaRWEeed3qZci3KzHV/R75uiQP JbxET463d5bnYKozW5mk8oGFUuS9X1vHGZaA8K14nYgUhyjs7UCXoz0IO14W+F0xEimf S2c1z9TK/HuZfOOPB0BXyHv8eDB/PaWHCZ6j9w+0nKneRVqCoopa18LDyrOaI9ZvxbMm qUk4ZOvX0+xF5gEydfNZxHpRlcKcqKUZZVz3oVq5tTLfl/B6q1bFcEWNXrySq4AUPBjn dv5ttyTf7YoFDGwfeM3J7Tz4sX507VZKDxLO4lZhp6aKzqmYKe2g1qOuQgybw7hdn9WX TNrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nINX/kfwXFeE0ZC5NuendZlvDPr7E/82LokYi5uJ2C8=; b=KluuTCxEjOZT5yL+OPVRXQGhs6u4wLB24ACZfcCSKFqo3dk0l2wi6BeOY1HXmh6pbm 5YwGFdvSkNBw1CExetq/frnPoBXiFaeY1GaGpmUm0hiki6+IOYGtE1TZ8uoAOawqyVgK nqqhB8RkcYXket3abatVCvX1+5eEGJE6l4IJbaTQuag7nN6y1J/PeKIKuaa5ANUjsZzF ZvaSZHnMep3XVLwC80MuriqdA++qaiwhvJMO8aiizuF00/Q8/vN/ViaXejueXBPwYtIF apWTXepS1dFx3xYClj5ffgLSRbu6Xwohp22Ke7Q8qCle5rBuZgoPU5YTocMau4w7hCLo L+4w== X-Gm-Message-State: AOAM533YPn+mu29tI9wtus/sZ7wELDOhpz1B5z7XSzpT6/UZVgcSMrd7 6NVJxEb34F5Ockg05l0w230= X-Received: by 2002:a05:6402:14c1:: with SMTP id f1mr5626623edx.342.1593108807655; Thu, 25 Jun 2020 11:13:27 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id p4sm19511112edj.64.2020.06.25.11.13.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 11:13:27 -0700 (PDT) From: Konrad Dybcio To: skrzynka@konradybcio.pl Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 08/13] arm64: dts: qcom: msm8992: Add BLSP2_UART2 and I2C nodes Date: Thu, 25 Jun 2020 20:12:56 +0200 Message-Id: <20200625181303.129874-9-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200625181303.129874-1-konradybcio@gmail.com> References: <20200625181303.129874-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for I2C to enable support for peripherals such as touchscreens or sensors. Also add BLSP_UART2 interface. Please note that the naming scheme follows downstream and as abominable as it is, that's what we get. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8992.dtsi | 153 ++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi index acce7be22e50..e8b801813f14 100644 --- a/arch/arm64/boot/dts/qcom/msm8992.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi @@ -272,6 +272,101 @@ blsp1_uart2: serial@f991e000 { status = "disabled"; }; + blsp_i2c2: i2c@f9924000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0xf9924000 0x500>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c2_default>; + pinctrl-1 = <&i2c2_sleep>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + /* Somebody was very creative with their numbering scheme downstream... */ + + blsp_i2c13: i2c@f9927000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0xf9927000 0x500>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c13_default>; + pinctrl-1 = <&i2c13_sleep>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + blsp_i2c6: i2c@f9928000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0xf9928000 0x500>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP6_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c6_default>; + pinctrl-1 = <&i2c6_sleep>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + blsp2_uart2: serial@f995e000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0xf995e000 0x1000>; + interrupt = ; + clock-names = "core", "iface"; + clocks = <&gcc GCC_BLSP2_UART2_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&blsp2_uart2_default>; + pinctrl-1 = <&blsp2_uart2_sleep>; + status = "disabled"; + }; + + blsp_i2c7: i2c@f9963000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0xf9963000 0x500>; + interrupts = ; + clocks = <&gcc GCC_BLSP2_AHB_CLK>, + <&gcc GCC_BLSP2_QUP1_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c7_default>; + pinctrl-1 = <&i2c7_sleep>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + blsp_i2c5: i2c@f9967000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0xf9967000 0x500>; + interrupts = ; + clocks = <&gcc GCC_BLSP2_AHB_CLK>, + <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <100000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c5_default>; + pinctrl-1 = <&i2c5_sleep>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + gcc: clock-controller@fc400000 { compatible = "qcom,gcc-msm8994"; #clock-cells = <1>; @@ -337,6 +432,20 @@ blsp1_uart2_sleep: blsp1-uart2-sleep { bias-pull-down; }; + blsp2_uart2_default: blsp2-uart2-default { + function = "blsp_uart8"; + pins = "gpio45", "gpio46", "gpio47", "gpio48"; + drive-strength = <16>; + bias-disable; + }; + + blsp2_uart2_sleep: blsp2-uart2-sleep { + function = "gpio"; + pins = "gpio45", "gpio46", "gpio47", "gpio48"; + drive-strength = <2>; + bias-pull-down; + }; + sdc1_clk_on: clk-on { pins = "sdc1_clk"; bias-disable; @@ -397,6 +506,21 @@ i2c2_sleep: i2c2-sleep { bias-disable; }; + i2c5_default: i2c5-default { + /* Don't be fooled! Nobody knows the reason why though... */ + function = "blsp_i2c11"; + pins = "gpio83", "gpio84"; + drive-strength = <2>; + bias-disable; + }; + + i2c5_sleep: i2c5-sleep { + function = "gpio"; + pins = "gpio83", "gpio84"; + drive-strength = <2>; + bias-disable; + }; + i2c6_default: i2c6-default { function = "blsp_i2c6"; pins = "gpio28", "gpio27"; @@ -410,6 +534,35 @@ i2c6_sleep: i2c6-sleep { drive-strength = <2>; bias-disable; }; + + i2c7_default: i2c7-default { + function = "blsp_i2c7"; + pins = "gpio43", "gpio44"; + drive-strength = <2>; + bias-disable; + }; + + i2c7_sleep: i2c7-sleep { + function = "gpio"; + pins = "gpio43", "gpio44"; + drive-strength = <2>; + bias-disable; + }; + + i2c13_default: i2c13-default { + /* Not a typo either. */ + function = "blsp_i2c5"; + pins = "gpio23", "gpio24"; + drive-strength = <2>; + bias-disable; + }; + + i2c13_sleep: i2c13-sleep { + function = "gpio"; + pins = "gpio23", "gpio24"; + drive-strength = <2>; + bias-disable; + }; }; }; -- 2.27.0