All of lore.kernel.org
 help / color / mirror / Atom feed
From: Georgii Staroselskii <georgii.staroselskii@emlid.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/5] x86: dts: edison: configure I2C#6 pins
Date: Tue,  4 Sep 2018 17:34:03 +0300	[thread overview]
Message-ID: <1536071645-25229-4-git-send-email-georgii.staroselskii@emlid.com> (raw)
In-Reply-To: <1536071645-25229-1-git-send-email-georgii.staroselskii@emlid.com>

Now that we have the pinctrl driver for Merrifield in place we can make
use of it and set I2C#6 pins appropriately.

Initial configuration came from the firmware.  Which quite likely has
been used in the phones, where that is not part of Atom peripheral, is
in use. Thus we need to override the leftover.

Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---
 arch/x86/dts/edison.dts | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts
index 1da7f54..0dd7240 100644
--- a/arch/x86/dts/edison.dts
+++ b/arch/x86/dts/edison.dts
@@ -85,4 +85,26 @@
 		compatible = "intel,reset-tangier";
 		u-boot,dm-pre-reloc;
 	};
+
+	pinctrl {
+		compatible = "intel,pinctrl-tangier";
+		reg = <0xff0c0000 0x8000>;
+
+		/*
+		 * Initial configuration came from the firmware.
+		 * Which quite likely has been used in the phones, where I2C #8,
+		 * that is not part of Atom peripheral, is in use.
+		 * Thus we need to override the leftover.
+		 */
+		i2c6_scl at 0 {
+			pad-offset = <111>;
+			mode-func = <1>;
+			protected;
+		};
+		i2c6_sda at 0 {
+			pad-offset = <112>;
+			mode-func = <1>;
+			protected;
+		};
+	};
 };
-- 
2.7.4

  parent reply	other threads:[~2018-09-04 14:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-04 14:34 [U-Boot] [PATCH v2 0/5] Add a pinctrl driver for Merrifield to pinmux I2C#6 Georgii Staroselskii
2018-09-04 14:34 ` [U-Boot] [PATCH v2 1/5] x86: cpu: introduce scu_ipc_raw_command() Georgii Staroselskii
2018-09-04 14:34 ` [U-Boot] [PATCH v2 2/5] x86: tangier: pinmux: add API to configure protected pins Georgii Staroselskii
2018-09-04 14:57   ` Andy Shevchenko
2018-09-05 15:24   ` Simon Glass
2018-09-05 15:44     ` Georgii Staroselskii
2018-09-09  1:06       ` Simon Glass
2018-09-04 14:34 ` Georgii Staroselskii [this message]
2018-09-04 14:34 ` [U-Boot] [PATCH v2 4/5] x86: tangier: acpi: add I2C6 node Georgii Staroselskii
2018-09-04 14:34 ` [U-Boot] [PATCH v2 5/5] x86: cpu: add docstring to scu_ipc_command() Georgii Staroselskii
2018-09-04 14:58   ` Andy Shevchenko
2018-09-05  4:40 ` [U-Boot] [PATCH v2 0/5] Add a pinctrl driver for Merrifield to pinmux I2C#6 Bin Meng
2018-09-05 10:58   ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1536071645-25229-4-git-send-email-georgii.staroselskii@emlid.com \
    --to=georgii.staroselskii@emlid.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.