Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2980cdb1 authored by Prashanth Vadde's avatar Prashanth Vadde Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Support PCA9956B LED on apq8009



Add NXP PCA9956B LED interface node support
on APQ8009 platform.

Change-Id: Id86be6135dbc961cae73013d0aef001470830702
Signed-off-by: default avatarPrashanth Vadde <pvadde@codeaurora.org>
parent 0ead6f3a
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

&i2c_3 {
	status = "ok";
	qcom,clk-freq-out = <100000>;

	/* PCA9956B LED Drivers */
	nxp-ledseg-i2c@4b {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "nxp,pca9956b";
		reg = <0x4b>;
		pca9956b,support_initialize = <1>;
		pca9956b,mode1 = <0x09>;
		pca9956b,mode2 = <0x05>;

		pca9956b,ledout0 = <0xAA>;
		pca9956b,ledout1 = <0xAA>;
		pca9956b,ledout2 = <0xAA>;
		pca9956b,ledout3 = <0xFF>;
		pca9956b,ledout4 = <0xFF>;
		pca9956b,ledout5 = <0xFF>;
		pca9956b,defaultiref = <0x2f>;
	};
};

&soc {
	pinctrl@1000000 {
		i2c3{
			pca9956b_reset: pca9956b_reset {
				config {
					pins = "gpio84";
					drive-strength = <16>;
					bias-pull-down;
				};
			};
		};
	};
};
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#include "msm8909-pm8916-mtp.dtsi"
#include "apq8009-audio-external_codec.dtsi"
#include "apq8009-memory.dtsi"
#include "apq8009-led-pca9956.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. APQ8009 Excelpoint RefBoard";