ARM: dts: imx6sx-sabreauto: add PMIC support
Subsystems (3)
PATCH v5 1/6 ARM: dts: imx6sx-sabreauto: add PMIC support
Add pfuze100 support on i.MX6SX Sabre Auto board.
---
no changes since V4.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 117 +++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+)
arch/arm/boot/dts/imx6sx-sabreauto.dts +117 -0
@@ -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 at 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; + }; + }; + }; +};
Signature · 1 line
2.7.4
PATCH v5 2/6 ARM: dts: imx6sx-sabreauto: add max7322 IO expander support
Add MAX7322 IO expander support.
---
no changes since V4.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/imx6sx-sabreauto.dts +7 -0
@@ -163,6 +163,13 @@ pinctrl-0 = <&pinctrl_i2c2_1>; status = "okay"; + max7322: gpio at 68 { + compatible = "maxim,max7322"; + reg = <0x68>; + gpio-controller; + #gpio-cells = <2>; + }; + pmic: pfuze100 at 08 { compatible = "fsl,pfuze100"; reg = <0x08>;
Signature · 1 line
2.7.4
Re: [PATCH V5 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support
Quoted 13 lines · Anson Huang
Add MAX7322 IO expander support.
Signed-off-by Anson Huang <[email protected]>---
no changes since V4.arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/imx6sx-sabreauto.dts +0
-0
arch/arm/boot/dts/imx6sx-sabreauto.dts line 172
Quoted 10 lines
arch/arm/boot/dts/imx6sx-sabreauto.dts +7
-0@@ -163,6 +163,13 @@ pinctrl-0 = <&pinctrl_i2c2_1>; status = "okay"; + max7322: gpio at 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
Quoted 11 lines
arch/arm/boot/dts/imx6sx-sabreauto.dts +0
-0pmic: pfuze100 at 08 { compatible = "fsl,pfuze100"; reg = <0x08>;Signature · 7 lines
2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v5 3/6 ARM: dts: imx6sx-sabreauto: add IO expander max7310 support
In reply to Anson Huangi.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add support for them.
---
no changes since V4.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
arch/arm/boot/dts/imx6sx-sabreauto.dts +28 -0
@@ -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 at 30 { + compatible = "maxim,max7310"; + reg = <0x30>; + gpio-controller; + #gpio-cells = <2>; + }; + + max7310_b: gpio at 32 { + compatible = "maxim,max7310"; + reg = <0x32>; + gpio-controller; + #gpio-cells = <2>; + }; +};
Signature · 1 line
2.7.4
Re: [PATCH V5 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support
Quoted 14 lines · Anson Huang
i.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add support for them.
Signed-off-by Anson Huang <[email protected]>---
no changes since V4.arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)arch/arm/boot/dts/imx6sx-sabreauto.dts +0
-0
arch/arm/boot/dts/imx6sx-sabreauto.dts line 85
Quoted 4 lines
arch/arm/boot/dts/imx6sx-sabreauto.dts +1
-0@@ -82,6 +82,13 @@ >; }; + pinctrl_i2c3_2: i2c3grp-2 {
Drop suffix number '2'.
Shawn
Quoted 37 lines
arch/arm/boot/dts/imx6sx-sabreauto.dts +27
-0+ 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 at 30 { + compatible = "maxim,max7310"; + reg = <0x30>; + gpio-controller; + #gpio-cells = <2>; + }; + + max7310_b: gpio at 32 { + compatible = "maxim,max7310"; + reg = <0x32>; + gpio-controller; + #gpio-cells = <2>; + }; +};Signature · 1 line
2.7.4
PATCH v5 4/6 ARM: dts: imx6sx-sabreauto: add fec support
In reply to Anson HuangAdd FEC support on i.MX6SX Sabre Auto board.
---
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(+)
arch/arm/boot/dts/imx6sx-sabreauto.dts +80 -0
@@ -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 at 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 at 0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + }; + + ethphy1: ethernet-phy at 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
Signature · 1 line
2.7.4
PATCH v5 5/6 ARM: dts: imx6sx-sabreauto: add wdog external reset support
In reply to Anson Huangi.MX6SX Sabre Auto board has GPIO1_IO13 pin can be MUXed as WDOG output to reset PMIC, add this function support.
---
no changes since V4.
arch/arm/boot/dts/imx6sx-sabreauto.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/imx6sx-sabreauto.dts +12 -0
@@ -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; +};
Signature · 1 line
2.7.4
PATCH v5 6/6 ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default
In reply to Anson HuangEnable max7320 IO expander for i.MX platforms.
---
no changes since V4.
arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v6_v7_defconfig +1 -0
@@ -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
Signature · 1 line
2.7.4
Shawn Guo
AppliedRe: [PATCH V5 6/6] ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default
Quoted 3 lines · Anson Huang
Enable max7320 IO expander for i.MX platforms.
Signed-off-by Anson Huang <[email protected]>
Applied, thanks.
Quoted 13 lines · Anson Huang
Add pfuze100 support on i.MX6SX Sabre Auto board.
Signed-off-by Anson Huang <[email protected]>---
no changes since V4.arch/arm/boot/dts/imx6sx-sabreauto.dts | 117 +++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+)arch/arm/boot/dts/imx6sx-sabreauto.dts +0
-0
arch/arm/boot/dts/imx6sx-sabreauto.dts line 77
Quoted 4 lines
arch/arm/boot/dts/imx6sx-sabreauto.dts +1
-0@@ -74,6 +74,14 @@ &iomuxc { imx6x-sabreauto { +
Drop this newline.
arch/arm/boot/dts/imx6sx-sabreauto.dts line 78
Quoted 1 line
arch/arm/boot/dts/imx6sx-sabreauto.dts +1
-0+ pinctrl_i2c2_1: i2c2grp-1 {
The suffix "1" doesn't make any sense now.
pinctrl_i2c2: i2c2grp {Quoted 11 lines
arch/arm/boot/dts/imx6sx-sabreauto.dts +6
-0+ 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 @@ };
arch/arm/boot/dts/imx6sx-sabreauto.dts line 166
Quoted 10 lines
arch/arm/boot/dts/imx6sx-sabreauto.dts +8
-0}; }; + +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2_1>; + status = "okay"; + + pmic: pfuze100 at 08 {
Use generic name for node, and specific name for label. Also, drop the leading zeros in unit-address.
pfuze100: pmic at 8 {Shawn
Quoted 104 lines
arch/arm/boot/dts/imx6sx-sabreauto.dts +101
-0+ 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; + }; + }; + }; +};Signature · 1 line
2.7.4