* [PATCH 1/2] ARM: tegra: enable ams AS3722 drivers @ 2013-12-12 13:31 Laxman Dewangan 2013-12-12 13:31 ` [PATCH 2/2] ARM: tegra: add ams AS3722 device to Venice2 DT Laxman Dewangan [not found] ` <1386855064-10993-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 0 siblings, 2 replies; 5+ messages in thread From: Laxman Dewangan @ 2013-12-12 13:31 UTC (permalink / raw) To: swarren-3lzwWm7+Weoh9ZMKESR00Q Cc: thierry.reding-Re5JQEeQqe8AvxtiuMwx3w, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Laxman Dewangan ams AS3722 is the system power manager module IC for the Tegra124 based Venice2 platform. Enable configs for gpio, pincontrol, rtc, regulator support from this device. Signed-off-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> --- arch/arm/configs/tegra_defconfig | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index 4461185..5cf4a48 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig @@ -137,6 +137,7 @@ CONFIG_SPI=y CONFIG_SPI_TEGRA114=y CONFIG_SPI_TEGRA20_SFLASH=y CONFIG_SPI_TEGRA20_SLINK=y +CONFIG_PINCTRL_AS3722=y CONFIG_PINCTRL_PALMAS=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_PCA953X_IRQ=y @@ -149,6 +150,7 @@ CONFIG_CHARGER_TPS65090=y CONFIG_POWER_RESET=y CONFIG_POWER_RESET_GPIO=y CONFIG_SENSORS_LM90=y +CONFIG_MFD_AS3722=y CONFIG_MFD_MAX8907=y CONFIG_MFD_PALMAS=y CONFIG_MFD_TPS65090=y @@ -157,6 +159,7 @@ CONFIG_MFD_TPS65910=y CONFIG_REGULATOR=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_VIRTUAL_CONSUMER=y +CONFIG_REGULATOR_AS3722=y CONFIG_REGULATOR_GPIO=y CONFIG_REGULATOR_MAX8907=y CONFIG_REGULATOR_PALMAS=y @@ -218,6 +221,7 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y CONFIG_LEDS_TRIGGER_TRANSIENT=y CONFIG_LEDS_TRIGGER_CAMERA=y CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_AS3722=y CONFIG_RTC_DRV_MAX8907=y CONFIG_RTC_DRV_PALMAS=y CONFIG_RTC_DRV_TPS6586X=y -- 1.7.1.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ARM: tegra: add ams AS3722 device to Venice2 DT 2013-12-12 13:31 [PATCH 1/2] ARM: tegra: enable ams AS3722 drivers Laxman Dewangan @ 2013-12-12 13:31 ` Laxman Dewangan [not found] ` <1386855064-10993-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 1 sibling, 0 replies; 5+ messages in thread From: Laxman Dewangan @ 2013-12-12 13:31 UTC (permalink / raw) To: swarren Cc: thierry.reding, rob.herring, devicetree, linux-arm-kernel, linux-tegra, linux-kernel, Laxman Dewangan Add ams AS3722 entry for gpio/pincontrol and regulators to venice2 DT. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> --- This patch is on top of the patch for pincontrol for venice2. Tested with all regulator and sub driver registartion on Venice2. arch/arm/boot/dts/tegra124-venice2.dts | 285 +++++++++++++++++++++++++++++++- 1 files changed, 284 insertions(+), 1 deletions(-) diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts index 7a01171..423371f 100644 --- a/arch/arm/boot/dts/tegra124-venice2.dts +++ b/arch/arm/boot/dts/tegra124-venice2.dts @@ -350,6 +350,28 @@ nvidia,open-drain = <TEGRA_PIN_DISABLE>; }; + spdif_in_pk6 { + nvidia,pins = "spdif_in_pk6"; + nvidia,function = "rsvd3"; + nvidia,enable-input = <TEGRA_PIN_ENABLE>; + nvidia,pull = <TEGRA_PIN_PULL_UP>; + nvidia,tristate = <TEGRA_PIN_DISABLE>; + }; + + dap3_dout_pp2 { + nvidia,pins = "dap2_dout_pp2"; + nvidia,function = "rsvd4"; + nvidia,enable-input = <TEGRA_PIN_ENABLE>; + nvidia,tristate = <TEGRA_PIN_ENABLE>; + }; + + kb_row0_pr0 { + nvidia,pins = "kb_row0_pr0"; + nvidia,function = "rsvd4"; + nvidia,enable-input = <TEGRA_PIN_ENABLE>; + nvidia,tristate = <TEGRA_PIN_ENABLE>; + }; + drive_sdio1 { nvidia,pins = "drive_sdio1"; nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>; @@ -419,7 +441,190 @@ i2c@7000d000 { status = "okay"; - clock-frequency = <100000>; + clock-frequency = <400000>; + + as3722: as3722@40 { + compatible = "ams,as3722"; + reg = <0x40>; + interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; + + #interrupt-cells = <2>; + interrupt-controller; + + gpio-controller; + #gpio-cells = <2>; + + pinctrl-names = "default"; + pinctrl-0 = <&as3722_default>; + + as3722_default: pinmux { + gpio0 { + pins = "gpio0"; + function = "gpio"; + bias-pull-down; + }; + + gpio1_2_4_7 { + pins = "gpio1", "gpio2", "gpio4", "gpio7"; + function = "gpio"; + bias-pull-up; + }; + + gpio3_6 { + pins = "gpio3", "gpio6"; + bias-high-impedance; + }; + + gpio5 { + pins = "gpio5"; + function = "clk32k-out"; + }; + }; + + regulators { + vsup-sd2-supply = <&vdd_ac_bat_reg>; + vsup-sd3-supply = <&vdd_ac_bat_reg>; + vsup-sd4-supply = <&vdd_ac_bat_reg>; + vsup-sd5-supply = <&vdd_ac_bat_reg>; + vin-ldo0-supply = <&as3722_sd2>; + vin-ldo1-6-supply = <&vdd_3v3_reg>; + vin-ldo2-5-7-supply = <&as3722_sd5>; + vin-ldo3-4-supply = <&vdd_ac_bat_reg>; + vin-ldo9-10-supply = <&vdd_ac_bat_reg>; + vin-ldo11-supply = <&vdd_3v3_reg>; + + sd0 { + regulator-name = "vdd-cpu"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1400000>; + regulator-min-microamp = <3500000>; + regulator-max-microamp = <3500000>; + regulator-boot-on; + regulator-always-on; + }; + + sd1 { + regulator-name = "vdd-core"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1350000>; + regulator-min-microamp = <2500000>; + regulator-max-microamp = <2500000>; + regulator-boot-on; + regulator-always-on; + }; + + as3722_sd2: sd2 { + regulator-name = "vddio-ddr"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1350000>; + regulator-boot-on; + regulator-always-on; + }; + + sd4 { + regulator-name = "avdd-pex-sata"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-boot-on; + regulator-always-on; + }; + + as3722_sd5: sd5 { + regulator-name = "vddio-sys"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + sd6 { + regulator-name = "vdd-gpu"; + regulator-min-microvolt = <650000>; + regulator-max-microvolt = <1200000>; + regulator-min-microamp = <3500000>; + regulator-max-microamp = <3500000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo0 { + regulator-name = "avdd_pll"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1 { + regulator-name = "run-cam-1.8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + ldo2 { + regulator-name = "gen-avdd,vddio-hsic"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3 { + regulator-name = "vdd-rtc"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-boot-on; + regulator-always-on; + ams,enable-tracking; + }; + + ldo4 { + regulator-name = "vdd-cam"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo5 { + regulator-name = "vdd-cam-front"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + ldo6 { + regulator-name = "vddio-sdmmc3"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo7 { + regulator-name = "vdd-cam-rear"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + }; + + ldo9 { + regulator-name = "vdd-touch"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + + ldo10 { + regulator-name = "vdd-cam-af"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + + ldo11 { + regulator-name = "vpp-fuse"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; + }; }; pmc@7000e400 { @@ -464,6 +669,84 @@ }; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + vdd_ac_bat_reg: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "vdd_ac_bat"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + vdd_3v3_reg: regulator@1 { + compatible = "regulator-fixed"; + regulator-name = "vdd_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&as3722 1 GPIO_ACTIVE_HIGH>; + }; + + vdd_3v3_modem_reg: regulator@2 { + compatible = "regulator-fixed"; + regulator-name = "vdd-modem-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&as3722 2 GPIO_ACTIVE_HIGH>; + }; + + vdd_hdmi_5v0_reg: regulator@3 { + compatible = "regulator-fixed"; + regulator-name = "vdd-hdmi-5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>; + }; + + vdd_bl_reg: regulator@4 { + compatible = "regulator-fixed"; + regulator-name = "vdd-bl"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_LOW>; + }; + + usb_vbus_hs_reg: regulator@5 { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus_hs"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>; + gpio-open-drain; + }; + + usb_vbus_ss_reg: regulator@6 { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus_ss"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>; + gpio-open-drain; + }; + + panel_3v3_reg: regulator@7 { + compatible = "regulator-fixed"; + regulator-name = "panel_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&as3722 4 GPIO_ACTIVE_HIGH>; + }; + }; + sound { compatible = "nvidia,tegra-audio-max98090-venice2", "nvidia,tegra-audio-max98090"; -- 1.7.1.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <1386855064-10993-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH 1/2] ARM: tegra: enable ams AS3722 drivers [not found] ` <1386855064-10993-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2013-12-12 21:20 ` Stephen Warren [not found] ` <52AA2891.2020502-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Stephen Warren @ 2013-12-12 21:20 UTC (permalink / raw) To: Laxman Dewangan Cc: thierry.reding-Re5JQEeQqe8AvxtiuMwx3w, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA On 12/12/2013 06:31 AM, Laxman Dewangan wrote: > ams AS3722 is the system power manager module IC for the Tegra124 based > Venice2 platform. Enable configs for gpio, pincontrol, rtc, regulator > support from this device. I've squashed patch 1/2 into Tegra's for-3.14/defconfig branch. I've applied patch 2/2 to Tegra's for-3.14/dt branch. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <52AA2891.2020502-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH 1/2] ARM: tegra: enable ams AS3722 drivers [not found] ` <52AA2891.2020502-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> @ 2013-12-12 21:51 ` Stephen Warren [not found] ` <52AA2FD1.3020000-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Stephen Warren @ 2013-12-12 21:51 UTC (permalink / raw) To: Laxman Dewangan Cc: thierry.reding-Re5JQEeQqe8AvxtiuMwx3w, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA On 12/12/2013 02:20 PM, Stephen Warren wrote: > On 12/12/2013 06:31 AM, Laxman Dewangan wrote: >> ams AS3722 is the system power manager module IC for the Tegra124 based >> Venice2 platform. Enable configs for gpio, pincontrol, rtc, regulator >> support from this device. > > I've squashed patch 1/2 into Tegra's for-3.14/defconfig branch. > > I've applied patch 2/2 to Tegra's for-3.14/dt branch. Actually, I'm dropping patch 2/2 since it causes a whole bunch of error spew during boot: > [ 0.628315] tegra124-pinctrl 70000868.pinmux: invalid group "dap2_dout_pp2" for function "rsvd4" > [ 0.635309] tegra124-pinctrl 70000868.pinmux: does not have pin group dap2_dout_pp2 > [ 0.642999] tegra124-pinctrl 70000868.pinmux: could not map group config for "dap2_dout_pp2" > [ 0.731176] as3722-pinctrl as3722-pinctrl: pin gpio0 already requested by as3722-pinctrl; cannot claim for as3722-regulator > [ 0.742312] as3722-pinctrl as3722-pinctrl: pin-0 (as3722-regulator) status -22 > [ 0.749526] as3722-pinctrl as3722-pinctrl: could not request pin 0 (gpio0) from group gpio0 on device as3722-pinctrl > [ 0.760133] as3722-regulator as3722-regulator: Error applying setting, reverse things back > [ 0.835838] as3722-regulator as3722-regulator: Failed to find supply vin-ldo1-6 > [ 0.843312] as3722-regulator as3722-regulator: regulator 8 register failed -517 > [ 0.852263] platform as3722-regulator: Driver as3722-regulator requests probe deferral > [ 0.984920] as3722-pinctrl as3722-pinctrl: pin gpio0 already requested by as3722-pinctrl; cannot claim for as3722-rtc > [ 0.995537] as3722-pinctrl as3722-pinctrl: pin-0 (as3722-rtc) status -22 > [ 1.002244] as3722-pinctrl as3722-pinctrl: could not request pin 0 (gpio0) from group gpio0 on device as3722-pinctrl > [ 1.012848] as3722-rtc as3722-rtc: Error applying setting, reverse things back ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <52AA2FD1.3020000-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH 1/2] ARM: tegra: enable ams AS3722 drivers [not found] ` <52AA2FD1.3020000-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> @ 2013-12-13 6:24 ` Laxman Dewangan 0 siblings, 0 replies; 5+ messages in thread From: Laxman Dewangan @ 2013-12-13 6:24 UTC (permalink / raw) To: Stephen Warren Cc: thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Friday 13 December 2013 03:21 AM, Stephen Warren wrote: > On 12/12/2013 02:20 PM, Stephen Warren wrote: >> On 12/12/2013 06:31 AM, Laxman Dewangan wrote: >>> ams AS3722 is the system power manager module IC for the Tegra124 based >>> Venice2 platform. Enable configs for gpio, pincontrol, rtc, regulator >>> support from this device. >> I've squashed patch 1/2 into Tegra's for-3.14/defconfig branch. >> >> I've applied patch 2/2 to Tegra's for-3.14/dt branch. > Actually, I'm dropping patch 2/2 since it causes a whole bunch of error > spew during boot: > >> [ 0.628315] tegra124-pinctrl 70000868.pinmux: invalid group "dap2_dout_pp2" for function "rsvd4" >> [ 0.635309] tegra124-pinctrl 70000868.pinmux: does not have pin group dap2_dout_pp2 >> [ 0.642999] tegra124-pinctrl 70000868.pinmux: could not map group config for "dap2_dout_pp2" >> [ 0.731176] as3722-pinctrl as3722-pinctrl: pin gpio0 already requested by as3722-pinctrl; cannot claim for as3722-regulator >> [ 0.742312] as3722-pinctrl as3722-pinctrl: pin-0 (as3722-regulator) status -22 >> [ 0.749526] as3722-pinctrl as3722-pinctrl: could not request pin 0 (gpio0) from group gpio0 on device as3722-pinctrl >> [ 0.760133] as3722-regulator as3722-regulator: Error applying setting, reverse things back >> [ 0.835838] as3722-regulator as3722-regulator: Failed to find supply vin-ldo1-6 >> [ 0.843312] as3722-regulator as3722-regulator: regulator 8 register failed -517 >> [ 0.852263] platform as3722-regulator: Driver as3722-regulator requests probe deferral >> [ 0.984920] as3722-pinctrl as3722-pinctrl: pin gpio0 already requested by as3722-pinctrl; cannot claim for as3722-rtc >> [ 0.995537] as3722-pinctrl as3722-pinctrl: pin-0 (as3722-rtc) status -22 >> [ 1.002244] as3722-pinctrl as3722-pinctrl: could not request pin 0 (gpio0) from group gpio0 on device as3722-pinctrl >> [ 1.012848] as3722-rtc as3722-rtc: Error applying setting, reverse things back I did not observe this issue in my log, probably overlooked. I will repro this and fix/update the issue/patch. Thanks, laxman ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-12-13 6:24 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-12-12 13:31 [PATCH 1/2] ARM: tegra: enable ams AS3722 drivers Laxman Dewangan 2013-12-12 13:31 ` [PATCH 2/2] ARM: tegra: add ams AS3722 device to Venice2 DT Laxman Dewangan [not found] ` <1386855064-10993-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2013-12-12 21:20 ` [PATCH 1/2] ARM: tegra: enable ams AS3722 drivers Stephen Warren [not found] ` <52AA2891.2020502-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 2013-12-12 21:51 ` Stephen Warren [not found] ` <52AA2FD1.3020000-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 2013-12-13 6:24 ` Laxman Dewangan
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).