From patchwork Wed Aug 1 18:02:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143303 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1177874ljj; Wed, 1 Aug 2018 11:04:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgped51/fTj8CjOdAxvPeKkjdUDLqblZny+RtlxHS5FZ2RQveJx0PjPC8G6+IDp36JDYWMvjE X-Received: by 2002:a62:2983:: with SMTP id p125-v6mr28142790pfp.128.1533146645715; Wed, 01 Aug 2018 11:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533146645; cv=none; d=google.com; s=arc-20160816; b=m3Ej29b9xe87GUUiSEzPbW9jZ8TeCILZAyC4x/IcUtq2P3TaoxgaDQpIudc1lW/T3k MvTI7/rQ2dMJd+u33WjgbHLz8NOTAC+bHmT4LLNrQJXFIy9wmr76IBRvVDQ+jPLlswCA yIRh/t3ZHVehNpKSPTiJG54F7sCTTIVKe+EZw3j1LwzET+guPYkUREpQ7QAC/67pk/lv bVP4CRd9UYzp6zIIxyNXL/tQ4Sluu2Yk30LlnFAZ1tjCPc/m2XA658tFY1Xlc1rQHtgq xYeXRNVA1gxbGAOuFuzDmNfE8S5fPPm76qKnJwh4gDFfL6UJcLNqmBl6ljFg19cZcveh IXTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Bcvpf2JwZdjv59xkZ4zzQ6yiuLiqFtQKkQsfAovx0i4=; b=ttQqPgWSemtT2dWLRW9N/F61ucqYdNqu1nmfP6qR32xhW4WXzV/uExAo+vCjzdkrmM OyYpXOgJk1tmtcxFY7keTIVRHQQynL3jqdEiqr8wI1vj58HOPLpG5zVlafDQKUFP8xgT QADAkjF0Llin1MoNCI2YiJetA7b84TSvS+1fWOQjBgmeCP+yjk6YLxL4j90SwpIDhZYp k0G7PW4Qogq3hCSQYLYu483DFOCTZWKF1LDSQjoUbY9p7Rzu3Fq3Bsj9gGRcSpifXGKt Jn3zaKPIbQ+/CtsjbOMFWRH8jGvPdYKlm75tf2I2e2d5kKkXikPQDZK6tcP6zJarpegg qNUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AEgcGi/N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17-v6si16056176pge.494.2018.08.01.11.04.05; Wed, 01 Aug 2018 11:04:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AEgcGi/N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732687AbeHATu4 (ORCPT + 31 others); Wed, 1 Aug 2018 15:50:56 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:42328 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732257AbeHATuy (ORCPT ); Wed, 1 Aug 2018 15:50:54 -0400 Received: by mail-pl0-f68.google.com with SMTP id z7-v6so9149959plo.9 for ; Wed, 01 Aug 2018 11:04:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Bcvpf2JwZdjv59xkZ4zzQ6yiuLiqFtQKkQsfAovx0i4=; b=AEgcGi/NSYUb3SrrIYbvxL4yOApCmS2HwxjW6cUjssRzKVt1QPJm/6zV2v0pork9+I GmdwVShfrtnA2HSfFwihY5Cgt+yGG3ob9cfbm+EQUGuOlGf7RUymyybZ3hHwgZtd9iME rEk+ypJ92X4wTJjCOnELTCYSJ0DCCftDv5/Ls= 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; bh=Bcvpf2JwZdjv59xkZ4zzQ6yiuLiqFtQKkQsfAovx0i4=; b=XoH/RRdgmNWUVczu/VLnpLNoGa+fgFncBEMazJhWj5U5XL9DYQ8xuYxWa9M6iIMnmS pyjXqiXGBGkpuswRMjPBWr/Y/oXWISJfyk//5XwUuSofKnpS2Uo3Uq5bx5OFQ/cC2Hum 0qMItW5JBuXbZ3kBeqMtBR1FlnI0wHlfUi8WiOmLg+rqHC2byEbefw8NiJmvKk1DDiZK 6nSOBuj7XD588fwbunPu86HzF7vVHgPriE1RO3HcbrjbJEej+W38H6DB2T/8zTm8PPMS kVqTGcLAeSJ+MmUoNAVFNY0LYtXvHZpivw91bTNQJ5f71NIEAsg/JAJFQJQfhFmd9a8f r3IQ== X-Gm-Message-State: AOUpUlHmsv0+LHDeOmvr6EwSgu0qtTarGg4CyhhnGhI1jrygd3hwowna rFaofl8o8xdVdro9n/Q1DKgE X-Received: by 2002:a17:902:74c2:: with SMTP id f2-v6mr25276510plt.260.1533146640760; Wed, 01 Aug 2018 11:04:00 -0700 (PDT) Received: from localhost.localdomain ([2405:204:73c1:5a70:e532:a47d:7290:5aa6]) by smtp.gmail.com with ESMTPSA id x80-v6sm12961649pfe.129.2018.08.01.11.03.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 11:03:45 -0700 (PDT) From: Manivannan Sadhasivam To: wsa@the-dreams.de, robh+dt@kernel.org, afaerber@suse.de Cc: linus.walleij@linaro.org, linux-i2c@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, andy.shevchenko@gmail.com, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, Manivannan Sadhasivam Subject: [PATCH v8 1/6] dt-bindings: i2c: Add binding for Actions Semiconductor Owl I2C controller Date: Wed, 1 Aug 2018 23:32:27 +0530 Message-Id: <20180801180232.23680-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801180232.23680-1-manivannan.sadhasivam@linaro.org> References: <20180801180232.23680-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding for Actions Semiconductor Owl I2C controller Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- .../devicetree/bindings/i2c/i2c-owl.txt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-owl.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/i2c/i2c-owl.txt b/Documentation/devicetree/bindings/i2c/i2c-owl.txt new file mode 100644 index 000000000000..b743fe444e9f --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-owl.txt @@ -0,0 +1,27 @@ +Actions Semiconductor Owl I2C controller + +Required properties: + +- compatible : Should be "actions,s900-i2c". +- reg : Offset and length of the register set for the device. +- #address-cells : Should be 1. +- #size-cells : Should be 0. +- interrupts : A single interrupt specifier. +- clocks : Phandle of the clock feeding the I2C controller. + +Optional properties: + +- clock-frequency : Desired I2C bus clock frequency in Hz. As only Normal and + Fast modes are supported, possible values are 100000 and + 400000. +Examples: + + i2c0: i2c@e0170000 { + compatible = "actions,s900-i2c"; + reg = <0 0xe0170000 0 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clock CLK_I2C0>; + clock-frequency = <100000>; + }; From patchwork Wed Aug 1 18:02:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143306 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1179389ljj; Wed, 1 Aug 2018 11:05:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdRFYH9ah0MYZyjFooHIWRRVwWpLJKYxJOK5wPLIF9JGxIbWtJ5IgcpEX7l2oJRyTO7PxW5 X-Received: by 2002:a65:5106:: with SMTP id f6-v6mr25239049pgq.72.1533146726677; Wed, 01 Aug 2018 11:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533146726; cv=none; d=google.com; s=arc-20160816; b=B8tUvMaXGjpGJbx5cnuXgJ2xRLjGEac6RN/wDzCSCHgHcmV5bWZ6wRc6r+yDLql1AI kMs9/iZFqj0sET8o87GnGkSdOpVN/DcTDcdXMxBxHJ4el/DxtVKSuYCeIxl8RnysNTwN lu/PrnxKyiCDbz49DRuIa+BRreo6f2pUfz8i4iYbVSMeVK4Ca+LstAoSSo8rqYCQ1oOu VYjyxEjmxLfD6g4No2l7exqw5g+efu0ys9xdfCNYn2X5L5fN9Qm7MTSqEic/UGTZSu6E Vx1XLm0suDHSUd6p1Vqz+qvkww1gonSInwktNZKe6vAl8iZRqQl9Qoj94K7p07TxaWjq L8EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=wL0fWQKe6YDVk5gZXK2gEuAVrBvPcSCEQHWulUbgBug=; b=KDJ8fYKB7fSw1Tr9QbJJIxJXikkav5NAzLhLyFG5vKcVJrilJbU9G6O38eDFrlohx5 PbEOqPxV8XfIyHSDHJWbpn33n6KVZYssMTzdRY3rLyau22u3qgsBcDxk06fUO42vP8YV 9QiApI6+MyHYP5+oG7LphexKs5p0uQ99WgIyz+o9GBuCeQ3JLvtN9r4ngVf6AUo5ZzRt zTiKwbKFFVQWIO77uWcDfHKtKCKzJWxvZigW/dZbal4qeeyoSC5z/ts9SreuPOFU9UWe zJ8g7vxpxET6F+kahFik1fyAwJxzrNaz4GO1njH/3SEB9Cu9pzSdMKl3duPQVJHis2NA GNfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E4I8d3wN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o64-v6si3089774pfg.102.2018.08.01.11.05.26; Wed, 01 Aug 2018 11:05:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E4I8d3wN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732269AbeHATwS (ORCPT + 31 others); Wed, 1 Aug 2018 15:52:18 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39248 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729784AbeHATwS (ORCPT ); Wed, 1 Aug 2018 15:52:18 -0400 Received: by mail-pg1-f196.google.com with SMTP id a11-v6so11200921pgw.6 for ; Wed, 01 Aug 2018 11:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wL0fWQKe6YDVk5gZXK2gEuAVrBvPcSCEQHWulUbgBug=; b=E4I8d3wNONArDWRcwggM9crw+nnQTuugbXliRmPzEbNtiOVGiIXks9gXsGxdipwUGh zzGTlk1brCXeo2Ma3WR5QH13Z3UdSp0jcnUXrCM32mZYY/Sf/VrgB3H0ffbV5qPvQnAn 2q7wwFyEruApCbJJOQdQdYSFy82iCczBeXzxA= 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; bh=wL0fWQKe6YDVk5gZXK2gEuAVrBvPcSCEQHWulUbgBug=; b=QwdYCmc/iT+zovCHql45yeBXjL4OTQcBbUNmj8PYMppXw65wsSQfSkLYkiYSJqKyez C9lppGs5j4aOkIq1bf4iSgOrO0Z2XHlUJjatM6bIdGJlME+L93iyuJvNb2fc0Gt3Rpwo ocDapfA8Aj9WQk4u4/18PVKJnJtfmscX7jOcmu8TSq51lup3JRfRRGYPYZFoxz5fzR5a /7ABJ6cx76AeK+OMD/q1OIETIv91nvkwM5aXSa3VjhVB4NrJOv5+1p01/FRoLGaGZJyB kewvof5pzYYNyzR8c9qVercVIWpcnuEB2h/kfrnqSeHFNEsaokJyQyGahFer0g8G7ZFd 3Vyg== X-Gm-Message-State: AOUpUlFudySxwSI7Al6H0DflgCJmCyHgyGPzXCJvivLhbqaR/sOReP1s dSZYRs09gbqP4rTzQn4d2ZLu X-Received: by 2002:a62:f0d:: with SMTP id x13-v6mr27548991pfi.123.1533146723601; Wed, 01 Aug 2018 11:05:23 -0700 (PDT) Received: from localhost.localdomain ([2405:204:73c1:5a70:e532:a47d:7290:5aa6]) by smtp.gmail.com with ESMTPSA id x80-v6sm12961649pfe.129.2018.08.01.11.05.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 11:05:15 -0700 (PDT) From: Manivannan Sadhasivam To: wsa@the-dreams.de, robh+dt@kernel.org, afaerber@suse.de Cc: linus.walleij@linaro.org, linux-i2c@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, andy.shevchenko@gmail.com, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, Manivannan Sadhasivam Subject: [PATCH v8 4/6] arm64: dts: actions: Enable I2C1 and I2C2 in Bubblegum-96 board Date: Wed, 1 Aug 2018 23:32:30 +0530 Message-Id: <20180801180232.23680-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801180232.23680-1-manivannan.sadhasivam@linaro.org> References: <20180801180232.23680-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable I2C1 and I2C2 exposed on the low speed expansion connector in Bubblegum-96 board. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts index d0ba35df9015..57ae374cfb5a 100644 --- a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts +++ b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts @@ -7,6 +7,7 @@ /dts-v1/; #include "s900.dtsi" +#include "s900-bubblegum-96-pins.dtsi" / { compatible = "ucrobotics,bubblegum-96", "actions,s900"; @@ -35,6 +36,16 @@ clocks = <&cmu CLK_UART5>; }; +&i2c1 { + status = "okay"; + clocks = <&cmu CLK_I2C1>; +}; + +&i2c2 { + status = "okay"; + clocks = <&cmu CLK_I2C2>; +}; + /* * GPIO name legend: proper name = the GPIO line is used as GPIO * NC = not connected (pin out but not routed from the chip to