From patchwork Mon Jul 23 03:40:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 142533 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5581756ljj; Sun, 22 Jul 2018 20:41:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdDR0VsIG/tj65YhP+md4igt6504dF6Uzn/bvwtAnlXD62800KZm9ynskf8Vwh8LiZFtSNV X-Received: by 2002:a65:6104:: with SMTP id z4-v6mr10604541pgu.361.1532317277836; Sun, 22 Jul 2018 20:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532317277; cv=none; d=google.com; s=arc-20160816; b=FTLqhoCGedROGrvksM8hyZlD6hSec/9w8BJDALvvnmhM1yH5ahYvycsQKymfqMXaDV R9hiuJK4uhFccNOtWRfgPMz9J8otRr5YLt4y5FvizyfeHH1w2Avmq6h2zpMJw16tequo CDtViTX1Gm5yLaYVL7NyyI2QUOChIGHRhHGjm59XM0R0Qb5ULzG3Ohnr6oB2U96SoGn+ aGuczo/OhkTqwx6frXqvkQRS93V3N/+ykizmrFX6zINucXeLaMCnhbMWQCJJQRrOvSQO 8G83aMpzOCp2az8x39dNn8Ebw84xENgC3nccWlZXMbZvoBYf91wl15u39TQmTMSOQGrP p0IA== 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=Afo6Ndyu2zM/E3nPeRexccE7EJWRfbrwaKgKeNBReM8=; b=a9ArgbDAVPTSecdeZxUcZ4QlJC8RIpJ/OHOmzCu72wYueSQzoo9uJ+01ET30c3NzNF UGFISzlyLvoT1zNKrQoPfm5RjH05lJx5ZNvkaHx8alAPeLz2O1J9vAnhQsY4Yib7TNmh RiaH6ipr6wOps1QHLfOxgA2CFElfo1m5sEHS6ZsFdcQuaIGbsSdetaNomvhjB4Q3mgNE nETH9crGHChQWgh5wUOwxLzElGEqZJ5sN2XsIKZHQPtKynId4huCK5PG++EXZLhH7ZVu nvuN6xy5OaGiI4GsNT3xB5YIkcozVKbOBQ1+SVuCvTX0R3GO12n4+m3YwbVaFkWXtMKD SUVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="LkEAWk/j"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 w10-v6si7959668pfk.162.2018.07.22.20.41.17; Sun, 22 Jul 2018 20:41:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="LkEAWk/j"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728206AbeGWEkW (ORCPT + 5 others); Mon, 23 Jul 2018 00:40:22 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42343 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728200AbeGWEkW (ORCPT ); Mon, 23 Jul 2018 00:40:22 -0400 Received: by mail-pg1-f196.google.com with SMTP id y4-v6so11208268pgp.9 for ; Sun, 22 Jul 2018 20:41:16 -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=LkEAWk/jxwInJjyVokLoHnrMBYPHjXb6L7XK+wzezY+GCpnsHRlxBA/RaSOSimBnBB +zBgvDr7dEir7CJg20AXUyVDnbQGBB9/zjlrofWe1+Bbs0uIAwSBL1cIHwobLdJlOrkQ AsXuKhHEL3/E2K4mSbmW3NcJSZmgr+Gb9jugU= 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=GgewUZ13o8qIlYNNP28uZdluyhTedu/iyPcCQMrKsH9XT4m7tWb3r+icmxoodyLbVo DXK7UEo2FBfLNGexgkLYJRWMAsJZFfy8Pwn80AZaBuWWSGRRjqkO2oQ9lxHs3beiwVX9 YY/62HlZp8fPX6jzXCUdaJvaJyn+RpZzR+b9CWm+CZA5fPViYKeDAU+H+pIO4/cw5tCc axEDlOfffZnpWrRX/mHw78l+2xysS6ICfvWamiMnLNJllLkyt72S6gB2XXyjGGwUD3wA Ozv+pUId7TOa2HzsrOsP3lNO74K3t4/wxPLxqxCMmHp5RFoj3BLTeNOwr712TGj6LHBs jLIg== X-Gm-Message-State: AOUpUlE9LraKMEEBcEVSidHUlfYefe1ZoWspxWjY/Mjt6Vc9XUihJ4zT bJlyP7Eeltytsr3N8vdw5uIH X-Received: by 2002:a65:60cf:: with SMTP id r15-v6mr10575099pgv.41.1532317275960; Sun, 22 Jul 2018 20:41:15 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:802:a98c:b568:c01f:49a2:2aa5]) by smtp.gmail.com with ESMTPSA id s184-v6sm11340248pfb.56.2018.07.22.20.41.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 20:41: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 v6 1/6] dt-bindings: i2c: Add binding for Actions Semiconductor Owl I2C controller Date: Mon, 23 Jul 2018 09:10:20 +0530 Message-Id: <20180723034025.5763-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723034025.5763-1-manivannan.sadhasivam@linaro.org> References: <20180723034025.5763-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 Mon Jul 23 03:40:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 142536 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5582015ljj; Sun, 22 Jul 2018 20:41:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcQFSk6fksoW/JOyVsO0LnfpnRfMRloQzEBVvQM8z+ldQnUDlhrNqrdm+mvN2eWSpyujGbm X-Received: by 2002:a17:902:7c12:: with SMTP id x18-v6mr6663420pll.23.1532317306142; Sun, 22 Jul 2018 20:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532317306; cv=none; d=google.com; s=arc-20160816; b=QfW7GrN1rim0X3Fx69rV9fah1UtulSwrzV9JZ/pA6dHfpUrjl8ZPk1wwuCTgJsiIx6 io74vep+DolBbCyr5mXKCtP0VnmpO6j4CZiuODOZmqQFerZRbaiignu0Y3q3lw2nGnMp nGInvUaGGb0+ZZasZo267SeH1v6t1DgOabqWN12bQeUqbfaGwmhAgx023UNPw6OiT7uP PMLoIUWyAIA8eZkVcWEuBT2LOhWfVJO4FUGweWN6ebIAWMay+UCEe5e74M24oORey7u8 S+VqV44Vv7m0bcnib1iD7D0iZGOpEqLf8iBGtDCWeEG3ni0lvkUfnAGAxiXhNRKsf/Ha 6Xnw== 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=vRh0B8ZqB669L74HJ8F5o2VaPX1AzpPWv1i3Rpoa5RQ=; b=VmP61AHTlcgZDFc8p3Kp/4w7sd1bFtxyqA3138j9xcMx9KyLj63d6Vg18pjiZBCsZG fkkm2tAwfRK9JnlQ1nQ0HRmye4qDIOdAslQiKxHJfR0A2aJSv+lBNVum/r5t+cZ1pYpa qyCwOLm/ET0bygR9n9zFdtTggPuWHpILe7lmEgceZbd+R/KH8EnXB2hMvCUgT9u+XrOx snPZJNO/W2JMX59bAq85PhVx6ye7kCqdPVhFWKHgmtlvI9sxeCagln/K8sX8s9cWYxPp 9dxUj23+rzd3F+aSsN8aTjRtbxiXcl9fWvOpZvjPxwgyl0J5wfYubpTKxK2xqPn9F2b7 LpNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Xk0nDYhO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 c7-v6si7411413plz.21.2018.07.22.20.41.45; Sun, 22 Jul 2018 20:41:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Xk0nDYhO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387859AbeGWEku (ORCPT + 5 others); Mon, 23 Jul 2018 00:40:50 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:39078 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387857AbeGWEku (ORCPT ); Mon, 23 Jul 2018 00:40:50 -0400 Received: by mail-pl0-f67.google.com with SMTP id m1-v6so2648047plt.6 for ; Sun, 22 Jul 2018 20:41:44 -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=Xk0nDYhO+Z2Qvn1eHZiZMymsNqRA1xBQ8VvAG+0VjRI1+VNkPPR2lB9aliZxK4FXzN Li99OhCkqWP0CWSB24VKuIK1769jIsjYIQA4gSWYRh3F5IvTeG4P97GIpCkPVVHQCIhE kXnHlhRQIONcnySl6w51ATvjeTd1Wov6/vN/U= 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=d4w4o+84yRrPmKRtCC3zerpmFEaR196LYAGDyXrVNR8vB8R99Id2Nk51pOSASIFA3W rHDQvLz+mdHM1pmRj37jzK0vfKmfi6pwgBUPy8UescAYlrjY5Jw4pxLdtKKXIrW3YQKo K/B9IiSUmhYt7fq+aUW9av3rKT1ygwxITFvaiUYQlVYMIrdKIGFPpj7m9xR3cBHK3bn0 KH8bcyKJRt6McUXCv3nkSvvcb4ixe3wxIFgCPgcBgeuum9ircK1qr3vvQl0VUx9n9rFk KmDJzExfnzydWkxljc/cXctRxH7ni9oq+/t8mNJ6gJv8N7tS97saYpkP6w0CQNr64Ggg 2dUw== X-Gm-Message-State: AOUpUlEjWXmdUS4M3TiiiwW0l9aTKO3ziUtiCuBFw4b//CF6nVL8AW4E HyGCWdKCmv4tRWVEClfk5OXM X-Received: by 2002:a17:902:5ac7:: with SMTP id g7-v6mr2430884plm.90.1532317304355; Sun, 22 Jul 2018 20:41:44 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:802:a98c:b568:c01f:49a2:2aa5]) by smtp.gmail.com with ESMTPSA id s184-v6sm11340248pfb.56.2018.07.22.20.41.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 20:41:43 -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 v6 4/6] arm64: dts: actions: Enable I2C1 and I2C2 in Bubblegum-96 board Date: Mon, 23 Jul 2018 09:10:23 +0530 Message-Id: <20180723034025.5763-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723034025.5763-1-manivannan.sadhasivam@linaro.org> References: <20180723034025.5763-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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