From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x227S0Bhg94aqOgQUUMazCsVYFfZNUjq1v1JcAMZVKvo+QN1QeYrc4+HnMdf5XWI9APfux3O1 ARC-Seal: i=1; a=rsa-sha256; t=1519217927; cv=none; d=google.com; s=arc-20160816; b=w9fFlsIn0ygGKGdwrb3Zmgi6p/lY5SyykpEuWofBn2B2HERD+R+CIqb/HNylpcfyYM zpDab3XwXom1oqYgaNRlEQ6MBVD2rUh6ot7dZpM9WmzaE0OXwOB2emK5+idaxE7M42Nq 6k93WagY5KhkMh1S90eeIu8sX1lFn2b6yvxSQ1YK0I+24TD43yUt/XYgTvvrVr5uRhDL 4gsxpNQyHuE4DVJI/WP8NLVBT9p4xnNTaxhcDg8horqHBcPEw+WNcY2nvWuOeuE5OpCN k3wBDbCrnwAPFTVH2BZxp4lh06QxkWJYxGTMh2uVPN7/Z5hTPZjuxsFTUnIehWYVTlPd s++g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=qhmPcpIvy64xm7t79b48CY2Nwc83sphKKiCgq7f8R0o=; b=px6LLhSkLkALCTGb3MfhBX+4O7Nuy/zGhlngsQOJ15nHxHFMg6d/9u9HYtMg85C6Dt 5IfWMeld76LH/XplewFu9tcYcLGATcrPly0n9NYPlqZe1YQVGmHZ0QPQ7onMUQ8m78lC yifCbgb/T+c3sDwOVt0e9iuYZpCdayqIWYFJZsShJd/iyai49xrp5+8G4IbSBzgljAkM XyImKNOiKq/yCJHLRHGFhz7E7zquS9nwB6MBQh+P1vfPLNP6z1C2kOzpL/UWkld7Saz8 q4bpPsjL6hN3bleGlPRK7zx3ZWAwlDwmyuj3683NmU12h35cW8isFzZV7xl8seXtzRYx 23+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.71.90 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.71.90 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 4.14 027/167] ARM: lpc3250: fix uda1380 gpio numbers Date: Wed, 21 Feb 2018 13:47:18 +0100 Message-Id: <20180221124526.076343630@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124524.639039577@linuxfoundation.org> References: <20180221124524.639039577@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-LABELS: =?utf-8?b?IlxcU2VudCI=?= X-GMAIL-THRID: =?utf-8?q?1593015399989445570?= X-GMAIL-MSGID: =?utf-8?q?1593015457379479805?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit ca32e0c4bf9ca4b87089c5a5ce945e5f2ec890da upstream. dtc warns about obviously incorrect GPIO numbers for the audio codec on both lpc32xx boards: arch/arm/boot/dts/lpc3250-phy3250.dtb: Warning (gpios_property): reset-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A0000/uda1380@18 arch/arm/boot/dts/lpc3250-phy3250.dtb: Warning (gpios_property): power-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A0000/uda1380@18 arch/arm/boot/dts/lpc3250-ea3250.dtb: Warning (gpios_property): reset-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A0000/uda1380@18 arch/arm/boot/dts/lpc3250-ea3250.dtb: Warning (gpios_property): power-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A0000/uda1380@18 It looks like the nodes are written for a different binding that combines the GPIO number into a single number rather than a bank/number pair. I found the right numbers on stackexchange.com, so this patch fixes the warning and has a reasonable chance of getting things to actually work. Cc: stable@vger.kernel.org Link: https://unix.stackexchange.com/questions/59497/alsa-asoc-how-to-correctly-load-devices-drivers/62217#62217 Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/lpc3250-ea3250.dts | 4 ++-- arch/arm/boot/dts/lpc3250-phy3250.dts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/arch/arm/boot/dts/lpc3250-ea3250.dts +++ b/arch/arm/boot/dts/lpc3250-ea3250.dts @@ -156,8 +156,8 @@ uda1380: uda1380@18 { compatible = "nxp,uda1380"; reg = <0x18>; - power-gpio = <&gpio 0x59 0>; - reset-gpio = <&gpio 0x51 0>; + power-gpio = <&gpio 3 10 0>; + reset-gpio = <&gpio 3 2 0>; dac-clk = "wspll"; }; --- a/arch/arm/boot/dts/lpc3250-phy3250.dts +++ b/arch/arm/boot/dts/lpc3250-phy3250.dts @@ -81,8 +81,8 @@ uda1380: uda1380@18 { compatible = "nxp,uda1380"; reg = <0x18>; - power-gpio = <&gpio 0x59 0>; - reset-gpio = <&gpio 0x51 0>; + power-gpio = <&gpio 3 10 0>; + reset-gpio = <&gpio 3 2 0>; dac-clk = "wspll"; };