* [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support
@ 2018-04-26 6:58 Anson Huang
2018-04-26 6:58 ` [PATCH V5 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support Anson Huang
` (5 more replies)
0 siblings, 6 replies; 10+ messages in thread
From: Anson Huang @ 2018-04-26 6:58 UTC (permalink / raw)
To: shawnguo, kernel, fabio.estevam, robh+dt, mark.rutland, linux
Cc: Linux-imx, linux-arm-kernel, devicetree, linux-kernel
Add pfuze100 support on i.MX6SX Sabre Auto board.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
no changes since V4.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 117 +++++++++++++++++++++++++++++++++
1 file changed, 117 insertions(+)
diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
index 57d1ea0..2caca934 100644
--- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
+++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
@@ -74,6 +74,14 @@
&iomuxc {
imx6x-sabreauto {
+
+ pinctrl_i2c2_1: i2c2grp-1 {
+ fsl,pins = <
+ MX6SX_PAD_GPIO1_IO03__I2C2_SDA 0x4001b8b1
+ MX6SX_PAD_GPIO1_IO02__I2C2_SCL 0x4001b8b1
+ >;
+ };
+
pinctrl_uart1: uart1grp {
fsl,pins = <
MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1
@@ -148,3 +156,112 @@
};
};
};
+
+&i2c2 {
+ clock-frequency = <100000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c2_1>;
+ status = "okay";
+
+ pmic: pfuze100@08 {
+ compatible = "fsl,pfuze100";
+ reg = <0x08>;
+
+ regulators {
+ sw1a_reg: sw1ab {
+ regulator-min-microvolt = <300000>;
+ regulator-max-microvolt = <1875000>;
+ regulator-boot-on;
+ regulator-always-on;
+ regulator-ramp-delay = <6250>;
+ };
+
+ sw1c_reg: sw1c {
+ regulator-min-microvolt = <300000>;
+ regulator-max-microvolt = <1875000>;
+ regulator-boot-on;
+ regulator-always-on;
+ regulator-ramp-delay = <6250>;
+ };
+
+ sw2_reg: sw2 {
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ sw3a_reg: sw3a {
+ regulator-min-microvolt = <400000>;
+ regulator-max-microvolt = <1975000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ sw3b_reg: sw3b {
+ regulator-min-microvolt = <400000>;
+ regulator-max-microvolt = <1975000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ sw4_reg: sw4 {
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ swbst_reg: swbst {
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5150000>;
+ };
+
+ snvs_reg: vsnvs {
+ regulator-min-microvolt = <1000000>;
+ regulator-max-microvolt = <3000000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ vref_reg: vrefddr {
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ vgen1_reg: vgen1 {
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1550000>;
+ regulator-always-on;
+ };
+
+ vgen2_reg: vgen2 {
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1550000>;
+ };
+
+ vgen3_reg: vgen3 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ vgen4_reg: vgen4 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ vgen5_reg: vgen5 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ vgen6_reg: vgen6 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+ };
+ };
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH V5 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support
2018-04-26 6:58 [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Anson Huang
@ 2018-04-26 6:58 ` Anson Huang
2018-05-04 7:48 ` Shawn Guo
2018-04-26 6:58 ` [PATCH V5 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support Anson Huang
` (4 subsequent siblings)
5 siblings, 1 reply; 10+ messages in thread
From: Anson Huang @ 2018-04-26 6:58 UTC (permalink / raw)
To: shawnguo, kernel, fabio.estevam, robh+dt, mark.rutland, linux
Cc: Linux-imx, linux-arm-kernel, devicetree, linux-kernel
Add MAX7322 IO expander support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
no changes since V4.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
index 2caca934..d59084f 100644
--- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
+++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
@@ -163,6 +163,13 @@
pinctrl-0 = <&pinctrl_i2c2_1>;
status = "okay";
+ max7322: gpio@68 {
+ compatible = "maxim,max7322";
+ reg = <0x68>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+
pmic: pfuze100@08 {
compatible = "fsl,pfuze100";
reg = <0x08>;
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH V5 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support
2018-04-26 6:58 [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Anson Huang
2018-04-26 6:58 ` [PATCH V5 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support Anson Huang
@ 2018-04-26 6:58 ` Anson Huang
2018-05-04 7:50 ` Shawn Guo
2018-04-26 6:58 ` [PATCH V5 4/6] ARM: dts: imx6sx-sabreauto: add fec support Anson Huang
` (3 subsequent siblings)
5 siblings, 1 reply; 10+ messages in thread
From: Anson Huang @ 2018-04-26 6:58 UTC (permalink / raw)
To: shawnguo, kernel, fabio.estevam, robh+dt, mark.rutland, linux
Cc: Linux-imx, linux-arm-kernel, devicetree, linux-kernel
i.MX6SX Sabre Auto board has two max7310 IO expander
on I2C3 bus, add support for them.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
no changes since V4.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
index d59084f..812f40b 100644
--- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
+++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
@@ -82,6 +82,13 @@
>;
};
+ pinctrl_i2c3_2: i2c3grp-2 {
+ fsl,pins = <
+ MX6SX_PAD_KEY_ROW4__I2C3_SDA 0x4001b8b1
+ MX6SX_PAD_KEY_COL4__I2C3_SCL 0x4001b8b1
+ >;
+ };
+
pinctrl_uart1: uart1grp {
fsl,pins = <
MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1
@@ -272,3 +279,24 @@
};
};
};
+
+&i2c3 {
+ clock-frequency = <100000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c3_2>;
+ status = "okay";
+
+ max7310_a: gpio@30 {
+ compatible = "maxim,max7310";
+ reg = <0x30>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+
+ max7310_b: gpio@32 {
+ compatible = "maxim,max7310";
+ reg = <0x32>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH V5 4/6] ARM: dts: imx6sx-sabreauto: add fec support
2018-04-26 6:58 [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Anson Huang
2018-04-26 6:58 ` [PATCH V5 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support Anson Huang
2018-04-26 6:58 ` [PATCH V5 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support Anson Huang
@ 2018-04-26 6:58 ` Anson Huang
2018-04-26 6:58 ` [PATCH V5 5/6] ARM: dts: imx6sx-sabreauto: add wdog external reset support Anson Huang
` (2 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2018-04-26 6:58 UTC (permalink / raw)
To: shawnguo, kernel, fabio.estevam, robh+dt, mark.rutland, linux
Cc: Linux-imx, linux-arm-kernel, devicetree, linux-kernel
Add FEC support on i.MX6SX Sabre Auto board.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
changes since V4:
add fec gpio regulator and set its default value to LOW for 1.5V IO purpose.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 80 ++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
index 812f40b..088a66c 100644
--- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
+++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
@@ -23,6 +23,17 @@
#address-cells = <1>;
#size-cells = <0>;
+ reg_fec: fec_io_supply {
+ compatible = "regulator-gpio";
+ regulator-name = "1.8V_1.5V_FEC";
+ regulator-min-microvolt = <1500000>;
+ regulator-max-microvolt = <1800000>;
+ states = <1500000 0x0 1800000 0x1>;
+ enable-gpio = <&max7322 0 GPIO_ACTIVE_HIGH>;
+ vin-supply = <&sw2_reg>;
+ enable-active-high;
+ };
+
vcc_sd3: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
@@ -41,6 +52,39 @@
clock-frequency = <24576000>;
};
+&fec1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_enet1_1>;
+ phy-mode = "rgmii";
+ phy-handle = <ðphy1>;
+ fsl,magic-packet;
+ status = "okay";
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethphy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+
+ ethphy1: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <1>;
+ };
+ };
+};
+
+&fec2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_enet2_1>;
+ phy-mode = "rgmii";
+ phy-handle = <ðphy0>;
+ fsl,magic-packet;
+ status = "okay";
+};
+
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
@@ -75,6 +119,42 @@
&iomuxc {
imx6x-sabreauto {
+ pinctrl_enet1_1: enet1grp-1 {
+ fsl,pins = <
+ MX6SX_PAD_ENET1_MDIO__ENET1_MDIO 0xa0b1
+ MX6SX_PAD_ENET1_MDC__ENET1_MDC 0xa0b1
+ MX6SX_PAD_RGMII1_TXC__ENET1_RGMII_TXC 0xa0b9
+ MX6SX_PAD_RGMII1_TD0__ENET1_TX_DATA_0 0xa0b1
+ MX6SX_PAD_RGMII1_TD1__ENET1_TX_DATA_1 0xa0b1
+ MX6SX_PAD_RGMII1_TD2__ENET1_TX_DATA_2 0xa0b1
+ MX6SX_PAD_RGMII1_TD3__ENET1_TX_DATA_3 0xa0b1
+ MX6SX_PAD_RGMII1_TX_CTL__ENET1_TX_EN 0xa0b1
+ MX6SX_PAD_RGMII1_RXC__ENET1_RX_CLK 0x3081
+ MX6SX_PAD_RGMII1_RD0__ENET1_RX_DATA_0 0x3081
+ MX6SX_PAD_RGMII1_RD1__ENET1_RX_DATA_1 0x3081
+ MX6SX_PAD_RGMII1_RD2__ENET1_RX_DATA_2 0x3081
+ MX6SX_PAD_RGMII1_RD3__ENET1_RX_DATA_3 0x3081
+ MX6SX_PAD_RGMII1_RX_CTL__ENET1_RX_EN 0x3081
+ >;
+ };
+
+ pinctrl_enet2_1: enet2grp-1 {
+ fsl,pins = <
+ MX6SX_PAD_RGMII2_TXC__ENET2_RGMII_TXC 0xa0b9
+ MX6SX_PAD_RGMII2_TD0__ENET2_TX_DATA_0 0xa0b1
+ MX6SX_PAD_RGMII2_TD1__ENET2_TX_DATA_1 0xa0b1
+ MX6SX_PAD_RGMII2_TD2__ENET2_TX_DATA_2 0xa0b1
+ MX6SX_PAD_RGMII2_TD3__ENET2_TX_DATA_3 0xa0b1
+ MX6SX_PAD_RGMII2_TX_CTL__ENET2_TX_EN 0xa0b1
+ MX6SX_PAD_RGMII2_RXC__ENET2_RX_CLK 0x3081
+ MX6SX_PAD_RGMII2_RD0__ENET2_RX_DATA_0 0x3081
+ MX6SX_PAD_RGMII2_RD1__ENET2_RX_DATA_1 0x3081
+ MX6SX_PAD_RGMII2_RD2__ENET2_RX_DATA_2 0x3081
+ MX6SX_PAD_RGMII2_RD3__ENET2_RX_DATA_3 0x3081
+ MX6SX_PAD_RGMII2_RX_CTL__ENET2_RX_EN 0x3081
+ >;
+ };
+
pinctrl_i2c2_1: i2c2grp-1 {
fsl,pins = <
MX6SX_PAD_GPIO1_IO03__I2C2_SDA 0x4001b8b1
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH V5 5/6] ARM: dts: imx6sx-sabreauto: add wdog external reset support
2018-04-26 6:58 [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Anson Huang
` (2 preceding siblings ...)
2018-04-26 6:58 ` [PATCH V5 4/6] ARM: dts: imx6sx-sabreauto: add fec support Anson Huang
@ 2018-04-26 6:58 ` Anson Huang
2018-04-26 6:58 ` [PATCH V5 6/6] ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default Anson Huang
2018-05-04 7:46 ` [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Shawn Guo
5 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2018-04-26 6:58 UTC (permalink / raw)
To: shawnguo, kernel, fabio.estevam, robh+dt, mark.rutland, linux
Cc: Linux-imx, linux-arm-kernel, devicetree, linux-kernel
i.MX6SX Sabre Auto board has GPIO1_IO13 pin can be
MUXed as WDOG output to reset PMIC, add this function
support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
no changes since V4.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
index 088a66c..eb1452c 100644
--- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
+++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
@@ -241,6 +241,12 @@
MX6SX_PAD_KEY_COL1__GPIO2_IO_11 0x17059
>;
};
+
+ pinctrl_wdog: wdoggrp {
+ fsl,pins = <
+ MX6SX_PAD_GPIO1_IO13__WDOG1_WDOG_ANY 0x30b0
+ >;
+ };
};
};
@@ -380,3 +386,9 @@
#gpio-cells = <2>;
};
};
+
+&wdog1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_wdog>;
+ fsl,ext-reset-output;
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH V5 6/6] ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default
2018-04-26 6:58 [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Anson Huang
` (3 preceding siblings ...)
2018-04-26 6:58 ` [PATCH V5 5/6] ARM: dts: imx6sx-sabreauto: add wdog external reset support Anson Huang
@ 2018-04-26 6:58 ` Anson Huang
2018-05-04 9:05 ` Shawn Guo
2018-05-04 7:46 ` [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Shawn Guo
5 siblings, 1 reply; 10+ messages in thread
From: Anson Huang @ 2018-04-26 6:58 UTC (permalink / raw)
To: shawnguo, kernel, fabio.estevam, robh+dt, mark.rutland, linux
Cc: Linux-imx, linux-arm-kernel, devicetree, linux-kernel
Enable max7320 IO expander for i.MX platforms.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
no changes since V4.
arch/arm/configs/imx_v6_v7_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 3a30843..8455d39 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -199,6 +199,7 @@ CONFIG_SPI_GPIO=y
CONFIG_SPI_IMX=y
CONFIG_SPI_FSL_DSPI=y
CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_MAX732X=y
CONFIG_GPIO_MC9S08DZ60=y
CONFIG_GPIO_PCA953X=y
CONFIG_GPIO_STMPE=y
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support
2018-04-26 6:58 [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Anson Huang
` (4 preceding siblings ...)
2018-04-26 6:58 ` [PATCH V5 6/6] ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default Anson Huang
@ 2018-05-04 7:46 ` Shawn Guo
5 siblings, 0 replies; 10+ messages in thread
From: Shawn Guo @ 2018-05-04 7:46 UTC (permalink / raw)
To: Anson Huang
Cc: kernel, fabio.estevam, robh+dt, mark.rutland, linux, Linux-imx,
linux-arm-kernel, devicetree, linux-kernel
On Thu, Apr 26, 2018 at 02:58:13PM +0800, Anson Huang wrote:
> Add pfuze100 support on i.MX6SX Sabre Auto board.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> no changes since V4.
> arch/arm/boot/dts/imx6sx-sabreauto.dts | 117 +++++++++++++++++++++++++++++++++
> 1 file changed, 117 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
> index 57d1ea0..2caca934 100644
> --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
> +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
> @@ -74,6 +74,14 @@
>
> &iomuxc {
> imx6x-sabreauto {
> +
Drop this newline.
> + pinctrl_i2c2_1: i2c2grp-1 {
The suffix "1" doesn't make any sense now.
pinctrl_i2c2: i2c2grp {
> + fsl,pins = <
> + MX6SX_PAD_GPIO1_IO03__I2C2_SDA 0x4001b8b1
> + MX6SX_PAD_GPIO1_IO02__I2C2_SCL 0x4001b8b1
> + >;
> + };
> +
> pinctrl_uart1: uart1grp {
> fsl,pins = <
> MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1
> @@ -148,3 +156,112 @@
> };
> };
> };
> +
> +&i2c2 {
> + clock-frequency = <100000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_i2c2_1>;
> + status = "okay";
> +
> + pmic: pfuze100@08 {
Use generic name for node, and specific name for label. Also, drop the
leading zeros in unit-address.
pfuze100: pmic@8 {
Shawn
> + compatible = "fsl,pfuze100";
> + reg = <0x08>;
> +
> + regulators {
> + sw1a_reg: sw1ab {
> + regulator-min-microvolt = <300000>;
> + regulator-max-microvolt = <1875000>;
> + regulator-boot-on;
> + regulator-always-on;
> + regulator-ramp-delay = <6250>;
> + };
> +
> + sw1c_reg: sw1c {
> + regulator-min-microvolt = <300000>;
> + regulator-max-microvolt = <1875000>;
> + regulator-boot-on;
> + regulator-always-on;
> + regulator-ramp-delay = <6250>;
> + };
> +
> + sw2_reg: sw2 {
> + regulator-min-microvolt = <800000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-boot-on;
> + regulator-always-on;
> + };
> +
> + sw3a_reg: sw3a {
> + regulator-min-microvolt = <400000>;
> + regulator-max-microvolt = <1975000>;
> + regulator-boot-on;
> + regulator-always-on;
> + };
> +
> + sw3b_reg: sw3b {
> + regulator-min-microvolt = <400000>;
> + regulator-max-microvolt = <1975000>;
> + regulator-boot-on;
> + regulator-always-on;
> + };
> +
> + sw4_reg: sw4 {
> + regulator-min-microvolt = <800000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> +
> + swbst_reg: swbst {
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5150000>;
> + };
> +
> + snvs_reg: vsnvs {
> + regulator-min-microvolt = <1000000>;
> + regulator-max-microvolt = <3000000>;
> + regulator-boot-on;
> + regulator-always-on;
> + };
> +
> + vref_reg: vrefddr {
> + regulator-boot-on;
> + regulator-always-on;
> + };
> +
> + vgen1_reg: vgen1 {
> + regulator-min-microvolt = <800000>;
> + regulator-max-microvolt = <1550000>;
> + regulator-always-on;
> + };
> +
> + vgen2_reg: vgen2 {
> + regulator-min-microvolt = <800000>;
> + regulator-max-microvolt = <1550000>;
> + };
> +
> + vgen3_reg: vgen3 {
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> +
> + vgen4_reg: vgen4 {
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> +
> + vgen5_reg: vgen5 {
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> +
> + vgen6_reg: vgen6 {
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> + };
> + };
> +};
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V5 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support
2018-04-26 6:58 ` [PATCH V5 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support Anson Huang
@ 2018-05-04 7:48 ` Shawn Guo
0 siblings, 0 replies; 10+ messages in thread
From: Shawn Guo @ 2018-05-04 7:48 UTC (permalink / raw)
To: Anson Huang
Cc: kernel, fabio.estevam, robh+dt, mark.rutland, linux, devicetree,
Linux-imx, linux-arm-kernel, linux-kernel
On Thu, Apr 26, 2018 at 02:58:14PM +0800, Anson Huang wrote:
> Add MAX7322 IO expander support.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> no changes since V4.
> arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
> index 2caca934..d59084f 100644
> --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
> +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
> @@ -163,6 +163,13 @@
> pinctrl-0 = <&pinctrl_i2c2_1>;
> status = "okay";
>
> + max7322: gpio@68 {
> + compatible = "maxim,max7322";
> + reg = <0x68>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
For child nodes having unit-address ('reg' property), sort them in order
of unit-address.
Shawn
> pmic: pfuze100@08 {
> compatible = "fsl,pfuze100";
> reg = <0x08>;
> --
> 2.7.4
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V5 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support
2018-04-26 6:58 ` [PATCH V5 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support Anson Huang
@ 2018-05-04 7:50 ` Shawn Guo
0 siblings, 0 replies; 10+ messages in thread
From: Shawn Guo @ 2018-05-04 7:50 UTC (permalink / raw)
To: Anson Huang
Cc: kernel, fabio.estevam, robh+dt, mark.rutland, linux, Linux-imx,
linux-arm-kernel, devicetree, linux-kernel
On Thu, Apr 26, 2018 at 02:58:15PM +0800, Anson Huang wrote:
> i.MX6SX Sabre Auto board has two max7310 IO expander
> on I2C3 bus, add support for them.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> no changes since V4.
> arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
> index d59084f..812f40b 100644
> --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
> +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
> @@ -82,6 +82,13 @@
> >;
> };
>
> + pinctrl_i2c3_2: i2c3grp-2 {
Drop suffix number '2'.
Shawn
> + fsl,pins = <
> + MX6SX_PAD_KEY_ROW4__I2C3_SDA 0x4001b8b1
> + MX6SX_PAD_KEY_COL4__I2C3_SCL 0x4001b8b1
> + >;
> + };
> +
> pinctrl_uart1: uart1grp {
> fsl,pins = <
> MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1
> @@ -272,3 +279,24 @@
> };
> };
> };
> +
> +&i2c3 {
> + clock-frequency = <100000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_i2c3_2>;
> + status = "okay";
> +
> + max7310_a: gpio@30 {
> + compatible = "maxim,max7310";
> + reg = <0x30>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + max7310_b: gpio@32 {
> + compatible = "maxim,max7310";
> + reg = <0x32>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +};
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V5 6/6] ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default
2018-04-26 6:58 ` [PATCH V5 6/6] ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default Anson Huang
@ 2018-05-04 9:05 ` Shawn Guo
0 siblings, 0 replies; 10+ messages in thread
From: Shawn Guo @ 2018-05-04 9:05 UTC (permalink / raw)
To: Anson Huang
Cc: kernel, fabio.estevam, robh+dt, mark.rutland, linux, Linux-imx,
linux-arm-kernel, devicetree, linux-kernel
On Thu, Apr 26, 2018 at 02:58:18PM +0800, Anson Huang wrote:
> Enable max7320 IO expander for i.MX platforms.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-05-04 9:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26 6:58 [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Anson Huang
2018-04-26 6:58 ` [PATCH V5 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support Anson Huang
2018-05-04 7:48 ` Shawn Guo
2018-04-26 6:58 ` [PATCH V5 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support Anson Huang
2018-05-04 7:50 ` Shawn Guo
2018-04-26 6:58 ` [PATCH V5 4/6] ARM: dts: imx6sx-sabreauto: add fec support Anson Huang
2018-04-26 6:58 ` [PATCH V5 5/6] ARM: dts: imx6sx-sabreauto: add wdog external reset support Anson Huang
2018-04-26 6:58 ` [PATCH V5 6/6] ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default Anson Huang
2018-05-04 9:05 ` Shawn Guo
2018-05-04 7:46 ` [PATCH V5 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).